/* 
  Custom styles that cannot be handled by Tailwind utilities alone.
*/

/* Font Stack matching Figma: Helvetica Neue first */
body {
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Offset untuk sticky navbar (80px nav + 20px extra) */
}

/* Optional: Improve text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base responsiveness helpers */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

#app {
  overflow-x: hidden;
}

/* Navigation responsiveness */
nav ul {
  flex-wrap: wrap;
  justify-content: center;
}

/* Mobile menu animation */
#mobile-menu {
  transition: max-height 0.25s ease, opacity 0.2s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobile-menu.is-open {
  max-height: 420px;
  opacity: 1;
}

@media (max-width: 1024px) {
  #hero {
    gap: 48px !important;
  }

  #hero h1 {
    font-size: 56px !important;
    line-height: 1.1 !important;
    text-align: center !important;

  }

  #about h2,
  #modul h2,
  #skill h2,
  #timeline h2,
  #sesi h2,
  #assignment h2,
  #Link-penting h2 {
    font-size: 40px !important;
    line-height: 1.2 !important;
    width: auto !important;
  }

  #timeline .relative,
  #assignment .relative {
    height: auto !important;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  nav {
    height: auto !important;
  }

  nav ul {
    gap: 12px;
    padding: 10px 0;
  }

  nav a {
    font-size: 14px;
  }

  #hero {
    margin-top: 24px !important;
  }

  #hero h1 {
    font-size: 40px !important;
    line-height: 1.1 !important;
  }

  #hero > div:last-child {
    width: 100% !important;
    max-width: 420px;
  }

  #about article {
    gap: 20px;
  }

  #about article > div:last-child {
    width: 100% !important;
    height: auto !important;
    margin-left: 0 !important;
    aspect-ratio: 16 / 9;
  }

  #skill .relative.w-full {
    height: auto !important;
    aspect-ratio: 16 / 9;
    min-height: 280px;
  }

  #assignment .absolute.inset-0.p-8 {
    padding: 20px !important;
  }
}

@media (max-width: 640px) {
  #about h2,
  #modul h2,
  #skill h2,
  #timeline h2,
  #sesi h2,
  #assignment h2,
  #Link-penting h2 {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }

  #modul p,
  #skill p,
  #timeline p,
  #sesi p,
  #assignment p,
  #Link-penting p {
    font-size: 16px !important;
  }

  #Link-penting a {
    align-items: flex-start;
  }
}
