@import url('https://fonts.googleapis.com/css2?family=Handlee&display=swap');

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

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

h1, h2, h3 {
  margin-bottom: 10px;
  color: #0a3d62;
}

#home {
  padding: 60px 20px;
  max-width: 100%;
  margin: auto;
}

#about, #projects, #contact {
  padding: 60px 20px;
  max-width: 80%;
  margin: auto;
}

/* ================= NAVBAR ================= */
header {
  background: #87cefa;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

nav a:hover {
  text-decoration: underline;
}

.nav-brand {
  font-family: "Handlee", cursive;
  text-decoration: none;
  font-weight: bold;
  font-size: 2rem;
  font-style: normal;
  color: #0a3d62;
  margin-left: 15px;
}

.nav-link {
  margin-left: 15px;
  text-decoration: none;
  color: #0a3d62;
  font-weight: bold;
}

#nav-toggle {
  display: none;
}
/* ================= HERO ================= */
.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(to right, #87cefa, #b0e0e6);
}

.hero h1 {
  font-size: 3rem;
}

.hero p {
  font-size: 1.2rem;
}

.btn-about-me {
  background-color: #074a8b;
  border: none;
  border-radius: 15px;
  margin-top: 30px;
  padding: 20px;
}

.btn-about-me a {
  text-decoration: none;
  color: #87cefa;
}

.btn-about-me a:hover{
  color: white;
}

/* ================= ABOUT ================= */
.about {
  display: flex;
  gap: 30px;
  align-items: center;
}

.about img {
  width: 250px;
  max-width: 100%;
  border-radius: 10px;
}

.about p {
  text-align: justify;
}

/* ================= PROJECTS ================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 350px;
  gap: 20px;
}

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

.big {
  grid-column: span 2;
}

.card img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
}


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

/* ================= CONTACT ================= */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

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

button:hover {
  background: #074a8b;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 20px;
  background: #87cefa;
  margin-top: 40px;
}

footer a {
  margin: 0 10px;
  color:#0a3d62;
  text-decoration:none;
  font-weight:bold;
}


/* ================= RESPONSIVE ================= */
/* Tablet */
@media (max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2rem;
  }

  #hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    list-style: none;
  }

  #hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #0a3d62;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  #nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 55px;
    right: 20px;
    width: 200px;
    background: #87cefa;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px 20px 20px;
    z-index: 99;
  }

  #nav-links a {
    margin-left: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(10, 61, 98, 0.2);
  }

  #nav-toggle:checked ~ #nav-links {
    display: flex;
  }

  #nav-toggle:checked ~ #hamburger-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  #nav-toggle:checked ~ #hamburger-btn span:nth-child(2) {
    opacity: 0;
  }

  #nav-toggle:checked ~ #hamburger-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Ponsel */
@media (max-width: 400px) {
  .projects-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .big{
    grid-column: span 1;
  }
}
