/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ============================================ */

/* ============================================
   EXTRA SMALL DEVICES (Phones, < 640px)
   ============================================ */
@media (max-width: 639px) {
    .navbar-glass nav {
        padding: 0.75rem 1rem;
    }
    
    .logo-circle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .navbar-brand-text .brand-name {
        font-size: 1.125rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .hero-section {
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-image-wrapper img {
        height: 250px;
    }
    
    .hero-thumbnails img {
        height: 80px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-white,
    .btn-outline-white {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .hero-cta {
        width: 100%;
    }
    
    .hero-cta a {
        width: 100%;
    }
    
    .card-hover {
        padding: 1.25rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .mobile-menu-content a {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
    
    .mobile-menu {
        top: 70px !important;
        width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        position: fixed !important;
        z-index: 1000 !important;
    }
    
    .mobile-menu.active {
        padding: 1.5rem 1rem;
        display: block !important;
    }
    
    .mobile-menu-content {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .toast {
        left: 0.5rem;
        right: 0.5rem;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   SMALL DEVICES (Tablets Portrait, ≥ 640px)
   ============================================ */
@media (min-width: 640px) {
    .navbar-links {
        display: flex;
    }
    
    .hamburger {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-image-wrapper img {
        height: 350px;
    }
    
    .hero-thumbnails img {
        height: 100px;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-cta {
        flex-direction: row;
    }
    
    .hero-cta a {
        width: auto;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-white,
    .btn-outline-white {
        width: auto;
    }
    
    .toast {
        left: auto;
        right: 1rem;
        width: 24rem;
    }
}

/* ============================================
   MEDIUM DEVICES (Tablets Landscape, ≥ 768px)
   ============================================ */
@media (min-width: 768px) {
    section {
        padding: 5rem 1.5rem;
    }
    
    .hero-section {
        padding-top: 7rem;
        padding-bottom: 5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-image-wrapper img {
        height: 400px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .navbar-glass nav {
        padding: 1rem 1.5rem;
    }
    
    .card-hover {
        padding: 1.5rem;
    }
}

/* ============================================
   LARGE DEVICES (Desktops, ≥ 1024px)
   ============================================ */
@media (min-width: 1024px) {
    section {
        padding: 6rem 2rem;
    }
    
    .hero-section {
        padding-top: 8rem;
        padding-bottom: 6rem;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
    }
    
    .hero-image-wrapper img {
        height: 450px;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .section-subtitle {
        font-size: 1.25rem;
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .navbar-glass nav {
        padding: 1.25rem 2rem;
    }
    
    .navbar-links {
        gap: 2.5rem;
    }
}

/* ============================================
   EXTRA LARGE DEVICES (Large Desktops, ≥ 1280px)
   ============================================ */
@media (min-width: 1280px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .hero-image-wrapper img {
        height: 500px;
    }
    
    .hero-thumbnails img {
        height: 120px;
    }
}

/* ============================================
   ULTRA WIDE SCREENS (≥ 1536px)
   ============================================ */
@media (min-width: 1536px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 4rem;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION ADJUSTMENTS
   ============================================ */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding-top: 5rem;
        padding-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-image-wrapper img {
        height: 200px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar-glass,
    .mobile-menu,
    .hamburger,
    .btn-primary,
    .btn-secondary,
    .toast {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ============================================
   HIGH DPI / RETINA DISPLAYS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-circle {
        box-shadow: 0 4px 15px rgba(254, 63, 18, 0.4);
    }
    
    .btn-primary {
        box-shadow: 0 4px 15px rgba(254, 63, 18, 0.4);
    }
}

/* ============================================
   REDUCED MOTION (ACCESSIBILITY)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

