/* Responsive Design - Mobile, Tablet, Laptop */

/* Tablet Devices (481px - 768px) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle {
        display: flex;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
        z-index: var(--z-fixed);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle[aria-expanded="true"] .hamburger {
        background-color: transparent;
    }
    
    .nav-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .nav-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    
    /* Hero Section */
    .hero {
        padding: var(--spacing-xl) var(--spacing-md);
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Service Grid */
    .service-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    /* Mission Vision Grid */
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Contact Form */
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    /* Section Headers */
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
}

/* Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    /* Base */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Navigation */
    .brand-name {
        font-size: var(--font-size-base);
    }
    
    .brand-tagline {
        font-size: var(--font-size-xs);
    }
    
    .brand-logo {
        width: 40px;
        height: 40px;
    }
    
    /* Hero Section */
    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .title-highlight {
        font-size: var(--font-size-xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-sm);
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: var(--font-size-sm);
    }
    
    /* Service Cards */
    .service-card {
        padding: var(--spacing-lg);
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-title {
        font-size: var(--font-size-lg);
    }
    
    /* Section Headers */
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .section-badge {
        font-size: var(--font-size-xs);
        padding: 0.375rem 0.75rem;
    }
    
    /* Mission/Vision Cards */
    .mission-card,
    .vision-card,
    .values-card {
        padding: var(--spacing-lg);
    }
    
    .card-icon {
        font-size: var(--font-size-3xl);
    }
    
    /* Contact Form */
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .phone-input-wrapper {
        flex-direction: column;
    }
    
    .country-selector {
        width: 100%;
    }
    
    /* Footer */
    .social-links {
        justify-content: center;
    }
    
    /* Modal */
    .modal-content {
        margin: 1rem;
        padding: var(--spacing-lg);
    }
    
    .modal-title {
        font-size: var(--font-size-xl);
    }
}

/* Laptop Devices (769px - 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Devices (1201px and above) */
@media (min-width: 1201px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-buttons {
        margin-top: var(--spacing-sm);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .modal,
    .nav-toggle {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-md);
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .brand-logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-50: #1f2937;
        --gray-100: #374151;
        --white: #ffffff;
    }
}
