/* ===================================================================
   RESPONSIVE DESIGN SYSTEM
   File: assets/css/responsive.css
   Deskripsi: Breakpoint untuk Tablet, Mobile & Optimalisasi Sentuhan
   =================================================================== */

/* Tablet & Medium Screens (< 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-role-wrapper {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-socials {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prestasi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Devices (< 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    height: var(--header-height);
  }

  /* Hamburger Menu Toggle */
  .mobile-toggle-btn {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 20px 24px 28px 24px;
    gap: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1rem;
  }

  /* Hero adjustments */
  .hero-section {
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 50px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-role-wrapper {
    font-size: 1.15rem;
  }

  .photo-card-container {
    width: 290px;
    height: 330px;
  }

  .badge-pos-left {
    left: -10px;
    bottom: -15px;
  }

  .badge-pos-right {
    right: -10px;
    top: -15px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.85rem;
  }

  /* Timeline adjustments on mobile */
  .timeline-line {
    left: 20px;
  }

  .timeline-marker {
    left: 4px;
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .timeline-item {
    padding-left: 54px;
    margin-bottom: 30px;
  }

  .timeline-content-card {
    padding: 20px;
  }

  .school-name {
    font-size: 1.1rem;
  }

  /* Grids to single column */
  .skills-grid,
  .projects-grid,
  .prestasi-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 20px 14px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* Small Smartphone (< 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .photo-card-container {
    width: 250px;
    height: 290px;
  }

  .floating-badge {
    padding: 6px 12px;
  }

  .badge-title {
    font-size: 0.78rem;
  }

  .badge-subtitle {
    font-size: 0.7rem;
  }

  .btn-back-to-top {
    bottom: 20px;
    left: 20px;
  }

  .toast-container {
    bottom: 20px;
    right: 20px;
    left: 20px;
  }
}

