/* Responsive Design - Mobile First Approach */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text .section-header {
        text-align: center;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-detail {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .service-detail-icon {
        margin: 0 auto;
    }
    
    .service-detail-content ul {
        grid-template-columns: 1fr;
    }
    
    /* Team Section */
    .team-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .team-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) {
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo .logo {
        height: 40px;
    }
    
    /* Hero Section */
    .hero {
        padding-top: 80px;
        min-height: 90vh;
    }
    
    .hero-container {
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    /* Sections */
    section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 1.8rem;
    }
    
    .service-detail {
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .service-detail-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-detail-icon i {
        font-size: 2rem;
    }
    
    /* About Section */
    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .image-placeholder {
        height: 300px;
    }
    
    .image-placeholder i {
        font-size: 3rem;
    }
    
    /* Team Section */
    .team-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .value-item {
        padding: 1.25rem;
    }
    
    /* Contact Section */
    .contact-details {
        gap: 1.25rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contact-item i {
        font-size: 1.1rem;
    }
    
    .form-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .tab-btn {
        padding: 1rem;
        border-radius: 6px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    /* Container */
    .container {
        padding: 0 0.75rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .nav-logo .logo {
        height: 35px;
    }
    
    /* Hero Section */
    .hero-container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        padding: 1.25rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .stat-item p {
        font-size: 0.9rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Services */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-detail {
        padding: 1.5rem;
    }
    
    .service-detail-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-detail-icon i {
        font-size: 1.8rem;
    }
    
    /* About Section */
    .image-placeholder {
        height: 250px;
    }
    
    .image-placeholder i {
        font-size: 2.5rem;
    }
    
    /* Team Section */
    .team-stat {
        padding: 1.25rem;
    }
    
    .team-stat h4 {
        font-size: 1.5rem;
    }
    
    .value-item {
        padding: 1rem;
    }
    
    .value-item i {
        font-size: 1.5rem;
    }
    
    /* Contact Section */
    .contact-form {
        padding: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Container */
    .container {
        padding: 0 0.5rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 0.5rem;
    }
    
    /* Hero Section */
    .hero-container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.25rem;
    }
    
    .service-detail {
        padding: 1.25rem;
    }
    
    /* Contact Section */
    .contact-form {
        padding: 1rem;
    }
    
    /* Footer */
    .footer-content {
        gap: 1.25rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    section {
        padding: 3rem 0;
    }
}

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

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .hero-buttons,
    .contact-form,
    .social-links {
        display: none;
    }
    
    .hero {
        padding-top: 0;
    }
    
    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-stats,
    .hero-content {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This can be implemented if dark mode is desired */
    /* Currently maintaining light theme as per requirements */
}