/* ================================
   RESPONSIVE STYLES
   ================================ */

/* Large Desktop */
@media (min-width: 1400px) {

    .container {
        max-width: 1400px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content p {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 100px 0;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--background-dark);
        flex-direction: column;
        padding: var(--spacing-small);
        box-shadow: 0 5px 15px var(--shadow-primary);
        border-top: 1px solid var(--border-color);
        backdrop-filter: blur(10px);
    }
        .logo a {font-size: 1rem;}
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        
        text-align: center;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }

    .mobile-menu {
        display: flex;
    }

    .mobile-menu.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero Section */
    .hero {
        height: 80vh;
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .page-hero {
        padding: 100px 0 60px;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .page-hero p {
        font-size: 1.1rem;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Service Categories */
    .category-title {
        font-size: 1.5rem;
    }

    .subcategory-title {
        font-size: 1.2rem;
        padding: 0.8rem;
    }

    .service-category {
        margin-bottom: 3rem;
    }

    .service-subcategory {
        margin-bottom: 2rem;
    }

    /* Cards */
    .service-card,
    .feature-card,
    .about-card,
    .team-member {
        padding: 1.5rem;
    }

    .service-card h3,
    .feature-card h3 {
        font-size: 1.3rem;
    }

    .card h5 {
        font-size: 1.1rem;
    }

    .service-icon,
    .feature-icon,
    .card-icon,
    .benefit-icon {
        width: 150px;
        height: 150px;
        font-size: 1.2rem;
    }
    
    .service-icon img {width: 100%;}
    .member-photo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Stats */
    .stats {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.8rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    /* Footer */
    .container {
        padding: 0 15px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-bottom nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Form */
    .form-group input,
    .form-group textarea {
        padding: 15px;
        font-size: 1rem;
    }

    .submit-btn {
        width: 100%;
        padding: 15px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo a {font-size: 1rem;}

    /* Hero */
    .hero {
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .page-hero {
        padding: 80px 0 50px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .category-title {
        font-size: 1.3rem;
        padding: 0.8rem 0;
    }

    .subcategory-title {
        font-size: 1.1rem;
        padding: 0.6rem;
    }

    /* Grid */
    .grid {
        gap: 1rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Cards */
    .service-card,
    .feature-card,
    .about-card,
    .team-member {
        padding: 1.2rem;
    }

    .service-icon,
    .feature-icon,
    .card-icon,
    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .member-photo {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    /* About Page */
    .about-grid {
        gap: 1.5rem;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 0.8rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Portfolio */
    .portfolio-image {
        height: 150px;
        font-size: 2rem;
    }

    .portfolio-content {
        padding: 1.2rem;
    }

    .portfolio-tags {
        gap: 0.3rem;
    }

    .tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-section nav {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }

    .footer-bottom nav {
        gap: 0.5rem;
    }

    .footer-bottom nav a {
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {

    .logo a {font-size: 1rem;}
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .subcategory-title {
        font-size: 1rem;
    }

    .service-card,
    .feature-card,
    .about-card {
        padding: 1rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .cta-button {
        padding: 10px 30px;
        font-size: 0.9rem;
    }

    .page-hero {
        padding: 60px 0 40px;
    }

    .section {
        padding: 40px 0;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero::before {
        background-size: 20px 20px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .feature-card:hover,
    .about-card:hover,
    .team-member:hover,
    .portfolio-item:hover {
        transform: none;
    }

    .nav-links a:hover,
    .learn-more:hover,
    .cta-button:hover,
    .submit-btn:hover {
        transform: none;
    }

    /* Increase touch targets */
    .nav-links a,
    .learn-more,
    .cta-button,
    .submit-btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Dark Mode Support (if system prefers dark) */
@media (prefers-color-scheme: dark) {
    /* Already using dark theme, but could add variations */
    :root {
        --background-card: #1a1a1a;
        --text-secondary: #cccccc;
    }
}

/* Light Mode Override (if needed) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme as it's part of brand identity */
    /* But could offer light theme toggle if needed */
}

/* Reduced Data Mode */
@media (prefers-reduced-data: reduce) {
    .particles {
        display: none;
    }

    .hero::before {
        display: none;
    }

    /* Disable heavy animations */
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}