/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27, #1a1f3a, #2d4a67);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* Circuit Background Animation */
.circuit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: -1;
    background-image:
            linear-gradient(90deg, #00ffff 1px, transparent 1px),
            linear-gradient(0deg, #00ffff 1px, transparent 1px);
    background-size: 50px 50px;
    animation: circuitMove 20s linear infinite;
}

@keyframes circuitMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00ffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #00ffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #00ffff, #00ff88);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    background: linear-gradient(45deg, #00ffff, #ffffff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
    font-weight: 700;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5)); }
    to { filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.8)); }
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 40px;
}

.university-badge {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    font-size: 0.9rem;
    color: #00ffff;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #ffffff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Research Overview */
.research-overview {
    padding: 80px 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.overview-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.overview-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.overview-card h3 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Attack Types */
.attack-types {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

.attack-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.attack-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #00ffff, #00ff88);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 0 40px;
    backdrop-filter: blur(10px);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00ffff, #00ff88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Model Comparison */
.model-comparison {
    padding: 80px 0;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.model-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #00ffff, #00ff88);
}

.model-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 255, 255, 0.1);
}

.mlp-card::before {
    background: linear-gradient(45deg, #00ffff, #4fc3f7);
}

.lstm-card::before {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
}

.cnn-card::before {
    background: linear-gradient(45deg, #4ecdc4, #66bb6a);
}

.model-header h3 {
    font-size: 2rem;
    color: #00ffff;
    margin-bottom: 5px;
}

.model-subtitle {
    color: #888;
    font-size: 0.9rem;
}

.accuracy-display {
    margin: 30px 0;
}

.accuracy-circle {
    width: 120px;
    height: 120px;
    border: 3px solid #00ffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    background: rgba(0, 255, 255, 0.1);
}

.accuracy-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ffff;
}

.model-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-weight: bold;
    color: #00ffff;
}

/* Data Visualization */
.data-visualization {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

.viz-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.chart-card h3 {
    color: #00ffff;
    margin-bottom: 20px;
    text-align: center;
}

.chart-placeholder {
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.pca-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.data-points {
    position: absolute;
    width: 100%;
    height: 100%;
}

.point {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.point.class-0 {
    background: #00ffff;
}

.point.class-1 {
    background: #ff6b6b;
}

.point:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.point:nth-child(2) { top: 60%; left: 70%; animation-delay: 0.5s; }
.point:nth-child(3) { top: 40%; left: 20%; animation-delay: 1s; }
.point:nth-child(4) { top: 80%; left: 50%; animation-delay: 1.5s; }
.point:nth-child(5) { top: 30%; left: 80%; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.chart-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.8rem;
    color: #888;
}

.chart-info span {
    display: block;
    margin-bottom: 2px;
}

.learning-curve svg {
    width: 100%;
    height: 100%;
}

.mlp-line, .lstm-line, .cnn-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease-in-out forwards;
}

.lstm-line {
    animation-delay: 1s;
}

.cnn-line {
    animation-delay: 2s;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.legend {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.legend-item {
    font-size: 0.8rem;
}

.legend-item.mlp { color: #00ffff; }
.legend-item.lstm { color: #ff6b6b; }
.legend-item.cnn { color: #4ecdc4; }

/* Results */
.results {
    padding: 80px 0;
}

.result-highlight {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
}

.result-highlight h3 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.conclusions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.conclusion-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.conclusion-card h4 {
    color: #00ffff;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #00ffff;
    margin-bottom: 15px;
}

.footer-section p {
    color: #888;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

/* AOS Animation Styles */
[data-aos] {
    opacity: 0;
    transition: all 0.6s ease;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Team Page Styles */
.team-hero {
    padding: 120px 0 80px;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.team-member {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.1);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #00ffff, #00ff88);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ffffff;
}

.member-name {
    font-size: 1.5rem;
    color: #00ffff;
    margin-bottom: 10px;
}

.member-role {
    color: #888;
    margin-bottom: 15px;
    font-style: italic;
}

.member-description {
    line-height: 1.6;
    margin-bottom: 20px;
}

.member-email {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    color: #00ffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.member-email:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Contact Page Styles */
.contact-hero {
    padding: 120px 0 80px;
    text-align: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 40px 0;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #00ffff, #00ff88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5rem;
}

.contact-details h4 {
    color: #00ffff;
    margin-bottom: 5px;
}

.contact-details p {
    color: #888;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #00ffff;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(45deg, #00ffff, #00ff88);
    color: #000;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline-item {
        flex-direction: column !important;
        text-align: center;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column !important;
    }

    .timeline-content {
        margin: 20px 0;
    }

    .attack-timeline::before {
        display: none;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .viz-container {
        grid-template-columns: 1fr;
    }

    .overview-grid,
    .models-grid,
    .conclusions-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional styles for team and contact pages */
.collaboration-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.collab-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.collab-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 255, 0.5);
}

.collab-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.collab-card h3 {
    color: #00ffff;
    margin-bottom: 15px;
}

.team-stats {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 40px 20px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    color: #888;
}

.team-values {
    padding: 80px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 255, 0.5);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.value-card h3 {
    color: #00ffff;
    margin-bottom: 15px;
}

.contact-section {
    padding: 80px 0;
}

.form-group select {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.research-highlights {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 255, 0.5);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.highlight-card h3 {
    color: #00ffff;
    margin-bottom: 15px;
}

.faq-section {
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 255, 255, 0.1);
}

.faq-question h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #00ffff;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 25px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #ccc;
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .overview-card,
    .model-card,
    .team-member {
        padding: 30px 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2rem;
    }

    .values-grid,
    .highlights-grid {
        grid-template-columns: 1fr;
    }
}