/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f172a; /* Dark navy background */
    color: #e2e8f0;
    line-height: 1.6;
  }
  
  /* Navbar */
  nav {
    background-color: rgba(17, 24, 39, 0.9); /* Darker semi-transparent navbar */
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .nav-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: #63b3ed; /* Light blue brand color */
    text-decoration: none;
    transition: transform 0.3s ease-in-out;
  }
  
  .nav-brand:hover {
    transform: scale(1.05);
  }
  
  .nav-menu {
    display: flex;
    list-style: none;
  }
  
  .nav-menu li {
    margin-left: 1.5rem;
  }
  
  .nav-link {
    color: #cbd5e0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: color 0.3s ease-in-out;
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: #63b3ed;
  }
  
  .nav-toggle {
    background: none;
    border: none;
    color: #63b3ed;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
  }
  
  /* Hero Section */
  header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
  }
  
  header video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
  }
  
  header .hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
  }
  
  header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  header p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }
  
  .hero-btn {
    background-color: #63b3ed;
    color: #0f172a;
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
  
  .hero-btn:hover {
    background-color: #4299e1;
  }
  
  /* Sections */
  section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #63b3ed;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  /* Profile Section */
  #profile img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #63b3ed;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  
  #profile p {
    margin-bottom: 1rem;
  }
  
  .social-links {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }
  
  .social-links a {
    margin: 0 0.5rem;
    color: #cbd5e0;
    transition: transform 0.3s ease-in-out;
  }
  
  .social-links a:hover {
    transform: scale(1.1);
    color: #63b3ed;
  }
  
  .social-links a img {
    width: 24px;   /* Sesuaikan ukuran lebar gambar */
    height: 24px;  /* Sesuaikan ukuran tinggi gambar */
    object-fit: contain; /* Agar gambar tidak terdistorsi */
    display: block; /* Menghilangkan spasi tambahan di bawah gambar */
  }
  
  /* CV Section */
  #cv iframe {
    width: 100%;
    height: 600px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  
  /* Skills Section */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .skill-item {
    background-color: #1a202c;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  
  .skill-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
  }
  
  /* Gallery and Certificates */
  .grid-gallery,
  .grid-certificates,
  .grid-organization {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .grid-item {
    background-color: #1a202c;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  
  .grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  /* Footer */
  footer {
    background-color: #0f172a;
    text-align: center;
    padding: 1rem;
    color: #718096;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .nav-menu {
      display: none;
      flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 0.5rem 0;
  }

  .nav-toggle {
    display: block;
  }

  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

/* Tambahan untuk efek hover yang lebih halus */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #63b3ed;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
}

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Efek shadow yang lebih halus */
.hero-btn, .skill-item, .grid-item, #profile img, #cv iframe {
    transition: box-shadow 0.3s ease-in-out;
}

.hero-btn:hover, .skill-item:hover, .grid-item:hover, #profile img:hover, #cv iframe:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}
