/* ==========================================================================
   RESPONSIVE DESIGN & MEDIA QUERIES
   ========================================================================== */

/* --- Tablet / Medium Screen (< 1024px) --- */
@media screen and (max-width: 1024px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .section {
    padding: 4.5rem 0;
  }

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

  /* Offer Section Stacked */
  .offer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .offer-visual-box {
    display: none; /* Hide static image on tablet/mobile matching reference site */
  }

  .offer-deck-stack {
    max-width: 500px;
    height: 420px;
  }

  .offer-dots-row {
    display: flex;
  }

  /* About Grid */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-card-left {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  .about-content-right {
    text-align: center;
    align-items: center;
  }

  .stats-bar-grid, .socials-pill-row {
    justify-content: center;
  }
}

/* --- Mobile / Small Screens (< 768px) --- */
@media screen and (max-width: 768px) {
  .nav-wrapper {
    top: 1rem;
    padding: 0 1rem;
  }

  .navbar {
    width: 100%;
    padding: 0.4rem 0.6rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  /* Hero Mobile */
  .hero-section {
    padding: 6.5rem 0 3.5rem;
    min-height: auto;
  }

  .hero-giant-word {
    font-size: clamp(2.3rem, 11vw, 3.8rem);
    letter-spacing: -0.02em;
  }

  .hero-avatar-wrapper {
    width: clamp(160px, 45vw, 220px);
    top: 50%;
  }

  .hero-spacer {
    height: clamp(120px, 24vw, 160px);
  }

  .hero-bottom-row {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .hero-text-col {
    text-align: center;
  }

  .hero-action-col {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }

  /* Projects Mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-thumb-box {
    aspect-ratio: 16 / 10;
  }

  .project-card-footer {
    padding: 1rem 1.25rem;
  }

  .project-card-title {
    font-size: 0.98rem;
  }

  /* Offer Section Mobile */
  .offer-scroll-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
  }

  .offer-card-title {
    font-size: 1.2rem;
  }

  .offer-deck-stack {
    height: 420px;
  }

  /* About Card */
  .about-card-inner {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .about-avatar-box {
    width: 170px;
    height: 170px;
  }

  /* Stats Bar Mobile */
  .stats-bar-grid {
    flex-direction: column;
    width: 100%;
  }

  .stat-item {
    text-align: center;
  }

  /* Skills Mobile */
  .skill-category-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  /* Contact Card */
  .contact-container-card {
    padding: 2.5rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-pill-actions {
    flex-direction: column;
    width: 100%;
  }

  .email-copy-pill {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    font-size: 0.88rem;
  }

  /* Footer Mobile */
  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-nav-row {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-actions-col {
    align-items: flex-start;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-to-top-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
  }
}

/* --- Small Phones (< 480px) --- */
@media screen and (max-width: 480px) {
  .section-title {
    font-size: 1.85rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .hero-giant-word {
    font-size: 2.2rem;
  }

  .hero-avatar-wrapper {
    width: 150px;
  }
}
