/* ============================================================
   NEELAM ROY — PREMIUM CINEMATIC PORTFOLIO
   Responsive Breakpoints
   ============================================================ */

/* ── Ultra Wide (≥1600px) ── */
@media (min-width: 1600px) {
  :root {
    --container-max: 1500px;
  }

  .hero__content {
    max-width: 1500px;
  }

  .awards__grid {
    gap: var(--space-lg);
  }

  .gallery-masonry {
    columns: 4;
  }
}

/* ── Desktop Large (≤1440px) ── */
@media (max-width: 1440px) {
  .hero__content {
    padding: 0 var(--space-xl);
  }

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

/* ── Desktop (≤1200px) ── */
@media (max-width: 1200px) {
  .awards__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .timeline__item {
    gap: var(--space-lg);
  }
}

/* ── Laptop (≤1024px) ── */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 0px;
  }

  .side-nav {
    transform: translateX(-100%);
    width: 280px;
    z-index: calc(var(--z-nav) + 2);
    background: rgba(9, 9, 9, 0.98);
  }

  .side-nav.mobile-open {
    transform: translateX(0);
  }

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

  .main-content {
    margin-left: 0;
  }

  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 var(--space-lg);
    padding-top: var(--space-3xl);
  }

  .hero__text {
    order: 2;
    padding-top: 0;
  }

  .hero__image-wrapper {
    order: 1;
  }

  .hero__image-frame {
    max-width: 350px;
    margin: 0 auto;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__description {
    margin-left: auto;
    margin-right: auto;
  }

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

  .about__image-main {
    max-width: 400px;
    margin: 0 auto;
  }

  .about__image-float {
    left: 0;
    bottom: -20px;
    width: 140px;
    height: 190px;
  }

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

  .gallery-masonry {
    columns: 2;
  }

  .gallery-preview__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .gallery-preview__card,
  .gallery-preview__card:nth-child(3) {
    grid-column: span 1 !important;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .timeline__track::before {
    left: 30px;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    padding-left: 70px;
  }

  .timeline__item:nth-child(even) .timeline__content {
    order: 1;
    text-align: left;
  }

  .timeline__item:nth-child(even) .timeline__visual {
    order: 2;
    text-align: left;
  }

  .timeline__item:nth-child(odd) .timeline__content {
    text-align: left;
  }

  .timeline__dot {
    left: 30px;
  }

  .timeline__visual {
    justify-content: flex-start;
  }

  .theme-switcher__panel {
    left: auto;
    right: var(--space-md);
    bottom: auto;
    top: 80px;
  }

  .footer__content {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ── Tablet (≤768px) ── */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(3rem, 6vh, 5rem);
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero__content {
    padding: 0 var(--space-md);
    min-height: auto;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .hero__image-frame {
    max-width: 280px;
  }

  .hero__image-decoration {
    display: none;
  }

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

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

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

  .gallery-filters {
    gap: var(--space-xs);
  }

  .gallery-filter-btn {
    padding: 8px 16px;
    font-size: 0.7rem;
  }

  .gallery-masonry {
    columns: 2;
    column-gap: var(--space-sm);
  }

  .gallery-item {
    margin-bottom: var(--space-sm);
  }

  .quote-section {
    padding: var(--space-2xl) 0;
  }

  .quote-section__marks {
    font-size: 6rem;
  }

  .lightbox__image {
    max-width: 95vw;
    max-height: 70vh;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .lightbox__nav--prev { left: var(--space-sm); }
  .lightbox__nav--next { right: var(--space-sm); }

  .contact-map {
    height: 300px;
  }

  .back-to-top {
    bottom: var(--space-md);
    right: var(--space-md);
    width: 42px;
    height: 42px;
  }

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

  /* Hide cursor effects on tablet */
  .cursor-main,
  .cursor-trail,
  .cursor-glow {
    display: none;
  }

  body {
    cursor: auto;
  }

  a, button, input, textarea, select {
    cursor: auto;
  }
}

/* ── Mobile (≤480px) ── */
@media (max-width: 480px) {
  :root {
    --section-padding: clamp(2.5rem, 5vh, 4rem);
  }

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

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

  .hero__image-frame {
    max-width: 240px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

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

  .hero__scroll-indicator {
    display: none;
  }

  .about__highlight {
    flex-direction: column;
  }

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

  .about__image-float {
    display: none;
  }

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

  .award-card {
    padding: var(--space-lg) var(--space-md);
  }

  .gallery-preview__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .gallery-preview__card,
  .gallery-preview__card:nth-child(3) {
    grid-column: span 1 !important;
    width: 100%;
    max-width: 100%;
  }

  .gallery-masonry {
    columns: 1;
  }

  .gallery-filters {
    flex-direction: column;
    align-items: center;
  }

  .gallery-filter-btn {
    width: 100%;
    text-align: center;
  }

  .timeline__item {
    padding-left: 50px;
  }

  .timeline__track::before {
    left: 20px;
  }

  .timeline__dot {
    left: 20px;
    width: 12px;
    height: 12px;
  }

  .timeline__icon {
    width: 60px;
    height: 60px;
  }

  .contact-card,
  .contact-form {
    padding: var(--space-lg) var(--space-md);
  }

  .lightbox__close {
    top: var(--space-sm);
    right: var(--space-sm);
    width: 40px;
    height: 40px;
  }

  .lightbox__caption {
    bottom: var(--space-sm);
    font-size: var(--fs-body);
  }

  .side-nav {
    width: 100%;
  }

  .mobile-menu-toggle {
    top: var(--space-sm);
    right: var(--space-sm);
    width: 42px;
    height: 42px;
  }

  .footer__links {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .scroll-progress {
    height: 2px;
  }

  .theme-switcher__panel {
    right: var(--space-sm);
    left: var(--space-sm);
    min-width: auto;
  }

  .contact-map {
    height: 250px;
  }
}

/* ── Small Mobile (≤360px) ── */
@media (max-width: 360px) {
  .hero__image-frame {
    max-width: 200px;
  }

  .hero__name {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

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

  .achievement-card {
    padding: var(--space-md);
  }

  .achievement-card__celebrities {
    gap: 4px;
  }

  .achievement-card__celeb-tag {
    font-size: 0.65rem;
    padding: 3px 8px;
  }
}

/* ── Landscape Orientation ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-xl) 0;
  }

  .hero__content {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .hero__image-frame {
    max-width: 250px;
    aspect-ratio: 1 / 1;
  }

  .hero__scroll-indicator {
    display: none;
  }

  .gallery-hero,
  .contact-hero {
    min-height: 40vh;
  }

  .loader {
    justify-content: center;
  }
}

/* ── Foldable Screens ── */
@media (min-width: 280px) and (max-width: 320px) {
  .container {
    padding: 0 12px;
  }

  .hero__content {
    padding: var(--space-lg) 12px;
  }

  .hero__image-frame {
    max-width: 180px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.7rem;
  }

  .side-nav {
    width: 100%;
  }
}

/* ── Hover Media Query (touch devices) ── */
@media (hover: none) {
  .cursor-main,
  .cursor-trail,
  .cursor-glow,
  .mouse-spotlight {
    display: none;
  }

  body, a, button, input, textarea, select {
    cursor: auto;
  }

  .hero__image-frame:hover img {
    transform: none;
  }

  .about__image-main:hover img {
    transform: none;
  }

  .gallery-item:hover img {
    transform: none;
  }

  .gallery-item__overlay {
    opacity: 1;
  }

  .gallery-item__zoom {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .particles-canvas {
    display: none;
  }

  .hero__spotlight,
  .hero__spotlight-gold,
  .smoke-effect {
    display: none;
  }

  .scroll-progress {
    display: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ── Print Styles ── */
@media print {
  .side-nav,
  .mobile-menu-toggle,
  .cursor-main,
  .cursor-trail,
  .cursor-glow,
  .mouse-spotlight,
  .particles-canvas,
  .scroll-progress,
  .back-to-top,
  .loader,
  .theme-switcher,
  .smoke-effect,
  .page-transition {
    display: none !important;
  }

  .main-content {
    margin-left: 0;
  }

  body {
    background: white;
    color: black;
    cursor: auto;
  }

  .hero {
    min-height: auto;
    page-break-after: always;
  }

  .hero__name {
    background: none;
    -webkit-text-fill-color: black;
    color: black;
  }

  .section {
    page-break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }
}
