/* Responsive Design */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 40px;
    }

    .service-detail-image img {
        height: auto;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .header {
        background: #ffffff;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }

    .navbar {
        padding: 0.6rem 0;
        min-height: 64px;
    }

    .hamburger {
        display: flex;
    }

    .nav-brand .logo span {
        font-size: 1.2rem;
    }

    .nav-brand .logo img {
        width: 40px;
        height: 40px;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        right: 0;
        left: 0;
        height: calc(100vh - 64px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu .nav-link {
        color: var(--text);
        border: 1px solid transparent;
    }

    .nav-contact {
        display: none;
    }

    .hero {
        padding: 100px 0 60px;
        margin-top: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text h2 {
        font-size: 1.6rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .services-overview,
    .why-choose-us,
    .team,
    .cta {
        padding: 60px 0;
    }

    .services-details {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 32px;
        text-align: right;
    }

    .service-detail-content.reverse {
        direction: rtl;
    }

    .service-detail-image img {
        height: auto;
    }

    .service-cta {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer {
        padding: 50px 0 20px;
    }

    .footer-section + .footer-section {
        border-top: 1px solid rgba(1, 94, 109, 0.12);
        padding-top: 18px;
    }

    .footer-section h4 {
        margin-bottom: 12px;
    }

    .footer-section ul {
        display: grid;
        gap: 10px;
        justify-items: center;
    }

    .footer-section ul li a {
        display: inline-block;
        padding: 8px 16px;
        border-radius: 999px;
        background: rgba(1, 94, 109, 0.08);
        color: var(--brand);
    }

    .footer-section ul li a:hover {
        background: rgba(1, 94, 109, 0.16);
    }

    .footer-logo {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info p {
        justify-content: center;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .nav-brand .logo {
        font-size: 1.5rem;
    }

    .nav-brand .logo img {
        width: 40px;
        height: 40px;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text h2 {
        font-size: 1.4rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .service-card,
    .feature-card {
        padding: 1.5rem;
    }

    .service-detail-content {
        padding: 24px;
    }

    .service-detail-text h2 {
        font-size: 1.6rem;
    }

    .service-detail-text p,
    .service-detail-text li {
        font-size: 0.98rem;
    }

    .service-icon,
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .service-card h3,
    .feature-card h3 {
        font-size: 1.1rem;
    }

    .team-member h3 {
        font-size: 1.2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .footer {
        padding: 40px 0 15px;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.2rem;
    }

    .footer-section ul li a {
        width: 100%;
        max-width: 240px;
        text-align: center;
    }
}

/* Small Mobile Phones */
@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .service-card,
    .feature-card {
        padding: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Landscape Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 60px 0 30px;
    }

    .nav-menu {
        height: calc(100vh - 60px);
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text h2 {
        font-size: 1.4rem;
    }
}

/* High Resolution Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text h2 {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 2.8rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .cta,
    .scroll-top,
    .whatsapp-float {
        display: none;
    }

    .hero {
        background: none;
        color: #0D182D;
        padding: 20px 0;
    }

    .service-card,
    .feature-card,
    .team-member {
        box-shadow: none;
        border: 1px solid #D6D9E1;
        break-inside: avoid;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Accessibility */
@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;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .header {
        background: #0D182D;
    }

    .nav-link {
        color: #fff;
    }

    .hero {
        background: linear-gradient(135deg, #0D182D 0%, #1F2A44 100%);
    }

    .services-overview,
    .team {
        background: #0D182D;
    }

    .service-card,
    .feature-card,
    .team-member {
        background: #1F2A44;
        color: #fff;
    }

    .service-card h3,
    .feature-card h3,
    .team-member h3 {
        color: #fff;
    }

    .service-card p,
    .feature-card p {
        color: #D6D9E1;
    }

    .section-header h2 {
        color: #fff;
    }

    .section-header p {
        color: #D6D9E1;
    }
}
