/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    .h1, h1 { font-size: 1.875rem; }
    .h2, h2 { font-size: 1.5rem; }
    .h3, h3 { font-size: 1.375rem; }
    .h4, h4 { font-size: 1.25rem; }
    .lead { font-size: 1rem; }
    
    /* Header */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    /* Disable animations on mobile */
    .sal-animate {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Service Cards */
    .service-card {
        margin-bottom: 2rem;
    }
    
    .service-image img {
        height: 200px;
    }
    
    /* Team Members */
    .member-image {
        width: 150px;
        height: 150px;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
    }
    
    .timeline-item::before {
        left: 10px !important;
        right: auto !important;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    /* Cards */
    .feature-card,
    .info-card,
    .measurement-card,
    .resource-card,
    .development-card,
    .privacy-card,
    .terms-card,
    .cancellation-card,
    .ethics-card,
    .safety-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Price Cards */
    .price-card {
        margin-bottom: 2rem;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    #footer {
        text-align: center;
    }
    
    #footer .row > div {
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    .h1, h1 { font-size: 2rem; }
    .h2, h2 { font-size: 1.75rem; }
    
    /* Hero */
    .hero-section {
        padding-top: 90px;
    }
    
    .hero-buttons .btn {
        min-width: 180px;
    }
    
    /* Service Cards */
    .service-image img {
        height: 220px;
    }
    
    /* Team Members */
    .member-image {
        width: 170px;
        height: 170px;
    }
    
    /* Timeline adjustments */
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 1rem !important;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: 10px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    .h1, h1 { font-size: 2.25rem; }
    .h2, h2 { font-size: 1.875rem; }
    
    /* Hero */
    .hero-section {
        padding-top: 95px;
    }
    
    /* Service Cards */
    .service-image img {
        height: 240px;
    }
    
    /* Team grid adjustments */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .member-image {
        width: 180px;
        height: 180px;
    }
    
    /* Timeline - still single column on tablet */
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 1rem !important;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: 10px !important;
    }
    
    /* Contact info layout */
    .contact-info {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full desktop timeline layout */
    .timeline::before {
        left: 50%;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
        padding-right: 3rem;
        padding-left: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 3rem;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(odd)::before {
        right: -10px;
        left: auto;
    }
    
    .timeline-item:nth-child(even)::before {
        left: -10px;
        right: auto;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Optimize for large screens */
    .container {
        max-width: var(--container-max-width);
    }
    
    /* Enhanced spacing for large screens */
    .hero-section {
        padding-top: 120px;
    }
    
    /* Larger feature icons */
    .feature-icon {
        width: 100px;
        height: 100px;
    }
    
    .info-icon {
        width: 100px;
        height: 100px;
    }
    
    /* Enhanced service card images */
    .service-image img {
        height: 280px;
    }
    
    /* Larger team member images */
    .member-image {
        width: 220px;
        height: 220px;
    }
}

/* Specific responsive adjustments for content sections */
@media (max-width: 767.98px) {
    /* About features - stack vertically */
    #about .row.g-4 > div {
        margin-bottom: 2rem;
    }
    
    /* Services - adjust spacing */
    #services .row.g-4 > div {
        margin-bottom: 2rem;
    }
    
    /* Features section - adjust layout */
    #features .feature-item {
        text-align: center;
        padding: 1rem;
    }
    
    .feature-item .feature-icon {
        margin-bottom: 1rem;
    }
    
    /* Price plans - center content */
    #priceplan .row {
        justify-content: center;
    }
    
    /* Reviews - adjust spacing */
    #reviews .review-card {
        margin-bottom: 1.5rem;
    }
    
    /* Case studies grid */
    #casestudy .case-study-card {
        margin-bottom: 2rem;
    }
    
    /* Process steps - adjust layout */
    #process .process-step {
        text-align: center;
    }
    
    /* Core info grid */
    #coreinfo .info-card {
        margin-bottom: 1.5rem;
    }
    
    /* FAQ grid */
    #faq .faq-card {
        margin-bottom: 1rem;
    }
    
    /* Gallery - adjust columns */
    #gallery img {
        margin-bottom: 1rem;
    }
    
    /* Blog grid */
    #blog .blog-card {
        margin-bottom: 2rem;
    }
}

/* Navigation responsive improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-light);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        border-radius: 8px;
    }
}

/* Form responsive improvements */
@media (max-width: 767.98px) {
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .contact-form .btn {
        width: 100%;
        padding: 15px;
    }
}

/* Breadcrumb responsive */
@media (max-width: 767.98px) {
    .breadcrumb-section {
        padding-top: 90px;
        padding-bottom: 1rem;
    }
    
    .breadcrumb-icon {
        width: 16px;
        height: 16px;
    }
}

/* Additional page content responsive */
@media (max-width: 767.98px) {
    .insight-card,
    .technique-card,
    .measurement-card,
    .resource-card,
    .development-card,
    .privacy-card,
    .terms-card,
    .cancellation-card,
    .ethics-card,
    .safety-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    /* Reduce complex animations */
    * {
        animation-duration: 0.3s !important;
    }
    
    /* Optimize images */
    img {
        image-rendering: auto;
    }
    
    /* Reduce shadows on mobile for performance */
    .shadow, .shadow-sm, .shadow-lg {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Simplify hover effects on touch devices */
    .card:hover,
    .feature-card:hover,
    .service-card:hover {
        transform: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Crisp images for retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 80vh;
        padding-top: 100px;
    }
    
    .hero-buttons {
        margin-top: 1rem;
    }
}

/* Print styles */
@media print {
    /* Hide unnecessary elements */
    #header,
    #footer,
    .breadcrumb-section,
    .hero-buttons,
    .btn,
    #gallery {
        display: none !important;
    }
    
    /* Optimize text for printing */
    body {
        font-size: 12px;
        line-height: 1.4;
        color: black;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    /* Remove shadows and colors for print */
    * {
        box-shadow: none !important;
        background: white !important;
    }
    
    /* Ensure proper page breaks */
    section {
        page-break-inside: avoid;
    }
} 

.hero-section h1 {
    padding-top: 100px;
}