/* ==========================================================================
   RESPONSIVE.CSS - Mobile drawers, typography grids, & light theme overrides
   ========================================================================== */

/* 1440px - Ultra wide / Desktop styling */
@media (min-width: 1440px) {
  :root {
    --max-width: 1320px;
  }
  .hero-title {
    font-size: 4.6rem;
  }
}

/* 1024px - Laptops / Smaller Desktops */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .hero-title {
    font-size: 3.4rem;
  }
  
  .typing-container {
    font-size: 1.5rem;
  }
  
  .about-sections {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

/* 768px - Tablets & iPads */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  /* Mobile Navigation Menu Drawer (Light Theme Rebuild) */
  .mobile-nav-toggle {
    display: flex;
  }
  
  .nav-wrapper {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background: rgba(28, 10, 0, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(253,246,238,0.1);
    padding: 3rem 2rem;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 99;
    box-shadow: -10px 10px 30px rgba(28,10,0,0.35);
  }

  
  .nav-wrapper.open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    background: transparent;
    border: none;
    border-radius: 0;
    gap: 1.5rem;
    padding: 0;
  }
  
  .nav-link {
    font-size: 1.15rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    color: rgba(253,246,238,0.65);
  }
  
  .nav-link.active {
    color: #fdf6ee !important;
    background: rgba(212, 135, 58, 0.22);
    font-weight: 700;
  }
  
  .nav-indicator {
    display: none; /* Hide indicator pill on mobile drawer */
  }
  
  /* Mobile burger icon active states */
  .mobile-nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #d4873a;
  }
  
  .mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #d4873a;
  }
  
  /* Hero section adjustments */
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-desc {
    margin: 0 auto;
  }
  
  .hero-btns {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .hero-counters {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .hero-visual {
    height: 380px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    order: -1; /* Place visual above content on tablet/mobile */
  }
  
  .visual-illustration {
    width: 220px;
    height: 220px;
  }
  
  .visual-backdrop {
    width: 260px;
    height: 260px;
  }
  
  .floating-icon {
    width: 44px;
    height: 44px;
  }
  
  .floating-icon svg, .floating-icon img {
    width: 22px;
    height: 22px;
  }
  
  /* About layout */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Footer adjustments */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }

  .marquee-text-bold, .marquee-text-outline {
    font-size: 1.8rem;
  }

  .typography-marquee {
    padding: 1.2rem 0;
  }
}

/* 480px - Mobile Screens */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }
  
  .typing-container {
    font-size: 1.3rem;
  }
  
  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .hero-counters {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .counter-card {
    padding: 1.2rem 0.5rem;
  }

  .counter-number {
    font-size: 1.8rem;
  }

  .counter-label {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .certifications-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-filters {
    flex-wrap: wrap;
  }
  
  .about-personal-info {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .exp-item {
    padding-left: 55px;
  }
  
  .exp-badge {
    left: 8px;
    width: 36px;
    height: 36px;
  }
  
  .exp-badge svg {
    width: 15px;
    height: 15px;
  }
  
  .experience-timeline::before {
    left: 26px;
  }

  .exp-card {
    padding: 1.5rem;
  }
  
  .exp-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .exp-date {
    align-self: flex-start;
  }

  /* Keep floating tech icons within bounds and nicely spaced on mobile */
  .tech-github {
    left: -5%;
  }
  .tech-bootstrap {
    left: 0%;
  }
  .tech-js {
    right: 0%;
  }
}
