/* Responsive Design - Mobile First Approach */

/* Tablet styles */
@media screen and (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .about-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .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.1);
        padding: 30px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 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 Mobile */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    /* Sections Mobile */
    .about-preview,
    .services-preview {
        padding: 60px 0;
    }
    
    .cta {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Page Header Mobile */
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-content {
        padding: 60px 0;
    }

    /* Footer Mobile */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .social-links {
        justify-content: center;
    }

    /* Form Mobile */
    .contact-form {
        padding: 0;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        margin-right: 0;
    }

    /* Service Cards Mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .about-card,
    .service-card {
        padding: 30px 20px;
    }
    
    .card-icon,
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .contact-info p {
        flex-direction: column;
        text-align: left;
    }
}

/* Large screens */
@media screen and (min-width: 1400px) {
    .container,
    .nav-container,
    .hero-container {
        max-width: 1400px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .section-header h2 {
        font-size: 2.8rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .nav-toggle,
    .hero-buttons,
    .cta,
    .social-links,
    .btn {
        display: none !important;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .about-preview,
    .services-preview,
    .page-content {
        padding: 20px 0;
    }
    
    .footer {
        padding: 20px 0;
        border-top: 1px solid #ccc;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}

/* Focus states for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline: 2px solid #2563eb;
        outline-offset: 2px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border-color: #000;
    }
    
    .btn-secondary {
        border-color: #000;
        color: #000;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: #000;
        color: white;
    }
}

/* Dark mode preferences */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles if desired */
    /* This section can be expanded based on client requirements */
}

/* Animation performance for devices that prefer 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;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 10px;
    }
    
    .social-links a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Landscape mobile orientation */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .page-header {
        padding: 80px 0 30px;
    }
} 