@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

:root {
    /* Updated Theme Variables */
    --bg-void: #f5f5f5;
    --bg-matrix: #e0e0e0;

    --aerogel-bg: rgba(255, 255, 255, 0.95);
    --aerogel-bg-hover: rgba(255, 255, 255, 1);
    --aerogel-border: rgba(0, 0, 0, 0.05);
    --aerogel-shadow: 0 10px 40px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --aerogel-shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 1);
    --aerogel-blur: blur(10px);

    --text-dark: #333333;
    --text-muted: #666666;
    --pulse-orange: #ff5722;
    --pulse-orange-glow: rgba(255, 87, 34, 0.2);
    --pulse-orange-hover: #e64a19;

    --font-ui: 'Inter', sans-serif;
    --font-data: 'Roboto Mono', monospace;

    --z-nav: 1000;
    --z-dropdown: 1010;
    --z-overlay: 900;

    /* Micro animation timings */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fluid: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Footer / Default Variable Fallbacks */
    --footer-bg: #1a1e27;
    --footer-text: #cccccc;
    --nav-scrolled-bg: rgba(255, 255, 255, 0.95);
}



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg-void);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}


/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

p {
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Utility / Components */
.matrix-panel {
    background: var(--aerogel-bg);
    -webkit-backdrop-filter: var(--aerogel-blur);
    backdrop-filter: var(--aerogel-blur);
    border: 1px solid var(--aerogel-border);
    box-shadow: var(--aerogel-shadow);
    border-radius: 20px;
    transition: all var(--transition-fluid);
}

.matrix-panel:hover {
    background: var(--aerogel-bg-hover);
    box-shadow: var(--aerogel-shadow-hover);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background-color: var(--pulse-orange);
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px var(--pulse-orange-glow);
    transition: all var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);*/
    transition: all 0.6s ease;
}

.btn-primary:hover {
    background-color: var(--pulse-orange-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px var(--pulse-orange-glow);
}

.btn-primary:hover::before {
    left: 100%;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: var(--z-nav);
    transition: all var(--transition-fluid);
    border-bottom: 1px solid transparent;
}

@media(max-width: 768px) {
    nav {
        width: 100vw;
    }
}

nav.scrolled {
    background: var(--nav-scrolled-bg);
    -webkit-backdrop-filter: var(--aerogel-blur);
    backdrop-filter: var(--aerogel-blur);
    border-bottom: 1px solid var(--aerogel-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    height: 70px;
}

.matrix-nav {
    /* Style constraints for nav bar */
    background-color: transparent;
    transition: background-color var(--transition-fluid), backdrop-filter var(--transition-fluid);
}

.nav-brand {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.nav-brand:hover {
    opacity: 0.8;
}

#nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

#nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
}

#nav-links a.active,
#nav-links a:hover {
    color: var(--pulse-orange);
}

#nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--pulse-orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fluid);
}

#nav-links a.active::after,
#nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Dropdown Button */
.dropbtn {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 0;
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.dropbtn:hover {
    color: var(--pulse-orange);
}

/* Dropdowns */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    min-width: 200px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all var(--transition-spring);
    z-index: var(--z-dropdown);
    pointer-events: none;
}

/* Invisible bridge to maintain hover state */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    top: 100%;
    pointer-events: auto;
}

