*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
    scroll-behavior:smooth;
}

body{
    background: white;
    color:#333;
    transition:.3s;
    
}

header{
    background:#222;
    padding:15px 50px;
    position:sticky;
    top:0;
}

nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    color:white;
}

nav ul{
    display:flex;
    list-style:none;
}

nav ul li{
    margin-left:20px;
}

nav ul li a{
    color:white;
    text-decoration:none;
}

#themeBtn{
    border:none;
    background:white;
    padding:8px 12px;
    border-radius:5px;
    cursor:pointer;
}

.hero{
    height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    background-image: url(img1.jpg);
    background-repeat: no-repeat;
    background-position: end;
    background-size: cover;
    margin: 0;
    color:white;
}

.hero h1{
    font-size:3rem;
}

.hero span{
    color:yellow;
}

.btn{
    margin-top:20px;
    background:white;
    color:#333;
    padding:12px 25px;
    border-radius:5px;
    text-decoration:none;
    font-weight:bold;
}

section{
    padding:70px 10%;
}

section h2{
    text-align:center;
    margin-bottom:30px;
}

.card-text{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.card-text{
    padding:20px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    text-align:center;
    transition:.3s;
}

.card-text:hover{
    transform:translateY(-8px);
}

.card{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.card{
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    text-align:center;
    transition:.3s;
}

.card:hover{
    transform:translateY(-8px);
}




.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.cards{
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    cursor: pointer;
    text-align:center;
    transition:.3s;
}

.cards:hover{
    transform: scale(1.70);
}


form{
    max-width:500px;
    margin:auto;
    display:flex;
    flex-direction:column;
}

form input,
form textarea{
    margin:10px 0;
    padding:12px;
}

form button{
    padding:12px;
    background:#4facfe;
    color:white;
    border:none;
    cursor:pointer;
}

footer{
    background:#222;
    color:white;
    text-align:center;
    padding:20px;
}

.dark{
    background:#121212;
    color:white;
}

.dark .card{
    background:#1f1f1f;
    color:white;
}

.dark header{
    background:black;
}

.dark footer{
    background:black;
}

@media(max-width:768px){
    nav{
        flex-direction:column;
    }

    nav ul{
        margin-top:10px;
    }

    .hero h1{
        font-size:2.2rem;
    }
}
img{
    width: 200px;
    height: 200px;
}
