/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  padding: 50px 10%;
  background-color: #0d1b2a;
  color: #fff;
}

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

.hero-text h2 {
  font-size: 1.5rem;
  margin: 10px 0;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background: #00f0ff;
  color: #0d1b2a;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #00b8cc;
}

.social-icons a {
  margin: 10px;
  color: #00f0ff;
  font-size: 20px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #fff;
}

/* Profile Image Floating */
.hero-img {
  position: relative;
}

.profile-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* === Navbar Styling === */
nav {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(10, 25, 47, 0.95); /* biru navy transparan */
  display: flex;
  justify-content: space between;
  align-items: center;
  padding: 12px 50px; /* Padding kiri dan kanan untuk seluruh navbar */
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Logo */
nav .logo {
  font-size: 22px;
  font-weight: 700;
  color: #00f7ff;
  letter-spacing: 1px;
  text-decoration: none;
  /* Menambahkan sedikit margin kanan agar tidak terlalu dekat dengan menu */
}

/* Menu */
nav ul {
  display: flex;
  gap: 60px; /* Jarak antar item menu */
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
}

nav ul li a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: all 0.3s ease;
}

/* Hover effect garis bawah animasi */
nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #00f7ff;
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: #00f7ff;
}

nav ul li a:hover::after {
  width: 100%;
}

/* === Tambahan untuk memastikan responsivitas === */
/* Anda mungkin perlu menambahkan ini jika masalah terjadi di layar kecil */
@media (max-width: 768px) { /* Sesuaikan nilai 768px jika perlu */
  nav {
    padding: 12px 20px; /* Kurangi padding di layar kecil */
  }

  nav .logo {
    font-size: 18px; /* Kecilkan ukuran font logo */
  }

  nav ul {
    gap: 0px; /* Kurangi jarak antar menu di layar kecil */

  }

  nav ul li a {
    font-size: 18px; /* Kecilkan ukuran font menu */
  }
}

.wave-icon {
  display: inline-block;
  animation: wave 2.5s infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}
