/* ==========================================================================
   Responsive rules — tablet & mobile breakpoints
   ========================================================================== */

/* ===== Large tablets / small laptops ===== */
@media (max-width:1199px){
  .section-pad{padding:100px 0;}
  .hero-avatar-wrap{max-width:320px;}
}

/* ===== Tablets ===== */
@media (max-width:991px){
  :root{--nav-h:68px;}
  .navbar-collapse{
    background:var(--card-bg);
    backdrop-filter:blur(16px);
    border-radius:var(--radius-md);
    margin-top:12px;
    padding:1.2rem 1.4rem;
    border:1px solid var(--card-border);
  }
  .navbar-nav{gap:.4rem;}
  .theme-toggle{margin-top:.6rem;}

  .hero-section{min-height:auto;padding:140px 0 90px;}
  .hero-avatar-wrap{max-width:280px;}
  .hero-stats{gap:1.6rem;}

  .about-grid{grid-template-columns:1fr 1fr;}
  .section-pad{padding:80px 0;}

  .circular-skill-grid{justify-content:center;}

  .timeline{padding-left:2rem;}

  .resume-preview{height:480px;}

  .footer-top{flex-direction:column;text-align:center;}
  .footer-nav{justify-content:center;}
}

/* ===== Mobile ===== */
@media (max-width:767px){
  .section-pad{padding:64px 0;}
  .hero-cta{flex-direction:column;align-items:stretch;}
  .hero-cta .btn-gradient,.hero-cta .btn-outline-brand,.hero-cta .btn-ghost{justify-content:center;}
  .hero-stats{justify-content:space-between;}
  .stat-num{font-size:1.5rem;}

  .about-grid{grid-template-columns:1fr;}
  .glass-panel{padding:1.5rem;}

  .floating-badge{font-size:.72rem;padding:.45rem .7rem;}
  .badge-1{left:-4%;}
  .badge-2{right:-6%;}
  .badge-3{left:-6%;}
  .badge-4{right:0;}

  .timeline{padding-left:1.6rem;}
  .timeline-dot{left:-1.9rem;width:16px;height:16px;}

  .highlight-strip{flex-direction:column;}

  .resume-preview{height:380px;}

  #backToTop{width:42px;height:42px;bottom:18px;right:18px;}

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

/* ===== Small mobile ===== */
@media (max-width:479px){
  .hero-name{font-size:1.9rem;}
  .hero-role{font-size:1.05rem;}
  .section-title{font-size:1.6rem;}
  .circular-skill{width:100px;height:100px;}
  .circle-svg{width:100px;height:100px;}
  .avatar-card{padding:10px;border-radius:20px;}
}
