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

/* ===== LARGE SCREENS (1200px+) ===== */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .hero-section {
        min-height: 100vh;
    }
}

/* ===== DESKTOP (992px - 1199px) ===== */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* ===== TABLET (768px - 991px) ===== */
@media (max-width: 991.98px) and (min-width: 768px) {
    /* Typography Adjustments */
    .display-4 {
        font-size: 2.2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-top: 2rem;
    }
    
    /* Spacing Adjustments */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Cards */
    .feature-card,
    .feature-highlight,
    .planning-feature,
    .logistics-item,
    .measurement-metric,
    .info-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Team Section */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process Steps */
    .process-step,
    .application-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Contact Form */
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* ===== MOBILE LARGE (576px - 767px) ===== */
@media (max-width: 767.98px) and (min-width: 576px) {
    /* Typography */
    .display-4 {
        font-size: 1.8rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .h4 {
        font-size: 1.2rem;
    }
    
    .h5 {
        font-size: 1.1rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem;
        text-align: center;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 70vh;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-top: 1.5rem;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    /* Cards and Features */
    .feature-card,
    .feature-highlight,
    .planning-feature,
    .logistics-item,
    .measurement-metric,
    .info-card,
    .application-step {
        padding: 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    /* Service Cards */
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .service-card img {
        height: 200px;
        object-fit: cover;
    }
    
    /* Price Cards */
    .price-card.border-primary {
        transform: none;
        margin-bottom: 1.5rem;
    }
    
    /* Team Section */
    .team-member {
        margin-bottom: 1.5rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Process Steps */
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    /* Gallery */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Contact Info */
    .contact-form .row .col-md-6,
    .contact-form .row .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    footer .row.align-items-center .col-md-6 {
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

/* ===== MOBILE SMALL (up to 575px) ===== */
@media (max-width: 575.98px) {
    /* NO SCROLL ANIMATIONS ON MOBILE */
    * {
        animation: none;
        transition: none;
    }
    
    /* Typography */
    .display-4 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .h2 {
        font-size: 1.4rem;
    }
    
    .h4 {
        font-size: 1.1rem;
    }
    
    .h5 {
        font-size: 1rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 60vh;
        text-align: center;
        padding: 1.5rem 0;
    }
    
    .hero-section .container {
        padding: 0 1rem;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-top: 1rem;
    }
    
    /* Container Padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-outline-primary,
    .btn-primary {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Cards and Features */
    .feature-card,
    .feature-highlight,
    .planning-feature,
    .logistics-item,
    .measurement-metric,
    .info-card,
    .application-step,
    .support-service,
    .timeline-item {
        padding: 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    /* Service Cards Grid */
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .career-item,
    .blog-card,
    .faq-card,
    .requirement-card,
    .financial-info,
    .success-story {
        margin-bottom: 1rem;
    }
    
    .service-card img,
    .price-card img {
        height: 180px;
        object-fit: cover;
    }
    
    /* Price Cards */
    .price-card.border-primary {
        transform: none;
        border-width: 1px;
    }
    
    /* Team Section */
    .team-member {
        margin-bottom: 1.5rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process Steps */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Gallery */
    #gallery .col-lg-3,
    #gallery .col-md-6 {
        margin-bottom: 0.5rem;
    }
    
    #gallery img {
        border-radius: 0.5rem;
    }
    
    /* Contact Form */
    .contact-form .form-control {
        margin-bottom: 1rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .contact-form .row .col-md-6,
    .contact-form .row .col-md-4 {
        margin-bottom: 0;
    }
    
    /* Contact Info Grid */
    .contact-form + .row .col-md-4 {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    footer .row.align-items-center .col-md-6 {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    footer ul.list-unstyled {
        padding: 0;
    }
    
    footer ul.list-unstyled li {
        margin-bottom: 0.5rem;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        justify-content: center;
    }
    
    /* Blog Grid */
    #blog_grid .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* FAQ Cards */
    .faq-card {
        padding: 1rem;
    }
    
    /* Additional Page Content */
    .custom-option,
    .marketing-service {
        margin-bottom: 1rem;
    }
    
    /* Space Page */
    #space {
        min-height: 30vh;
        margin: 1rem 0;
    }
}

/* ===== MOBILE EXTRA SMALL (up to 480px) ===== */
@media (max-width: 479.98px) {
    /* Further Typography Reductions */
    .display-4 {
        font-size: 1.4rem;
    }
    
    .h2 {
        font-size: 1.3rem;
    }
    
    .h4 {
        font-size: 1rem;
    }
    
    .h5 {
        font-size: 0.95rem;
    }
    
    /* Container */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 50vh;
        padding: 1rem 0;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    /* Cards */
    .card {
        border-radius: 0.5rem;
    }
    
    .feature-card,
    .feature-highlight,
    .planning-feature,
    .logistics-item {
        padding: 0.75rem;
    }
    
    /* Icons */
    .fa-3x {
        font-size: 2rem;
    }
    
    .fa-2x {
        font-size: 1.5rem;
    }
    
    /* Team Images */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Form */
    .contact-form .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    /* Footer */
    footer {
        padding: 2rem 0;
    }
    
    footer .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* ===== LANDSCAPE MOBILE OPTIMIZATIONS ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .py-5 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    #space {
        min-height: 20vh;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (max-width: 767.98px) {
    /* Larger touch targets for mobile */
    .btn,
    .nav-link,
    .form-control {
        min-height: 44px;
    }
    
    /* Better contrast for small screens */
    .text-muted {
        color: #495057;
    }
    
    /* Focus indicators */
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline-width: 3px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    /* Hide unnecessary elements */
    .navbar,
    footer,
    .btn,
    #gallery {
        display: none;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    overflow-x: hidden;
}
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .py-5 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}


.hero-section h1 {
    padding-top: 225px;
}