/* ==========================================================================
   SREEVARDHAN EGA — RESPONSIVE STYLES
   Breakpoints: 1280 / 1024 / 768 / 560 / 390 / 360
   ========================================================================== */

/* --------------------------------------------------------------------------
   Large desktop down → 1280
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .meaning-hide {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Desktop → 1024
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

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

  .identity-strip__item:nth-child(2) {
    border-right: none;
  }

  .identity-strip__item:nth-child(1),
  .identity-strip__item:nth-child(2) {
    border-bottom: 1px solid var(--c-line);
  }

  .project-grid,
  .direction-grid,
  .tech-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-card__media {
    max-width: 460px;
    margin: 0 auto;
  }

  .eng-project {
    grid-template-columns: 1fr;
  }

  .eng-project__media {
    min-height: 200px;
  }

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

  .contact-wrap,
  .resume-panel,
  .director-room {
    grid-template-columns: 1fr;
  }

  .resume-panel__side {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--c-line);
    padding-top: 26px;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Tablet → 768
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --gutter: clamp(20px, 5vw, 38px);
  }

  .display-heading {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
  }

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

  .hud--bottomright,
  .hud--topleft {
    font-size: 0.56rem;
  }

  .hud--corner {
    display: none;
  }

  .hero-silhouette {
    opacity: 0.1;
    width: 60vw;
    right: -14vw;
    top: 22%;
  }

  .flight-path {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .signature-flow {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .project-grid,
  .direction-grid,
  .tech-grid,
  .portfolio-grid,
  .film-grid,
  .eng-project-grid,
  .achieve-grid {
    grid-template-columns: 1fr;
  }

  .film-grid {
    gap: 22px;
  }

  .journey-step {
    width: 100% !important;
    left: 0 !important;
    padding: 0 0 0 clamp(30px, 8vw, 44px) !important;
    text-align: left !important;
  }

  .journey-step:nth-child(odd) .journey-step__waypoint,
  .journey-step:nth-child(even) .journey-step__waypoint {
    left: -7px;
    right: auto;
  }

  .flight-journey__line {
    left: 8px;
    transform: none;
  }

  .journey-step:nth-child(odd) .journey-step__desc,
  .journey-step:nth-child(odd) .journey-step__title,
  .journey-step:nth-child(odd) .journey-step__no {
    text-align: left;
  }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
  }

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Mobile → 560
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  html {
    scroll-padding-top: 80px;
  }

  .identity-strip__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .identity-strip__item {
    padding: 26px 18px;
  }

  .hero-meta {
    gap: 18px;
  }

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

  .signature-section__title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 60px;
    height: 60px;
    padding: 0;
    justify-content: center;
  }

  .wa-float__text {
    display: none;
  }

  /* Tooltip on mobile */
  .wa-float::after {
    content: "LET'S TALK — WhatsApp";
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: var(--c-charcoal);
    border: 1px solid var(--c-line-strong);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: var(--c-text);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  }

  .wa-float:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  .resume-sections {
    grid-template-columns: 1fr;
  }

  .profile-card__facts {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .btn {
    padding: 15px 24px;
    font-size: 0.68rem;
  }

  .creative-step {
    min-width: 120px;
  }

  .showreel-poster svg {
    width: 56px;
    height: 56px;
  }

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

/* --------------------------------------------------------------------------
   Small mobile → 390 / 360
   -------------------------------------------------------------------------- */
@media (max-width: 390px) {
  .identity-strip__grid {
    grid-template-columns: 1fr;
  }

  .identity-strip__item {
    border-right: none;
    border-bottom: 1px solid var(--c-line);
  }

  .identity-strip__item:last-child {
    border-bottom: none;
  }

  .nav__logo {
    font-size: 1rem;
  }

  .nav__cta {
    display: none;
  }

  .display-heading {
    font-size: 2.1rem;
  }

  .hero-role {
    letter-spacing: 0.16em;
  }

  .flow-step {
    padding: 24px 16px;
  }
}

/* --------------------------------------------------------------------------
   Tall-atmosphere hero on short screens
   -------------------------------------------------------------------------- */
@media (max-height: 720px) and (min-width: 769px) {
  .home-hero {
    min-height: 88vh;
    padding-top: calc(var(--nav-h) + 24px);
    padding-bottom: 40px;
  }

  .home-hero__content {
    margin-top: 0;
  }

  .hero-meta {
    margin-top: 30px;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}