*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#070707;
    color:#ffffff;
    font-family:'Inter',sans-serif;
    overflow-x:hidden;
}

.bg-grid{
    position:fixed;
    inset:0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size:50px 50px;
    z-index:-2;
}

.hero{
    position:relative;
    min-height:100vh;
    padding:40px 7%;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.7), rgba(0,0,0,.9)),
        url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?q=80&w=2070&auto=format&fit=crop') center/cover;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at top right, rgba(255,0,0,.18), transparent 25%);
    pointer-events:none;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    z-index:5;
}

.logo-wrap{
    display:flex;
    flex-direction:column;
}

.logo-main{
    font-family:'Orbitron',sans-serif;
    font-size:1.7rem;
    font-weight:800;
    letter-spacing:3px;
}

.logo-sub{
    font-size:.75rem;
    color:#b3b3b3;
    letter-spacing:2px;
}

.nav-links{
    display:flex;
    gap:30px;
}

.nav-links a{
    color:#fff;
    text-decoration:none;
    font-weight:500;
    transition:.25s;
}

.nav-links a:hover{
    color:#ff2e2e;
}

.hero-content{
    max-width:760px;
    padding:80px 0;
    z-index:5;
}

.eyebrow,
.section-mini{
    color:#ff2e2e;
    letter-spacing:3px;
    font-size:.8rem;
    font-weight:700;
    margin-bottom:20px;
}

.hero h1{
    font-size:5rem;
    line-height:1;
    margin-bottom:30px;
    font-weight:800;
}

.hero-text{
    max-width:650px;
    color:#d0d0d0;
    font-size:1.1rem;
    line-height:1.8;
    margin-bottom:40px;
}

.hero-buttons{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.btn-primary,
.btn-secondary{
    padding:16px 28px;
    text-decoration:none;
    border-radius:12px;
    font-weight:600;
    transition:.25s;
}

.btn-primary{
    background:#ff2e2e;
    color:#fff;
}

.btn-primary:hover{
    background:#ff4d4d;
    transform:translateY(-3px);
}

.btn-secondary{
    border:1px solid rgba(255,255,255,.15);
    color:#fff;
    backdrop-filter:blur(10px);
}

.btn-secondary:hover{
    background:rgba(255,255,255,.08);
}

.stats-section{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    padding:60px 7%;
}

.stat-card{
    background:#101010;
    border:1px solid rgba(255,255,255,.05);
    padding:40px;
    border-radius:18px;
}

.stat-card h2{
    font-size:2rem;
    margin-bottom:10px;
}

.stat-card p{
    color:#a8a8a8;
}

.events-section,
.about-section,
.community-section{
    padding:100px 7%;
}

.section-heading{
    margin-bottom:50px;
}

.section-heading h2,
.about-left h2,
.community-content h2{
    font-size:3rem;
    line-height:1.1;
}

.events-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;
}

.event-card{
    background:#101010;
    border:1px solid rgba(255,255,255,.05);
    border-radius:22px;
    padding:30px;
    display:flex;
    gap:25px;
    transition:.25s;
}

.event-card:hover{
    transform:translateY(-6px);
    border-color:rgba(255,46,46,.3);
}

.featured{
    background:linear-gradient(135deg,#161616,#0d0d0d);
}

.event-date{
    min-width:90px;
    height:90px;
    border-radius:16px;
    background:#ff2e2e;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.month{
    font-size:.8rem;
    letter-spacing:2px;
}

.day{
    font-size:2rem;
    font-weight:800;
}

.event-info h3{
    margin-bottom:12px;
    font-size:1.4rem;
}

.event-location{
    color:#ff7070;
    margin-bottom:15px;
    font-weight:600;
}

.event-description{
    color:#bdbdbd;
    line-height:1.7;
}

.event-tag{
    display:inline-block;
    margin-top:20px;
    padding:8px 14px;
    background:rgba(255,46,46,.12);
    border:1px solid rgba(255,46,46,.25);
    border-radius:999px;
    color:#ff6d6d;
    font-size:.8rem;
}

.about-section{
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:60px;
    align-items:center;
}

.about-left p{
    color:#bcbcbc;
    line-height:1.9;
    margin-top:25px;
}

.about-right{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.about-box{
    position:relative;
    height:180px;
    border-radius:22px;
    overflow:hidden; /* CRITICAL */
    display:flex;
    align-items:flex-end;
    padding:20px;
    border:1px solid rgba(255,255,255,.06);

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    transform: translateZ(0); /* forces GPU compositing fix */
}

.about-box::before{
    content:"";
    position:absolute;
    inset:-1px; /* IMPORTANT: extends past edges to prevent 1px leaks */
    background:linear-gradient(
        to bottom,
        rgba(0,0,0,.25),
        rgba(0,0,0,.92)
    );
    z-index:1;
    pointer-events:none;
}

.about-box span{
    position:relative;
    z-index:2;
}

.community-section{
    position:relative;
    border-top:1px solid rgba(255,255,255,.05);
    border-bottom:1px solid rgba(255,255,255,.05);
    background-size:cover;
    background-position:center;
}

.community-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);
}

.community-content{
    position:relative;
    z-index:2;
    max-width:700px;
}

.community-content p{
    color:#d0d0d0;
    line-height:1.8;
    margin:25px 0 40px;
}

footer{
    padding:70px 7% 40px;
}

.footer-top{
    display:flex;
    justify-content:space-between;
    gap:40px;
    flex-wrap:wrap;
    margin-bottom:40px;
}

.footer-brand h3{
    margin-bottom:15px;
    font-size:1.5rem;
}

.footer-brand p{
    color:#a7a7a7;
    max-width:500px;
    line-height:1.7;
}

.footer-links{
    display:flex;
    gap:20px;
    align-items:center;
}

.footer-links a{
    color:#fff;
    text-decoration:none;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.06);
    padding-top:30px;
}

.footer-bottom p{
    color:#7d7d7d;
}

@media(max-width:950px){

    .hero h1{
        font-size:3.4rem;
    }

    .events-grid{
        grid-template-columns:1fr;
    }

    .about-section{
        grid-template-columns:1fr;
    }

    .stats-section{
        grid-template-columns:1fr;
    }
}

@media(max-width:700px){

    .navbar{
        flex-direction:column;
        align-items:flex-start;
        gap:20px;
    }

    .nav-links{
        flex-wrap:wrap;
        gap:15px;
    }

    .hero{
        padding-top:30px;
    }

    .hero h1{
        font-size:2.6rem;
    }

    .section-heading h2,
    .about-left h2,
    .community-content h2{
        font-size:2.2rem;
    }

    .event-card{
        flex-direction:column;
    }

    .about-right{
        grid-template-columns:1fr;
    }

}

.hidden-card{
    opacity:0;
    transform:translateY(40px);
    transition:all .7s ease;
}

.show{
    opacity:1;
    transform:translateY(0px);
}