@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Design tokens — contemporary institutional UI */
:root {
    --cyber-dark: #f0f4f8;
    --cyber-deep: #0a1628;
    --cyber-gold: #c9a227;
    --cyber-blue: #1565c0;

    --text-white: #1a2332;
    --text-muted: #5c6b7a;

    --surface: #ffffff;
    --surface-muted: #f4f7fb;
    --border-subtle: rgba(10, 22, 40, 0.08);

    --glass-bg: rgba(255, 255, 255, 0.82);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04), 0 4px 12px rgba(10, 22, 40, 0.06);
    --shadow-md: 0 4px 8px rgba(10, 22, 40, 0.06), 0 12px 32px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 8px 16px rgba(10, 22, 40, 0.08), 0 24px 48px rgba(10, 22, 40, 0.1);

    --gold-glow: 0 8px 24px rgba(201, 162, 39, 0.22);
    --neon-glow: 0 4px 16px rgba(21, 101, 192, 0.18);

    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-med: 0.35s var(--ease-out);
}

body {
    font-family: 'Exo 2', 'Montserrat', system-ui, sans-serif;
    background-color: var(--cyber-dark);
    background-image:
        radial-gradient(ellipse 120% 80% at 10% -10%, rgba(21, 101, 192, 0.07), transparent 50%),
        radial-gradient(ellipse 90% 60% at 100% 20%, rgba(201, 162, 39, 0.06), transparent 45%);
    background-attachment: fixed;
    color: var(--text-white);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(21, 101, 192, 0.18);
    color: var(--cyber-deep);
}

/* Soft ambient layer (no heavy texture) */
.cyber-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, rgba(240, 244, 248, 0.85) 45%, rgba(248, 250, 252, 0.92) 100%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 28px);
}

/* --- Header --- */
.cyber-header {
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: saturate(1.2) blur(16px);
    -webkit-backdrop-filter: saturate(1.2) blur(16px);
}

.top-bar {
    background: linear-gradient(90deg, var(--cyber-deep) 0%, #132a45 50%, var(--cyber-deep) 100%);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    text-transform: uppercase;
}

.contact-info i {
    color: var(--cyber-gold);
    margin-right: 5px;
}

/* Nav switches to hamburger at this width (avoids crushed horizontal menu) */
.main-nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    position: relative;
}

.main-nav .container {
    max-width: 100%;
    padding: 0 clamp(16px, 3vw, 40px);
}

.nav-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    column-gap: clamp(12px, 2vw, 20px);
    row-gap: 8px;
}

.logo {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 1.2vw, 12px);
    flex-wrap: nowrap;
    text-decoration: none;
    min-width: 0;
}

.logo-link img {
    display: block;
    width: auto;
    max-height: clamp(36px, 5.5vw, 50px);
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(10, 22, 40, 0.08));
}

.nav-logo,
.nav-medal {
    height: auto;
    max-height: clamp(36px, 5.5vw, 50px);
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(8px, 1.2vw, 20px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    flex: 0 0 auto;
}

.nav-menu > li > a {
    color: var(--text-white);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    transition: color var(--transition-fast);
    padding: 10px 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    white-space: nowrap;
    line-height: 1.15;
    box-sizing: border-box;
}

.nav-menu > li > a i.fa-chevron-down {
    font-size: 0.62em;
    opacity: 0.72;
    flex-shrink: 0;
    margin: 0;
    align-self: center;
}

/* Slightly tighter type when there are many top-level items */
@media (min-width: 1281px) and (max-width: 1536px) {
    .nav-menu > li > a {
        font-size: 11px;
        letter-spacing: 0.05em;
        padding: 10px 2px;
    }
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--cyber-blue);
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyber-blue), var(--cyber-gold));
    border-radius: 2px;
    transition: width var(--transition-med);
    box-shadow: none;
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 100%;
}

/* Dropdown parents: no underline (avoids “stuck” bar; active state is color-only) */
.nav-menu > li.has-mega > a::after {
    display: none;
}

/* Mega Menu — show on pointer hover + keyboard/focus inside item */
.mega-menu {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 4px;
    min-width: 260px;
    padding: 18px 20px;
    z-index: 1002;
}

