:root {
    --primary: #00629B;
    /* IEEE Blue */
    --primary-glow: rgba(0, 98, 155, 0.5);
    --primary-light: #0082c3;
    --secondary: #43c4e4e4;
    /* IEEE Gold */
    --dark: #0a0a0c;
    --darker: #050505;
    --light: #f4f4f9;
    --gray: #a0a0a0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-heavy: rgba(255, 255, 255, 0.07);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --accent-gradient: linear-gradient(135deg, var(--primary) 0%, #00a2ff 100%);
    --surface-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--darker);
    background-image: linear-gradient(rgba(5, 5, 5, 0.85), rgba(5, 5, 5, 0.85)), url('assets/detailed-black-bg.png');
    background-attachment: fixed;
    background-size: cover;
    color: var(--light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.loading,
body.overflow-hidden {
    overflow: hidden !important;
}

/* Loader Styles */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid var(--glass-border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 4px;
    background: linear-gradient(to right, #fff, var(--primary), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite, glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(0, 98, 155, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(0, 98, 155, 0.8));
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 5000;
    transition: var(--transition);
    isolation: isolate;
}

.header.scrolled,
.header.menu-active {
    background: rgba(10, 10, 12, 0.8) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 5px 10px;
    border-radius: 12px;
    transition: var(--transition);
    text-decoration: none;
}

.brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.brand:hover::before {
    left: 150%;
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    padding: 3px;
}

.brand:hover .logo-img {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 25px rgba(0, 98, 155, 0.4);
    border-color: var(--primary);
}

.brand-name {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
    animation: shine 5s linear infinite;
}

.brand:hover .brand-name {
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Chapters Dropdown Styles */
.nav-links li {
    position: relative;
}

.nav-links li.dropdown:hover>a {
    color: var(--light);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    min-width: 260px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    list-style: none;
    margin-top: 15px;
}

.nav-links li:hover:not(.hide-menu) .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Instant close state when selection occurs */
.nav-links li.hide-menu .dropdown-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Bridge to prevent menu closing when moving mouse */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown-menu li {
    margin: 0 !important;
    width: 100%;
    padding: 0 0.5rem;
}

.dropdown-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0.8rem 1.2rem !important;
    color: var(--gray) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    width: 100%;
    text-decoration: none !important;
    border-radius: 12px;
}

.dropdown-menu a::after {
    display: none !important;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--light) !important;
    padding-left: 1.5rem !important;
    transform: translateX(5px);
}

.dropdown-menu a i {
    font-size: 1rem;
    color: var(--primary);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 98, 155, 0.1);
    border-radius: 8px;
}

.dropdown-toggle i {
    font-size: 0.7rem;
    margin-left: 6px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.7;
}

.nav-links li:hover:not(.hide-menu) .dropdown-toggle i {
    transform: rotate(180deg);
    opacity: 1;
}

/* Instant arrow reset when selection occurs */
.nav-links li.hide-menu .dropdown-toggle i {
    transform: rotate(0deg) !important;
    transition: none !important;
}

/* Navigation Search Bar */
.nav-search {
    margin-left: 2rem;
    display: flex;
    align-items: center;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrapper .search-icon {
    position: absolute;
    left: 14px;
    color: var(--gray);
    font-size: 0.9rem;
    transition: var(--transition);
    pointer-events: none;
}

.search-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 10px 16px 10px 40px;
    color: var(--light);
    font-family: var(--font-main);
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
    width: 250px;
    box-shadow: 0 0 15px rgba(0, 98, 155, 0.3);
}

.search-input:focus + .search-icon,
.search-wrapper:focus-within .search-icon {
    color: var(--primary-light);
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 250px;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 98, 155, 0.15);
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 5001;
}

.search-results.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
}

.search-result-item {
    display: block;
    padding: 12px 20px;
    color: var(--light);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s, color 0.3s;
    font-size: 0.9rem;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-light);
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    z-index: 2000;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--light);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-toggle:focus,
.btn-glow:focus,
.btn-glass:focus,
.filter-btn:focus,
.society-item:focus {
    outline: none;
}

@media (max-width: 992px) {
    .nav-search {
        display: none;
    }
}

/* Mobile Search */
.mobile-search {
    margin-bottom: 2rem;
    width: 100%;
}

.mobile-search .search-wrapper {
    width: 100%;
}

.mobile-search .search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-search .search-input:focus {
    width: 100%;
}

.mobile-search .search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    transform: none;
    z-index: 5001;
}

.mobile-search .search-results.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    display: block; /* We override display:none so transitions work */
}

