/* ==========================================================
   RESET & BASE STYLES
   ========================================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html {
    scroll-behavior: smooth;
  }
  body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
  }
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  /* ==========================================================
     NAVIGATION BAR (STICKY TOP)
     ========================================================== */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
  }
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav-logo h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  /* ==========================================================
     NAVIGATION MENU (DESKTOP MODE)
     ========================================================== */
  .nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
  }
  .nav-menu a {
    transition: 0.3s ease;
  }
  .nav-menu a:hover,
  .nav-menu a:active {
    color: #667eea;
    font-weight: bold;
  }
  .nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
  }
  .nav-menu li a:hover {
    color: #667eea;
  }
  .nav-menu li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
  }
  .nav-menu li a:hover::after {
    width: 100%;
  }
  /* ==========================================================
     HAMBURGER BUTTON (MOBILE MODE)
     ========================================================== */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
  }
  .hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  /* ==========================================================
     RESPONSIVE NAVIGATION (MOBILE / TABLET)
     ========================================================== */
  @media (max-width: 768px) {
    .nav-menu {
      position: absolute;
      top: 70px;
      right: 0;
      background: white;
      flex-direction: column;
      width: 200px;
      text-align: right;
      padding: 1rem;
      display: none;
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
      border-radius: 0 0 0 15px;
    }
    .nav-menu.show {
      display: flex;
      animation: slideDown 0.3s ease;
    }
    .hamburger {
      display: flex;
    }
    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  }
  /* ==========================================================
     HERO SECTION (BERANDA)
     ========================================================== */
  .beranda {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background-attachment: fixed;
  }
  .beranda::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
  }
  .beranda-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    background: transparent;
  }
  .beranda-text {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
  }
  .beranda-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  .typing-text {
    border-right: 3px solid white;
    animation: blink 1s infinite;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  @keyframes blink {
    0%,
    50% {
      border-color: white;
    }
    51%,
    100% {
      border-color: transparent;
    }
  }
  .beranda-text p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }
  .beranda-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .beranda-buttons a {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid white;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    min-height: 48px;
    backdrop-filter: blur(10px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }
  .beranda-buttons a:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-shadow: none;
  }
  /* ==========================================================
     MEDIA CONTAINERS (VIDEO & AUDIO)
     ========================================================== */
  .beranda-media {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    max-width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-15deg);
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
    aspect-ratio: 16 / 9;
    width: 100%;
  }
  .video-container:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
    cursor: pointer;
  }
  .video-container video {
    width: 100%;
    height: 100%;
    display: block;
    color: #ffffff;
    object-fit: cover;
  }
  /* Enhanced audio controls for mobile compatibility */
  .audio-controls {
    position: relative;
    z-index: 3;
    margin-top: 2rem;
  }
  .audio-player {
    border-radius: 20px;
    overflow: hidden;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: slideInBottom 1s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
    margin: 0 auto;
  }
  .audio-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
  }
  .audio-info span {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 500;
  }
  .custom-audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
  }
  .play-pause-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
  }
  .play-pause-btn:hover {
    background: white;
    color: #667eea;
    transform: scale(1.1);
  }
  .progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    min-width: 100px;
  }
  .progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.1s ease;
  }
  .volume-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .volume-slider {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
  }
  .volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
  }
  .volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
  }
  #backgroundAudio {
    display: none;
  }
  .video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
    color: white;
    padding: 2rem;
    pointer-events: none;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  .video-container:hover .video-overlay {
    transform: translateY(0);
  }
  .video-overlay h3 {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    color: #ffffff !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
    font-weight: 600;
  }
  .video-container:hover .video-overlay h3 {
    opacity: 1;
    transform: translateY(0);
  }
  /* ==========================================================
     SECTION STYLES
     ========================================================== */
  section {
    padding: 5rem 0;
  }
  .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  /* ==========================================================
     ABOUT SECTION
     ========================================================== */
  .about {
    background: linear-gradient(to right, #eef2f3, #d9e4f5);
  }
  .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  .about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
  }
  .skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    min-height: 60px;
  }
  .skill-item.animate-in {
    opacity: 1;
    transform: translateY(0);
  }
  .skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }
  .skill-item i {
    font-size: 2rem;
    color: #667eea;
    min-width: 32px;
  }
  .floating-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: floatImage 3s ease-in-out infinite;
    transition: opacity 0.3s ease;
  }
  .floating-image.loaded {
    opacity: 1;
  }
  @keyframes floatImage {
    0%,
    100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  /* ==========================================================
     MEDIA SECTION
     ========================================================== */
  #media {
    background: linear-gradient(to left, #eef2f3, #d9e4f5);
  }
  .media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .media-item {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
  }
  .media-item.animate-in {
    opacity: 1;
    transform: translateY(0);
  }
  .media-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
  .media-item h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
  }
  .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 1rem;
  }
  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
  }
  .image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
  }
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  .gallery-item:hover img {
    transform: scale(1.1);
  }
  .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  .gallery-item:hover .gallery-overlay {
    transform: translateY(0);
  }
  /* ==========================================================
     RESUME SECTION
     ========================================================== */
  .resume {
    background: linear-gradient(to right, #eef2f3, #d9e4f5);
  }
  .resume-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
  }
  .resume-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
  }
  .resume-info p {
    color: #666;
    margin-bottom: 2rem;
  }
  .pdf-container {
    height: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  .pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
  /* ==========================================================
     FOOTER
     ========================================================== */
  .footer {
    background: #333;
    color: white;
    padding: 2rem 0;
  }
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .social-links {
    display: flex;
    gap: 1rem;
  }
  .social-links a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
  }
  .social-links a:hover {
    color: #667eea;
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
  }
  /* ==========================================================
     ANIMATIONS
     ========================================================== */
  @keyframes float {
    0%,
    100% {
      transform: translateY(0px) rotate(0deg);
    }
    50% {
      transform: translateY(-20px) rotate(1deg);
    }
  }
  @keyframes slideInBottom {
    from {
      opacity: 0;
      transform: translateY(50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  /* ==========================================================
     MOBILE RESPONSIVE STYLES
     ========================================================== */
  @media (max-width: 1024px) {
    .beranda-content,
    .about-content,
    .media-grid,
    .resume-content {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    .beranda-text {
      text-align: center;
      background: rgba(0, 0, 0, 0.25);
      padding: 1.5rem;
    }
    .video-container {
      transform: none;
    }
    .video-container:hover {
      transform: scale(1.02);
    }
  }
  @media (max-width: 768px) {
    .container {
      padding: 0 15px;
    }
    section {
      padding: 3rem 0;
    }
    .section-title {
      font-size: 2rem;
      margin-bottom: 2rem;
    }
    .beranda-text h1 {
      font-size: 2.5rem;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    }
    .beranda-text p {
      font-size: 1.2rem;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    }
    .beranda-buttons {
      justify-content: center;
    }
    .beranda-buttons a {
      padding: 10px 20px;
      font-size: 0.9rem;
    }
    /* Mobile-optimized audio player */
    .audio-player {
      max-width: 100%;
      padding: 1rem;
      background: rgba(0, 0, 0, 0.4);
    }
    .custom-audio-controls {
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    .volume-container {
      order: 3;
      width: 100%;
      justify-content: center;
    }
    .volume-slider {
      width: 120px;
    }
    .skills {
      grid-template-columns: 1fr;
    }
    .skill-item {
      padding: 0.8rem;
    }
    .skill-item i {
      font-size: 1.5rem;
    }
    .media-item {
      padding: 1.5rem;
    }
    .image-gallery {
      grid-template-columns: 1fr;
    }
    .pdf-container {
      height: 400px;
    }
    .footer-content {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
    }
    .beranda::before {
      animation: none;
    }
    .floating-image {
      animation: none;
    }
    .video-container:hover {
      transform: none;
    }
  }
  @media (max-width: 480px) {
    .nav-container {
      padding: 0 15px;
    }
    .beranda {
      padding-top: 70px;
    }
    .beranda-content {
      padding: 0 15px;
      gap: 1.5rem;
    }
    .beranda-text h1 {
      font-size: 2rem;
      line-height: 1.3;
      text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    }
    .beranda-text p {
      font-size: 1rem;
      margin-bottom: 1.5rem;
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
    .beranda-buttons {
      flex-direction: column;
      align-items: center;
    }
    .beranda-buttons a {
      width: 100%;
      max-width: 250px;
      justify-content: center;
    }
    .section-title {
      font-size: 1.8rem;
    }
    .media-item,
    .skill-item {
      padding: 1rem;
    }
    .pdf-container {
      height: 300px;
    }
    @media (prefers-reduced-motion: reduce) {
      * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }
  }  