/* Invisible bridge so cursor can move from label into panel without closing */
.mega-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 10px;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
    display: block;
    animation: fadeIn 0.28s var(--ease-out);
}

.mega-content h3 {
    color: var(--cyber-deep);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
    margin-top: 0;
}
.mega-content a {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    padding: 8px 0;
    border: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), padding-left var(--transition-fast), background var(--transition-fast);
}
.mega-content a:hover {
    color: var(--cyber-blue);
    padding-left: 8px;
    background: rgba(21, 101, 192, 0.04);
}

/* Horizontal nav only on wide viewports */
@media (min-width: 1281px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu,
    .nav-menu.active {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        position: static;
        left: auto;
        top: auto;
        width: auto;
        max-width: none;
        max-height: none;
        overflow: visible;
        padding: 0;
        margin: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        gap: clamp(8px, 1.2vw, 20px);
    }

    .nav-menu {
        flex: 1 1 auto;
        justify-content: flex-end;
        min-width: 0;
    }

    .nav-menu > li {
        width: auto;
        border-bottom: none;
    }

    .mega-menu {
        position: absolute;
        width: auto;
    }
}

/* --- Hero Section (Redesigned) --- */
.cyber-hero {
    position: relative;
    padding: 100px 0;
    min-height: 90vh; /* Taller hero */
    display: flex;
    align-items: center;
    /* Light radial gradient */
    background: radial-gradient(circle at 70% 50%, rgba(200, 220, 240, 0.4) 0%, rgba(245, 247, 250, 1) 70%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Text larger than image area */
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

/* Left Content */
.hero-content-left {
    padding-right: 20px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(21, 101, 192, 0.08);
    border: 1px solid rgba(21, 101, 192, 0.22);
    color: var(--cyber-blue);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.glitch-text {
    font-family: 'Exo 2', sans-serif;
    font-size: 3.5rem; /* Larger Title */
    font-weight: 900;
    color: var(--cyber-deep); /* Dark Navy text instead of white */
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    position: relative;
    letter-spacing: 2px;
}

.neon-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--cyber-deep); /* Dark Navy base */
    margin: 10px 0 25px 0;
    font-weight: 700;
    /* text-shadow handled in glith/neon vars */
}

.gold-text {
    color: var(--cyber-gold);
    font-style: italic;
    font-weight: 700;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.cyber-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.cyber-link:hover {
    color: var(--cyber-blue);
    text-shadow: var(--neon-glow);
}

/* Right Visuals - Full Screen Edge-to-Edge */
.hero-visual-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 60vw; /* Increased width for diagonal overlap */
    height: 100%;
    z-index: 1;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Remove or update the frame to fit edge-to-edge if needed, or keep it as overlay */
.hero-image-container::after {
    display: none; 
}

.full-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    
    /* Double Background Technique: Smooth seamless blend */
    mask-image: linear-gradient(to right, transparent 0%, transparent 5%, black 30%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 5%, black 30%);
    
    /* Slideshow Props */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out; 
    
    /* Slow Zoom for Life/Motion */
    animation: heroZoom 20s infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.full-hero-img.active {
    opacity: 1;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    /* Gradient matches the background color but respects transparency to show texture behind */
    background: linear-gradient(to right, transparent 0%, rgba(245, 247, 250, 0.8) 30%, transparent 80%);
    pointer-events: none;
    z-index: 2;
}

/* Redefine Layout - Text is now in container, Image is absolute to screen */
.hero-container {
    display: flex; /* Changed from grid to flex since only one child remains effectively */
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 2;
    max-width: 1400px;
}

/* Text Content Size */
.hero-content-left {
    max-width: 600px; /* Limit width */
    width: 100%;
    z-index: 10;
}

@media (max-width: 992px) {
    .hero-visual-right {
        position: relative;
        width: 100%;
        height: 50vh;
        order: -1; /* Move image to top on mobile */
    }
    
    .hero-container {
        flex-direction: column;
        padding-top: 20px;
    }
    
    .hero-content-left {
        max-width: 100%;
        text-align: center;
    }
    
    .full-hero-img {
         mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    }
}

/* Character */
/* .hero-character removed */
/* Floating elements removed */

.cyber-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    color: var(--cyber-deep);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    background: linear-gradient(135deg, #e8c84a 0%, var(--cyber-gold) 100%);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(201, 162, 39, 0.25);
}

.cyber-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-med);
}

