/* Responsive Design */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 5.5rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}
}

/* Large Tablet (992px and up) */
@media (min-width: 992px) {
    .nav-links {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}

/* Tablet (768px and down) */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .nav-actions .quote-btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        height: var(--header-height-mobile);
        padding: var(--space-3) 0;
    }
    
    .logo {
        height: 40px;
        font-size: var(--font-size-lg);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .about-text {
        order: 2;
    }
    
    .about-visual {
        order: 1;
    }
    
    .about-highlights {
        justify-content: center;
        gap: var(--space-8);
    }
    
    .about-stats {
        position: static;
        justify-content: center;
        margin-top: var(--space-8);
    }
    
    .cta-form {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-form input {
        width: 100%;
        margin-bottom: var(--space-4);
    }
    
    .testimonial-author {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .author-info {
        text-align: center;
    }
}


    
    /* Mobile Large (576px and down) */
@media (max-width: 768px) {
    .nav-container {
        padding: var(--space-2) 0;
        height: var(--header-height-mobile);
    }
    
    .logo {
        height: 35px;
        font-size: var(--font-size-base);
    }
    
    .logo::before {
        width: 35px;
        height: 35px;
        font-size: var(--font-size-base);
    }
    
    .hero {
        height: 100vh;
        min-height: 500px;
        padding: var(--space-5);
    }
    
    .hero-description {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-10);
    }
    
    .hero-actions {
        margin-bottom: var(--space-12);
    }
    
    .section {
        padding: var(--space-20) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-12);
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: var(--space-4);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .service-card {
        padding: var(--space-8) var(--space-6);
        background: rgba(26, 26, 29, 0.98) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--space-6);
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .service-card h3 {
        font-size: var(--font-size-xl);
        margin-bottom: var(--space-4);
    }
    
    .about-text h2 {
        font-size: 2rem;
        margin-bottom: var(--space-6);
    }
    
    .about-highlights {
        flex-direction: column;
        align-items: center;
        gap: var(--space-6);
    }
    
    .highlight-item {
        min-width: auto;
    }
    
    .about-image img {
        height: 350px;
    }
    
    .testimonials {
        padding: var(--space-20) 0;
    }
    
    .testimonial-card {
        padding: var(--space-8) var(--space-5);
    }
    
    .testimonial-quote {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-6);
    }
    
    .cta {
        padding: var(--space-16) 0;
    }
    
    .cta h2 {
        font-size: 2rem;
        margin-bottom: var(--space-4);
    }
    
    .cta p {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-8);
    }
    
    .back-to-top {
        bottom: var(--space-5);
        right: var(--space-5);
        width: 45px;
        height: 45px;
    }
}


    
    /* Mobile Small (480px and down) */
