/* ========================
   RESPONSIVE DESIGN
   ======================== */

/* Mobile First Approach */
/* Base styles: 320px and up */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-content {
    padding: 50px 35px;
  }
  
  .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .navbar .container {
    padding: 0 20px;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--secondary-dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 30px 30px;
    gap: 0;
    transition: right var(--transition-normal);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
  }
  
  .has-dropdown.active .dropdown-menu {
    max-height: 300px;
  }
  
  .nav-cta {
    margin-left: 0;
    margin-top: 20px;
    width: 100%;
    text-align: center;
  }
  
  .hero {
    height: 70vh;
  }
  
  .hero-content {
    padding: 40px 25px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .mobile-menu-toggle,
  .nav-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    gap: 1rem;
    box-shadow: none;
    overflow: visible;
  }
  
  .nav-link {
    width: auto;
    padding: 5px 0;
    border-bottom: none;
  }
  
  .dropdown-menu {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    margin-top: 0;
    max-height: none;
    overflow: visible;
  }
  
  .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-cta {
    display: flex;
    margin-left: 0.5rem;
    margin-top: 0;
    width: auto;
    text-align: left;
  }
  
  .hero {
    height: 100vh;
  }
  
  .hero-content {
    padding: 60px 40px;
  }
  
  .hero-cta {
    flex-direction: row;
    align-items: center;
  }
  
  .hero-cta .btn {
    width: auto;
    max-width: none;
  }
  
  .section {
    padding: var(--section-padding);
  }
  
  .section-header {
    margin-bottom: 60px;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
  }
  
  .stat-number {
    font-size: var(--text-5xl);
  }
  
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  
  .hero-content {
    padding: 80px 60px;
  }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Mobile specific adjustments */
@media (max-width: 480px) {
  .logo {
    font-size: 1.25rem;
  }
  
  .logo img {
    width: 35px;
    height: 35px;
  }
  
  .hero {
    height: 60vh;
  }
  
  .hero-content {
    padding: 30px 20px;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .btn-large {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-bg {
    background-size: 100px 100px, 75px 75px;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
  }
  
  .hero-bg {
    animation: none;
  }
  
  .hero-particles {
    animation: none;
  }
  
  .hero::before {
    animation: none;
  }
  
  .hero-title {
    animation: none;
  }
  
  .btn::before {
    transition: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .hero-content {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Print styles */
@media print {
  .hero {
    height: auto;
    background: none;
    color: black;
  }
  
  .hero-bg,
  .hero-particles,
  .hero-overlay {
    display: none;
  }
  
  .hero-content {
    background: none;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 20px 0;
  }
  
  .hero-title {
    background: none;
    -webkit-text-fill-color: black;
    text-shadow: none;
    animation: none;
  }
  
  .scroll-indicator {
    display: none;
  }
}