/* ==========================
   Google Font
========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
    scroll-behavior:smooth;
}

body{
    background:#f6f7fb;
    color:#333;
    transition:.4s;
}

/* ==========================
   HEADER
========================== */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    z-index:999;
}

.logo h2{
    color:#5B5BD6;
}

nav{
    display:flex;
    gap:25px;
    align-items:center;
}

nav a{
    text-decoration:none;
    color:#444;
    font-weight:500;
}

nav a:hover{
    color:#5B5BD6;
}

#darkModeBtn{
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    background:#5B5BD6;
    color:#fff;
    font-size:20px;
    cursor:pointer;
    display:flex;
    justify-content:center;
    align-items:center;
    transition:.3s ease;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
}

#darkModeBtn:hover{
    transform:scale(1.08);
    background:#4444c8;
}

/* ==========================
   HERO
========================== */

.hero{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:120px 20px;
    background:linear-gradient(rgba(91,91,214,.85),rgba(91,91,214,.85)),
    url("images/background.jpg");
    background-size:cover;
    background-position:center;
    color:white;
}

.hero h1{
    font-size:55px;
    margin-bottom:15px;
}

.hero h3{
    font-weight:400;
    margin-bottom:15px;
}

.hero p{
    max-width:700px;
    margin:auto;
    margin-bottom:30px;
}

.btn{
    display:inline-block;
    background:white;
    color:#5B5BD6;
    padding:14px 28px;
    border-radius:40px;
    text-decoration:none;
    font-weight:bold;
}

.btn:hover{
    background:#ececff;
}

/* ==========================
   MEMBERS
========================== */

.members{
    padding:90px 8%;
}

.members h2{
    text-align:center;
    margin-bottom:40px;
}

.member-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.card{
    background:white;
    border-radius:15px;
    overflow:hidden;
    text-align:center;
    text-decoration:none;
    color:#333;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;
}

.card:hover{
    transform:translateY(-10px);
}

.card img{
    width:100%;
    height:260px;
    object-fit:cover;
}

.card h3{
    margin-top:15px;
}

.card p{
    margin:10px;
}

.card button{
    margin:20px;
    border:none;
    background:#5B5BD6;
    color:white;
    padding:10px 25px;
    border-radius:30px;
    cursor:pointer;
}

/* ==========================
   ABOUT
========================== */

.about{
    padding:80px 10%;
    text-align:center;
}

.about p{
    max-width:900px;
    margin:auto;
    line-height:1.8;
}

/* ==========================
   CONTACT
========================== */

.contact{
    padding:80px 10%;
    text-align:center;
}

.contact-box{
    margin-top:30px;
}

.contact-box p{
    margin:12px;
    font-size:18px;
}

/* ==========================
   FOOTER
========================== */

footer{
    background:#5B5BD6;
    color:white;
    text-align:center;
    padding:20px;
}

/* ==========================
   DARK MODE
========================== */

body.dark-mode{
    background:#121212;
    color:#f2f2f2;
}

body.dark-mode header{
    background:#1e1e1e;
    box-shadow:0 5px 15px rgba(0,0,0,.4);
}

body.dark-mode .logo h2{
    color:#8d8dff;
}

body.dark-mode nav a{
    color:#f2f2f2;
}

body.dark-mode nav a:hover{
    color:#8d8dff;
}

body.dark-mode .members{
    background:#181818;
}

body.dark-mode .about{
    background:#202020;
}

body.dark-mode .contact{
    background:#181818;
}

body.dark-mode .card{
    background:#2b2b2b;
    color:white;
}

body.dark-mode .card button{
    background:#7070ff;
}

body.dark-mode .btn{
    background:#7070ff;
    color:white;
}

body.dark-mode footer{
    background:#101010;
}

body.dark-mode #darkModeBtn{
    background:#FFD54F;
    color:#222;
}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:768px){

header{
    flex-direction:column;
    gap:15px;
}

nav{
    flex-wrap:wrap;
    justify-content:center;
}

.hero h1{
    font-size:38px;
}

}