/* Responsive Layout Styles and Media Breakpoints for AMRUT-SAKSHAM website */

/* 1. Large Screen Adjustments (1200px and down) */
@media (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }
  .carousel-btn.carousel-prev {
    left: -20px;
  }
  .carousel-btn.carousel-next {
    right: -20px;
  }
}

/* 2. Desktop/Tablet Transition (1024px and down) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .about-intro-grid {
    gap: 40px;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-masonry-grid {
    columns: 2;
  }
  .lightbox-prev {
    left: -20px;
  }
  .lightbox-next {
    right: -20px;
  }
}

/* 3. Small Laptop/Tablet Breakpoint (991px and down) */
@media (max-width: 991px) {
  section {
    padding: 80px 0;
  }

  /* Hamburger Navigation Drawer Toggle */
  .hamburger {
    display: block;
    z-index: 1001;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px 40px;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: var(--transition-normal);
    z-index: 1000;
  } */

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--background-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(211, 109, 43, 0.12);
    transition: var(--transition-normal);
    z-index: 1000;
    border-left: 1px solid rgba(211, 109, 43, 0.12);
}

  .nav-links.active {
    right: 0;
  }

  .lang-switcher-wrapper {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }

  /* Stat box wrap */
  .stats-cards-wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .stat-num-wrapper {
    font-size: 2.5rem;
  }

  /* About section collapse */
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Carousel */
  .carousel-slide {
    flex: 0 0 100%;
  }

  /* Contact section layout */
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* 4. Mobile Layout (768px and down) */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  /* Pull up statistics box slightly less on mobile */
  .stats-cards-wrapper {
    grid-template-columns: 1fr;
    margin-top: -40px;
    gap: 16px;
  }

  .stat-card {
    padding: 30px;
  }

  /* Target grid to single column */
  .target-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Vertical Timeline Flow implementation on mobile */
  .timeline-outer-wrapper::before {
    top: 0;
    left: 20px;
    width: 4px;
    height: 100%;
    transform: none;
  }

  .timeline-horizontal-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-left: 40px;
  }

  .timeline-step-node {
    text-align: left;
    position: relative;
  }

  .step-node-number {
    margin-bottom: 12px;
  }

  .step-node-circle {
    position: absolute;
    left: -54px;
    top: 0;
    width: 40px;
    height: 40px;
    border-width: 3px;
    font-size: 1rem;
    margin-bottom: 0;
  }

  .step-node-info p {
    padding: 0;
  }

  /* Changemakers tabs layout */
  .tab-buttons-container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    flex-grow: 1;
    text-align: center;
  }

  .tab-content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Modal Details responsiveness */
  .modal-header-hero {
    padding: 30px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .modal-body-content {
    padding: 30px;
  }

  /* Floating apply button shift to Bottom Right for Mobile screens */
  .floating-apply-wrapper {
    top: auto;
    bottom: 24px;
    right: 24px;
    transform: none;
  }

  /* .floating-apply-btn {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    border-radius: 50px;
    padding: 14px 24px;
    box-shadow: 0 10px 25px rgba(0, 150, 136, 0.4);
    font-size: 0.85rem;
    border: none;
  } */

  .floating-apply-btn {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  border-radius: 50px;
  padding: 14px 24px;
  box-shadow: 0 10px 25px rgba(211, 109, 43, 0.35);
  font-size: 0.85rem;
  border: none;
}

  .floating-apply-btn i {
    transform: none;
  }

  .floating-apply-btn:hover {
    padding-right: 24px;
    transform: translateY(-3px);
  }
}

/* 5. Extra Small Screen Breakpoints (576px and down) */
@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-badge {
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .btn {
    width: 100%; /* Full width buttons for mobile friendliness */
  }

  .target-audience-box {
    padding: 30px 20px;
  }

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

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

  .gallery-filters-container {
    gap: 8px;
  }

  .gallery-filter-btn {
    padding: 6px 14px;
    font-size: 0.75rem;
    flex-grow: 1;
    text-align: center;
  }

  .gallery-masonry-grid {
    columns: 1;
  }

  .contact-form-panel {
    padding: 30px 20px;
  }

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

  .form-input-element.textarea-full {
    grid-column: span 1;
  }

  .register-card-box {
    padding: 40px 20px;
  }

  .register-card-box h2 {
    font-size: 1.6rem;
  }

  .register-card-box p {
    font-size: 0.95rem;
  }

  .footer-columns-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-legal-terms {
    width: 100%;
    justify-content: space-between;
  }

  .lightbox-prev, .lightbox-next {
    display: none; /* Hide arrow clicks on small portrait views; use swipes or close modal */
  }
}

/* 6. Landscape View adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  #home {
    height: auto;
    padding: 120px 0;
  }
  .hero-content {
    position: relative;
    height: auto;
    padding-top: 0;
  }
  .scroll-indicator-mouse {
    display: none;
  }
}
