﻿/* ============================================
   RESPONSIVE — Ahmed Elkelany Portfolio
   Tablet and mobile breakpoints
   ============================================ */

/* ---- TABLET (768-1024px) ---- */
@media (max-width: 1024px) {
  :root {
    --container-padding: var(--space-8);
  }

  .section {
    padding: var(--space-16) 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-10);
  }

  .hero-text {
    max-width: 100%;
  }

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

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

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

  .hero-visual {
    height: 350px;
  }

  .geo-ring-1 { width: 280px; height: 280px; }
  .geo-ring-2 { width: 220px; height: 220px; }
  .geo-ring-3 { width: 160px; height: 160px; }

  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ---- MOBILE (max 768px) ---- */
@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-5);
  }

  html {
    scroll-padding-top: 20px;
  }

  .section {
    padding: var(--space-12) 0;
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  /* Hide desktop nav, show mobile */
  .floating-nav {
    display: none !important;
  }

  .mobile-nav {
    display: flex;
  }

  .mobile-menu-sheet {
    display: block;
  }

  .mobile-menu-overlay {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: var(--space-16);
    padding-bottom: var(--space-12);
  }

  .hero-name {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-title {
    font-size: var(--text-lg);
    justify-content: center;
  }

  .hero-tagline {
    font-size: var(--text-base);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-visual {
    height: 250px;
  }

  .geo-ring-1 { width: 220px; height: 220px; }
  .geo-ring-2 { width: 170px; height: 170px; }
  .geo-ring-3 { width: 120px; height: 120px; }

  .hero-center-icon {
    width: 60px;
    height: 60px;
  }

  .hero-center-icon svg {
    width: 28px;
    height: 28px;
  }

  .hero-meta {
    flex-direction: column;
    gap: var(--space-2);
    align-items: center;
  }

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

  /* Skills */
  .skills-tabs {
    gap: var(--space-2);
  }

  .skills-tab {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }

  /* Experience */
  .exp-header {
    flex-direction: column;
  }

  .experience-card {
    padding: var(--space-6);
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .project-card-image {
    height: 160px;
  }

  /* Certs */
  .cert-card {
    min-width: 250px;
  }

  /* Education */
  .education-card {
    padding: var(--space-6);
  }

  .edu-meta {
    flex-direction: column;
    gap: var(--space-3);
  }

  /* Resume */
  .resume-panel {
    padding: var(--space-6);
  }

  /* Contact */
  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  /* Modal */
  .modal {
    width: 95%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
  }

  .modal-body {
    padding: var(--space-6);
  }

  .project-modal-body {
    padding: var(--space-6);
  }

  .project-modal-image {
    height: 180px;
  }

  /* Footer */
  .site-footer {
    padding: var(--space-8) 0 calc(var(--space-20) + var(--space-8));
  }
}

/* ---- SMALL MOBILE (max 480px) ---- */
@media (max-width: 480px) {
  .hero-name {
    font-size: 1.85rem;
  }

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

  .exploring-topics {
    flex-direction: column;
    align-items: center;
  }

  .languages-row {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }

  .resume-ctas {
    flex-direction: column;
    align-items: center;
  }

  .resume-ctas .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
