/* responsive.css - Mobile-first responsive styles */

/* Mobile Styles (Base - 320px and up) */
@media screen and (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
        min-height: 90vh;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-md);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-image {
        order: -1;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .floating-elements {
        display: none;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-card {
        padding: var(--spacing-xl);
        text-align: center;
    }
    
    .service-icon {
        margin: 0 auto var(--spacing-lg);
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .about-image {
        order: -1;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-text h2 {
        font-size: var(--font-size-3xl);
    }
    
    .about-text p {
        font-size: var(--font-size-base);
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: var(--font-size-3xl);
    }
    
    .cta-content p {
        font-size: var(--font-size-lg);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Section Spacing */
    section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-lg);
    }
    
    /* Container Padding */
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* Small Mobile (320px - 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .nav-container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .service-card {
        padding: var(--spacing-lg);
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
    
    .btn-large {
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: var(--font-size-base);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .about-text h2 {
        font-size: var(--font-size-2xl);
    }
    
    .cta-content h2 {
        font-size: var(--font-size-2xl);
    }
}

/* Tablet Portrait (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .nav-menu {
        gap: var(--spacing-lg);
    }
    
    .nav-link {
        font-size: var(--font-size-xs);
    }
    
    .hero-content {
        gap: var(--spacing-2xl);
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        gap: var(--spacing-2xl);
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: var(--spacing-xl);
    }
}

/* Large Tablets & Small Laptops (1024px - 1200px) */
@media screen and (min-width: 1024px) and (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    .nav-container {
        max-width: 1000px;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
}

/* Large Screens (1200px and up) */
@media screen and (min-width: 1200px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Add some extra large screen optimizations */
    .service-card:hover {
        transform: translateY(-12px);
    }
    
    .hero-image {
        position: relative;
    }
    
    .hero-image::before {
        content: '';
        position: absolute;
        top: -20px;
        left: -20px;
        right: -20px;
        bottom: -20px;
        background: linear-gradient(45deg, rgba(76, 175, 80, 0.1), rgba(255, 107, 53, 0.1));
        border-radius: var(--radius-2xl);
        z-index: -1;
        animation: glow 4s ease-in-out infinite alternate;
    }
    
    @keyframes glow {
        from {
            transform: scale(0.98);
            opacity: 0.5;
        }
        to {
            transform: scale(1.02);
            opacity: 0.8;
        }
    }
}

/* Ultra Wide Screens (1400px and up) */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .nav-container {
        max-width: 1400px;
    }
    
    .hero-content {
        gap: var(--spacing-3xl);
    }
    
    .section-title {
        font-size: var(--font-size-5xl);
    }
}

/* Landscape Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    .hero-content {
        min-height: calc(100vh - 140px);
        padding: var(--spacing-lg) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-md);
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: var(--spacing-sm);
    }
    
    .hero-buttons .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    section {
        padding: var(--spacing-xl) 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-img,
    .about-img,
    .logo,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-elements {
        display: none;
    }
    
    .float-item {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This can be implemented later if needed */
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .floating-elements,
    .hero-wave,
    .cta-section,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .hero {
        background: none;
        min-height: auto;
        padding: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .hero-title {
        color: #000;
        font-size: 24pt;
    }
    
    .hero-subtitle {
        color: #333;
        font-size: 14pt;
    }
    
    section {
        padding: var(--spacing-md) 0;
        page-break-inside: avoid;
    }
}

/* Focus Styles for Accessibility */
.nav-link:focus,
.btn:focus,
.card-link:focus,
.social-link:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}