/* Mobile Menu Dropdown */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    z-index: 998;
    padding: 100px 1.5rem 4rem;
    border-bottom: 1px solid var(--glass-border);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    pointer-events: none;
    display: block;
    will-change: transform, opacity;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-nav-links {
    list-style: none;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-bottom: 120px; /* Extra space to ensure bottom items are reachable */
}

.mobile-nav-links li {
    opacity: 0;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

.mobile-menu.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for links */
.mobile-menu.active .mobile-nav-links li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--light);
    font-size: 0.8rem;
    /* Matches user previous edit */
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid transparent;
}

.mobile-nav-links a:hover {
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-border);
    padding-left: 1.5rem;
}

/* Mobile Submenu (Chapters) */
.mobile-dropdown-toggle i {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

.mobile-dropdown-toggle.active i {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease,
        padding 0.4s ease,
        margin 0.4s ease;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    margin-top: 0.5rem;
}

.mobile-submenu.active {
    max-height: 1000px; /* Increased to accommodate all 9 chapters */
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--glass-border);
}

.mobile-submenu li {
    margin: 0;
    padding: 0;
    opacity: 1 !important;
    /* Force visibility when expanded */
    transform: none !important;
}

.mobile-submenu a {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    padding: 0.8rem 1rem !important;
    color: var(--gray) !important;
    font-family: var(--font-main) !important;
    border-radius: 10px;
}

.mobile-submenu a i {
    font-size: 0.9rem;
    width: 30px;
    height: 30px;
    background: rgba(0, 98, 155, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--primary-light);
}

.mobile-submenu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light) !important;
}

/* About Section Styles */
.about-section {
    padding: 100px 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.glass-image-container {
    position: relative;
    width: 320px;
    height: 320px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 40px;
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.glass-image-container:hover {
    transform: translateY(-10px) rotate(2deg);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    z-index: 2;
    background: white;
    padding: 10px;
}

.orb-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--primary);
    filter: blur(90px);
    opacity: 0.4;
    z-index: 1;
}

.about-lead {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.about-text {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

@media (max-width: 992px) {
    .about-section {
        padding: 60px 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .about-content-wrapper .section-header {
        text-align: center !important;
        align-items: center !important;
    }

    .about-content-wrapper .section-header .title-underline {
        margin: 0 auto !important;
    }
    
    .about-visual {
        display: none;
    }
}

.section-title,
.main-heading,
.brand-name,
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
}

/* Hero Section Redesign */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 2rem 80px;
    /* Removed redundant background image - using body background */
    position: relative;
    overflow: hidden;
    contain: layout style;
    /* Performance hint */
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    /* Decorative elements shouldn't capture events */
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    /* slightly reduced blur for performance */
    opacity: 0.5;
    animation: orbMove 15s ease-in-out infinite alternate;
    will-change: transform;
    /* hardware acceleration hint */
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 179, 0, 0.15);
    /* secondary glow */
    bottom: 10%;
    right: 5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(0, 162, 255, 0.2);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes orbMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

@media (max-width: 992px) {
    .badge-wrapper {
        margin-top: 2rem;
        margin-bottom: 2.5rem;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 0;
        gap: 3rem;
        width: 100%;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .hero-content {
        align-items: center;
    }
}

.badge-wrapper {
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0, 98, 155, 0.15);
    border: 1px solid rgba(0, 98, 155, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4dbbff;
    letter-spacing: 2px;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #4dbbff;
    border-radius: 50%;
    box-shadow: 0 0 10px #4dbbff, 0 0 20px #4dbbff;
    animation: pulse 2s infinite;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-heading {
    font-size: clamp(3rem, 4.5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.text-light {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.text-gradient {
    background: linear-gradient(135deg, #fff, #bcc2c3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    /* ensures clip works reliably */
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

@media (max-width: 992px) {
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 98, 155, 0.4);
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn-glow:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 5px 15px rgba(0, 98, 155, 0.4);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 98, 155, 0.6);
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.btn-glass:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    user-select: none;
}

.btn-glass:active {
    transform: translateY(-2px) scale(0.98);
    background: rgba(255, 255, 255, 0.15);
}

/* Hero Stat Cards */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.stats-cards-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 400px;
}

.stat-card-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Staggered offset for dynamic look */
.stat-card-glass:nth-child(1) { transform: translateX(-30px); }
.stat-card-glass:nth-child(2) { transform: translateX(20px); }
.stat-card-glass:nth-child(3) { transform: translateX(-10px); }

.stat-card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    z-index: -1;
}

.stat-card-glass:hover {
    transform: translateY(-10px) translateX(0) scale(1.05) !important;
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 98, 155, 0.2);
}

.s-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 98, 155, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-light);
    border: 1px solid rgba(0, 98, 155, 0.2);
    transition: var(--transition);
}

.stat-card-glass:hover .s-card-icon {
    background: var(--primary);
    color: white;
    transform: rotate(-10deg) scale(1.1);
}

.s-card-info {
    display: flex;
    flex-direction: column;
}

.s-card-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-family: var(--font-heading);
}

