/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Times New Roman", sans-serif;
}

/* Warna utama */
:root {
  --main-color: #4f70d1ff;
  --hover-color: #e15600ff;
  --dark-bg: #7cc4fcff;
  --light-bg: #fff;
  --text-color: #292121ff;
}
body {
  /* background-color: #e3ebf1ff; */
}

/* Navbar */
.navbar {
  background-color: var(--dark-bg);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  flex-wrap: wrap;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.navbar h1 {
  font-size: 22px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-links li a:hover {
  background-color: var(--main-color);
  color: black;
}

/* Tombol Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 26px;
  transition: transform 0.3s ease;
}

.hamburger:hover {
  transform: scale(1.1);
}

/* Profile */
.profile {
  text-align: center;
  margin: 10px 0;
  padding: 0 20px;
}

.profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--main-color);
  transition: transform 0.5s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
}

.profile h2 {
  margin-top: 15px;
  font-size: 35px;
  color: #2f231cff;
}

.profile p {
  color: var(--text-color);
  margin-top: 10px;
  font-size: 15px;
}

/* Menu Section */
.menu-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 50px 20px;
}

.menu-card {
  background-color: var(--light-bg);
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 200px;
  text-align: center;
  padding: 20px;
  transition: all 0.4s ease;
}

.menu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.menu-card img {
  border-radius: 12px;
  width: 100%;
  /* height: 150px; */
  object-fit: cover;
}

.menu-card h3 {
  margin: 15px 0;
  font-size: 18px;
}

.menu-card button {
  background-color: var(--main-color);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
}

.menu-card button:hover {
  background-color: var(--hover-color);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Tombol versi link (<a>) */
.btn {
  display: inline-block;
  background-color: var(--main-color);
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--hover-color);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Video Section */
.video-section {
  text-align: center;
  padding: 10px 20px;
  background-color: #fafafa;
}

.video-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #292121ff;
}

.video-container {
  position: relative;
  width: 80%;
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* rasio 16:9 */
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.video-container iframe:hover {
  transform: scale(1.02);
}

.youtube-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #96b4d8ff; /* warna khas YouTube */
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.youtube-button:hover {
  background-color: #baf8beff;
  transform: scale(1.05);
}

/* Copyright Section */
.copyright-section {
  text-align: center;
  background-color: #f1f1f1;
  padding: 20px;
  font-size: 15px;
  color: #555;
  border-top: 1px solid #ddd;
}

.copyright-section strong {
  color: #f96008ff;
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  padding: 25px;
  text-align: center;
  margin-top: auto;
  /* position: fixed; */
  bottom: 0;
  left: 0;
  width: 100%;
  /* margin-button: 10px; */
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.footer a {
  color: white;
  margin: 0 15px;
  font-size: 22px;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--main-color);
  transform: rotate(15deg) scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 65px;
    right: 0;
    background-color: var(--dark-bg);
    width: 100%;
    overflow: hidden;
    max-height: 0;
    text-align: center;
    transition: max-height 0.4s ease-out;
  }

  .nav-links.active {
    max-height: 200px;
    transition: max-height 0.4s ease-in;
  }

  .nav-links li {
    padding: 10px 0;
  }

  .profile-pic {
    width: 120px;
    height: 120px;
  }

  .menu-section {
    flex-direction: column;
    align-items: center;
  }

  .menu-card {
    width: 90%;
  }

  .footer a {
    margin: 0 10px;
    font-size: 20px;
  }
}

/* Animasi hamburger jadi X */
.hamburger.open i::before {
  content: "\f00d"; /* icon fa-times */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
