/* ============================================
   RESPONSIVE DESIGN - Mobile First Approach
   ============================================ */

/* Tablet - 768px and below */
@media (max-width: 768px) {
    
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }
    
    /* Navigation */
    .nav-container {
        height: 80px;
        padding: 0 var(--spacing-md);
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--color-primary);
        flex-direction: column;
        padding: var(--spacing-md);
        transition: left 0.3s ease;
        overflow-y: auto;
        align-items: flex-start;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: flex-start;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
    }
    
    .nav-link {
        display: block;
        padding: 1.25rem 0;
        font-size: 1.125rem;
    }
    
.nav-cta {
        margin: var(--spacing-md) 0;
        width: 100%;
    }
    
    .nav-cta .btn {
        width: 100%;
        display: block;
        text-align: center;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero */
    .hero {
        height: 85vh;
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .about-image {
        order: -1;
    }
    
    .feature-item {
        grid-template-columns: 50px 1fr;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* Mobile - 480px and below */
@media (max-width: 480px) {
    
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
        --spacing-md: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .nav-container {
        height: 70px;
    }
    
    .nav-logo .logo-text {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    /* Hero */
    .hero {
        height: 70vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* About */
    .about-intro {
        font-size: 1.125rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-badge {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Services */
    .service-content {
        padding: var(--spacing-sm);
    }
    
    /* Projects */
    .project-content {
        padding: var(--spacing-sm);
    }
    
    .project-title {
        font-size: 1.25rem;
    }
    
    /* Testimonial */
    .testimonial-quote {
        font-size: 1.25rem;
    }
    
    /* CTA */
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Social Links */
    .social-links {
        justify-content: center;
    }
}

/* Desktop Large - 1400px and above */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Tablet Landscape - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {

    
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Slideshow responsive - Tablet */
@media (max-width: 768px) {
    .slideshow-container {
        margin: 0 var(--spacing-sm);
        border-radius: 8px;
    }
    
    .slideshow-wrapper {
        aspect-ratio: 4/3;
    }
    
    .slide-caption {
        font-size: 1.125rem;
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .slide-prev,
    .slide-next {
        font-size: 1.5rem;
        padding: 0.75rem 1rem;
    }
    
    .slide-dots {
        bottom: 0.5rem;
        gap: 0.5rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }
    
    .lightbox-caption {
        font-size: 1rem;
        bottom: 20px;
        padding: 0.5rem 1rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .slideshow-container {
        margin: 0;
        border-radius: 0;
    }
    
    .slideshow-wrapper {
        aspect-ratio: 1/1;
    }
    
    .slide-caption {
        font-size: 1rem;
        padding: var(--spacing-sm);
    }
    
    .slide-prev,
    .slide-next {
        font-size: 1.25rem;
        padding: 0.5rem 0.75rem;
    }
    
    .slide-prev {
        left: 0.5rem;
    }
    
    .slide-next {
        right: 0.5rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }
}

/* Medium Devices - Specific Adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About Features */
    .about-features {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .scroll-indicator,
    .hero-cta,
    .cta,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .hero {
        height: auto;
        page-break-after: always;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment if dark mode is needed */
    /*
    :root {
        --color-bg-light: #1a1a1a;
        --color-white: #0a0a0a;
    }
    */
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .nav-link::after {
        height: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        padding: 1rem 2rem;
    }
    
    .nav-link {
        padding: 1rem 0;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
    
    .nav-menu {
        height: calc(100vh - 70px);
    }
}

/* Very Small Devices - 320px */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}