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

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .value-content,
    .about-content,
    .contact-content,
    .magnet-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .cases-grid,
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 7rem 0 1rem;
        margin-top: 80px;

    .hero-title {
        margin-top: 2rem;
        padding-top: 1rem;
    }
    }
    
    /* Hero Icons - Mobile Size */
    .hero-icon, .service-hero .hero-icon {
        width: 180px;
        height: 180px;
        margin-bottom: 1rem;
    }

    .hero-icon i, .service-hero .hero-icon i {
        font-size: 60px;
    }

    .hero h1, .service-hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero .lead, .service-hero .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .service-hero {
        padding: 7rem 0 1.5rem;
    }
    .hero-content {
        gap: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .stat {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Floating cards - hide on mobile for performance */
    .floating-cards {
        display: none;
    }
    
    /* Sections */
    .services,
    .case-studies,
    .blog,
    .about,
    .contact {
        padding: 4rem 0;
    }
    
    .value-prop,
    .lead-magnet {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    /* Value Points */
    .value-points {
        gap: 1rem;
    }
    
    .value-point {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    /* Lead Magnet */
    .magnet-form {
        padding: 2rem;
    }
    
    /* Case Studies */
    .cases-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .case-metrics,
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .metric {
        min-width: 100px;
    }
    
    /* About Section */
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact */
    .contact-methods {
        gap: 1rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Trust Section */
    .trust-logos {
        gap: 2rem;
    }
    
    .trust-logos img {
        height: 30px;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    /* Typography */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Cards */
    .service-card,
    .case-card,
    .blog-card {
        padding: 1.5rem;
    }
    
    .magnet-form,
    .contact-form-container {
        padding: 1.5rem;
    }
    
    /* Stats */
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .about-stat {
        padding: 1rem;
    }
    
    /* Trust logos */
    .trust-logos {
        gap: 1rem;
    }
    
    .trust-logos img {
        height: 25px;
    }
    
    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Social links */
    .social-links {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    /* Metrics */
    .case-metrics {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .metric {
        min-width: auto;
    }
    
    .metric-value {
        font-size: 1.2rem;
    }
}

/* Extra Small Devices */
@media screen and (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .stat {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .value-point {
        gap: 0.5rem;
    }
    
    .point-icon {
        width: 40px;
        height: 40px;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
    }
    
    .trust-logos {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Landscape Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        top: 60px;
    }
    
    .navbar {
        height: 60px;
    }
    
    .nav-container {
        height: 60px;
    }
    
    .hero-scroll {
        display: none;
    }
}

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

/* Print Styles */
@media print {
    .navbar,
    .hero-scroll,
    .footer,
    .btn,
    .floating-cards {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 7rem 0 1rem;
        margin-top: 80px;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    .service-card,
    .case-card,
    .blog-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e0e0e0;
        --card-bg: #2a2a2a;
        --border-color: #333;
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .service-card,
    .case-card,
    .blog-card,
    .about-stat,
    .team-member,
    .magnet-form,
    .contact-form-container {
        background: var(--card-bg);
        border-color: var(--border-color);
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .trust-section {
        background: #2a2a2a;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: var(--card-bg);
        border-color: var(--border-color);
        color: var(--text-color);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .floating-cards .card {
        animation: none;
    }
    
    .scroll-down {
        animation: none;
    }
    
    .hero-image img,
    .case-image img,
    .blog-image img {
        transition: none;
    }
    
    .service-card,
    .case-card,
    .blog-card,
    .team-member {
        transition: none;
    }
    
    .btn {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .btn-secondary,
    .btn-outline {
        border-width: 3px;
    }
    
    .service-card,
    .case-card,
    .blog-card {
        border: 2px solid #333;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 2px;
    }
}

/* Focus Visible Support */
@supports selector(:focus-visible) {
    button:focus:not(:focus-visible),
    input:focus:not(:focus-visible),
    select:focus:not(:focus-visible),
    textarea:focus:not(:focus-visible),
    a:focus:not(:focus-visible) {
        outline: none;
    }
}
