/* ==========================================================================
   PRITI YADAV PORTFOLIO - RESPONSIVE STYLES
   Clean Mobile, Tablet & Desktop Layout Rules
   ========================================================================== */

/* --- Tablet / Medium Screens (max-width: 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }

  section {
    padding: 72px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

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

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

  .hero-visual-wrapper {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }

  .about-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

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

  .timeline-section-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* --- Mobile Landscape & Small Tablet (max-width: 860px) --- */
@media (max-width: 860px) {
  /* Mobile Navigation Drawer */
  .mobile-nav-toggle {
    display: flex;
  }

  .nav-desktop {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(85vw, 340px);
    height: 100vh;
    height: 100dvh;
    background: #FFFFFF;
    border-left: 1px solid var(--border-light);
    box-shadow: -10px 0 35px rgba(23, 23, 23, 0.12);
    padding: 85px 28px 36px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 105;
    overflow-y: auto;
  }

  .nav-desktop.open {
    right: 0;
  }

  .nav-links-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .nav-link {
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    padding: 8px 0;
  }

  .nav-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
  }

  .nav-actions .btn {
    width: 100%;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* Projects & Marketing Grids */
  .projects-grid, .marketing-grid {
    grid-template-columns: 1fr;
  }

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

  .certificates-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* --- Mobile Phones (max-width: 600px) --- */
@media (max-width: 600px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  section {
    padding: 56px 0;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 52px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-headline {
    font-size: 15.5px;
  }

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

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

  .hero-socials {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-profile-container {
    max-width: 310px;
  }

  .hero-profile-card {
    padding: 8px;
    border-radius: 20px;
  }

  .hero-badge-pill {
    padding: 5px 10px;
    font-size: 11px;
    bottom: 8px;
    left: 8px;
  }

  .about-top-grid {
    gap: 20px;
    margin-bottom: 24px;
  }

  .about-photo-card {
    padding: 10px;
    max-width: 100%;
  }

  .about-goals-box {
    padding: 16px;
  }

  .about-narrative-card {
    padding: 24px 18px;
  }

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

  .about-metrics-bar {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .metric-item {
    padding: 16px 10px;
  }

  .metric-number {
    font-size: 22px;
  }

  .skill-category-card {
    padding: 20px 16px;
  }

  .marketing-card-body, .project-card-body {
    padding: 18px;
  }

  .marketing-card-actions, .project-card-actions {
    flex-direction: column;
  }

  .marketing-card-actions .btn, .project-card-actions .btn {
    width: 100%;
  }

  .timeline-column {
    padding: 24px 18px;
  }

  .timeline-track {
    padding-left: 20px;
  }

  .timeline-node {
    left: -20px;
    width: 12px;
    height: 12px;
  }

  .resume-cta-card {
    padding: 36px 18px;
  }

  .resume-cta-btns {
    flex-direction: column;
    width: 100%;
  }

  .resume-cta-btns .btn {
    width: 100%;
  }

  .contact-info-panel, .contact-form-panel {
    padding: 24px 18px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
  }

  .modal-container {
    padding: 22px 16px;
  }
}