.cyber-btn:hover::before {
    opacity: 1;
}

.cyber-btn:hover {
    box-shadow: var(--gold-glow);
    transform: translateY(-2px);
    color: var(--cyber-deep);
}

.cyber-btn:active {
    transform: translateY(0);
}

/* --- Timeline Section --- */
.timeline-section {
    padding: 80px 0;
    background-color: var(--surface-muted);
    position: relative;
    background-image: url('assets/images/soyombo-gold.png');
    background-repeat: no-repeat;
    background-position: center 20%;
    background-size: 400px;
    background-blend-mode: soft-light; /* Softer blend */
}

.section-title {
    text-align: center;
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 48px;
    letter-spacing: 0.06em;
    color: var(--cyber-deep);
    border-bottom: none;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 14px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--cyber-blue), var(--cyber-gold));
}

.gold-accent {
    color: var(--cyber-gold);
}

.timeline-container {
    position: relative;
    overflow-x: hidden; /* Changed to hidden for auto-scroll */
    padding: 40px 0;
    width: 100%;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 200%; /* Make line long enough */
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyber-gold), transparent);
    z-index: 0;
    transform: translateY(-50%);
}

.timeline-cards {
    display: flex;
    gap: 60px;
    padding: 0 50px;
    position: relative;
    z-index: 1;
    width: max-content;
    animation: scrollTimeline 40s linear infinite alternate;
}

.timeline-cards:hover {
    animation-play-state: paused;
}

@keyframes scrollTimeline {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% + 100vw)); } /* Slide until end hits viewport right */
}

.timeline-card {
    min-width: 200px;
    position: relative;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.timeline-card:hover {
    transform: scale(1.1);
}

.year-badge {
    background: #fff; /* Light bg */
    border: 2px solid var(--cyber-gold);
    color: var(--cyber-gold);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
    position: relative;
    z-index: 2;
}

.card-content {
    background: rgba(255, 255, 255, 0.95); /* Light card */
    border: 1px solid rgba(0, 102, 204, 0.3); /* Blue tint border */
    padding: 15px;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%); /* Tech shape */
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.card-content h3 {
    color: var(--cyber-blue);
    font-size: 1rem;
    margin: 0 0 5px 0;
}

.card-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- Core Values (Shields) --- */
.core-values-section {
    padding: 80px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    justify-items: center;
}

.shield-card {
    position: relative;
    width: 180px;
    height: 220px;
    /* Light/Gold gradient */
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.4), rgba(255, 255, 255, 1));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    clip-path: path("M 90 0 L 180 40 L 180 140 C 180 180 90 220 90 220 C 90 220 0 180 0 140 L 0 40 Z");
    border: 2px solid transparent; /* Cannot border clip-path directly easily, handled via pseudo or filter */
    filter: drop-shadow(0 0 5px var(--cyber-gold));
    transition: transform 0.3s ease;
}

.shield-card::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--cyber-dark);
    clip-path: path("M 90 0 L 180 40 L 180 140 C 180 180 90 220 90 220 C 90 220 0 180 0 140 L 0 40 Z");
    z-index: -1;
}

.shield-card:hover {
    transform: translateY(-10px);
}

.shield-icon {
    font-size: 2.5rem;
    color: var(--cyber-gold);
    margin-bottom: 10px;
    filter: drop-shadow(0 0 2px rgba(184, 134, 11, 0.5)); /* Added contrast shadow */
}

.shield-card h3 {
    color: var(--cyber-deep); /* Dark text */
    margin: 0;
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
}

