*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Segoe UI, Arial;
}

body{
background:linear-gradient(135deg,#ff9a9e,#fad0c4,#fbc2eb,#a6c1ee);
color:#333;
}

/* NAVBAR */

nav{
display:flex;
justify-content:center;
background:#111;
padding:15px;
}

nav a{
color:white;
margin:0 15px;
text-decoration:none;
font-weight:bold;
transition:0.3s;
}

nav a:hover{
color:#ffcc00;
}

/* HERO */

.hero{
height:350px;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
color:white;
background:linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)),
url("https://images.unsplash.com/photo-1590050752117-238cb0fb12b1");
background-size:cover;
}

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

/* CONTAINER */

.container{
width:85%;
margin:auto;
padding:40px 0;
}

/* CARDS */

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

.card{
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,0.2);
transition:0.3s;
}

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

/* HEADINGS */

h2{
margin-bottom:15px;
color:#ff4e50;
}

/* FORM */

form{
background:white;
padding:25px;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

input,textarea{
width:100%;
padding:10px;
margin:10px 0;
border-radius:5px;
border:1px solid #ccc;
}

button{
background:#ff4e50;
color:white;
padding:10px 20px;
border:none;
border-radius:5px;
cursor:pointer;
}

button:hover{
background:#ff6f61;
}

/* FOOTER */

footer{
text-align:center;
background:#111;
color:white;
padding:15px;
margin-top:40px;
}
.dark{
background:black;
color:white;
}

.dark nav{
background:#111;
}

.dark .container{
background:#222;
}

.dark footer{
background:#111;
}
