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

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

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .service-detailed {
        flex-direction: column !important;
        gap: 2rem;
    }

    .service-detailed-buttons {
        flex-direction: column;
    }

    .service-detailed-features {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .about-story {
        flex-direction: column;
        gap: 2rem;
    }

    .story-stats {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .team-member {
        padding: 1.5rem;
        width: 100%;
    }

    .team-grid {
        flex-direction: column;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* Language switcher on mobile */
    .language-switcher {
        margin-right: 1rem;
        order: 1;
    }

    .nav-brand {
        order: 0;
        flex: 1;
    }

    .mobile-menu-btn {
        order: 2;
    }
}

@media (max-width:320px){
    .nav-title{
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .portfolio-buttons {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .service-card {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .team-member {
        padding: 1.25rem;
        width: 100%;
    }

    .story-image img {
        height: 16rem;
    }

    .values-section {
        padding: 2rem 1rem;
    }

    .contact-cta {
        padding: 2rem 1rem;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons .btn {
        width: 100%;
    }

    /* Language switcher adjustments for very small screens */
    .current-lang {
        padding: 0.4rem 0.6rem;
        min-width: 70px;
    }

    .flag-icon {
        width: 16px;
        height: 12px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        justify-content: center;
    }

    .team-member {
        width: 45%;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Language switcher on tablet */
    .language-switcher {
        margin-right: 1rem;
    }
}

/* Large Screen Styles */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-member {
        width: 30%;
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print Styles */
@media print {

    .navbar,
    .mobile-menu,
    .scroll-indicator,
    .btn,
    .footer,
    .language-switcher {
        display: none !important;
    }

    .page {
        display: block !important;
    }

    .page-content {
        padding-top: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1,
    h2,
    h3 {
        page-break-after: avoid;
    }

    .service-card,
    .testimonial-card,
    .portfolio-item {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --background: #ffffff;
        --foreground: #000000;
        --primary: #0066cc;
        --border: #000000;
    }

    .btn-outline {
        border-width: 3px;
    }

    .service-card,
    .testimonial-card,
    .portfolio-item,
    .card {
        border: 2px solid var(--border);
    }

    .language-switcher .current-lang,
    .lang-dropdown {
        border: 2px solid var(--border);
    }
}

/* 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-indicator {
        animation: none;
    }

    .scroll-dot {
        animation: none;
    }

    .language-switcher .dropdown-arrow {
        transition: none;
    }
}