.shield-card p {
    color: var(--text-muted); /* Darker muted text */
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* --- Faculties & Modern Grid --- */
.faculties-cyber-section {
    padding: 80px 0;
    background: linear-gradient(115deg, var(--surface-muted) 0%, var(--surface) 55%, var(--surface-muted) 100%);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.left-faculties .section-title-left {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    color: var(--cyber-deep); /* Dark text for light theme */
    border-left: 5px solid var(--cyber-blue);
    padding-left: 15px;
    margin-bottom: 30px;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.glass-card.full-width {
    grid-column: span 2;
    background: rgba(184, 134, 11, 0.1); /* Gold tint light */
    border-color: var(--cyber-gold);
}

.glass-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    padding: clamp(22px, 3vw, 32px);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.glass-card:hover {
    background: var(--surface);
    box-shadow: var(--shadow-md);
    border-color: rgba(21, 101, 192, 0.18);
    transform: translateY(-4px);
}

.glass-card i {
    font-size: 2rem;
    color: var(--cyber-blue);
    margin-bottom: 15px;
}

.glass-card h4 {
    margin: 0;
    font-family: 'Montserrat';
    font-weight: 600;
    color: var(--cyber-deep); /* Dark text for cards */
}

/* Right Modern Block */
.cyber-block {
    position: relative;
    height: 100%;
    min-height: 400px;
    background-image: url('assets/images/leadership_photo.jpg');
    background-size: cover;
    background-position: top center;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
}

.cyber-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent); /* Fade to white */
}

.cyber-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
}

.cyber-content h3 {
    font-size: 1.8rem;
    color: var(--cyber-blue);
    margin-bottom: 10px;
}

.cyber-content p {
    color: var(--text-muted); /* Ensure readable text on white overlay */
}

.tech-btn {
    color: var(--cyber-gold);
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 15px;
    display: inline-block;
}

/* Footer */
.cyber-footer {
    background: linear-gradient(180deg, var(--surface-muted) 0%, #e8eef5 100%);
    border-top: 1px solid var(--border-subtle);
    padding: 56px 0 24px;
    font-size: 0.9rem;
    color: var(--cyber-deep);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--cyber-gold);
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-col p {
    color: var(--text-muted);
    margin: 5px 0;
}

.footer-logo img {
    height: 70px;
    margin-bottom: 15px;
}

.slogan {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
}

.footer-social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.footer-social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05); /* Dark tint for light footer */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--cyber-deep); /* Dark Icon */
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid transparent;
}

.footer-social-icons a:hover {
    background: var(--cyber-blue);
    color: #fff;
    box-shadow: var(--neon-glow);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 8px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-subtle);
    padding-bottom: 5px;
}

.contact-list li span {
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h4 {
        display: block;
    }
    .footer-social-icons {
        justify-content: center;
    }
}


/* Nav Toggle Styles */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 10px;
    margin: 0;
}

.nav-toggle:focus {
    outline: 2px solid var(--cyber-blue);
    outline-offset: 2px;
}

.nav-toggle .bar {
    width: 26px;
    height: 2px;
    background: var(--cyber-deep);
    border-radius: 2px;
    transition: transform var(--transition-med), opacity var(--transition-fast);
}

/* Glitch Effect */
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cyber-dark); /* Match light background */
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    5% { clip: rect(70px, 9999px, 90px, 0); }
    10% { clip: rect(10px, 9999px, 80px, 0); }
    15% { clip: rect(50px, 9999px, 20px, 0); }
    20% { clip: rect(20px, 9999px, 60px, 0); }
    25% { clip: rect(80px, 9999px, 10px, 0); }
    30% { clip: rect(60px, 9999px, 50px, 0); }
    35% { clip: rect(10px, 9999px, 40px, 0); }
    40% { clip: rect(40px, 9999px, 10px, 0); }
    45% { clip: rect(80px, 9999px, 20px, 0); }
    50% { clip: rect(30px, 9999px, 60px, 0); }
    55% { clip: rect(10px, 9999px, 10px, 0); }
    60% { clip: rect(50px, 9999px, 70px, 0); }
    65% { clip: rect(20px, 9999px, 40px, 0); }
    70% { clip: rect(30px, 9999px, 90px, 0); }
    75% { clip: rect(80px, 9999px, 30px, 0); }
    80% { clip: rect(10px, 9999px, 50px, 0); }
    85% { clip: rect(60px, 9999px, 20px, 0); }
    90% { clip: rect(20px, 9999px, 60px, 0); }
    95% { clip: rect(70px, 9999px, 40px, 0); }
    100% { clip: rect(50px, 9999px, 20px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(10px, 9999px, 80px, 0); }
    20% { clip: rect(80px, 9999px, 10px, 0); }
    40% { clip: rect(40px, 9999px, 60px, 0); }
    60% { clip: rect(20px, 9999px, 90px, 0); }
    80% { clip: rect(60px, 9999px, 20px, 0); }
    100% { clip: rect(30px, 9999px, 40px, 0); }
}

