/* 
 * responsive.css
 * Contains all media queries and responsive adjustments
 */

/* Default styles are for mobile-first (small screens) */

/* Tablet and above (768px and up) */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-6);
        overflow: hidden;
        transition: height var(--transition-normal);
        z-index: var(--z-index-dropdown);
    }
    
    .nav-menu.active {
        height: calc(100vh - 72px);
        padding: var(--space-12) 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-link {
        font-size: var(--font-size-lg);
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        order: 2;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: var(--space-8);
    }
    
    .hero-image .glass-card {
        margin: 0 auto;
        max-width: 340px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .about-image {
        order: 1;
    }
    
    .about-text {
        order: 2;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small phones (480px and below) */
@media (max-width: 480px) {
    :root {
        --font-size-5xl: 2.25rem; /* 36px */
        --font-size-4xl: 1.875rem; /* 30px */
        --font-size-3xl: 1.5rem; /* 24px */
    }
    
    .section-header {
        margin-bottom: var(--space-8);
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--space-3);
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .card-menu {
        max-height: 200px;
        overflow-y: auto;
    }
}

/* Medium desktop (1024px and up) */
@media (min-width: 1024px) {
    section {
        padding: var(--space-24) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-16);
    }
    
    .hero {
        min-height: 100vh;
    }
    
    .hero .title {
        font-size: var(--font-size-5xl);
    }
    
    .section-title {
        font-size: var(--font-size-4xl);
    }
    
    .about-content, 
    .contact-content {
        gap: var(--space-16);
    }
    
    .hero-image .glass-card {
        transform: perspective(1000px) rotateY(-10deg);
        transition: transform var(--transition-normal);
    }
    
    .hero-image .glass-card:hover {
        transform: perspective(1000px) rotateY(0);
    }
}

/* Large desktop (1280px and up) */
@media (min-width: 1280px) {
    .container {
        padding: 0 var(--space-8);
    }
    
    .hero .container {
        gap: var(--space-16);
    }
    
    .hero .title {
        font-size: 3.5rem; /* 56px */
    }
    
    .hero-image .glass-card {
        max-width: 480px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* High resolution displays */
@media (min-width: 1536px) {
    :root {
        --container-xl: 1440px;
    }
    
    html {
        font-size: 18px;
    }
}

/* Fix for very small height screens */
@media (max-height: 600px) {
    .hero {
        min-height: auto;
        padding: calc(72px + var(--space-12)) 0 var(--space-12);
    }
}