@media (max-width: 480px) {
    .hero-content {
        padding: 0 var(--space-3);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .hero-actions .btn {
        padding: var(--space-3) var(--space-6);
        font-size: var(--font-size-sm);
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: var(--space-6) var(--space-4);
    }
    
    .service-card h3 {
        font-size: var(--font-size-lg);
    }
    
    .testimonial-card {
        padding: var(--space-6) var(--space-4);
    }
    
    .testimonial-quote {
        font-size: var(--font-size-base);
    }
    
    .author-image {
        width: 50px;
        height: 50px;
    }
    
    .stat-card {
        padding: var(--space-4);
        min-width: 100px;
    }
    
    .stat-card .stat-number {
        font-size: var(--font-size-xl);
    }
    
    .cta h2 {
        font-size: 1.75rem;
    }
    
    .cta-form input,
    .cta-form button {
        height: 50px;
        font-size: var(--font-size-sm);
    }
}

/* iPhone 13/14 and similar devices (390px) */
@media (max-width: 414px) {
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
        padding: 0 var(--space-4);
    }
    
    .hero-actions {
        gap: var(--space-3);
        padding: 0 var(--space-4);
    }
    
    .btn-primary-hero,
    .btn-secondary-hero {
        padding: var(--space-3) var(--space-5);
        font-size: var(--font-size-sm);
        min-height: 48px;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    
    .section-subtitle {
        font-size: var(--font-size-sm);
        padding: 0 var(--space-2);
    }
    
    .service-card {
        padding: var(--space-6) var(--space-4);
        margin: 0 var(--space-2);
    }
    
    .service-icon {
        width: 65px;
        height: 65px;
    }
    
    .service-card h3 {
        font-size: var(--font-size-lg);
    }
    
    .member-card {
        padding: var(--space-12) var(--space-6);
        margin: 0 var(--space-2);
    }
    
    .member-image {
        width: 100px;
        height: 100px;
    }
    
    .member-name {
        font-size: var(--font-size-2xl);
    }
    
    .member-role {
        font-size: var(--font-size-lg);
    }
    
    .member-socials a {
        font-size: var(--font-size-xl);
    }
    
    .testimonial-card {
        padding: var(--space-6) var(--space-4);
        margin: 0 var(--space-2);
    }
    
    .testimonial-quote {
        font-size: var(--font-size-base);
        line-height: 1.5;
    }
    
    .cta-content {
        padding: 0 var(--space-4);
    }
    
    .cta-form {
        gap: var(--space-3);
    }
    
    .cta-form input,
    .cta-form button {
        height: 50px;
        font-size: var(--font-size-sm);
    }
    
    .contact-info {
        gap: var(--space-6) !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .contact-item {
        justify-content: center !important;
    }
}
}

    
    /* Ultra Small Mobile (360px and down) */
@media (max-width: 360px) {
    .nav-container {
        padding: var(--space-2) 0;
        height: 60px;
    }
    
    .logo {
        height: 30px;
        font-size: var(--font-size-sm);
    }
    
    .logo::before {
        width: 30px;
        height: 30px;
        font-size: var(--font-size-sm);
    }
    
    .section {
        padding: var(--space-16) 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: var(--space-5) var(--space-3);
    }
    
    .testimonial-card {
        padding: var(--space-5) var(--space-3);
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: var(--space-4);
        right: var(--space-4);
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images and icons for high DPI displays */
    .service-icon i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Styles */
@media print {
    .main-navigation,
    .back-to-top,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        page-break-after: always;
    }
    
    .section {
        page-break-inside: avoid;
        padding: var(--space-8) 0;
    }
    
    .service-card,
    .testimonial-card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
        page-break-inside: avoid;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .main-navigation {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .nav-links a {
        color: var(--gray-200);
    }
    
    .service-card {
        background: var(--gray-800);
        color: var(--gray-200);
        border-color: var(--gray-700);
    }
    
    .testimonial-card {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Reduced Motion */
@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;
    }
    
    .hero-particles {
        display: none;
    }
    
    .particle {
        animation: none;
    }
}



/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 500px;
        padding: var(--space-12) 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--space-4);
        text-align: center;
    }
    
    .hero-description {
        margin-bottom: var(--space-6);
    }
    
    .hero-actions {
        margin-bottom: var(--space-8);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .service-card {
        border: 2px solid var(--text-color);
    }
    
    .btn {
        border-width: 3px;
    }
}

/* Footer Styles */
@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
    .footer-brand, .footer-section:nth-child(4), .footer-section {
        grid-column: 1 / -1;
        text-align: left;
    }
    .footer-social {
        justify-content: flex-start;
    }
    .footer-section h4 {
        text-align: left;
    }
    .footer-section h4::after {
        left: 0;
        transform: translateX(0);
    }
    .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
    .footer-bottom-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    .footer-brand, .footer-section {
        text-align: left;
    }
    .footer-section h4 {
        text-align: left;
    }
    .footer-section h4::after {
        left: 0;
        transform: translateX(0);
    }
    .footer-links {
        text-align: left;
    }
}
