/* ============================================
   RESPONSIVE.CSS
============================================ */

/* ============================================
   LARGE DESKTOP
============================================ */
@media (max-width: 1280px) {

  .container {
    max-width: 1020px;
  }

}

/* ============================================
   TABLET LANDSCAPE
============================================ */
@media (max-width: 1024px) {

  /* Navbar */
  .navbar-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* JANGAN display:flex */
  .mobile-menu {
    display: flex;
  }

  /* Grid */
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    justify-items: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-image-wrap {
    order: -1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-actions,
  .hero-socials,
  .hero-stats {
    justify-content: center;
  }

  /* About */
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image-col {
    order: -1;
  }

  .about-image-wrap {
    max-width: 380px;
    margin: 0 auto;
  }

}

/* ============================================
   TABLET PORTRAIT & MOBILE
============================================ */
@media (max-width: 768px) {

  :root {
    font-size: 15px;
  }

  /* Container */
  .container,
  .container-sm {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Section */
  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
    text-align: center;
  }

  .section-title,
  .section-subtitle {
    text-align: center;
  }

  .page-header {
    padding: 7rem 0 3rem;
  }

  /* ============================================
     FORCE 1 COLUMN
  ============================================ */
  .grid-2,
  .grid-3,
  .grid-4,
  .services-grid,
  .achievement-grid,
  .blog-grid,
  .projects-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  /* SERVICES FIX */
  .services-grid {
    gap: 1.25rem;
  }

  .service-card {
    width: 100%;
  }

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

  /* ============================================
     HERO
  ============================================ */
  .hero {
    padding-top: 8rem;
    text-align: center;
  }

  .hero .container {
    width: 100%;
  }

  .hero-grid {
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3rem;
  }

  .hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
  }

  .hero-eyebrow,
  .hero-actions,
  .hero-stats,
  .hero-socials {
    justify-content: center;
  }

  .hero-tagline {
    border-left: none;
    padding-left: 0;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem) !important;
  }

  .hero-title br {
    display: none;
  }

  .hero-name-sub {
    font-size: clamp(1rem, 3vw, 1.3rem) !important;
  }

  /* ============================================
     AVATAR FIX
  ============================================ */
  .hero-image-wrap {
    width: 100%;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    position: relative;
    left: 0 !important;
    right: 0 !important;
  }

  .hero-avatar {
    width: min(260px, 80vw);
    aspect-ratio: 4 / 5;
    height: auto;

    margin-left: auto !important;
    margin-right: auto !important;

    position: relative;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }

  .hero-avatar-inner {
    font-size: clamp(4rem, 12vw, 6rem);
  }

  .hero-avatar-badge {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-float-1,
  .hero-float-2 {
    display: none;
  }

  /* Stats */
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .hero-stat-divider {
    display: none;
  }

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

  /* Buttons */
  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .btn,
  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .btn-lg {
    padding: 0.95rem 2rem;
    font-size: 0.95rem;
  }

  /* Timeline */
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-date-col {
    text-align: left;
  }

  .timeline-line {
    display: none;
  }

  /* Gallery */
  .gallery-masonry {
    columns: 2;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links,
  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Navbar */
  .navbar-inner {
    padding: 0 1rem;
  }

  /* Back To Top */
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
  }

}

/* ============================================
   MOBILE
============================================ */
@media (max-width: 540px) {

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

  .gallery-masonry {
    columns: 1;
  }

  .filter-tabs {
    gap: 0.375rem;
  }

  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
  }

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

  .modal-overlay {
    padding: 1rem;
  }

  .modal-content {
    border-radius: var(--radius-lg);
  }

}

/* ============================================
   VERY SMALL SCREEN
============================================ */
@media (max-width: 380px) {

  .container {
    padding: 0 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

}
