/* Responsive Design */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

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

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

    .about-content {
        gap: 3rem;
    }

    .process-timeline::before {
        display: none;
    }

    .process-step {
        flex-direction: column !important;
    }

    .step-number {
        position: relative;
        left: 0;
        transform: none;
        margin-bottom: 1rem;
    }

    .step-content {
        width: 100%;
        margin: 0 !important;
    }

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

/* Tablets */
@media (max-width: 768px) {
    /* Hide top bar on mobile */
    .top-bar {
        display: none;
    }

    /* Show floating call button on mobile */
    .floating-call {
        display: flex;
    }

    /* Navigation adjustments for mobile (no top bar) */
    .navbar {
        top: 0;
    }

    /* Navigation Mobile */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: 2rem 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero */
    .hero {
        min-height: 80vh;
        margin-top: 70px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    /* FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
    }

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

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

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

/* Mobile Devices */
@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }

    p, .lead {
        font-size: 1rem;
    }

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    /* Hero */
    .hero {
        margin-top: 60px;
        min-height: 70vh;
    }

    .hero-content {
        padding: 1rem 0;
    }

    .hero-line-1 {
        font-size: 1.25rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 1.5rem;
    }

    /* About */
    .about-feature {
        flex-direction: column;
        text-align: center;
    }

    .about-stats {
        padding: 1rem;
    }

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

    /* Process */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .step-content {
        padding: 1.5rem;
    }

    /* FAQ */
    .faq-question {
        padding: 1rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    /* Contact */
    .contact-form {
        padding: 1.5rem;
    }

    .info-item {
        padding: 1rem;
    }

    .info-item i {
        font-size: 1.25rem;
    }

    /* CTA */
    .cta {
        padding: 60px 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Small Mobile Devices */
@media (max-width: 360px) {
    .hero-line-2 {
        font-size: 1.75rem;
    }

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

    .service-card {
        padding: 1.25rem;
    }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

    .hero-content {
        padding: 1rem 0;
    }

    .hero-features {
        display: none;
    }

    .hero-scroll {
        display: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-scroll,
    .back-to-top,
    .nav-toggle,
    .social-links,
    .top-bar,
    .floating-call {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .container {
        width: 100%;
        max-width: none;
    }

    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }

    .hero {
        min-height: auto;
        margin-top: 0;
    }

    .hero-bg,
    .hero-overlay {
        display: none;
    }

    .hero-content {
        color: var(--text-dark);
    }

    .btn {
        border: 1px solid var(--text-dark);
        color: var(--text-dark) !important;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg {
        background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    }
}

/* Hover Effects - Disable on Touch Devices */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }

    .about-feature:hover {
        transform: none;
    }

    .info-item:hover {
        transform: none;
    }

    .nav-link:hover::after {
        width: 0;
    }

    .btn:hover {
        transform: none;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-scroll {
        animation: none;
    }

    .scroll-indicator {
        animation: none;
    }
}