/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
    .hero-content h3 {
        font-size: 3rem;
    }
    
    .contact-container {
        gap: var(--spacing-xl);
    }
    
    .services-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar {
        padding: 0 var(--spacing-md);
    }

    /* Content */
    .hero-content h3 {
        font-size: 2.5rem;
    }

    .main-content-container {
        height: calc(100vh - 70px - 36px);
    }

    .section-content {
        padding: var(--spacing-md);
    }

    .service-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Contact section */
    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .form-row {
        flex-direction: row;
        gap: 0.5rem;
    }

    .form-row .form-group {
        flex: 1;
    }

    .services-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    /* Card image */
    .card-image {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    /* Professional card */
    .professional-photo {
        width: 150px;
        height: 150px;
        margin: 30px var(--spacing-sm) var(--spacing-sm) 0;
    }

    /* Show mobile menu overlay when active */
    .mobile-menu-overlay.active {
        display: block;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .navbar {
        padding: 0 var(--spacing-md);
    }

    .hero-content h3 {
        font-size: 2rem;
    }

    .main-content-container {
        height: calc(100vh - 70px - 36px);
    }

    .card-image {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .feature-item {
        padding: var(--spacing-lg);
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .services-buttons {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .professional-photo {
        width: 120px;
        height: 120px;
        float: none;
        margin: 0 auto var(--spacing-md);
        display: block;
    }

    .contact-details {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .contact-column {
        text-align: center;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-content h3 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .card-image {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-item h4 {
        font-size: 1.1rem;
    }

    .toggle-container {
        width: 100px;
        gap: 10px;
    }

    .language-toggle {
        width: 60px;
    }
}

/* Height-based responsive adjustments */
@media (max-height: 900px) {
    .main-content-container {
        height: auto;
        min-height: calc(100vh - 70px - 36px);
    }
}

@media (max-height: 700px) {
    .hero-content {
        padding: var(--spacing-lg);
    }

    .hero-content h3 {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-lg);
    }

    .hero-content p {
        margin-bottom: var(--spacing-xl);
    }

    .service-features {
        margin-top: var(--spacing-xl);
        gap: var(--spacing-lg);
    }

    .card-image {
        margin-bottom: var(--spacing-xl);
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .main-content-container {
        margin-top: 50px;
        height: calc(100vh - 50px - 36px);
    }

    .navbar {
        top: 4px;
    }

    .nav-container {
        height: 50px;
    }

    .hero-content h3 {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }

    .service-features {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
        margin-top: var(--spacing-lg);
    }

    .feature-item {
        padding: var(--spacing-md);
    }

    .card-image {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-bottom: var(--spacing-lg);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .mobile-menu,
    .mobile-menu-overlay,
    .toggle-container,
    .custom-modal {
        display: none !important;
    }

    .main-content-container {
        margin-top: 0;
        height: auto;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .content-section {
        filter: none !important;
        transform: none !important;
        page-break-inside: avoid;
    }
}

