/* ==========================================
   ORGAN DONATION AWARENESS PORTAL
   style.css
========================================== */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ---------- Reset ---------- */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
    scroll-behavior:smooth;
}

body{
    background:#f7f9fc;
    color:#333;
    line-height:1.6;
}

/* ---------- Navbar ---------- */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:#ffffff;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
    z-index:1000;
}

.navbar{
    width:90%;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 0;
}

.logo{
    font-size:28px;
    font-weight:700;
    color:#d62828;
}
/* ---------- Navigation Buttons ---------- */

.nav-links{
    display:flex;
    list-style:none;
    gap:15px;
    align-items:center;
}

.nav-links li{
    margin:0;
}

.nav-links li a{
    text-decoration:none;
    color:#fff;
    background:linear-gradient(45deg,#e53935,#ff6b6b);
    padding:10px 22px;
    border-radius:30px;
    font-size:16px;
    font-weight:600;
    transition:all .3s ease;
    display:inline-block;
}

.nav-links li a:hover{
    background:linear-gradient(45deg,#c62828,#e53935);
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(229,57,53,.4);
}
/* ---------- Hero ---------- */

.hero{
    position:relative;
    height:100vh;
    overflow:hidden;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:white;
}

.hero-video{
    position:absolute;
    top:50%;
    left:50%;
    width:177.78vh;
    height:100vh;
    min-width:100%;
    min-height:56.25vw;
    transform:translate(-50%,-50%);
    pointer-events:none;
    z-index:-2;
}

.overlay{
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.5);
    z-index:-1;
}

.hero-content{
    position:relative;
    z-index:2;
}

.hero-content{
    max-width:700px;
}

.hero h1{
    font-size:55px;
    margin-bottom:20px;
}

.hero p{
    font-size:20px;
    margin-bottom:35px;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.btn{
    display:inline-block;
    text-decoration:none;
    background:#d62828;
    color:#fff;
    padding:12px 30px;
    border-radius:30px;
    transition:.3s;
    font-weight:600;
}

.btn:hover{
    background:#b71c1c;
}

.btn-secondary{
    background:white;
    color:#d62828;
}

.btn-secondary:hover{
    background:#ffeaea;
}


/* ---------- Statistics ---------- */

.stats{
    padding:90px 10%;
    background:#ffffff;
}

.stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.stat-box{
    background:#d62828;
    color:#fff;
    padding:30px 20px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
    transition:.4s;
}

.stat-box:hover{
    transform:translateY(-10px);
}

.stat-box i{
    font-size:50px;
    margin-bottom:20px;
}

.stat-box h2{
    font-size:55px;
    color:white;
    margin-bottom:15px;
}

.stat-box p{
    font-size:20px;
    line-height:1.6;
}
/* ---------- Common Section ---------- */

section{
    padding:90px 10%;
}

section h2{
    text-align:center;
    font-size:38px;
    color:#d62828;
    margin-bottom:50px;
}

/* ---------- Organ Cards ---------- */

.card-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:30px;
}

.card{
    background:#fff;
    border-radius:15px;
    padding:30px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transition:.3s;
}

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

.card img{
    width:90px;
    margin-bottom:20px;
}

.card h3{
    color:#d62828;
    margin-bottom:10px;
}

.card p{
    font-size:15px;
}

/* ---------- Video ---------- */

.video-section{
    background:#fff;
}

.video-container{
    display:flex;
    justify-content:center;
}

.video-container video{
    width:80%;
    max-width:900px;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,.2);
}

/* ---------- Success Stories ---------- */

.story-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.story{
    background:#fff;
    padding:30px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transition:.3s;
}

.story:hover{
    transform:translateY(-8px);
}

.story i{
    font-size:50px;
    color:#d62828;
    margin-bottom:20px;
}

.story h3{
    margin-bottom:10px;
}

/* ---------- FAQ ---------- */

.faq{
    background:#fff;
}

.faq-item{
    max-width:800px;
    margin:20px auto;
}

.question{
    width:100%;
    background:#d62828;
    color:white;
    border:none;
    padding:18px;
    cursor:pointer;
    text-align:left;
    font-size:18px;
    border-radius:8px;
}

.answer{
    display:none;
    background:#f1f1f1;
    padding:18px;
    border-radius:0 0 8px 8px;
}

/* ---------- Footer ---------- */

footer{
    background:#111;
    color:white;
    text-align:center;
    padding:40px 20px;
}

footer h3{
    margin-bottom:15px;
}

footer p{
    margin-bottom:10px;
}

.social{
    margin:20px 0;
}

.social i{
    font-size:28px;
    margin:0 10px;
    cursor:pointer;
    transition:.3s;
}

.social i:hover{
    color:#ff4d4d;
}

.copy{
    color:#ccc;
    font-size:14px;
}

/* ---------- Scroll Button ---------- */

#topBtn{
    position:fixed;
    bottom:25px;
    right:25px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:#d62828;
    color:white;
    cursor:pointer;
    font-size:20px;
    display:none;
    transition:.3s;
}

#topBtn:hover{
    background:#b71c1c;
}

/* ---------- Responsive ---------- */

@media(max-width:992px){

    .navbar{
        flex-direction:column;
    }

    .nav-links{
        margin-top:15px;
        flex-wrap:wrap;
        justify-content:center;
    }

    .nav-links li{
        margin:10px;
    }

    .hero h1{
        font-size:42px;
    }

    .hero p{
        font-size:18px;
    }

    .video-container video{
        width:95%;
    }

}

@media(max-width:768px){

    section{
        padding:70px 6%;
    }

    .hero h1{
        font-size:34px;
    }

    .hero p{
        font-size:16px;
    }

    section h2{
        font-size:30px;
    }

    .hero-buttons{
        flex-direction:column;
        align-items:center;
    }

}

@media(max-width:480px){

    .logo{
        font-size:22px;
    }

    .hero h1{
        font-size:28px;
    }

    .hero p{
        font-size:15px;
    }

    .question{
        font-size:16px;
    }

}