/* ================================================
   AHLAME UGC PORTFOLIO — Responsive Design
   Full responsive for all devices
   ================================================ */

/* ================================================
   LARGE DESKTOP (min-width: 1400px)
   ================================================ */
@media (min-width: 1400px) {
  .ig-showcase {
    gap: 3rem;
  }

  .ig-phone__frame {
    width: 300px;
    height: 620px;
  }
}

/* ================================================
   DESKTOP (max-width: 1200px)
   ================================================ */
@media (max-width: 1200px) {
  .slide__inner {
    padding: var(--space-lg);
  }

  .about__grid {
    gap: var(--space-xl);
  }

  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .contact__grid {
    gap: var(--space-xl);
  }
}

/* ================================================
   TABLET (max-width: 1024px)
   ================================================ */
@media (max-width: 1024px) {
  .slide__inner {
    padding: var(--space-lg) var(--space-md);
  }

  /* Navigation */
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-secondary);
    border-left: 1px solid rgba(232, 168, 124, 0.1);
    padding: var(--space-2xl) var(--space-xl);
    gap: var(--space-lg);
    transition: right var(--transition-slow);
    z-index: var(--z-overlay);
  }

  .nav__links--open {
    right: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__link {
    font-size: var(--fs-body);
  }

  /* Hero */
  .hero__content {
    text-align: center;
  }

  .hero__cta-group {
    justify-content: center;
  }

  .hero__subtitle {
    margin: 0 auto var(--space-xl);
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .about__image-wrapper {
    max-width: 380px;
    margin: 0 auto;
  }

  .about__image {
    height: 420px;
  }

  .about__image-frame {
    display: none;
  }

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-header--left {
    text-align: center;
  }

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

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
  }

  /* Dot Navigation */
  .dot-nav {
    display: none;
  }
}

/* ================================================
   MOBILE LARGE (max-width: 768px)
   ================================================ */
@media (max-width: 768px) {
  html {
    scroll-snap-type: none;
  }

  .slide {
    min-height: 0;
    padding: var(--space-xl) 0 var(--space-2xl);
    scroll-snap-align: none;
  }

  .slide--hero {
    min-height: 100svh;
    padding: 0;
  }

  .slide__inner {
    padding: var(--space-md) var(--space-sm);
  }

  /* Navigation */
  .nav {
    padding: var(--space-sm) var(--space-md);
  }

  .nav--scrolled {
    padding: calc(var(--space-sm) * 0.7) var(--space-md);
  }

  .nav__links {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(232, 168, 124, 0.1);
  }

  .nav__logo {
    font-size: 1.3rem;
  }

  /* Hero */
  .hero__title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .hero__subtitle {
    font-size: var(--fs-body);
    max-width: 100%;
  }

  .hero__cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  /* Marquee */
  .marquee__item {
    font-size: 0.85rem;
  }

  /* About */
  .about__image {
    height: 350px;
  }

  .about__image-badge {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    bottom: -10px;
    right: -10px;
  }

  .about__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .about__description {
    font-size: var(--fs-body);
  }

  /* Portfolio */
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .portfolio__filters {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs);
  }

  .portfolio__filter-btn {
    font-size: var(--fs-xs);
    padding: 0.4rem 0.9rem;
  }

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__form {
    order: 2;
    padding: var(--space-md);
  }

  .contact__info {
    order: 1;
    align-items: center;
    text-align: center;
  }

  .contact__description {
    max-width: 100%;
  }

  .social-links {
    justify-content: center;
  }

  /* Section Header */
  .section-header {
    margin-bottom: var(--space-xl);
  }

  .section-header__title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .section-header__tag::before,
  .section-header__tag::after {
    display: none;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-md);
  }

  /* Glass card */
  .glass-card {
    padding: var(--space-md);
  }
}

/* ================================================
   MOBILE SMALL (max-width: 480px)
   ================================================ */
@media (max-width: 480px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  .slide__inner {
    padding: var(--space-sm);
  }

  .hero__title {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }

  .hero__tag {
    font-size: 0.6rem;
    padding: 0.4rem 0.9rem;
  }

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

  .stat-card__number {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .portfolio__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
  }

  .portfolio__item {
    aspect-ratio: 3/4;
  }

  .social-link {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .scroll-indicator {
    display: none;
  }

  .contact__headline {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .section-header__subtitle {
    font-size: 0.9rem;
  }
}

/* ================================================
   VERY SMALL (max-width: 360px)
   ================================================ */
@media (max-width: 360px) {
  .hero__title {
    font-size: 1.7rem;
  }

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

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

  .nav__logo {
    font-size: 1.1rem;
  }
}

/* ================================================
   REDUCED MOTION PREFERENCE
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .stagger-children > * {
    opacity: 1;
    transform: none;
  }

  .hero__line {
    opacity: 1;
    transform: none;
  }

  .ig-reel-progress__fill {
    animation: none;
    width: 40%;
  }

  .ig-reel-audio__disc,
  .ig-reel-disc-inner {
    animation: none;
  }

  .ig-notification {
    animation: none;
  }
}

/* ================================================
   LANDSCAPE MOBILE
   ================================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .slide--hero {
    min-height: 100vh;
    padding: var(--space-md) 0;
  }

  .hero__title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }

  .scroll-indicator {
    display: none;
  }

  .ig-showcase {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: var(--space-md);
  }

  .ig-phone {
    flex-shrink: 0;
  }

  .ig-phone__frame {
    width: 180px;
    height: 360px;
    border-radius: 28px;
  }
}

/* ================================================
   HIGH DPI / RETINA
   ================================================ */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
  .nav {
    border-bottom-width: 0.5px;
  }

  .dot-nav__dot {
    border-width: 1.5px;
  }
}

/* ================================================
   SAFE AREA SUPPORT (iOS notch)
   ================================================ */
@supports (padding: env(safe-area-inset-top)) {
  .nav {
    padding-top: calc(var(--space-md) + env(safe-area-inset-top));
  }

  .footer {
    padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom));
  }
}

/* ================================================
   TOUCH DEVICE OPTIMIZATIONS
   ================================================ */
@media (hover: none) and (pointer: coarse) {
  /* Show portfolio overlays always on touch */
  .portfolio__item-overlay {
    opacity: 1;
  }

  /* Remove hover-only animations */
  .portfolio__item:hover .portfolio__item-media {
    transform: none;
  }

  /* Better tap targets */
  .ig-action-btn {
    padding: 6px;
  }

  .ig-reel-side-btn {
    padding: 8px;
  }

  /* Remove cursor glow on touch */
  .cursor-glow {
    display: none;
  }

  /* Larger touch areas for nav */
  .nav__link {
    padding: var(--space-sm) 0;
  }
}
