/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large Devices (992px to 1199px) */
@media (max-width: 1199px) {
    :root {
        --spacing-xl: 5rem;
        --spacing-lg: 3rem;
    }

    .section-title {
        font-size: 2.25rem;
    }
}

/* Medium Devices (768px to 991px) */
@media (max-width: 991px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 2.5rem;
    }

    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Sections */
    section {
        padding: var(--spacing-lg) 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }
}

/* Small Devices (576px to 767px) */
@media (max-width: 767px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
        --spacing-md: 1.5rem;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.375rem;
    }

    /* Buttons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile & Tablet Menu Behavior (Removed - handled in navbar.css) */
/* Phones: hide menu entirely until toggled (Removed - handled in navbar.css) */

/* Extra Small Devices (up to 575px) */
@media (max-width: 575px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-lg: 1.5rem;
        --spacing-md: 1rem;
    }

    /* Container */
    .container {
        padding: 0 1rem;
    }

    /* Typography */
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.625rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .section-header {
        margin-bottom: var(--spacing-md);
    }

    .section-label {
        font-size: 0.8125rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 0.9375rem;
    }

    /* Cards */
    .card {
        padding: 1.5rem;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 991px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .hero-slide {
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .chatbot,
    .back-to-top,
    .hero-buttons,
    .btn,
    .owl-nav,
    .owl-dots,
    .contact-form {
        display: none !important;
    }

    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    h1 {
        font-size: 24pt;
    }

    h2 {
        font-size: 20pt;
    }

    h3 {
        font-size: 16pt;
    }

    a {
        text-decoration: underline;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* 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;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-navy: #000000;
        --accent-gold: #ffcc00;
        --text-light: #333333;
    }

    .btn,
    .card,
    input,
    textarea,
    select {
        border-width: 2px;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Increase tap targets for touch devices */
    .nav-link,
    .btn,
    .quick-reply,
    .social-links a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .card:hover,
    .project-card:hover,
    .service-card:hover {
        transform: none;
    }
}

/* Specific Breakpoint Adjustments */
@media (min-width: 576px) and (max-width: 767px) {

    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Ultra-wide Screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    .hero-title {
        font-size: 5rem;
    }

    .hero-subtitle {
        font-size: 1.75rem;
    }
}

/* Small Height Screens (Laptops, etc.) */
@media (max-height: 700px) {
    .hero {
        min-height: 600px;
    }

    .hero-slide {
        min-height: 600px;
    }

    section {
        padding: var(--spacing-md) 0;
    }
}