/* Animations */
@keyframes spinRight { 100% { transform: rotate(360deg); } }
@keyframes spinLeft { 100% { transform: rotate(-360deg); } }
@keyframes pulseLogo { 0% { transform: scale(1); } 100% { transform: scale(1.05); } }
@keyframes fadeIn { 
    from { opacity: 0; transform: translateX(-50%) translateY(10px); } 
    to { opacity: 1; transform: translateX(-50%) translateY(0); } 
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-7px); }
}

/* Hero Slider Styles */
.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.hero-slider .slide.active {
    opacity: 1;
}
.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

/* Slider Dots */
.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
.slider-dots .dot:hover {
    transform: scale(1.2);
    background: rgba(255,255,255,0.5);
}
.slider-dots .dot.active {
    background: var(--cyber-gold);
    border-color: var(--cyber-gold);
}

/* School Card Hover */
.school-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Hero Section Responsive */
@media (max-width: 768px) {
    .hero-content-left {
        max-width: 100% !important;
        padding: 0 20px;
        text-align: center;
    }
    .hero-main-title span:nth-child(1) {
        font-size: 1rem !important;
        letter-spacing: 8px !important;
    }
    .hero-main-title span:nth-child(2) {
        font-size: 1.8rem !important;
        letter-spacing: 3px !important;
    }
    .hero-main-title span:nth-child(3) {
        font-size: 2.2rem !important;
        letter-spacing: 4px !important;
    }
    .hero-values {
        justify-content: center !important;
        gap: 20px !important;
    }
    .hero-actions {
        justify-content: center !important;
    }
    .hero-badge-wrapper {
        text-align: center;
    }
}

