/* ==============================
   CSS Variables & Reset
============================== */
:root {
    --primary-green: #37A248; /* INLA Green */
    --primary-yellow: #F0BB1B; /* Fortune Fest Yellow */
    --accent-blue: #2CA5D3; /* Sky blue */
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-light: #FFFFFF;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==============================
   Typography & Utilities
============================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.text-white {
    color: #ffffff !important;
}

.text-highlight {
    color: var(--primary-green);
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(240, 187, 27, 0.4);
    z-index: -1;
    border-radius: 4px;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-green), #2E8A3C);
}

.text-highlight-yellow {
    color: var(--primary-yellow);
    position: relative;
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), #2E8A3C);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(55, 162, 72, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px rgba(55, 162, 72, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
}

/* ==============================
   Glassmorphism UI Elements
============================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
}

/* ==============================
   Navbar
============================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0; /* Hidden initially */
    transform: translateY(-10px);
    transition: var(--transition-smooth);
    pointer-events: none; /* Prevent clicks when hidden */
}

.navbar.scrolled .nav-logo {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.inla-logo {
    height: 40px;
    width: auto;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-brand {
    color: var(--primary-green);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--white);
    font-size: 1.05rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-links a {
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary-yellow);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary-green);
}

/* ==============================
   Hero Section
============================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: url('../Design/running.jpeg') center/cover no-repeat;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(255,255,255,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    margin-top: 50px;
}

.hero-main-logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
    animation: floating 4s ease-in-out infinite;
}

.hero-title {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(255,255,255,0.8);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(255,255,255,0.8);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==============================
   About Section
============================== */
.about {
    padding: 0;
    width: 100%;
    background-color: var(--white);
}

.about-wrapper {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
}

.about-bg-image {
    width: 100%;
    display: block;
    height: auto;
    object-fit: contain;
}

.about-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* ==============================
   Activities Section
============================== */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.activity-card {
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-yellow));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.activity-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(55, 162, 72, 0.1);
    border-radius: 50%;
    color: var(--primary-green);
}

.activity-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.card-divider {
    width: 50px;
    height: 3px;
    background-color: var(--primary-yellow);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.activity-features li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.activity-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* ==============================
   Details Section
============================== */
.details {
    background: url('../Design/super.png') center/cover no-repeat, linear-gradient(135deg, var(--primary-green), #2E8A3C);
    position: relative;
    color: var(--text-dark);
}

.details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5); /* subtle lighting */
}

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

.details-card {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
}

.details-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.details-map {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.details-info h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.details-info .tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255,255,255,0.5);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.8);
}

.info-item .icon {
    font-size: 2rem;
}

.info-item h4 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.info-item p {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ==============================
   Countdown Section
============================== */
.countdown-section {
    padding: 6rem 0;
}

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

.countdown-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    min-width: 150px;
    text-align: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.countdown-num {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==============================
   Gallery Section
============================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    aspect-ratio: 4/3;
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* ==============================
   FAQ Section
============================== */
.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item[open] {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.faq-question {
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-dark);
    cursor: pointer;
    position: relative;
    list-style: none; /* Hide default marker */
}

.faq-question::-webkit-details-marker {
    display: none; /* Hide default marker in Webkit */
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--primary-green);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 0.5rem;
    padding-top: 1rem;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==============================
   Footer
============================== */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

footer p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ==============================
   Animations
============================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-smooth);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; transition-delay: 0.6s; }

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

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ==============================
   Race Pack
============================== */
.race-pack {
    background-color: var(--white);
}
.race-pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.rp-item {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(55,162,72,0.1);
}
.rp-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.rp-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-green);
    font-family: var(--font-heading);
}

/* ==============================
   Rundown Timeline
============================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 3px solid var(--primary-green);
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.65rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--primary-green);
    border-radius: 50%;
}
.timeline .time {
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.timeline-content {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.9);
}
.timeline-content h4 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

/* ==============================
   Pricing Section
============================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.pricing-card {
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    border: 2px solid transparent;
    border-radius: 16px;
    background: var(--white);
    transition: var(--transition-smooth);
}
.pricing-card.popular {
    border-color: var(--primary-green);
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(55,162,72,0.15);
}
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-green);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    font-weight: 800;
}
.pricing-card h3 {
    font-family: var(--font-heading);
    color: var(--text-dark);
}
.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 1.5rem 0;
}
.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    padding: 0;
}
.pricing-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text-muted);
}
.pricing-features li::before {
    content: '✓';
    color: var(--primary-green);
    margin-right: 0.8rem;
    font-weight: bold;
}
.pricing-card:hover {
    transform: translateY(-5px);
}

/* ==============================
   Sponsors
============================== */
.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    opacity: 0.7;
}
.sponsor-logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #64748b;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
    cursor: default;
}
.sponsor-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    color: var(--primary-green);
}

/* ==============================
   Floating WA
============================== */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-smooth);
}
.floating-wa:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ==============================
   Responsive Queries
============================== */
@media (max-width: 768px) {
    /* Hero Section */
    .hero { padding: 120px 15px 60px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-cta { flex-direction: column; width: 100%; gap: 1rem; }
    .hero-cta .btn { width: 100%; text-align: center; }

    /* New Sections */
    .timeline { padding-left: 1.5rem; }
    .timeline-item::before { left: -2.15rem; width: 16px; height: 16px; }
    .pricing-card { padding: 2rem 1.5rem; }
    .sponsors-grid { gap: 1.5rem; justify-content: center; }

    /* Navigation */
    .navbar { padding: 10px 0; }
    .nav-links { display: none; } /* Simplified for mobile out-of-box */
    
    /* Global Sections */
    .section { padding: 4rem 0; }
    .section-title { font-size: 1.8rem; }
    
    /* About Section */
    .about-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .about-overlay {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 0 15px;
        margin-top: -60px; /* Overlap image slightly */
        width: 100%;
    }
    .about-text {
        padding: 2rem 1.5rem;
    }
    .about-text p {
        font-size: 1rem;
    }

    /* Activities Section */
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .activity-card {
        padding: 2rem 1.5rem;
    }

    /* Details Section */
    .details-info h2 { font-size: 1.8rem; }
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1.5rem;
    }
    .info-item .icon { margin-bottom: 0.5rem; }
    .info-item p { font-size: 1.1rem; }
    
    .details-flex { grid-template-columns: 1fr; gap: 2rem; }
    .details-map { min-height: 250px; }
    
    /* Countdown, Gallery, FAQ */
    .countdown-box { min-width: calc(50% - 1rem); padding: 1.5rem 1rem; }
    .countdown-num { font-size: 3rem; }
    .countdown-label { font-size: 1rem; }
    .faq-question { padding: 1.25rem; font-size: 1.05rem; }
    .faq-question::after { right: 1.25rem; }
    
    /* Footer */
    footer { padding: 2rem 0; text-align: center; }
    .footer-logo { margin: 0 auto 1.5rem; }
}