.dropdown-content a {
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    font-weight: 400 !important;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover,
.dropdown-content a.active {
    background: var(--pulse-orange-glow);
    color: var(--pulse-orange) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: all var(--transition-fluid);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: all var(--transition-fluid);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Page Layout */
.page-wrapper {
    padding-top: 80px;
    min-height: calc(100vh - 300px);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(0.5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    height: 562px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 4% 8% 4%;
    background-image: url('https://mysamay-production-public.s3.ap-south-1.amazonaws.com/events/5c9434b5-bea2-48da-a9d3-088dc7b1c33e.jpg');
    background-size: cover;
    background-position: center 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: float 8s ease-in-out infinite;
}

.mobile-banner-img {
    display: none;
}

/* Countdown */
.countdown-wrapper {
    margin-top: -60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 2.5rem;
}

.countdown-wrapper h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--pulse-orange);
    margin-bottom: 1.5rem;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.cd-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cd-value {
    font-family: var(--font-data);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cd-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Feature Rows (About & Why) */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse>* {
    direction: ltr;
}

.feature-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.feature-content h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--pulse-orange);
    margin-top: 10px;
    border-radius: 2px;
}

.feature-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.feature-visual {
    height: 400px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(230, 240, 255, 0.5), rgba(255, 255, 255, 0.2));
}

.feature-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    pointer-events: none;
}

/* Categories Hub */
.categories-hub {
    padding: 4rem 5% 8rem;
    text-align: center;
    background: #111;
    color: white;
    position: relative;
}

.categories-hub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/ev_back.webp') center/cover no-repeat;
    opacity: 0.8;
    z-index: 0;
}

.section-head {
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-head h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: white;
}

.section-head p {
    font-size: 1.2rem;
    color: #ccc;
}

.card-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .card-grid {
        flex-wrap: nowrap;
    }

    /* Cards appearing BEFORE the hovered card */
    .card-grid:has(.hub-card:hover) .hub-card:not(:hover):has(~ .hub-card:hover) {
        transform: translateX(-40px);
        opacity: 0.7;
    }

    /* Cards appearing AFTER the hovered card */
    .card-grid:has(.hub-card:hover) .hub-card:hover~.hub-card {
        transform: translateX(40px);
        opacity: 0.7;
    }
}

/* Base Card Style */
.hub-card.matrix-panel {
    width: 280px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    position: relative;
    border: 3px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

@media (min-width: 1025px) {
    .hub-card.matrix-panel {
        transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.8s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    }

    .scroll-down .hub-card.matrix-panel:not(.in-view) {
        opacity: 0;
        transform: translateX(-150px);
    }

    .scroll-up .hub-card.matrix-panel:not(.in-view) {
        opacity: 0;
        transform: translateX(150px);
    }

    .hub-card.matrix-panel.in-view {
        opacity: 1;
        transform: translateX(0);
    }

    .card-grid .hub-card:nth-child(1) {
        transition-delay: 0s, 0s, 0s, 0s;
    }

    .card-grid .hub-card:nth-child(2) {
        transition-delay: 0.1s, 0.1s, 0s, 0s;
    }

    .card-grid .hub-card:nth-child(3) {
        transition-delay: 0.2s, 0.2s, 0s, 0s;
    }

    .card-grid .hub-card:nth-child(4) {
        transition-delay: 0.3s, 0.3s, 0s, 0s;
    }

    .hub-card.matrix-panel:hover {
        transition-delay: 0s, 0s, 0s, 0s !important;
    }
}

@media (max-width: 1024px) {
    .hub-card.matrix-panel {
        transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.8s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    }

    .scroll-down .hub-card.matrix-panel:nth-child(odd):not(.in-view) {
        opacity: 0;
        transform: translateX(-100px);
    }

    .scroll-down .hub-card.matrix-panel:nth-child(even):not(.in-view) {
        opacity: 0;
        transform: translateX(100px);
    }

    .scroll-up .hub-card.matrix-panel:nth-child(odd):not(.in-view) {
        opacity: 0;
        transform: translateX(100px);
    }

    .scroll-up .hub-card.matrix-panel:nth-child(even):not(.in-view) {
        opacity: 0;
        transform: translateX(-100px);
    }

    .hub-card.matrix-panel.in-view {
        opacity: 1;
        transform: translateX(0);
    }
}

.hub-card.matrix-panel.in-view:hover {
    transform: scale(1.25);
    /* Zoom in on hover */
    border-color: var(--pulse-orange);
    box-shadow: 0 0 30px rgba(255, 87, 34, 0.4);
    z-index: 10;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.hub-card.matrix-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(240, 240, 240, 0.2) 30%, rgb(240, 240, 240) 40%, rgba(240, 240, 240, 0) 55%);
    z-index: 1;
    pointer-events: none;
}

