:root{
    --brand: #dd4600;
    --brand-2: #22d3ee;
    --bg: #0b0f1a;
    --bg-2: #0f172a;
    --text: #f8fafc;
    --muted: #cbd5e1;
    --glass: rgba(255,255,255,0.10);
    --glass-brd: rgba(255,255,255,0.18);
}

html,body{
    height: 100%;
}

body {
    margin: 0;
    font-family: Poppins, system-ui, -apple-system,Segoe UI,Roboto, sans-serif;
    background: linear-gradient(180deg, var(--bg), var(--bg-2));
    color: var(--text);
}

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

img { 
    display: block;
    max-width: 100%;
}

/* Hide scrollbar */
::-webkit-scrollbar {
    display: none;
}

/* Navbar */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px 30px;
    z-index: 10;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

/* Flex container for logo and links */
nav > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px; 
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.08);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.nav-links a {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-links a:hover {
    color: #ff5e14;
}

.nav-links a.active {
    color: #ff5e14;
}

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

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--glass-brd);
    margin: 3px 0;
    transition: 0,3s;
}

/* Hero */
.hero{
    position:relative;
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    padding:100px 6% 140px;
    background:url('/assets/cyc.jpg') center/cover no-repeat;
}

.hero::after {
    content:"";
    position:absolute;
    inset:0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.hero__content {
    position:relative;
    z-index:1;
    max-width:620px;
    text-align:right;
}

.eyebrow {
    display:inline-block;
    margin-bottom:10px;
    padding: 6px 12px;
    border-radius: 999px;
    background:rgba(0, 36, 196, 0.979);
    backdrop-filter: blur(8px);
    font-size: 0.85rem;
}

.hero h1 {
    font-size: clamp(2rem,4vw,3.6rem);
    line-height:1.05;
    margin: 0.2em 0 0.35em;
    font-weight:800
}

.hero p{
    color: clamp(2rem,4vw,3.6rem);
    font-size: 1.05rem;
    margin: 0 0 1.2rem;
}

.cta {
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:12px 22px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--text);
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(255, 94, 20, 0.05);
    transition:transform 0.2s, box-shadow .2s;
}

.cta:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 40px rgba(255, 94, 20, 0.45);
}

.cta.secondary {
    background:transparent; 
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

.cta.secondary:hover {
    background:rgba(255, 255, 255, 0.08);
}

/* Scroll cue */
.scroll-down {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px); 
    border: 1px solid var(--glass-brd);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
    animation: bob 1.8s infinite ease-in-out;
}

.scroll-down i {
    font-size:18px;
}

.scroll-down:hover {
    animation: none;
    transform: translateX(-50%) translateY(6px) scale(1.06);
    background: rgba(255, 255, 255, 0.18);
    box-shadow:0 8px 24px rgba(0, 0, 0, 0.35);
}

@keyframes bob {
    0%,100%{
        transform: translateX(-50%) translateY(0);
    }
    50%{
        transform: translateX(-50%) translateY(8px);
    }
}

/* Sponsors */
.sponsors { 
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    padding: 14px 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2;
}

.sponsors img, .sponsor {
    height: 28px;
    opacity:0.8;
    filter: grayscale(100%);
    transition: opacity 0.25s, filter 0.25s, transform 0.25s;
}

.sponsors img:hover, .sponsor:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-2px);
}

/* Sections */
section.section {
    padding:90px 6%;
}

.section h2 {
    font-weight: 800; 
    margin-bottom: 14px;
    font-size: clamp(1.6rem,3vw,2.2rem);
}

.section p.lead {
    color: var(--muted);
    max-width:820px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items:center;
}

.about-card { 
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.about-grid img {
    border-radius: 10px;
    box-shadow: 0 0px 10px rgba(255, 94, 20, 0.45);
}

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

/* Events */
.cards{
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 18px;
}

@media(max-width:1000px) {
    .cards{
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card img {
    height: 180px;
    object-fit:cover;
}

.card .content {
    padding:16px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.78rem
}

.card .meta{
    display:flex;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 6px;
}

.card .actions {
    margin-top: auto;
    padding: 14px 16px;
    display: flex;
    gap: 10px;
}

/* Routes */
.route {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px; 
    align-items: center;
}
.route img {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
@media(max-width:900px){
    .route{
        grid-template-columns: 1fr;
    }
}

/* Gallery */
.gallery{
    columns: 4 260px;
    column-gap:14px;
}

.gallery img {
    width: 100%;
    margin: 0 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 24px;
}
.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-grid img:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    transform: scale(1.08) rotate(-1deg);
    filter: brightness(1.08) saturate(1.2);
}
/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    gap: 24px;
}
.lightbox-content img {
    max-width: 70vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.25);
}
.lightbox-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0 18px;
    transition: color 0.2s;
}
.lightbox-btn:hover { color: #ffd700; }
.lightbox-close {
    position: absolute;
    top: 12px; right: 18px;
    font-size: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* FAQ */
details {
    background:rgba(255, 255, 255, 0.06);
    border:1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px; 
    padding: 14px;
}

details+details {
    margin-top: 10px
}

summary {
    cursor: pointer;
    font-weight:600;
}

details[open] {
    background: rgba(255, 255, 255, 0.08);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand);
    box-shadow: none;
}

/* Footer */
footer {
    padding: 28px 6%;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 1rem;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        padding: 1.5rem;
        gap: 1rem;
        z-index: 999;
        border-radius: 999px;

    }
    
    .nav-links a {
        /* display: none; */
        color: black;
        text-decoration: none;
        transition: color 0.3s;
        font-size: small;
        
        
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a:hover {
        color: #ff5e14;
    }

    .mobile-menu {
        display: flex;
    }
            
}