/* Responsive Design - Mobile First Approach */

/* Tablet Devices (768px and up) */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
    }

    .mission-vision-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Devices (1024px and up) */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mission-vision-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
        --spacing-xxl: 5rem;
    }

    .hero {
        min-height: 100vh;
        padding: var(--spacing-md);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .chat-toggle {
        bottom: 1rem;
        right: 4.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .chat-widget {
        width: calc(100% - 2rem);
        right: 1rem;
        bottom: 5rem;
    }

    .logo-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .logo-shield {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-tagline {
        font-size: 0.75rem;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .service-card {
        padding: var(--spacing-md);
    }

    .modal-content {
        width: 95%;
    }

    .modal-body {
        padding: var(--spacing-md);
    }
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 5rem;
    }

    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-shapes,
    .whatsapp-float,
    .chat-toggle,
    .chat-widget,
    .btn {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero {
        min-height: auto;
        page-break-after: always;
    }

    section {
        page-break-inside: avoid;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: auto;
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero-stats {
        margin-top: var(--spacing-md);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-shield,
    .service-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-shapes,
    .shape {
        animation: none !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Already using dark theme, but can add overrides if needed */
}