.hub-card h3 {
    position: relative;
    z-index: 2;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
    text-align: center;
    margin-bottom: 0.5rem;
    margin-top: auto;
}

.category-btn {
    position: relative;
    z-index: 2;
    background: var(--pulse-orange);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    width: calc(100% - 3rem);
    border-radius: 8px;
    padding: 12px 10px;
    margin: 0 1.5rem 1.5rem 1.5rem;
    box-shadow: none;
    opacity: 1;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    border: none;
}


/* Important Notes */
.important-notes {
    padding: 0 5% 5rem;
    background: #e0e0e0;
    margin: 0;
}

.notes-panel.matrix-panel {
    background: linear-gradient(rgba(40, 45, 55, 0.5), rgba(40, 45, 55, 0.5)), url('images/notes_back.webp') center/cover no-repeat;
    border-radius: 15px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
}

.notes-panel.matrix-panel:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.notes-panel h3 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: red;
    color: white;
    border-radius: 5px;
    font-family: var(--font-ui);
    font-size: 1.5rem;
    font-weight: bold;
}

.notes-panel .notes-list {
    list-style: none;
    color: white;
    max-width: 800px;
    display: block;
    padding: 0;
}

.notes-panel .notes-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    line-height: 1.5;
    color: white;
}

.notes-panel .notes-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--pulse-orange);
    font-size: 1.5rem;
    line-height: 1;
    top: -2px;
}

@media (max-width: 768px) {
    .notes-panel.matrix-panel {
        padding: 2rem;
    }

    .notes-panel h3 {
        font-size: 1.5rem;
    }

    .notes-panel .notes-list li {
        font-size: 1rem;
    }
}

.cta-section {
    background: #e0e0e0;
    padding: 4rem 5%;
    text-align: center;
    position: relative;
}

.cta-panel.matrix-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(220, 220, 220, 0.9));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: -8rem auto 2rem;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 5;
    transform: none;
    border-color: transparent;
    display: block;
}

.cta-panel.matrix-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-panel h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: normal;
}

.cta-panel p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1.5rem;
    opacity: 1;
}

.cta-panel .btn-primary {
    width: auto;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 10px;
    text-transform: uppercase;
}

/* Expo / Rules / FAQs Grids */
.page-header {
    padding: 6rem 5% 4rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Expo Grids */
.expo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 2rem 5%;
}

.expo-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    justify-content: space-between;
}

.expo-card h3 {
    font-size: 1.5rem;
    color: var(--pulse-orange);
    margin-bottom: 1rem;
    font-weight: 700;
}

.expo-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Rule Grids (For FAQs) */
.rule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 5%;
}

.rule-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.rule-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--aerogel-border);
    padding-bottom: 0.75rem;
    font-weight: 700;
}

.rule-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Prizes Grid */
.prizes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 0 5%;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
}

/* Rules Section Rework */
.rules-container {
    max-width: 1000px;
    margin: 0 auto 6rem;
    padding: 0 5%;
}

.rule-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    color: var(--pulse-orange);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--aerogel-border);
    font-family: var(--font-ui);
    letter-spacing: -0.01em;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.rule-item {
    transition: transform var(--transition-fluid);
}

.rule-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.rule-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-align: justify;
}

.rule-item p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }

    .rule-title {
        font-size: 1.15rem;
    }
}

/* End of Rules styles */

/* Accordion (FAQs) */
.accordion {
    max-width: 900px;
    margin: 0 auto 6rem;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border-radius: 16px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--pulse-orange);
    transition: transform var(--transition-fluid);
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-fluid);
    padding: 0 2rem;
}