/* Stats Section Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Nav: hamburger + drawer below 1280px (prevents crushed / overlapping items) */
@media (max-width: 1280px) {
    .logo {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 52px);
    }

    .nav-toggle {
        display: flex;
        flex: 0 0 auto;
        margin-left: 8px;
        order: 2;
    }

    .main-nav .nav-menu {
        display: none;
        order: 3;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        flex: 1 1 100%;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        background: var(--surface);
        padding: 12px 20px 20px;
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        max-height: min(80vh, calc(100dvh - 120px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        gap: 0;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(10, 22, 40, 0.06);
    }

    .nav-menu > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        white-space: normal;
        text-align: left;
        padding: 14px 4px 14px 0;
        box-sizing: border-box;
    }

    .nav-menu > li:not(.has-mega) > a {
        justify-content: flex-start;
    }

    .nav-menu > li > a i.fa-chevron-down {
        margin-left: auto;
        flex-shrink: 0;
    }

    .nav-menu > li > a::after {
        display: none;
    }

    .mega-menu {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(10, 22, 40, 0.04);
        padding: 10px 16px;
        display: none;
        margin-top: 0;
        border-radius: var(--radius-sm);
    }

    .has-mega:hover .mega-menu,
    .has-mega:active .mega-menu,
    .has-mega:focus-within .mega-menu {
        display: block;
        animation: none;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .section-grid {
        grid-template-columns: 1fr;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .hero-right {
        text-align: center;
        padding: 0;
    }
    .hero-left, .hero-center, .hero-right {
        order: unset;
    }
}
.timeline-full-width {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.values-full-width {
    width: 100%;
    padding: 0 5%;
    box-sizing: border-box;
}

.values-grid {
    width: 100%;
    max-width: none;
    /* Ensure grid stretches */
    grid-template-columns: repeat(4, 1fr); /* Force 4 columns for full width look */
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

.nav-menu li {
    position: relative;
}

/* Slideshow Styles */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--surface);
  overflow: hidden;
}

.mySlides {
  display: none;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  background-color: rgba(5, 22, 40, 0.6);
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: var(--cyber-gold);
  color: #fff;
}

.dot-container {
    text-align: center;
    padding: 20px;
    background: transparent;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
  background-color: var(--cyber-gold);
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* ===== Page Banner Styles ===== */
.page-banner {
    position: relative;
    background:
        linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(21, 101, 192, 0.45) 55%, rgba(10, 22, 40, 0.88) 100%),
        url('assets/images/hero-main-bg.webp');
    background-size: cover;
    background-position: center;
    padding: clamp(56px, 10vw, 96px) 0;
    text-align: center;
    color: white;
    margin-bottom: 0;
}

.page-banner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: linear-gradient(to top, var(--surface), transparent);
    pointer-events: none;
}

.page-banner h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    font-weight: 700;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.page-banner p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.page-banner p .gold-accent,
.page-banner .subtitle-gold {
    color: #f0d875;
}

/* ===== Page Content Styles ===== */
.page-content {
    padding: clamp(40px, 6vw, 72px) 0;
    background: var(--surface-muted);
}

.page-content h1 {
    color: var(--cyber-deep);
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.content-item {
    background: var(--surface);
    padding: clamp(22px, 3vw, 32px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
    box-shadow: var(--shadow-sm);
}

.content-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.content-item.full-width {
    grid-column: 1 / -1;
}

.content-item h2 {
    color: var(--cyber-deep);
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cyber-gold);
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-item h2 i {
    color: var(--cyber-blue);
}

.content-item p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 15px 0;
}

.content-item ul {
    padding-left: 20px;
    margin: 0;
}

.content-item li {
    margin-bottom: 10px;
    color: var(--text-muted);
    line-height: 1.6;
}

.content-item a {
    color: var(--cyber-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.content-item a:hover {
    color: var(--cyber-gold);
    text-decoration: underline;
}

/* ===== Law page — App Sidebar layout (full width) ===== */
.law-page {
    background: var(--surface-muted);
    min-height: calc(100vh - 120px);
}

.law-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.law-layout {
    display: grid;
    grid-template-columns: minmax(260px, 300px) 1fr;
    gap: 0;
    background: var(--surface);
    border: none;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    min-height: calc(100vh - 120px);
}

.law-sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border-subtle);
    padding: 32px clamp(20px, 3vw, 40px);
    position: sticky;
    top: 104px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.law-sidebar h1 {
    font-size: 1.2rem;
    margin: 0 0 6px;
    color: var(--cyber-deep);
    font-weight: 700;
}

.law-sidebar .law-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 22px;
    line-height: 1.5;
}

.law-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.law-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    text-align: left;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.law-nav-item i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.law-nav-item:hover {
    background: var(--surface-muted);
    color: var(--cyber-deep);
}

.law-nav-item.active {
    background: rgba(21, 101, 192, 0.1);
    color: var(--cyber-blue);
}

.law-nav-item .law-count {
    margin-left: auto;
    background: var(--surface-muted);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.law-nav-item.active .law-count {
    background: rgba(21, 101, 192, 0.14);
    color: var(--cyber-blue);
}

.law-main {
    padding: 32px clamp(24px, 4vw, 56px) 48px;
    background: #f8fafc;
    min-width: 0;
}

.law-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.law-topbar h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--cyber-deep);
    font-weight: 700;
}

.law-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    min-width: min(100%, 280px);
    flex: 0 1 360px;
    max-width: 420px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.law-search:focus-within {
    border-color: rgba(21, 101, 192, 0.35);
    box-shadow: var(--neon-glow);
}

.law-search i {
    color: var(--text-muted);
    flex-shrink: 0;
}

.law-search input {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    background: transparent;
    color: var(--cyber-deep);
}

.law-search input::placeholder {
    color: #94a3b8;
}

.law-acc {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.law-acc + .law-acc {
    margin-top: 12px;
}

.law-acc-head {
    width: 100%;
    border: none;
    background: var(--surface);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    color: var(--cyber-deep);
    transition: background var(--transition-fast);
}

.law-acc-head:hover {
    background: var(--surface-muted);
}

.law-acc-head .law-acc-icon {
    color: var(--cyber-gold);
}

.law-acc-head .law-acc-chev {
    margin-left: auto;
    color: var(--text-muted);
    transition: transform var(--transition-med);
}

.law-acc.open .law-acc-head .law-acc-chev {
    transform: rotate(180deg);
}

.law-acc-body {
    display: none;
    border-top: 1px solid var(--border-subtle);
}

.law-acc.open .law-acc-body {
    display: block;
}

.law-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
    gap: 20px;
    padding: 24px;
}

.law-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform var(--transition-med);
}

