@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

@font-face {
  font-family: 'ClashGrotesk-Semibold';
  src: url('../fonts/ClashGrotesk-Semibold.woff2') format('woff2'),
       url('../fonts/ClashGrotesk-Semibold.woff') format('woff'),
       url('../fonts/ClashGrotesk-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}

/* CSS Variables */
:root {
    /* Core Palette - Light Theme Pivot */
    --primary: oklch(0.15 0 0);
    /* Dark Text / Main Content */
    --secondary: oklch(0.99 0 0);
    /* Light Background / Body */
    --accent: #0460D4;
    /* Brand / Action */

    /* Missing Variables Restore */
    --primary-blue: #0460D4;
    --primary-blue-dark: #0348a1;
    --gradient-primary: linear-gradient(135deg, #0460D4 0%, #0348a1 100%);

    /* Semantic Colors */
    --bg-body: var(--secondary);
    --bg-surface: #FFFFFF;
    --bg-surface-hover: #F8F9FA;
    --bg-card-dark: oklch(0.12 0 0);
    /* Dark cards on light bg */
    --text-main: var(--primary);
    --text-inverse: oklch(0.99 0 0);
    /* Text on dark cards */
    --text-muted: color-mix(in srgb, var(--primary), white 40%);
    --border-color: color-mix(in srgb, var(--primary), transparent 90%);

    --white: #ffffff;
    --black: #000000;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(4, 96, 212, 0.3);

    --transition-fast: 150ms ease;
    --transition-med: 300ms ease;
    --transition-slow: 600ms ease;

    --content-max: 1200px;
    --hero-max: 1150px;

    /* Gray Scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* LOADER SESSION */
    --neon-blue: #007bff;
    --dark-bg: #FFFFFF;
    --text-color: #333333;
    --loader-blue: #1a56ff;

    /* Sponsor Session */
    --neon-blue: #1a56ff;
    --dark-bg: #FFFFFF;
    --text-color: #333333;
    --animation-speed: 30s;
}

/* Font Face Definitions */
@font-face {
    font-family: 'Anton';
    src: url('../assets/fonts/anton.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 
@font-face {
    font-family: 'FatKat';
    src: url('../assets/fonts/FatKat.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
*/

@font-face {
    font-family: 'Proxima Nova';
    src: url('../assets/fonts/ProximaNova-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('../assets/fonts/SpaceMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('../assets/fonts/SpaceMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kol Ranko';
    src: url('../assets/fonts/kol-ranko.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Fonts */
    --font-display: "Bricolage Grotesque", sans-serif;
    --font-brand: 'FatKat', system-ui;
    /* Distinctive */
    --font-body: 'Proxima Nova', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --font-kol: 'Kol Ranko', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Reset base size for better readability */
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 400;
    /* Anton is bold by default */
    color: var(--text-main);
    letter-spacing: 1px;
}

.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 20px;
}




/* ------------------------ */


/* Cinematic Loader Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.quadrant {
    position: fixed;
    width: 50vw;
    height: 50vh;
    background-color: #ffffff;
    z-index: 99999;
}

.q-tl {
    top: 0;
    left: 0;
}

.q-tr {
    top: 0;
    right: 0;
}

.q-bl {
    bottom: 0;
    left: 0;
}

.q-br {
    bottom: 0;
    right: 0;
}

.loader-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100000;
    text-align: center;
    color: var(--loader-blue);
    width: fit-content;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 10vw, 8rem);
    margin: 0;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--loader-blue);
    opacity: 0;
}

.loader-progress-container {
    width: 100%;
    height: 4px;
    background-color: rgba(26, 86, 255, 0.2);
    margin-bottom: 1rem;
    overflow: hidden;
    opacity: 0;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--loader-blue);
}

.loader-cycling-text {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1rem;
    color: rgba(26, 86, 255, 0.8);
    text-transform: lowercase;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    height: 1.5em;
    overflow: hidden;
    opacity: 0;
}

.cycling-words-wrapper {
    height: 1.5em;
    overflow: hidden;
    position: relative;
    text-align: left;
}

.cycling-words div {
    height: 1.5em;
    line-height: 1.5em;
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .loader-content {
        width: fit-content;
        max-width: 90vw;
    }

    .loader-title {
        width: 100%;
        text-align: center;
        font-size: 3.5rem;
        white-space: nowrap;
    }

    .loader-cycling-text {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
        white-space: nowrap;
        padding: 0 2px;
    }

    .cycling-words-wrapper {
        text-align: right;
        flex-grow: 1;
    }
}

/* ------------------------------------------- */
/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: -1;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-logo img {
    width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark liquid blue tint */
    background: rgba(5, 15, 35, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    /* Liquidy glassy effect with a slight tint off blue */
    background: rgba(15, 30, 60, 0.4);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 2px 20px rgba(255, 255, 255, 0.05);
    /* reflection */
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    color: #ffffff;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.search-overlay.active .search-container {
    transform: translateY(0) scale(1);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-header h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.close-search {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-search:hover {
    background: rgba(220, 38, 38, 0.2);
    /* Soft red tint */
    color: #ffffff;
    border-color: rgba(220, 38, 38, 0.5);
    transform: rotate(90deg);
}

.search-input-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input-container input {
    width: 100%;
    padding: 1.2rem 3rem 1.2rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1.1rem;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.search-input-container input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(96, 165, 250, 0.6);
    /* blue tint focus */
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(96, 165, 250, 0.2);
}

.search-input-container i {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.search-input-container input:focus+i {
    color: rgba(96, 165, 250, 0.8);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    /* Custom Scrollbar for glassy feel */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Navigation */
/* Navigation - Floating Island Design */
.navbar {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* transition removed to avoid GSAP conflict */
    pointer-events: none;
    /* Let clicks pass through outside the pill */
    display: flex;
    justify-content: center;
}

.nav-container {
    pointer-events: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    /* wider, looser padding */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    transform: translateY(0);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    top: 15px;
    /* Add slight floating gap from top edge */
}

.navbar.scrolled .nav-container {
    background: rgba(15, 20, 30, 0.4);
    /* Transparent glass */
    padding: 0.75rem 2rem;
    /* Compress padding inside pill */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Pill border enclosure */
    border-radius: 9999px;
    /* Circular edges */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 1100px;
    /* Compress the width from 1400px to enclose the navbar items */
}

.navbar .pescicon-logo {
    width: 95px;
    height: auto;
    transition: width 0.4s ease;
}

.navbar.scrolled .pescicon-logo {
    width: 28px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    user-select: none;
}

.brand-text {
    font-size: 1.25rem;
    color: #d1d5db;
    /* Silverish */
    font-family: 'ClashGrotesk-Semibold', sans-serif;
    /* ClashGrotesk applied */
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.nav-brand:hover .brand-text {
    color: #ffffff;
    /* Brighten */
}

.nav-brand:hover {
    text-decoration: none !important;
}

.nav-links {
    display: none;
    /* hidden md:flex fallback */
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2.5rem;
        align-items: center;
    }

    /* Dropdown Essentials */
    .nav-item-dropdown {
        position: relative;
        display: flex;
        align-items: center;
    }

    .nav-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: rgba(15, 20, 30, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 0.5rem;
        min-width: 180px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        margin-top: 10px;
    }

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

    .dropdown-item {
        display: block;
        padding: 0.75rem 1rem;
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-family: 'Space Mono', monospace;
        font-size: 0.75rem;
        border-radius: 8px;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .dropdown-item:hover {
        background: rgba(4, 96, 212, 0.2);
        color: white;
    }

    /* Dropdown Arrow Indicator */
    .dropdown-trigger::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.6rem;
        margin-left: 0.5rem;
        opacity: 0.5;
        transition: transform 0.3s ease;
        display: inline-block;
    }

    .nav-item-dropdown:hover .dropdown-trigger::after {
        transform: rotate(180deg);
    }
}

.nav-link-refined {
    color: #d1d5db;
    /* Silverish */
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link-refined:hover {
    color: #ffffff;
    /* Brighten */
}

/* Removed redundant animated active styles for a cleaner glassy pill approach */

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.15);
}

.btn-buy-now {
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    /* Silverish */
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-buy-now:hover {
    color: #ffffff;
    text-decoration: none !important;
}

.search-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    /* Light color for dark pill */
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.search-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    /* Stronger Gradient */
    color: var(--white);
    box-shadow: 0 4px 15px rgba(4, 96, 212, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 96, 212, 0.5);
    filter: brightness(1.1);
}

.btn-primary i {
    /* Transition handled by GSAP */
    display: inline-block;
    /* Required for transform */
}

.ms-2 {
    margin-left: 0.5rem;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 3px solid rgba(0, 86, 255, 0.35);
    outline-offset: 2px;
}

/* Subtle button lift on hover for all buttons */
.btn:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* Global glaze sweep for all buttons */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    height: 100%;
    width: 60%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left var(--transition-med);
    pointer-events: none;
    z-index: 0;
}

.btn:hover::after {
    left: 150%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.nav-cta {
    display: none;
}

/* =========================================
   SaaS Reference Hero Section (Monotree Style)
   ========================================= */

.hero-saas {
    min-height: 100vh;
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    /* Pristine white background */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-saas-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-saas-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Swapped to give more space to the wide 3-line text */
    gap: 2rem;
    align-items: center;
    width: 100%;
}

/* --- Left Column: Typography & Actions --- */
.hero-saas-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.saas-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #444;
    margin-bottom: 0.8rem;
}

.saas-label i {
    font-size: 1rem;
    color: #444;
}

.saas-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    /* Slightly reduced to guarantee fit */
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #111;
    margin-bottom: 1.5rem;
    white-space: nowrap;
    /* Force the text fragments to stay on their designated lines */
}

.text-uppercase {
    text-transform: uppercase;
}

.highlight-underline {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.hand-underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 25px;
    color: #111;
    /* Black marker stroke */
    pointer-events: none;
    z-index: -1;
}

.saas-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: #555;
    max-width: 460px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* Hero CTA Button */
.hero-saas-action {
    margin-bottom: 3.5rem;
}

.hero-saas-form {
    width: 100%;
    max-width: 440px;
    margin-bottom: 3.5rem;
}

.input-group-pill {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 6px;
    border-radius: 60px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.input-group-pill:focus-within {
    border-color: #ccc;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.input-group-pill input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 1rem;
    color: #111;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.input-group-pill input::placeholder {
    color: #888;
}

.btn-accent-pill {
    background-color: var(--accent);
    color: var(--white);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-accent-pill:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Stats Row */
.hero-saas-stats-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    max-width: 440px;
}

.stat-block {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.stat-divider {
    width: 1px;
    height: 45px;
    background-color: #f0f0f0;
}

/* Ratings */
.hero-saas-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stars i {
    color: #111;
    font-size: 1.1rem;
}

.rating-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #666;
}

.rating-text strong {
    color: #111;
    font-weight: 700;
}

/* --- Right Column: Isometric Visual --- */
.hero-saas-visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 550px;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-grid {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4 / 5;
    display: grid;
    grid-template-columns: 55% 45%;
    grid-template-rows: 50% 50%;
    gap: 16px;
    margin-left: auto;
}

.hero-grid-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hero-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.hero-grid-item:hover img {
    transform: scale(1.05);
}

.item-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.item-top {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    border-radius: 24px 24px 24px 8px;
}

.item-bottom {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    border-radius: 8px 24px 24px 24px;
}

/* Glassmorphism Badges */
.glass-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 16px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 5;
    animation: floatBadge 6s infinite ease-in-out;
}

.glass-badge i {
    color: var(--accent);
}

.badge-bottom-right {
    bottom: -15px;
    right: -15px;
    animation-delay: 0s;
}

.badge-top-left {
    top: -15px;
    left: -15px;
    animation-delay: 3s;
    /* Offset animation */
}

@keyframes floatBadge {

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

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


/* Scroll indicator */
.scroll-indicator-modern {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

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

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(0, 0, 0, 0.4);
    border-radius: 13px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    animation: mouseScroll 2s infinite;
}

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

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

.scroll-indicator-modern p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-text-col {
        align-items: center;
    }

    .hero-title-modern {
        align-items: center;
    }

    .hero-visuals-col {
        justify-content: center;
    }

    /* SaaS Hero Responsive */
    .hero-saas-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero-saas-text {
        align-items: center;
    }

    .hero-saas-stats-row {
        justify-content: center;
    }

    .hero-saas-visual {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .hero-visual-grid {
        max-width: 400px;
    }
}

/* Consistent card/box styling across the site */
.highlight-card,
.pricing-card,
.delegate-card,
.judge-card,
.segment-card,
.testimonial-card,
.event,
.logo-item,
.stat-item,
.profile-card {
    border-radius: 15px;
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med), background-color var(--transition-med);
    box-shadow: var(--shadow-lg);
}

.highlight-card:hover,
.pricing-card:hover,
.delegate-card:hover,
.judge-card:hover,
.segment-card:hover,
.testimonial-card:hover,
.event:hover,
.logo-item:hover,
.stat-item:hover,
.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Old hero right-column and progress classes removed */

/* Vertical Data Stack */
.bento-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 450px;
    /* Constrain width for a neat stack */
    margin-left: auto;
    /* Push to right */
}

.bento-item {
    background: rgba(20, 20, 25, 0.6);
    /* Darker glass */
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
    /* Horizontal internal layout mostly */
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    width: 100%;
}



.stat-card {
    background: var(--bg-card-dark);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-med), box-shadow var(--transition-med), opacity var(--transition-med);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: calc(50% + 50px);
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent);
    /* Changed from white to accent for visibility */
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    margin: 0 auto 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    40% {
        transform: translateY(-10px) rotate(45deg);
    }

    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* Sponsors Banner */
.sponsors-banner {
    background: var(--gray-50);
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.sponsors-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.sponsors-label {
    font-weight: 600;
    color: var(--gray-600);
}

.sponsors-logos {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.sponsor-name {
    font-weight: 600;
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

/* 1. Countdown Strip (Top) */
.countdown-card {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    /* Remove grid-column span since it's flex now */
}

.countdown-timer {
    display: flex;
    gap: 1rem;
    font-family: var(--font-mono);
    /* Space Mono */
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.bento-icon {
    font-size: 1.2rem;
    color: var(--accent);
    margin: 0;
}

.bento-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin: 0;
}

/* 2. Stat Box (Middle - Large) */
.stat-box {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.7), rgba(20, 20, 25, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-box .stat-number {
    font-size: 4rem;
    font-weight: 400;
    /* Anton is hefty enough */
    line-height: 1;
    font-family: var(--font-display);
    /* Anton */
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3. Date & Reg (Bottom - Split in original, but here separate items) */
.date-box {
    background: var(--white);
    color: var(--text-main);
    justify-content: center;
    gap: 1rem;
    border: 1px solid var(--gray-200);
}

.date-month {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-body);
}

.date-days {
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1;
}

.date-year {
    font-weight: 600;
    opacity: 0.6;
    font-family: var(--font-body);
}

/* Registration Arc */
.registration-arc {
    padding: 1rem;
    justify-content: center;
    gap: 1.5rem;
}

.arc-content {
    position: relative;
    text-align: left;
}

.arc-number {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    font-family: var(--font-mono);
}

.arc-label {
    font-size: 0.8rem;
    opacity: 0.7;
    font-family: var(--font-body);
}

.bento-icon {
    font-size: 1.5rem;
    margin-bottom: auto;
    align-self: flex-start;
    color: var(--accent);
}

.countdown-card .bento-icon {
    color: var(--white);
}

.stat-box .bento-icon {
    color: var(--white);
}

/* Mobile Stack */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-title {
        font-size: 4rem;
        align-items: center;
    }

    .hero-buttons {
        justify-content: center;
        margin-bottom: 3rem;
    }

    .bento-grid {
        max-width: 100%;
        margin-left: 0;
        margin-top: 2rem;
    }
}

/* About Department Section */
.about-department {
    padding: 5rem 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
    align-items: start;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.department-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.highlight-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.highlight-item p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.department-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.stat-item {
    text-align: center;
    padding: 1rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Countdown Timer Styles */
.countdown-container {
    margin-top: 2rem;
    text-align: center;
}

.countdown-container h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    min-width: 80px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.countdown-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-expired {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 2rem;
    background: rgba(220, 53, 69, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Registration Progress Styles */
.registration-progress {
    margin-top: 2rem;
    background: var(--bg-card-dark);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 600;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 6px;
    transition: width 0.5s ease, background-color 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Reveal on scroll (baseline hidden state) */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-med), transform var(--transition-med);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variant reveals */
.reveal.fade-up {
    transform: translateY(20px);
}

.reveal.fade-left {
    transform: translateX(20px);
}

.reveal.fade-right {
    transform: translateX(-20px);
}

.reveal.scale {
    transform: scale(0.98);
}

.reveal.fade-left.visible,
.reveal.fade-right.visible,
.reveal.fade-up.visible,
.reveal.scale.visible {
    transform: none;
}

/* Motion reduction accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Schedule Section */
/* Schedule Section - Redesigned */
.schedule {
    padding: 8rem 0;
    /* Transparent to reveal the Spline interactive background */
    background: transparent;
    position: relative;
    overflow: hidden;
}

.spline-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
    overflow: hidden;
}

.spline-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.schedule-content {
    position: relative;
    z-index: 10;
}

.schedule .section-header h2 {
    color: var(--text-main);
}

.schedule .section-header p {
    color: var(--gray-600);
}

/* White backgrounds with subtle blue accent for light mode */
.schedule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(4, 96, 212, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.schedule .section-header {
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

/* --- Schedule Section Redesign (Compact Nav & Vertical Cards) --- */

/* 1. Calendar Navigation (Compact Tabs) */
.schedule-calendar-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.calendar-day-card {
    background: rgba(15, 20, 30, 0.25);
    /* High transparency dark glass */
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0.8rem 2.8rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 10, 0.1);
}

/* Hover Shine Sweep Effect */
.calendar-day-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
    transform: skewX(-20deg);
    transition: none;
    pointer-events: none;
    z-index: 1;
}

.calendar-day-card:hover::after {
    left: 140%;
    transition: left 0.75s ease;
}

.calendar-day-card:hover {
    transform: translateY(-3px);
    background: rgba(15, 20, 30, 0.4);
    /* Darkens slightly on hover for presence */
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.calendar-day-card.active {
    background: rgba(4, 96, 212, 0.3);
    /* Softer blue glass tint */
    border-color: rgba(4, 96, 212, 0.5);
    /* Dulled/Softer outline blue */
    box-shadow: 0 0 15px rgba(4, 96, 212, 0.15),
        0 0 0 3px rgba(4, 96, 212, 0.05);
    /* Minimalist glow */
}

.day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    margin: 0;
    border: none;
    padding: 0;
}

.day-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    /* Brighter white globally */
    opacity: 0.9;
    letter-spacing: 1.5px;
    /* Better tracking */
    margin-bottom: 2px;
    text-transform: uppercase;
}

.day-date {
    font-size: 1.15rem;
    /* Slightly larger */
    font-weight: 800;
    font-family: var(--font-display);
    color: #ffffff;
    /* Bright white date */
    letter-spacing: -0.5px;
}

.calendar-day-card.active .day-label {
    color: #ffffff;
    opacity: 1;
    font-weight: 800;
}

.calendar-day-card.active .day-date {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    /* Proper Glow */
}

/* 2. Vertical Premium Timeline */
.schedule-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
    min-height: auto;
}

.premium-schedule-day {
    display: none;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInUp 0.6s ease forwards;
}

.premium-schedule-day.active {
    display: flex;
}

/* Vertical Dotted Track */
.timeline-track {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 40px;
    bottom: 40px;
    width: 2px;
    /* Base gray dots */
    background-image: radial-gradient(circle, var(--gray-300) 1.15px, transparent 1.15px);
    background-size: 2px 18px;
    /* Dotted effect */
    background-repeat: repeat-y;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.timeline-track.visible {
    opacity: 1;
}

/* Shine overlay for the dotted track */
.timeline-track::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Bright blue-white laser shine */
    background-image: linear-gradient(to bottom,
            transparent 0%,
            rgba(4, 96, 212, 0.4) 15%,
            rgba(255, 255, 255, 0.8) 20%,
            rgba(4, 96, 212, 0.4) 25%,
            transparent 40%);
    background-size: 100% 400px;
    background-repeat: no-repeat;
    mask-image: radial-gradient(circle, #000 1.15px, transparent 1.15px);
    mask-size: 2px 18px;
    -webkit-mask-image: radial-gradient(circle, #000 1.15px, transparent 1.15px);
    -webkit-mask-size: 2px 18px;
    animation: timeline-shimmer 4s linear infinite;
    pointer-events: none;
    opacity: 0;
}

.timeline-track.visible::after {
    opacity: 1;
}

@keyframes timeline-shimmer {
    0% {
        background-position: 0 -400px;
    }

    100% {
        background-position: 0 1000px;
    }
}

/* Agenda Item Container */
.agenda-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
    width: 100%;
}

.agenda-card:nth-child(even) {
    flex-direction: row-reverse;
}

.agenda-card:hover {
    transform: none;
}

/* Time Column (Left/Right alternating) */
.agenda-time {
    width: 45%;
    text-align: right;
    padding-top: 0;
    padding-right: 3rem;
    position: relative;
    z-index: 1;
}

.agenda-card:nth-child(even) .agenda-time {
    text-align: left;
    padding-right: 0;
    padding-left: 3rem;
}

.time-start {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--text-main);
    line-height: 1;
}

.time-end {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    font-weight: 600;
}

/* Timeline Dot via parent for perfect center auto-alignment */
.agenda-card::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    /* Slightly larger for glass visibility */
    height: 16px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(4, 96, 212, 0.3);
    /* PESSICON Theme Blue Tint */
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05),
        0 0 0 4px rgba(255, 255, 255, 0.2);
}

.agenda-card:hover::before {
    background: rgba(4, 96, 212, 0.15);
    /* Soft Blue Tint Glass */
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(4, 96, 212, 0.3),
        0 0 0 6px rgba(4, 96, 212, 0.08);
    /* Minimalist outer ring */
    transform: translate(-50%, -50%) scale(1.3);
    backdrop-filter: blur(12px) saturate(180%);
}

/* Content Card (Mac OS Transparent Curvy theme with layer shadows) */
.agenda-details {
    width: 45%;
    flex: none;
    /* Darker frosted glass: higher opacity white + subtle slate-blue tint */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(225, 235, 255, 0.7) 100%);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border-radius: 1.5em;
    /* 24px reference curvy blocks */
    padding: 1.25rem;
    /* Slightly more spacious */
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04),
        0 25px 50px rgba(4, 96, 212, 0.05);
    position: relative;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.agenda-card:hover .agenda-details {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08),
        0 35px 80px rgba(4, 96, 212, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(230, 240, 255, 0.8) 100%);
}

/* Reference Card Inner Masked Borders for Mac OS glass effect */
.agenda-details::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5em;
    border: 1px solid rgba(255, 255, 255, 0.9);
    -webkit-mask-image: linear-gradient(135deg, #000, transparent 50%);
    mask-image: linear-gradient(135deg, #000, transparent 50%);
    pointer-events: none;
    z-index: 5;
}

.agenda-details::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5em;
    border: 1px solid rgba(4, 96, 212, 0.25);
    /* PESSICON Theme Accent */
    -webkit-mask-image: linear-gradient(135deg, transparent 50%, #000);
    mask-image: linear-gradient(135deg, transparent 50%, #000);
    pointer-events: none;
    z-index: 5;
}

/* Image Wrapper */
.agenda-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 1rem;
    /* 16px */
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    /* ring-1 equivalent */
    background: #f3f4f6;
    z-index: 1;
}

.agenda-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.agenda-card:hover .agenda-image-wrapper img {
    transform: scale(1.05);
    /* Soft zoom on hover */
}

/* Float Badge */
.agenda-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 1);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    color: var(--black);
    z-index: 2;
}

.agenda-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.agenda-badge.technical .agenda-badge-dot {
    background: #10B981;
}

.agenda-badge.paper .agenda-badge-dot {
    background: #F59E0B;
}

.agenda-badge.workshop .agenda-badge-dot {
    background: #EC4899;
}

.agenda-badge.competition .agenda-badge-dot {
    background: #3B82F6;
}

/* Inner Content */
.agenda-content-inner {
    padding: 0 0.5rem;
    position: relative;
    z-index: 2;
}

.agenda-divider {
    height: 1px;
    margin: 1.5rem 0 1rem 0;
    /* Sublte dark divider for light theme cards */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 50%, transparent 100%);
}

.agenda-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.agenda-action-btn {
    display: inline-flex;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.02);
    color: var(--gray-500);
    transition: all 0.2s ease;
    text-decoration: none;
}

.agenda-action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent);
}

/* Content Typography */
.agenda-details h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    /* Dark title for light glass cards */
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.agenda-details p {
    font-size: 0.95rem;
    color: var(--gray-600);
    /* Darker gray for readability on light glass */
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 0;
}

.agenda-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: auto;
    border-top: none;
    /* Removed as we now use agenda-divider */
    padding-top: 0;
}

.agenda-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agenda-meta i {
    color: var(--accent);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .schedule-calendar-container {
        gap: 0.75rem;
        justify-content: flex-start;
        /* Ensure scrolling works if needed */
    }

    .calendar-day-card {
        flex: 0 0 auto;
        /* Don't shrink, allow scroll */
        min-width: auto;
        padding: 0.6rem 1.2rem;
        border-radius: 50px;
    }

    .day-label {
        font-size: 0.65rem;
    }

    .day-date {
        font-size: 0.9rem;
    }

    .timeline-track {
        left: 20px;
        transform: none;
    }

    .schedule-content-wrapper {
        padding: 0;
    }

    .agenda-card,
    .agenda-card:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
        margin-bottom: 2rem;
    }

    .agenda-time,
    .agenda-card:nth-child(even) .agenda-time,
    .agenda-card:nth-child(odd) .agenda-time {
        width: 100%;
        text-align: left;
        padding: 0;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: baseline;
        gap: 0.75rem;
    }

    .agenda-card::before {
        left: 20px;
        top: 1.5rem;
        transform: translate(-50%, -50%);
    }

    .time-end {
        margin-top: 0;
        margin-left: 0.5rem;
    }

    .agenda-details {
        width: 100%;
        padding: 1.5rem;
    }
}

/* --- Delegates Section Redesign --- */
.delegates {
    padding: 6rem 0;
    background: var(--bg-surface);
}

.delegates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.delegate-card {
    background: var(--white);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft premium shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 1px solid var(--gray-100);
}

.delegate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Image Wrapper */
.delegate-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    /* Portrait ratio */
    border-radius: 16px;
    overflow: hidden;
    background: var(--gray-100);
}

.delegate-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.delegate-card:hover .delegate-image {
    transform: scale(1.05);
}

/* Badge overlay on image */
.delegate-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--black);
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Content */
.delegate-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.delegate-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.1;
    margin: 0;
}

