*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, Helvetica, sans-serif;
}

body{
  background:#f4f7ff;
  color:#222;
  transition:0.4s;
}

header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 10%;
  background:white;
  box-shadow:0 2px 10px rgba(0,0,0,0.1);
  position:sticky;
  top:0;
}

.logo{
  font-size:24px;
  font-weight:bold;
  color:#4f46e5;
}

nav a{
  margin:0 15px;
  text-decoration:none;
  color:#333;
  font-weight:bold;
  transition:0.3s;
}

nav a:hover{
  color:#4f46e5;
}

#darkModeBtn{
  padding:10px 15px;
  border:none;
  border-radius:50%;
  background:#4f46e5;
  color:white;
  cursor:pointer;
  font-size:18px;
}

.hero{
  min-height:90vh;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:50px 10%;
}

.hero-text{
  width:50%;
}

.hero-text h1{
  font-size:55px;
  margin-bottom:20px;
}

.hero-text span{
  color:#4f46e5;
}

.hero-text p{
  font-size:18px;
  line-height:1.7;
  margin-bottom:30px;
}

.btn{
  padding:15px 25px;
  background:#4f46e5;
  color:white;
  text-decoration:none;
  border-radius:10px;
  transition:0.3s;
}

.btn:hover{
  background:#372fcf;
}

.hero-image img{
  width:350px;
  animation:float 3s ease-in-out infinite;
}

@keyframes float{
  0%{
    transform:translateY(0);
  }

  50%{
    transform:translateY(-15px);
  }

  100%{
    transform:translateY(0);
  }
}

.about,
.contact{
  padding:80px 10%;
}

.about h1,
.contact h1{
  margin-bottom:30px;
  font-size:40px;
  color:#4f46e5;
}

.card{
  background:white;
  padding:30px;
  border-radius:15px;
  box-shadow:0 5px 20px rgba(0,0,0,0.1);
}

.card ul{
  margin-top:15px;
  padding-left:20px;
}

form{
  display:flex;
  flex-direction:column;
  gap:20px;
  background:white;
  padding:30px;
  border-radius:15px;
  box-shadow:0 5px 20px rgba(0,0,0,0.1);
}

input,
textarea{
  padding:15px;
  border:1px solid #ccc;
  border-radius:10px;
  font-size:16px;
}

textarea{
  height:150px;
}

form button{
  padding:15px;
  border:none;
  background:#4f46e5;
  color:white;
  border-radius:10px;
  cursor:pointer;
  font-size:16px;
}

form button:hover{
  background:#372fcf;
}

#hasil{
  margin-top:20px;
  font-weight:bold;
}

/* DARK MODE */

.dark-mode{
  background:#111827;
  color:white;
}

.dark-mode header{
  background:#1f2937;
}

.dark-mode nav a{
  color:white;
}

.dark-mode .card,
.dark-mode form{
  background:#1f2937;
  color:white;
}

.dark-mode input,
.dark-mode textarea{
  background:#111827;
  color:white;
  border:1px solid #555;
}

/* RESPONSIVE */

@media(max-width:768px){

  .hero{
    flex-direction:column;
    text-align:center;
  }

  .hero-text{
    width:100%;
  }

  .hero-image img{
    width:250px;
    margin-top:30px;
  }

  nav{
    display:none;
  }
}