.law-card:hover {
    transform: translateY(-6px);
}

.law-card:focus-visible {
    outline: 2px solid var(--cyber-blue);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.law-card[hidden] {
    display: none !important;
}

.law-card-inner {
    position: relative;
    aspect-ratio: 3 / 4.2;
    min-height: 196px;
    background: linear-gradient(155deg, #143a62 0%, var(--cyber-deep) 50%, #050d18 100%);
    border-radius: 4px 10px 10px 4px;
    padding: 18px 14px 14px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 3px 6px 16px rgba(10, 22, 40, 0.22), inset -3px 0 10px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    transition: box-shadow var(--transition-med);
}

.law-card:hover .law-card-inner {
    box-shadow: 4px 12px 28px rgba(10, 22, 40, 0.28), var(--gold-glow), inset -3px 0 10px rgba(0, 0, 0, 0.18);
}

.law-card-inner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    background: linear-gradient(180deg, #dfc05a 0%, var(--cyber-gold) 45%, #9a7b1a 100%);
    box-shadow: inset -2px 0 4px rgba(0, 0, 0, 0.25);
}

.law-card-inner::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    background-image: url('assets/images/favicon-32x32.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    border: 1px solid rgba(201, 162, 39, 0.45);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    opacity: 0.95;
}

.law-card-title {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.94);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 2px;
    word-break: break-word;
}

.law-card-format {
    position: relative;
    z-index: 1;
    font-size: 0.72rem;
    color: var(--cyber-gold);
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-top: 8px;
    border-top: 1px solid rgba(201, 162, 39, 0.25);
}

.law-card-format i {
    margin-right: 4px;
}

#law-panel-durem .law-card-inner {
    background: linear-gradient(155deg, #1a4a3a 0%, #0f2e24 50%, #071a14 100%);
}

#law-panel-juram .law-card-inner {
    background: linear-gradient(155deg, #3d2f5c 0%, #251c3d 50%, #140f22 100%);
}

.law-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.law-empty[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .law-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .law-sidebar {
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding: 20px 16px;
    }

    .law-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .law-nav-item {
        flex-shrink: 0;
        width: auto;
        white-space: nowrap;
    }

    .law-nav-item .law-count {
        margin-left: 8px;
    }

    .law-main {
        padding: 20px 16px 32px;
    }

    .law-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .law-search {
        max-width: none;
    }

    .law-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 14px;
        padding: 16px;
    }

    .law-card-inner {
        min-height: 168px;
    }
}

/* ===== Policy Content Styles ===== */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
}

.policy-content h2 {
    color: var(--cyber-deep);
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.policy-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.policy-content ul {
    padding-left: 25px;
    margin-bottom: 20px;
}

.policy-content li {
    margin-bottom: 10px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== Footer Additional Styles ===== */
.footer-col .quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col .quick-links li {
    margin-bottom: 8px;
}

.footer-col .quick-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col .quick-links a:hover {
    color: var(--cyber-gold);
}

.footer-col address {
    font-style: normal;
}

.footer-bottom .footer-links {
    margin-top: 10px;
    font-size: 0.85rem;
}

.footer-bottom .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom .footer-links a:hover {
    color: var(--cyber-gold);
}

/* ===== Back to Top Button ===== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--cyber-deep);
    color: var(--cyber-gold);
    border: 2px solid var(--cyber-gold);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: var(--cyber-gold);
    color: white;
    transform: translateY(-3px);
}

/* ===== Mobile Nav Toggle Active State ===== */
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Reveal Animation ===== */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Skip to Content Link (Accessibility) ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--cyber-deep);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ===== Focus Styles for Accessibility ===== */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--cyber-blue);
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
    .cyber-header,
    .cyber-footer,
    .nav-toggle,
    #back-to-top {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .page-banner {
        background: #f0f0f0 !important;
        color: black !important;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}


