/* ==========================================================================
   VINSENSIUS ARKA - RESPONSIVE MEDIA QUERIES
   Mobile-First Breakpoint Adaptations
   ========================================================================== */

/* ==========================================================================
   1. Large Tablets & Small Laptops (max-width: 1200px)
   ========================================================================== */
@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .section-container {
    gap: 2.5rem;
  }

  #profile {
    gap: 3rem;
  }
}

/* ==========================================================================
   2. Tablets & Landscape Phones (max-width: 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {
  #profile {
    flex-direction: column-reverse;
    gap: 2.5rem;
    padding-top: 1.5rem;
    min-height: auto;
  }

  .section__pic-container {
    width: clamp(240px, 45vw, 320px);
    height: clamp(240px, 45vw, 320px);
    margin: 0 auto;
  }

  .section-container {
    flex-direction: column;
    gap: 2rem;
  }

  .about-pic-wrapper {
    width: clamp(240px, 45vw, 320px);
    height: clamp(240px, 45vw, 320px);
    margin: 0 auto;
  }

  #experience .experience-details-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .policy-highlight-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .policy-doc-container {
    padding: 2rem 1.5rem;
  }
}

/* ==========================================================================
   3. Small Tablets & Phones (max-width: 680px)
   ========================================================================== */
@media screen and (max-width: 680px) {
  section {
    padding: 3rem 1.25rem;
  }

  .title {
    margin-bottom: 2rem;
  }

  .section__text__p2 {
    font-size: 1.35rem;
  }

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

  .article-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .contact-card {
    padding: 1.1rem 1.25rem;
  }

  .contact-card-value {
    font-size: 0.92rem;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .btn-container {
    flex-direction: column;
    align-items: center;
  }

  .project-btn-container {
    flex-direction: column;
    align-items: stretch;
  }

  .project-btn-container .btn,
  .project-btn-container .badge-coming-soon {
    width: 100%;
    max-width: none;
    text-align: center;
    justify-content: center;
  }

  /* Synchronized Floating Action Buttons on Mobile */
  .floating-actions {
    bottom: 18px;
    right: 18px;
  }

  .float,
  .whatsapp-float-btn {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    bottom: 18px;
    right: 18px;
  }

  .floating-actions .back-to-top-btn {
    bottom: 58px; /* 48px WhatsApp + 10px gap */
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  /* Privacy Policy Mobile Rules */
  .policy-wrapper {
    padding: 1.5rem 1rem 3rem;
  }

  .policy-doc-container {
    padding: 1.5rem 1.2rem;
    border-radius: var(--radius-md);
  }

  .policy-block h2 {
    font-size: 1.15rem;
    gap: 0.5rem;
  }

  .policy-block p,
  .policy-block li {
    font-size: 0.92rem;
  }

  .policy-permission-grid {
    grid-template-columns: 1fr;
  }

  .third-party-card {
    padding: 1rem;
  }

  .tp-info {
    gap: 0.8rem;
  }

  .tp-info i {
    font-size: 1.3rem;
  }

  .deletion-instruction-card {
    padding: 1.25rem;
  }

  .developer-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .policy-action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .policy-action-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  footer.policy-footer {
    height: auto;
    margin: 0;
    padding: 2rem 1rem;
  }
}