.accordion-item.active .accordion-content {
    padding-bottom: 1.5rem;
}

.accordion-content p {
    margin: 0;
}

/* Footer */
.matrix-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 5% 0;
    margin-top: auto;
}

@media (max-width: 768px) {
    .matrix-footer {
        text-align: center;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h3,
.brand-iso {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.brand-iso img {
    /*display: block;*/
    max-width: 100%;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.125rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-col a {
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--pulse-orange);
}

.footer-bottom {
    /*max-width: 1400px;*/
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .feature-row.reverse {
        direction: ltr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    #nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--nav-scrolled-bg);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
        transition: right var(--transition-spring);
    }

    #nav-links.active {
        right: 0;
    }

    .dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: transparent;
        border: none;
        padding: 1rem;
        min-width: auto;
        pointer-events: auto;
    }

    .dropdown-content::before {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: flex;
    }

    .hero {
        background-image: none;
        height: auto;
        min-height: 64vh;
    }

    .mobile-banner-img {
        display: block;
        width: 100%;
        border-radius: 20px;
        box-shadow: var(--aerogel-shadow);
        margin-bottom: 2rem;
    }

    .cd-value {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cta-panel h2 {
        font-size: 2.5rem;
    }
}

/* --- Added from Inline Styles --- */

/* script.js */
.hamburger.active {
    background-color: transparent;
}

.hamburger.active::before {
    top: 0;
    transform: rotate(45deg);
}

.hamburger.active::after {
    bottom: 0;
    transform: rotate(-45deg);
}

.cd-value-open {
    font-family: var(--font-ui);
    font-size: 2rem;
}

/* route.php */
.route-panel-container {
    max-width: 800px;
    margin: 0 auto 6rem;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation-delay: 0.1s;
}

.route-coming-soon {
    color: var(--text-muted);
    font-size: 1.25rem;
}

/* prizes.php */
.prize-grid-container {
    animation-delay: 0.1s;
}

.prize-matrix-panel {
    padding: 2.5rem;
    grid-column: 1 / -1;
    overflow-x: auto;
}

.prize-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.prize-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.prize-table-full {
    min-width: 600px;
}

.prize-table-half {
    min-width: 400px;
}

.prize-header-row {
    border-bottom: 2px solid var(--aerogel-border);
    color: var(--text-muted);
}

.prize-th {
    padding: 1rem;
}

.prize-row {
    border-bottom: 1px solid var(--aerogel-border);
}

.prize-rank {
    padding: 1rem;
    font-family: var(--font-data);
    font-weight: 500;
}

.prize-td {
    padding: 1rem;
    font-family: var(--font-data);
}

/* pacers.php */
.pacer-panel-container {
    max-width: 800px;
    margin: 0 auto 6rem;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pacer-coming-soon {
    color: var(--text-muted);
    font-size: 1.25rem;
}

/* header.php */
.header-logo {
    height: 60px;
    width: auto;
}

/* footer.php */
.footer-logo {
    height: 80px;
    width: auto;
}

.footer-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Animation Delays */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}
/* Lightbox Photo Gallery Styles */
.gallery-section {
    width: 100%;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1/1; /* Square tiles look clean in a grid */
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-matrix);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    color: white;
    font-size: 2.5rem;
    font-weight: 200;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .gallery-zoom-icon {
    transform: scale(1);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: white;
    font-size: 40px;
    font-weight: 200;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 2100;
}

.lightbox-close {
    top: 30px;
    right: 40px;
}

.lightbox-prev {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--pulse-orange);
    transform: translateY(-50%) scale(1.2);
}

.lightbox-close:hover {
    transform: scale(1.2);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .lightbox-prev, .lightbox-next {
        font-size: 30px;
        bottom: 40px;
        top: auto;
        transform: none;
    }
    
    .lightbox-prev { left: 30%; }
    .lightbox-next { right: 30%; }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
}
