/* Responsive Styles for Loganix SEO Agency */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }

    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .service-highlights {
        padding: 60px 0;
    }

    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .service-card .icon {
        font-size: 2.5rem;
    }

    .why-choose-us,
    .testimonials,
    .cta-section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .feature-item .icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    footer .row > div {
        margin-bottom: 2rem;
    }

    footer .col-md-6 {
        text-align: center !important;
    }
}

/* Small Devices (tablets, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.75rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .service-highlights .col-md-6 {
        margin-bottom: 2rem;
    }

    .feature-item {
        margin-bottom: 2rem;
    }

    .testimonial-card {
        margin-bottom: 2rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 2.25rem;
    }

    .cta-section h2 {
        font-size: 2.25rem;
    }

    .service-highlights .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }

    .hero-section p {
        font-size: 1.25rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .cta-section h2 {
        font-size: 2.5rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 4rem;
    }

    .hero-section p {
        font-size: 1.4rem;
    }

    .section-title h2 {
        font-size: 2.75rem;
    }

    .cta-section h2 {
        font-size: 2.75rem;
    }

    .container {
        max-width: 1400px;
    }
}

/* Zoom Level Adjustments */
@media screen and (max-width: 1000px) and (max-height: 1000px) {
    /* Adjustments for 80% zoom */
    .hero-section h1 {
        font-size: calc(3.5rem * 0.8);
    }

    .hero-section p {
        font-size: calc(1.25rem * 0.8);
    }

    .btn-primary {
        padding: calc(12px * 0.8) calc(30px * 0.8);
        font-size: calc(1rem * 0.8);
    }

    .service-card {
        padding: calc(2rem * 0.8);
    }

    .section-title h2 {
        font-size: calc(2.5rem * 0.8);
    }

    .feature-item .icon {
        font-size: calc(2.5rem * 0.8);
    }

    .testimonial-card {
        padding: calc(2rem * 0.8);
    }

    .cta-section h2 {
        font-size: calc(2.5rem * 0.8);
    }

    .cta-section p {
        font-size: calc(1.25rem * 0.8);
    }
}

@media screen and (max-width: 1250px) and (max-height: 1250px) {
    /* Adjustments for 100% zoom */
    .hero-section h1 {
        font-size: 3.5rem;
    }

    .hero-section p {
        font-size: 1.25rem;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .service-card {
        padding: 2rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .feature-item .icon {
        font-size: 2.5rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .cta-section h2 {
        font-size: 2.5rem;
    }

    .cta-section p {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    #backToTop {
        display: none !important;
    }

    .hero-section {
        background: white !important;
        color: black !important;
    }

    .hero-section::before {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    .service-card,
    .testimonial-card {
        break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-accent: #FF0000;
        --text-color: #000000;
        --body-bg: #FFFFFF;
        --navbar-bg: #FFFFFF;
        --hero-bg: #F0F0F0;
        --footer-bg: #E0E0E0;
    }

    .btn-primary {
        border: 2px solid #000000;
    }
}

/* Reduced Motion Support */
@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;
    }

    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #E2E8F0;
        --body-bg: #0F172A;
        --navbar-bg: #1E293B;
        --hero-bg: #1E293B;
        --footer-bg: #1E293B;
        --shadow: rgba(0, 0, 0, 0.3);
    }

    .service-card,
    .testimonial-card {
        background: #1E293B;
        border-color: #334155;
    }

    .service-card h4,
    .testimonial-card .author {
        color: #E2E8F0;
    }

    .service-card p,
    .testimonial-card p {
        color: #CBD5E1;
    }

    .feature-item h5 {
        color: #E2E8F0;
    }

    .feature-item p {
        color: #CBD5E1;
    }
}