.delegate-role-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.delegate-role {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--gray-400);
    letter-spacing: 0.05em;
    font-weight: 500;
}

.delegate-social-icon {
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.delegate-social-icon:hover {
    background: var(--black);
    color: var(--white);
}

.delegate-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer Actions */
.delegate-footer {
    display: flex;
    justify-content: flex-start;
    /* Align to left/start */
    align-items: center;
    margin-top: auto;
}

.btn-profile-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: var(--black);
    border-radius: 100px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    /* Left padding for text, right for circle */
    border: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    gap: 1rem;
    /* max-width removed to fill card */
    text-decoration: none;
}

.btn-profile-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-text {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.btn-icon-circle {
    width: 40px;
    height: 40px;
    background: var(--accent);
    /* Purple #5628D8 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    /* Icon color matches button bg for high contrast inside accent? Or White? Reference had black arrow on lime. */
    /* Wait, user said "accent color". If accent is purple, white arrow is better. 
       REFERENCE had "Lime circle with black arrow".
       If I use Purple, White arrow is standard. 
       Let's stick to White arrow on Purple for now as it matches the previous step approval. */
    color: var(--white);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

/* On hover, maybe rotate the arrow */
.btn-profile-pill:hover .btn-icon-circle {
    transform: rotate(-45deg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-success {
    background: #28a745;
    color: var(--white);
    border: none;
}

.btn-success:hover {
    background: #218838;
}

.delegates-cta {
    text-align: center;
}

.delegates-cta p {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.judges-panel {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

/* Unified Bento Grid - Strict Theme Compliance */
/* Unified Bento Grid - Static Split Layout */
.about-department {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
    /* No overflow hidden to ensure standard scroll */
}

/* 1. Parent Grid: 2 Columns (40% Text, 60% Cards) */
.bento-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    /* Approx 40/60 split */
    gap: 4rem;
    align-items: start;
    /* Text stays at top, or center if preferred */
}

/* --- Left Column: Main Text Block --- */
/* Ensure strictly no border/bg overrides generics */
.bento-grid-container .main-text-block {
    grid-column: span 1;
    padding: 2rem 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.text-content-wrapper {
    position: sticky;
    /* Optional: Sticky only if height differs significantly */
    top: 120px;
}

.main-text-block:hover {
    transform: none;
    box-shadow: none;
    border: none;
}

.section-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.main-text-block h2 {
    font-family: 'Anton', sans-serif;
    font-size: 4.5rem;
    line-height: 0.95;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.main-text-block p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}

.chip-num {
    font-family: 'Anton', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-blue);
    line-height: 1;
}

.chip-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-700);
    line-height: 1.2;
}

/* --- Right Column: Uniform Cards Grid --- */
.cards-grid-uniform {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 Equal Columns */
    grid-auto-rows: 1fr;
    /* Equal Height Rows */
    gap: 1.5rem;
    grid-column: span 1;
}

/* --- Common Card Styles --- */
.bento-item {
    background: var(--white);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-med);
    display: flex;
    flex-direction: column;
    /* Ensure height consistency */
    min-height: 320px;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-color) !important;
    /* STRICTLY enforce no color change */
}

/* Scale content on hover instead */
.bento-item:hover .card-content,
.bento-item:hover .card-bg-icon,
.bento-item:hover .mini-stat-row,
.bento-item:hover .avatar-group,
.bento-item:hover .big-stat {
    transform: scale(1.05);
    transition: transform var(--transition-med);
}

/* Ensure smooth transition for children */
.card-content,
.card-bg-icon,
.mini-stat-row,
.avatar-group,
.big-stat {
    transition: transform var(--transition-med);
}

/* Specific Card Tweaks to fit uniformity */

/* Academics */
.card-academics {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    padding: 2.5rem;
    justify-content: space-between;
}

.card-academics h3 {
    font-family: 'Anton', sans-serif;
    font-size: 2.2rem;
    color: var(--primary-blue-dark);
    margin-bottom: 1rem;
    line-height: 1;
}

.card-academics p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.bento-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Research */
.card-research {
    background: var(--primary-blue);
    color: var(--white);
    padding: 2rem;
}

.card-research h3 {
    font-family: 'Anton', sans-serif;
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: auto;
}

.mini-stat-row {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.stat-pair {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
}

.stat-pair span {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    color: var(--white);
}

/* Faculty */
.card-faculty {
    padding: 2rem;
    background: var(--white);
    justify-content: space-between;
}

.card-faculty h3 {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.avatar-group {
    display: flex;
    margin-bottom: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    border: 2px solid var(--white);
    margin-right: -10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.avatar-group span {
    margin-left: 20px;
    align-self: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-blue);
}

/* Industry */
.card-industry {
    background: var(--gray-50);
    padding: 2rem;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.card-industry h3 {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.stat-val {
    display: block;
    font-size: 3.5rem;
    font-family: 'Anton', sans-serif;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gray-500);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .text-content-wrapper {
        position: static;
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero-stat-chip {
        margin: 0 auto;
    }

    .main-text-block p {
        margin-left: auto;
        margin-right: auto;
    }

    .cards-grid-uniform {
        /* Keep 2 col grid on tablet if space permits, or stack */
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .cards-grid-uniform {
        grid-template-columns: 1fr;
    }

    .main-text-block h2 {
        font-size: 3.5rem;
    }

    .bento-item {
        min-height: 250px;
    }
}

/* Link underline animation for inline links */
a:not(.btn):not(.nav-link):not(.btn-profile-pill) {
    position: relative;
}

a:not(.btn):not(.nav-link):not(.btn-profile-pill)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width var(--transition-med);
}

a:not(.btn):not(.nav-link):not(.btn-profile-pill)::after {
    width: 0;
}

a:not(.btn):not(.nav-link):not(.btn-profile-pill):hover::after {
    width: 100%;
}

.judge-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.judge-avatar i {
    font-size: 2rem;
    color: var(--white);
}

.judge-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.judge-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.judge-institution {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.judge-expertise {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.judge-expertise .expertise-tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
}

/* Segments Section */
.segments {
    padding: 6rem 0;
    background: var(--white);
}

.segments-carousel-container {
    position: relative;
    width: 100%;
    height: 850px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    /* only allow vertical scroll out of the box manually */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 320px;
    margin-top: 3rem;
    cursor: grab;
}

.segments-carousel-container:active {
    cursor: grabbing;
}

.segments-carousel {
    position: relative;
    width: 0;
    height: 0;
    /* Serves as a 0x0 origin point in the dead center of the container */
}

.segment-wrapper {
    position: absolute;
    /* Mount elements to exact center point to be manipulated by translate logic */
    top: 50%;
    left: 50%;
    width: 420px;
    margin-left: -210px;
    /* half width */
    height: 600px;
    margin-top: -300px;
    /* half height */
    will-change: transform;
}

.segment-card {
    background: #0f0f11;
    border-radius: 20px;
    border: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 0;
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.segment-card-content {
    padding: 2.5rem 2rem 1.5rem 2rem;
    flex-grow: 0;
}

.segment-tag {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
    display: block;
}

.segment-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: -0.5px;
}

.segment-desc {
    font-size: 1.05rem;
    color: #999;
    line-height: 1.5;
    margin-bottom: 0;
}

.segment-image-container {
    padding: 0 1.5rem 1.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
}

.segment-image-container img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.segment-card li {
    padding: 0.5rem 0;
    color: var(--gray-300);
    position: relative;
    padding-left: 1.5rem;
}

.segment-card li::before {
    content: '•';
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Responsive Segments (Stack cards instead of carousel on screens <= 1024px) */
@media (max-width: 1024px) {
    .segments {
        padding: 4rem 0;
    }
    .segments-carousel-container {
        position: relative;
        height: auto;
        padding-top: 0;
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        touch-action: auto;
        user-select: auto;
        -webkit-user-select: auto;
        cursor: default;
    }
    .segments-carousel {
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    .segment-wrapper {
        position: static;
        width: 100%;
        height: auto;
        margin: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    /* Hide all but the first 4 if the JS duplicated them (the JS duplicates elements for the infinite loop) */
    /* By default JS won't run, but just in case we have to ensure it */
    .segments-carousel .segment-wrapper:nth-child(n+5) {
        display: none !important;
    }
}

/* Registration Section - Modern Redesign */
.registration {
    padding: 8rem 0;
    position: relative;
    background: var(--white);
    /* Light background */
    color: var(--text-dark);
    overflow: hidden;
}

.registration-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(4, 96, 212, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    /* Very subtle light gradient */
    z-index: 1;
}

.registration .container {
    position: relative;
    z-index: 2;
}

.section-label {
    font-family: var(--font-mono);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
    font-weight: 700;
}

.registration .section-header h2 {
    color: var(--primary-blue-dark);
    /* Dark text for light theme */
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.registration .section-header p {
    color: var(--gray-600);
}

/* Wide Banner - Premium Glass Variant */
.registration-banner {
    position: relative;
    background: rgba(15, 20, 30, 0.5);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    overflow: hidden;
    /* For shine effect */
}

.registration-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
}

.registration-banner:hover::after {
    left: 140%;
    transition: left 0.75s ease;
}

.banner-content {
    flex: 1;
}

.banner-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(4, 96, 212, 0.3);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 1rem;
    border: 1px solid rgba(4, 96, 212, 0.2);
    box-shadow: 0 0 15px rgba(4, 96, 212, 0.15);
}

.registration-banner h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.registration-banner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.banner-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.banner-features span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.banner-features span:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.banner-features i {
    color: #4ade80;
    /* Success green */
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
    /* Vertically center for scale effect */
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

/* Popular Card */
.pricing-card.popular {
    background: var(--white);
    border: 2px solid var(--accent);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 50px rgba(86, 40, 216, 0.2);
}



/* Card Content */
.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.plan-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-blue-dark);
    display: block;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.currency {
    font-size: 2rem;
    font-weight: 400;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.amount {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--primary-blue-dark);
    line-height: 1;
    font-family: var(--font-display);
}

.plan-desc {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Features List */
.card-features {
    margin-bottom: 2.5rem;
    flex: 1;
}

.card-features ul {
    list-style: none;
    padding: 0;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.card-features i {
    color: var(--accent);
    font-size: 1.1rem;
    background: rgba(86, 40, 216, 0.05);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.pricing-card.popular .card-features i {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 10px rgba(86, 40, 216, 0.3);
}

/* Buttons */
.btn-outline {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 5px 15px rgba(86, 40, 216, 0.3);
}

.btn-block {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .registration-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .registration .section-header h2 {
        font-size: 2.5rem;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars i {
    color: #FBBF24;
}

.testimonial-content p {
    color: var(--gray-700);
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: var(--white);
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Logos Section */
.logos-section {
    padding: 6rem 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.logo-item {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.logo-item:hover::before {
    left: 100%;
}

.logo-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 86, 255, 0.2);
}

.college-logo,
.dept-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.logo-item:hover .college-logo,
.logo-item:hover .dept-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 10px 25px rgba(0, 86, 255, 0.3));
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 10px 25px rgba(0, 86, 255, 0.3));
    }

    100% {
        filter: drop-shadow(0 15px 35px rgba(0, 86, 255, 0.5));
    }
}

.logo-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.logo-item:hover h3 {
    color: var(--primary-blue);
}

.logo-item p {
    color: var(--gray-600);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.logo-item:hover p {
    color: var(--gray-700);
}

/* Contact Section - Minimalist Redesign */
.contact {
    padding: 8rem 0;
    background: #f4f4f4;
    /* Minimalist Light Gray */
    color: #111;
    position: relative;
    overflow: hidden;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: flex-start;
}

/* Left Column Styling */
.contact-left {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-title {
    font-family: 'Anton', sans-serif;
    font-size: 5rem;
    line-height: 1.1;
    text-transform: uppercase;
    color: #111;
    margin: 0;
    letter-spacing: -1px;
}

.contact-subtitle {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 1.25rem;
    font-style: italic;
    color: #555;
    max-width: 400px;
    line-height: 1.5;
}

.contact-minimal-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.info-group h5 {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.info-group p {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 1.1rem;
    color: #111;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

/* Right Column Styling */
.contact-right {
    padding-top: 2rem;
}

.form-header {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    color: #111;
    margin-bottom: 3rem;
}

.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.form-group-minimal {
    position: relative;
}

.form-group-minimal input,
.form-group-minimal textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 1rem 0;
    font-family: 'Proxima Nova', sans-serif;
    font-size: 1.1rem;
    color: #111;
    border-radius: 0;
    /* Remove default border-radius */
    transition: border-color 0.3s ease;
}

.form-group-minimal input:focus,
.form-group-minimal textarea:focus {
    outline: none;
    border-bottom-color: #111;
}

.form-group-minimal input::placeholder,
.form-group-minimal textarea::placeholder {
    color: #aaa;
}

.btn-minimal {
    align-self: flex-start;
    background: #111;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-minimal:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-minimal i {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-title {
        font-size: 5rem;
    }

    .contact-right {
        padding-top: 0;
    }
}

@media (max-width: 576px) {
    .contact-title {
        font-size: 4rem;
    }
}

/* Footer */
/* =========================================
   Organizers Showcase (V4 - Reference Matched)
   ========================================= */

.organizers-section {
    padding: 8rem 0;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.organizers-showcase {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    align-items: stretch;
    min-height: 600px;
}

/* --- 1. The Oval (Christ College) --- */
.organizer-oval {
    flex: 1;
    background: #111;
    /* Deep Black/Dark */
    border-radius: 45% 45% 45% 45% / 35% 35% 35% 35%;
    /* Organic Egg/Oval Shape */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    transition: all 0.5s ease;
    padding: 3rem;
    cursor: pointer;
}

.organizer-oval:hover {
    border-radius: 40px;
    /* Morphs to rect on hover */
    background: #000;
}

.oval-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.oval-logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Pure white logo */
    opacity: 0.8;
}

.oval-text {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

.text-fill {
    color: var(--white);
}

.oval-sub {
    font-family: 'Space Mono', monospace;
    /* Technical / Engineering feel */
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 2rem;
    /* Increased spacing */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: transparent;
    /* Removed box bg */
    padding: 0;
    /* Removed padding */
    border-radius: 0;
    transform: none;
}

/* --- 2. The Rectangle (EEE Dept) --- */
.organizer-rect {
    flex: 1;
    background: #5b21b6;
    /* Deep Purple Base */
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
    /* Vibrant Purple Gradient */
    border-radius: 40px;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    position: relative;
    transition: transform 0.3s ease;
}

.organizer-rect:hover {
    transform: scale(0.98);
}

.rect-header {
    position: absolute;
    top: 2rem;
    right: 2rem;
    margin: 0;
    pointer-events: none;
    z-index: 0;
}

/* Unique "Stand Out" SVG Style */
.rect-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    /* Large statement size */
    height: 180px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    transform: rotate(0deg) scale(0.75);
    /* Permanent "Hover" State */
    opacity: 0.25;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}



.rect-icon {
    width: 100%;
    height: 100%;
    fill: var(--white);
}



.rect-title {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.rect-title .highlight {
    font-style: italic;
    font-family: serif;
    /* Contrast font */
    font-weight: 300;
}

.rect-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 80%;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.rect-actions {
    display: flex;
    gap: 1rem;
}

.pill-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pill-btn.primary {
    background: #111;
    color: var(--white);
}

.pill-btn.secondary {
    background: var(--white);
    color: #111;
}

.pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    .organizers-showcase {
        flex-direction: column;
    }

    .organizer-oval,
    .organizer-rect {
        width: 100%;
        min-height: 400px;
    }

    .oval-text {
        font-size: 3rem;
    }

    .rect-title {
        font-size: 3.5rem;
    }
}

/* Footer */
/* Footer - Statement Grid Layout */
.footer-statement {
    background: var(--bg-body);
    color: var(--text-main);
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    /* Standard: Logo (1) | Nav (2) */
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start;
}

.footer-brand-col {
    display: flex;
    justify-content: flex-start;
    /* FORCE Left Align */
    align-items: flex-start;
    /* FORCE Top Align */
    /* Removed order: 2 to restore natural source order (Left) */
    padding: 0;
    margin: 0;
}

.footer-logo-wrap {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    /* Align internal content to left */
}

.pescicon-logo-footer {
    display: block;
    /* Eliminate inline behavior */
    width: 100%;
    max-width: 350px;
    height: auto;
    opacity: 1;
    margin: 0;
    margin-top: -10px;
    /* Pull up to align optically with text cap-height */
}

.footer-nav-grid {
    /* Removed order: 1 to restore natural source order (Right) */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-nav-col h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Massive Statement Text */
.footer-statement-text {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.footer-statement-text span {
    display: block;
    font-family: 'FatKat', system-ui;
    /* Explicitly use FatKat */
    font-size: 12.5vw;
    /* Base REM size */
    line-height: 0.85;
    /* Increased to prevent bottom clipping */
    color: var(--text-main);
    letter-spacing: -0.04em;
    transform: none;
    /* Remove downward shift */
}

/* Bottom Row */
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a,
.back-to-top-link {
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover,
.back-to-top-link:hover {
    color: var(--text-main);
}

@media (max-width: 1024px) {
    .footer-top-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 2rem;
    }

    .footer-statement-text span {
        font-size: 12.5vw;
    }
}

@media (max-width: 768px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        /* Stack */
        gap: 3rem;
    }

    .footer-brand-col {
        order: -1;
        /* Logo moves to top on mobile */
        justify-content: center;
        /* Center logo */
        margin-bottom: 2rem;
        margin-top: 0;
    }

    .pescicon-logo-footer {
        max-width: 180px;
        /* Smaller on mobile */
    }

    .footer-statement-text span {
        font-size: 12.5vw;
    }

    .footer-nav-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 cols for links */
        text-align: center;
        gap: 2rem;
    }

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

    .footer-links {
        align-items: center;
    }

    .footer-bottom-row {
        flex-direction: column;
        gap: 1rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-nav-grid {
        grid-template-columns: 1fr;
        /* Single col links */
    }

    .footer-statement {
        padding: 4rem 0 1rem;
    }
}

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

    .footer-bottom-row {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .legal-links {
        justify-content: center;
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
        margin: 0 10px;
        width: calc(100% - 20px);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        flex: none;
        margin: 0;
        justify-content: flex-start;
    }

    .logos-container {
        flex-direction: column;
        gap: 2rem;
    }

    .college-logo,
    .dept-logo {
        width: 150px;
        height: 150px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .title-year {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .countdown {
        gap: 0.5rem;
    }

    .countdown-item {
        min-width: 60px;
        padding: 0.75rem;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .registration-progress {
        padding: 1rem;
    }

    .progress-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .conference-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .schedule-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
        border-radius: 15px;
    }

    .tab-btn.active::after {
        display: none;
    }

    .timeline::before {
        left: 15px;
        width: 2px;
    }

    .timeline-item {
        padding-left: 50px;
        margin-bottom: 2rem;
    }

    .timeline-item::before {
        left: 6px;
        width: 18px;
        height: 18px;
    }

    .timeline-item:hover {
        transform: none;
    }

    .event {
        padding: 1.5rem;
        margin-left: 10px;
    }

    .event:hover {
        transform: none;
    }

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

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

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

    .department-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .department-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Judges Panel Mobile Styles */
    .conference-chair {
        padding: 2rem;
        margin-bottom: 3rem;
    }

    .chair-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .chair-header h3 {
        font-size: 1.5rem;
    }

    .chair-profile {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .chair-avatar {
        width: 100px;
        height: 100px;
    }

    .chair-avatar i {
        font-size: 2.5rem;
    }

    .chair-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .chair-info h4 {
        font-size: 1.5rem;
    }

    .chair-expertise {
        justify-content: center;
    }

    .judges-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .judge-card {
        padding: 1.5rem;
    }

    .judge-avatar {
        width: 70px;
        height: 70px;
    }

    .judge-avatar i {
        font-size: 1.5rem;
    }
}

/* Ensure two boxes fit in one row on desktop */
@media (min-width: 992px) {
    .logos-container {
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .logo-item {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .title-year {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .conference-stats {
        grid-template-columns: 1fr;
    }

    .schedule-highlights {
        grid-template-columns: 1fr;
    }

    .banner-features {
        flex-direction: column;
        align-items: center;
    }

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

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* =========================================
   LEADERSHIP SECTION REDESIGN
   ========================================= */

.leadership {
    padding: 8rem 0;
    background: var(--gray-50);
}

.leadership-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    /* Constrain width for premium look */
    margin: 0 auto;
}

/* --- Main Chair Card (Professional/Premium) --- */
.chair-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    /* Fixed image width */
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Deep premium shadow */
    border: 1px solid var(--gray-100);
}

.chair-avatar {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--black);
}

.chair-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--black);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    /* Pill shape */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.chair-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    /* B&W for professional look */
    transition: filter 0.5s ease, transform 0.5s ease;
}

.chair-card:hover .chair-image {
    filter: grayscale(0%);
    /* Color on hover */
    transform: scale(1.05);
}

.chair-info {
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Prevent full width stretch */
    position: relative;
}

/* Decorative Accent Line */
.chair-info::before {
    content: '';
    position: absolute;
    top: 3rem;
    left: 0;
    width: 4px;
    height: 60px;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
}

.chair-info h4 {
    font-family: var(--font-display);
    /* Anton */
    font-size: 3rem;
    line-height: 1.1;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.chair-title {
    font-family: var(--font-mono);
    /* Space Mono */
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.chair-institution {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.chair-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 650px;
}

.chair-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.expertise-tag {
    background: var(--gray-100);
    color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Adjust button inside chair card */
.chair-info .btn {
    align-self: flex-start;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* --- Panel of Judges Grid (Premium Redesign) --- */
.judges-section {
    position: relative;
    padding: 8rem 0;
    /* Subtle mesh gradient background */
    background: radial-gradient(circle at 90% 10%, rgba(4, 96, 212, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(59, 130, 246, 0.03) 0%, transparent 40%);
}

.judges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    /* Spacious gap */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.judge-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 24px;
    /* Match Chair Card */
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Smooth spring */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Premium Shadow */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.judge-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

/* Internal Avatar - Premium & Large */
.judge-avatar {
    width: 130px;
    /* Larger size */
    height: 130px;
    background: var(--gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
    border: 4px solid var(--white);
    /* White ring */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    /* Avatar lift */
    transition: all 0.3s ease;
    flex-shrink: 0;
    /* Prevent avatar from shrinking */
    overflow: hidden;
    /* Ensure image doesn't bleed */
}

.judge-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.judge-card:hover .judge-avatar {
    transform: scale(1.05);
    border-color: var(--accent);
}

/* Info container that grows to fill space */
.judge-info {
    flex: 1;
    /* Take up all remaining vertical space */
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.judge-info h4 {
    font-family: var(--font-display);
    /* Anton */
    font-size: 1.75rem;
    line-height: 1.1;
    font-weight: 400;
    /* Display font handles weight */
    margin-bottom: 0.5rem;
    color: var(--black);
    letter-spacing: 0.5px;
}

.judge-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.judge-institution {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.judge-expertise {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.judge-expertise .expertise-tag {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.judge-card:hover .expertise-tag {
    background: var(--white);
    border-color: var(--accent);
    color: var(--accent);
}

/* Restore the "View Profile" Pill Button Style */
.judge-card .btn-profile-pill {
    margin-top: auto;
    /* Push to bottom for uniform alignment */
    width: auto;
    /* Clean pill width */
    align-self: center;
    /* Center horizontally */
}

/* Adjust button inside chair card */
.chair-info .btn {
    align-self: flex-start;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Restore the "View Profile" Pill Button Style */
.judge-card .btn-profile-pill {
    margin-top: auto;
    /* Push to bottom for uniform alignment */
    width: auto;
    /* Clean pill width */
    align-self: inherit;
    /* Reset align-self */
}

.delegate-footer .btn-profile-pill {
    width: 100% !important;
}

/* Tablet / Mobile Responsive */
@media (max-width: 992px) {
    .chair-card {
        grid-template-columns: 1fr;
        /* Stack vertically */
    }

    .chair-image {
        height: 400px;
        /* Fixed height for image */
    }

    .chair-info {
        padding: 2.5rem;
    }

    .chair-info::before {
        display: none;
        /* Hide decorative line on mobile */
    }

    .judges-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on tablet */
    }
}

@media (max-width: 576px) {
    .judges-grid {
        grid-template-columns: 1fr;
        /* 1 col on mobile */
    }

    .chair-info h4 {
        font-size: 2rem;
    }
}

/* --- New Calendar Schedule Redesign --- */

.calendar-wrapper {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.calendar-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.calendar-month {
    font-family: 'Anton', sans-serif;
    font-size: 2.5rem;
    color: var(--black);
    margin: 0;
    letter-spacing: 1px;
}

.calendar-nav {
    display: flex;
    gap: 1rem;
}

.cal-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cal-nav-btn:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-2px);
}

/* Grid Layout */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--gray-200);
    /* Border effect */
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
}

.weekday-header {
    background: var(--gray-50);
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.day-cell {
    background: var(--white);
    min-height: 140px;
    padding: 0.8rem;
    position: relative;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: visible;
    /* Allow popover overflow */
}

.day-cell:hover {
    background: #fafafa;
}

.day-cell.active-day {
    background: var(--white);
}

.padding-day {
    background: #fdfdfd;
    color: var(--gray-300);
}

.day-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.padding-day .day-number {
    color: var(--gray-300);
}

/* Event Pills */
.events-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-pill {
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    overflow: visible;
    /* Important for popover */
    text-overflow: ellipsis;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 0.8rem;
}

.event-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 50;
    /* Bring to front on hover */
}

.event-title {
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-time {
    opacity: 0.9;
    font-size: 0.75rem;
    min-width: 55px;
}

/* Variants */
.type-ceremony {
    background: var(--black);
    color: var(--white);
}

.type-tech {
    background: var(--accent);
    /* Purple/Neon */
    color: var(--white);
}

.type-break {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.type-presentation {
    background: #e0f2fe;
    /* Light Blue */
    color: #0369a1;
}

.type-expo {
    background: #fef3c7;
    /* Light Amber */
    color: #b45309;
}

.type-network {
    background: #dcfce7;
    /* Light Green */
    color: #15803d;
}

.type-comp {
    background: #fee2e2;
    /* Light Red */
    color: #b91c1c;
}

.type-panel {
    background: #f3e8ff;
    /* Light Purple */
    color: #7e22ce;
}

.event-count {
    font-size: 0.75rem;
    color: var(--gray-500);
    padding-left: 4px;
    margin-top: 2px;
}

/* Hover Popover */
.event-popover {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    background: var(--white);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--gray-200);
    z-index: 100;
    text-align: left;
    white-space: normal;
}

.event-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: var(--white) transparent transparent transparent;
}

.event-pill:hover .event-popover {
    display: block;
    animation: fadeIn 0.2s ease forwards;
}

/* Popover Content */
.popover-header {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.8rem;
    line-height: 1.2;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.popover-time,
.popover-venue {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popover-time i,
.popover-venue i {
    color: var(--accent);
    width: 16px;
    text-align: center;
}

.popover-desc {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin-top: 1rem;
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .calendar-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        background: transparent;
        border: none;
    }

    .weekday-header,
    .padding-day {
        display: none;
    }

    .day-cell {
        border-radius: 16px;
        border: 1px solid var(--gray-200);
        padding: 1.5rem;
        min-height: auto;
    }

    .day-cell.active-day {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .day-number {
        font-size: 1.5rem;
        border-bottom: 1px solid var(--gray-100);
        padding-bottom: 0.8rem;
        margin-bottom: 1.2rem;
        color: var(--accent);
    }

    .event-pill {
        padding: 10px 14px;
        font-size: 0.95rem;
        white-space: normal;
        flex-wrap: wrap;
    }

    .event-time {
        font-weight: 700;
        min-width: 70px;
    }

    /* On mobile, popover might be tricky, usually expand in place or modal. 
       For now, let's just make it visible on click/active or simplify. 
       Actually, standard behavior might be okay if screen fits. */

    .event-popover {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        top: auto;
        width: auto;
        transform: none;
        z-index: 1000;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    }

    .event-popover::after {
        display: none;
    }
}


/* Sponsors Session */

/* --- Committee Styles from committee.html --- */
.cmt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.cmt-grid {
    display: grid;
    gap: 4rem;
    padding-bottom: 4rem;
}
.cmt-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03);
}
.cmt-section h3 {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.8rem;
    color: var(--text-heading, #0f172a);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.cmt-section h3::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), transparent);
}
.member-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.member-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.member-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-blue);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}
.member-name {
    font-weight: 700;
    color: var(--text-heading, #0f172a);
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}
.member-role {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.6rem;
    display: block;
}
.member-inst {
    font-size: 0.85rem;
    color: var(--text-main, #1e293b);
    line-height: 1.5;
    opacity: 0.8;
}
@media (max-width: 768px) {
    .cmt-section { padding: 2rem; }
    .member-list { grid-template-columns: 1fr; }
}

/* Special Events Section */
.other-events {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

.special-events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.special-event-card {
    position: relative;
    border-radius: 24px;
    padding: 3.5rem;
    overflow: hidden;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    min-height: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.special-event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.special-event-card.gradient-blue {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
}

.special-event-card.gradient-purple {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
}

.event-content {
    position: relative;
    z-index: 2;
    max-width: 85%;
}

.event-content h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.event-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.special-event-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.event-icon {
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 14rem;
    opacity: 0.1;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.special-event-card:hover .event-icon {
    transform: scale(1.1) rotate(-10deg);
}

@media (max-width: 900px) {
    .special-events-grid { grid-template-columns: 1fr; }
    .event-content { max-width: 100%; }
}

/* --- Global Extreme Mobile Overrides --- */
@media (max-width: 576px) {
    /* Navbar text/buttons crowding fix */
    .nav-right .btn-buy-now {
        display: none !important;
    }
    .hamburger {
        display: flex !important;
    }
    .nav-links {
        display: none !important;
    }
    
    /* Hero title override to prevent overflow */
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem) !important;
    }
}