/* ============================================================
   MOBILE RESPONSIVE OVERRIDES — loaded last
   ============================================================ */

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --space-xl: 3.4rem;
    --space-2xl: 5rem;
  }

  .container {
    width: min(100% - 3rem, 900px);
  }

  .section {
    padding: 5rem 0;
  }

  .nav-menu {
    gap: 1.15rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  #hero {
    min-height: auto;
    padding: 7.5rem 0 5rem;
  }

  .hero-inner {
    gap: 3rem;
  }

  .hero-photo-outer {
    width: 300px;
    height: 300px;
  }

  .hero-photo-inner {
    width: 262px;
    height: 262px;
  }

  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .achievements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .achievement-card {
    padding: 1.45rem;
  }

  .exp-card {
    padding: 1.55rem;
  }

  .contact-card-side {
    padding: 2rem;
  }
}

@media (max-width: 767px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --radius-md: 18px;
    --radius-lg: 24px;
  }

  html {
    font-size: 15px;
    scroll-behavior: smooth;
  }

  body {
    overflow-x: clip;
  }

  .container {
    width: min(100% - 2rem, 1100px);
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    margin-bottom: 1.5rem;
  }

  .divider {
    margin-bottom: 2rem;
  }

  .btn-accent,
  .btn-ghost {
    width: 100%;
    justify-content: center;
    padding-inline: 1.2rem;
  }

  .navbar {
    padding: 0.85rem 0;
  }

  .navbar .container {
    width: min(100% - 1.5rem, 1100px);
  }

  .hamburger {
    position: relative;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 247, 244, 0.88);
    box-shadow: var(--neo-shadow-sm);
    z-index: 1100;
  }

  .nav-menu {
    top: 0;
    right: -110%;
    width: min(82vw, 320px);
    padding: 6rem 1.5rem 2rem;
    justify-content: flex-start;
    background: linear-gradient(160deg, rgba(255, 247, 244, 0.96), rgba(253, 233, 230, 0.92));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid rgba(255, 255, 255, 0.7);
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.35rem 0;
  }

  #hero {
    min-height: auto;
    padding: 6.5rem 0 4rem;
  }

  #hero::before {
    top: -150px;
    right: -210px;
    width: 360px;
    height: 360px;
  }

  #hero::after {
    bottom: -120px;
    left: -160px;
    width: 280px;
    height: 280px;
  }

  .hero-inner {
    gap: 2.25rem;
  }

  .hero-eyebrow {
    max-width: 19rem;
    margin-inline: auto;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    line-height: 1.6;
  }

  .hero-name {
    font-size: clamp(2.55rem, 15vw, 3.8rem);
  }

  .hero-tagline {
    max-width: 31rem;
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .hero-cta {
    gap: 0.8rem;
  }

  .hero-stats {
    width: 100%;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .hero-stat-item {
    flex: 1;
    min-width: 0;
    padding: 0.9rem 0.55rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.38);
    box-shadow: var(--neo-shadow-sm);
  }

  .hero-stat-num {
    font-size: 1.45rem;
  }

  .hero-stat-label {
    font-size: 0.65rem;
  }

  .hero-photo-outer {
    width: min(76vw, 270px);
    height: min(76vw, 270px);
  }

  .hero-photo-inner {
    width: calc(min(76vw, 270px) - 34px);
    height: calc(min(76vw, 270px) - 34px);
  }

  .hero-badge {
    right: 50%;
    bottom: -1.2rem;
    transform: translateX(50%);
    width: max-content;
    max-width: 86vw;
    padding: 0.7rem 0.9rem;
  }

  .hero-badge-text {
    font-size: 0.72rem;
  }

  .hero-badge-sub {
    font-size: 0.64rem;
  }

  .about-grid,
  .contact-inner {
    gap: 2rem;
  }

  .about-card,
  .contact-card-side,
  .skill-card,
  .exp-card,
  .achievement-card {
    padding: 1.35rem;
  }

  .about-edu-item,
  .achievement-card,
  .contact-link-item,
  .phone-option {
    gap: 0.85rem;
  }

  .about-gpa-chip {
    align-items: flex-start;
    border-radius: 14px;
    line-height: 1.45;
  }

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

  .carousel-wrapper {
    margin-inline: -0.15rem;
  }

  .carousel-viewport {
    border-radius: 18px;
    overflow: hidden;
  }

  .carousel-track {
    gap: 24px;
  }

  .exp-card {
    width: 100%;
  }

  .exp-type-badge {
    white-space: normal;
    line-height: 1.45;
    border-radius: 14px;
  }

  .carousel-controls {
    gap: 0.7rem;
    margin-top: 1.4rem;
  }

  .carousel-prev,
  .carousel-next {
    width: 42px;
    height: 42px;
  }

  .carousel-prev {
    left: 0.65rem;
  }

  .carousel-next {
    right: 0.65rem;
  }

  .carousel-dots {
    max-width: 52vw;
    overflow: hidden;
    justify-content: center;
  }

  .achievements-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .achievement-card {
    flex-direction: column;
  }

  .achievement-icon {
    width: 46px;
    height: 46px;
  }

  .contact-link-item {
    padding: 1rem;
    align-items: flex-start;
  }

  .contact-link-item > div:not(.contact-link-icon) {
    min-width: 0;
  }

  .contact-link-value,
  .phone-option-sub {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .contact-card-side [style*="display:flex;flex-direction:column"] {
    gap: 0.65rem !important;
  }

  .social-links,
  .footer-nav {
    justify-content: center;
  }

  .footer-bar .footer-nav {
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
  }

  .floating-cta {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    align-items: stretch;
  }

  .floating-btn {
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 1.4rem, 1100px);
  }

  .section {
    padding: 3.3rem 0;
  }

  .hero-name {
    font-size: clamp(2.25rem, 16vw, 3.2rem);
  }

  .hero-stats {
    gap: 0.55rem;
  }

  .hero-stat-item {
    padding: 0.75rem 0.35rem;
  }

  .hero-stat-num {
    font-size: 1.28rem;
  }

  .about-card,
  .contact-card-side,
  .skill-card,
  .exp-card,
  .achievement-card {
    padding: 1.1rem;
  }

  .contact-link-icon,
  .phone-option-icon {
    width: 36px;
    height: 36px;
  }
}
