/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 24px;
        --spacing-2xl: 32px;
    }

    /* Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-md);
        gap: 0;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: var(--spacing-md);
    }

    .nav-link::after {
        display: none;
    }

    .cta-button {
        display: none;
    }

    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-image {
        height: 300px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    /* CTA Banner */
    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-text h2 {
        font-size: 24px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Features */
    .features-wrapper {
        grid-template-columns: 1fr;
    }

    /* Pricing */
    .pricing-card.featured {
        transform: scale(1);
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-bottom-wrapper {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 16px;
        --spacing-xl: 20px;
        --spacing-2xl: 24px;
    }

    html {
        font-size: 14px;
    }

    h1 {
        font-size: clamp(24px, 6vw, 32px);
    }

    h2 {
        font-size: clamp(20px, 5vw, 28px);
    }

    h3 {
        font-size: 20px;
    }

    /* Navigation */
    .navbar {
        padding: var(--spacing-sm) 0;
    }

    .nav-wrapper {
        gap: var(--spacing-sm);
    }

    .logo-text {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }

    .hero-content {
        padding: var(--spacing-lg) 0;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-benefits li {
        font-size: 16px;
    }

    /* Sections */
    section {
        padding: var(--spacing-xl) 0;
    }

    /* Cards */
    .service-card {
        padding: var(--spacing-lg);
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon svg {
        width: 30px;
        height: 30px;
    }

    /* Pricing */
    .pricing-grid {
        gap: var(--spacing-md);
    }

    .price-tag span {
        font-size: 28px;
    }

    /* Forms */
    .form-group {
        margin-bottom: var(--spacing-md);
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px var(--spacing-sm);
        font-size: 16px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    /* Utilities */
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* Extra Small Phones */
@media (max-width: 360px) {
    h1 {
        font-size: clamp(20px, 5vw, 24px);
    }

    h2 {
        font-size: clamp(18px, 4vw, 20px);
    }

    .hero-text h1 {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .cta-text h2 {
        font-size: 20px;
    }

    .contact-form {
        padding: var(--spacing-lg);
    }

    .pricing-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
}

/* Large Screens (Desktop) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    section {
        padding: var(--spacing-2xl) 0;
    }

    /* Hover effects */
    .service-card:hover {
        transform: translateY(-12px);
    }

    .contact-item:hover {
        transform: translateY(-8px);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Large Screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    h1 {
        font-size: 64px;
    }

    h2 {
        font-size: 52px;
    }

    section {
        padding: var(--spacing-2xl) 0;
    }
}

/* Print Media */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }
}

/* Orientation changes */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
    }

    .hero-content {
        gap: var(--spacing-lg);
    }

    .hero-image {
        height: 250px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f0f0f0;
        --text-light: #b0b0b0;
        --bg-light: #1a1a1a;
        --bg-white: #242424;
        --border-color: #404040;
    }

    .navbar {
        background-color: #1a1a1a;
    }

    .hero {
        background: linear-gradient(135deg, #0d1b3d 0%, #1a2d4d 50%, #1f3a52 100%);
    }

    .contact-form {
        background-color: #242424;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        background-color: #1a1a1a;
        color: #f0f0f0;
        border-color: #404040;
    }
}

/* High Resolution Displays */
@media (min-width: 2560px) {
    h1 {
        font-size: 80px;
    }

    h2 {
        font-size: 64px;
    }

    .container {
        max-width: 1600px;
    }
}