/* ===== Responsive Design ===== */

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: var(--light-black);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px;
        gap: 20px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        margin-top: 10px;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-buttons .btn-outline {
        display: none;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Why Choose Us */
    .why-choose-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-choose-content {
        padding-right: 0;
    }
    
    /* Process */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Section Padding */
    section {
        padding: 60px 0;
    }
    
    /* Navigation */
    .logo-text {
        font-size: 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 40px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 40px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 0.9rem;
    }
    
    /* Section Header */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    /* Why Choose Us */
    .features-list {
        gap: 20px;
        margin-top: 30px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .feature-text h4 {
        font-size: 1.1rem;
    }
    
    /* Process */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* CTA */
    .cta {
        padding: 60px 0;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    /* Floating Buttons */
    .floating-buttons {
        right: 20px;
        bottom: 20px;
        gap: 10px;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .scroll-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
    
    /* Navigation */
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .logo-text {
        display: none;
    }
    
    .nav-buttons .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    /* Section Header */
    .section-badge {
        font-size: 0.85rem;
        padding: 6px 16px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Services */
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .service-card h3 {
        font-size: 1.35rem;
    }
    
    /* Process */
    .process-step {
        padding: 30px 15px;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    /* CTA */
    .cta h2 {
        font-size: 1.75rem;
    }
    
    .cta p {
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer-logo img {
        height: 35px;
    }
    
    .footer-column h4 {
        font-size: 1.1rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Mobile Menu Animation */
@media (max-width: 991px) {
    .nav-menu li {
        opacity: 0;
        animation: fadeIn 0.3s forwards;
    }
    
    .nav-menu.active li {
        animation: slideIn 0.5s forwards;
    }
    
    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* Print Styles */
@media print {
    .header,
    .floating-buttons,
    .scroll-top,
    .hero-buttons,
    .cta-buttons {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 20px 0;
    }
    
    section {
        padding: 30px 0;
        page-break-inside: avoid;
    }
}

/* Landscape Orientation for Mobile Devices */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
    }
    
    .hero-stats {
        margin-top: 40px;
    }
    
    section {
        padding: 40px 0;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced Motion Preference */
@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;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Already dark by default */
}

/* Light Mode Support (Optional) */
@media (prefers-color-scheme: light) {
    /* Can be added if needed */
}