.s-card-text {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 992px) {
    .stats-cards-container {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .stat-card-glass {
        padding: 1.2rem;
        flex: 1;
        min-width: 200px;
        transform: none !important;
        justify-content: center;
    }

    .stat-card-glass:hover {
        transform: translateY(-5px) !important;
    }
}

@media (max-width: 600px) {
    .stat-card-glass {
        min-width: 100%;
        padding: 1rem 1.5rem;
    }

    .s-card-num {
        font-size: 1.8rem;
    }
}

/* Floating Terminal Visual */
.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    perspective: 1000px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.glass-terminal {
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 98, 155, 0.2);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    will-change: transform;
}

.glass-terminal:hover {
    transform: rotateY(0) rotateX(0);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.close {
    background: #ff5f56;
}

.dot.minimize {
    background: #ffbd2e;
}

.dot.maximize {
    background: #27c93f;
}

.terminal-title {
    margin-left: 20px;
    color: var(--gray);
    font-size: 0.8rem;
    font-family: monospace;
}

.terminal-body {
    padding: 24px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-line {
    color: #d4d4d4;
}

.keyword {
    color: #569cd6;
}

.variable {
    color: #9cdcfe;
}

.string {
    color: #ce9178;
}

.class {
    color: #4ec9b0;
}

.method {
    color: #dcdcaa;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.pl-4 {
    padding-left: 1.5rem;
}

.typing-indicator {
    color: #4af626;
}

.prompt {
    color: #fff;
    margin-right: 8px;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.float-card {
    position: absolute;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: floatCard 4s ease-in-out infinite alternate;
    will-change: transform;
}

.fc-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-glow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.fc-text {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.tech-card-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.tech-card-2 {
    bottom: 20%;
    left: -30px;
    animation-delay: 1.5s;
}

.tech-card-3 {
    bottom: 15%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes floatCard {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-15px) scale(1.05);
    }
}

@media (max-width: 768px) {
    .glass-terminal {
        transform: none;
    }

    .float-card {
        display: none;
        /* Hide floating cards on mobile to reduce clutter */
    }
}


/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
    transition: var(--transition);
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--gray);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Sections */
section {
    padding: 120px 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -300px;
    left: -300px;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

section:nth-child(even)::before {
    left: auto;
    right: -300px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* Stats Section */
.stats-section {
    padding: 60px 2rem;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.stat-item {
    background: var(--surface-gradient);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 3rem 1.5rem;
    border-radius: 28px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: var(--primary-glow);
    filter: blur(80px);
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.stat-item:hover::after {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-12px);
    border-color: var(--primary-light);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.stat-icon {
    font-size: 2.5rem;
    background: var(--glass);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--glass-border);
}

.stat-number {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.stat-label {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .stats-grid {
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Events Grid */
.events-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2.5rem;
}

.event-card {
    background: var(--surface-gradient);
    border: 1px solid var(--glass-border);
    padding: 3rem 2.5rem;
    border-radius: 28px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.event-card:hover {
    background: var(--glass-heavy);
    border-color: var(--primary-light);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.event-date {
    background: var(--accent-gradient);
    padding: 12px;
    border-radius: 16px;
    text-align: center;
    width: fit-content;
    box-shadow: 0 10px 20px rgba(0, 98, 155, 0.3);
}

.event-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.event-date .month {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-info h3 {
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.event-info p {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.event-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 98, 155, 0.15);
    color: #4dbbff;
    border: 1px solid rgba(0, 98, 155, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 25px;
    height: 2px;
    background: white;
    transition: var(--transition);
}

/* Page Main */
.page-main {
    margin-top: 150px;
    padding-bottom: 100px;
    padding-left: 2rem;
    padding-right: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .page-main {
        margin-top: 120px;
        padding-bottom: 60px;
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
}
.footer {
    padding: 100px 2rem 40px;
    background: var(--dark);
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 6rem;
    margin-bottom: 5rem;
}

.footer-desc {
    color: var(--gray);
    margin: 1.5rem 0 2rem;
    max-width: 350px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 98, 155, 0.4);
    border-color: var(--primary);
}

.footer h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    color: var(--light);
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 1rem;
}

.footer-nav a {
    text-decoration: none;
    color: var(--gray);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-nav a::before {
    content: '→';
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition);
    color: var(--primary);
}

.footer-nav a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-nav a:hover::before {
    opacity: 1;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 5px;
}

.contact-item p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-light);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-item a,
.info-text a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.contact-item a:hover,
.info-text a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
    color: var(--gray);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }
}

/* Vision & Mission Section */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.vision-card,
.mission-card {
    background: var(--surface-gradient);

    border: 1px solid var(--glass-border);
    padding: 4.5rem 3.5rem;
    border-radius: 40px;
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

.vision-card::before,
.mission-card::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 150px;
    height: 150px;
    background: var(--primary-glow);
    filter: blur(80px);
    transform: translateY(-50%);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.3;
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    background: var(--glass-heavy);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.vision-card h3,
.mission-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.vision-card p,
.mission-card p {
    color: var(--gray);
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Societies Section */
.section-subtitle {
    color: var(--primary-light);
    letter-spacing: 2px;
    font-weight: 500;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1rem;
}

.societies-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.society-item {
    flex: 0 1 200px;
    aspect-ratio: 1/1;
    padding: 2rem;
    background: var(--surface-gradient);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    text-decoration: none;
    cursor: pointer;
}

.society-item img {
    max-width: 100%;
    height: auto;
    transition: var(--transition);
    max-height: 90px;
    object-fit: contain;
    filter: grayscale(1) invert(1) brightness(2) contrast(1.2);
    opacity: 0.7;
}

.society-item:hover {
    background: var(--glass-heavy);
    border-color: var(--primary-light);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 98, 155, 0.2);
}

.society-item:hover img {
    filter: grayscale(0) invert(0) brightness(1) contrast(1);
    opacity: 1;
    transform: scale(1.1);
}

/* What We Offer Section */
.offer-section {
    padding: 100px 2rem;
}

.offer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.offer-item {
    flex: 1 1 280px;
    max-width: 380px;
    background: var(--surface-gradient);
    border: 1px solid var(--glass-border);
    padding: 3.5rem 2.5rem;
    border-radius: 32px;
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.offer-item:hover {
    background: var(--glass-heavy);
    border-color: var(--primary-light);
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.offer-icon {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    background: var(--glass);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.offer-item h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.offer-item p {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Scroll Animations */
.event-card,
.section-header,
.vision-card,
.mission-card,
.offer-item,
.society-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1),
                transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity;
}

.event-card.animate-in,
.section-header.animate-in,
.vision-card.animate-in,
.mission-card.animate-in,
.offer-item.animate-in,
.society-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Content Fade */
.content-fade {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

    .vision-card,
    .mission-card {
        padding: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-container {
        padding: 0 1.2rem;
    }

    .footer {
        padding: 60px 1.5rem 30px;
    }

    .event-card {
        padding: 1.8rem;
    }

    /* Index Page Mobile Fixes */
    .hero {
        padding: 70px 1.5rem 30px;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .main-heading {
        font-size: clamp(2.75rem, 11vw, 3.8rem);
        line-height: 1.1;
        margin-bottom: 2rem;
        letter-spacing: -1px; /* helps fit the longer words */
    }

    .hero-content {
        min-height: calc(100dvh - 100px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        font-size: 1rem;
        padding: 0;
        margin-bottom: 0;
        width: 100%;
    }

    .hero-description {
        font-size: 1.1rem;
        padding: 0;
        margin-bottom: 3.5rem;
        line-height: 1.6;
    }

    .hero-actions {
        justify-content: center;
        width: 100%;
        gap: 1.5rem;
        margin-bottom: 1rem;
    }

    .btn-glow,
    .btn-glass {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 1rem;
        padding: 1.2rem;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .h-stat {
        flex: 1 1 80px;
        text-align: center;
    }

    .h-stat-divider {
        height: 30px;
    }

    .h-stat-num {
        font-size: 1.2rem;
    }

    .h-stat-text {
        font-size: 0.65rem;
    }

    section {
        padding: 60px 1.2rem;
    }

    .section-title {
        font-size: 2rem !important;
    }

    .societies-grid {
        justify-content: center;
        gap: 1.2rem;
    }

    .society-item {
        flex: 0 1 calc(50% - 0.6rem);
        padding: 1.5rem;
    }

    .society-item img {
        max-height: 60px;
    }

    .hero-visual {
        min-height: auto;
        margin-top: 2rem;
        padding-bottom: 2rem;
    }

    .glass-terminal {
        max-width: 100%;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    }

    .terminal-body {
        font-size: 0.75rem;
        padding: 1rem;
    }

    .vision-card,
    .mission-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .vision-card h3,
    .mission-card h3 {
        font-size: 1.6rem;
    }

    .offer-item {
        padding: 2rem 1.5rem;
    }

    .offer-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 1rem 0.5rem;
    }

    .h-stat-divider {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
}