/* Responsive CSS - Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 60px;
        min-height: 80vh;
    }
    
    .hero-section .display-5 {
        font-size: 1.5rem;
    }
    
    .hero-section .fs-4 {
        font-size: 1.125rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Sections */
    .py-5 {
        padding: 2.5rem 0;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .blog-card,
    .faq-card,
    .info-card,
    .career-card,
    .case-study-card {
        margin-bottom: 1.5rem;
    }
    
    /* Team Grid */
    .col-lg-2-4 {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    /* Process Steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Timeline */
    .timeline-marker {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 0.875rem;
    }
    
    /* Gallery */
    .gallery-section .col-sm-6 {
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    .contact-form .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Disable animations on mobile for better performance */
    @media (prefers-reduced-motion: no-preference) {
        .feature-card:hover,
        .service-card:hover,
        .pricing-card:hover,
        .review-card:hover,
        .blog-card:hover,
        .faq-card:hover,
        .info-card:hover,
        .career-card:hover,
        .case-study-card:hover {
            transform: none;
        }
        
        .gallery-section img:hover {
            transform: none;
        }
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section .display-5 {
        font-size: 1.75rem;
    }
    
    .hero-actions .btn {
        width: auto;
        margin-right: 1rem;
    }
    
    /* Team Grid */
    .col-lg-2-4 {
        width: 50%;
    }
    
    /* Gallery */
    .gallery-section .col-sm-6 {
        width: 50%;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section {
        padding-top: 70px;
    }
    
    .hero-section .display-5 {
        font-size: 2rem;
    }
    
    /* Team Grid */
    .col-lg-2-4 {
        width: 33.333333%;
    }
    
    /* Services Grid */
    .services-section .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Pricing Grid */
    .pricing-section .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Blog Grid */
    .blog-section .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    .gallery-section .col-lg-3 {
        width: 50%;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-section {
        padding-top: 80px;
    }
    
    /* Team Grid */
    .col-lg-2-4 {
        width: 20%;
    }
    
    /* Container Adjustments */
    .container {
        max-width: 960px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero Section */
    .hero-section .display-5 {
        font-size: 2.5rem;
    }
    
    .hero-section .fs-4 {
        font-size: 1.375rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.375rem;
    }
    
    .section-description {
        font-size: 1.25rem;
    }
    
    /* Enhanced Hover Effects for Larger Screens */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover {
        transform: translateY(-8px);
    }
    
    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: translateY(-3px);
    }
}

/* Specific Mobile Landscape Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 60vh;
        padding-top: 60px;
    }
    
    .py-5 {
        padding: 2rem 0;
    }
    
    /* Reduce hero content for landscape mobile */
    .hero-section .display-5 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on retina displays */
    .hero-shapes .shape {
        transform: translateZ(0);
    }
    
    .feature-icon,
    .contact-icon,
    .info-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Container Responsive Adjustments */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
}

/* Navigation Responsive Improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        border-radius: 8px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
}

/* Form Responsive Adjustments */
@media (max-width: 767.98px) {
    .contact-form .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .contact-info .contact-item {
        margin-bottom: 2rem;
        padding: 1rem;
        background: var(--light);
        border-radius: 8px;
    }
}

/* Grid System Adjustments */
@media (max-width: 575.98px) {
    .row.g-4 > * {
        margin-bottom: 1.5rem;
    }
    
    .row.g-3 > * {
        margin-bottom: 1rem;
    }
}

/* Service Cards Mobile Optimization */
@media (max-width: 767.98px) {
    .service-image img {
        height: 150px;
    }
    
    .service-features {
        font-size: 0.9rem;
    }
    
    .service-price {
        font-size: 1.5rem;
    }
}

/* Pricing Cards Mobile Optimization */
@media (max-width: 767.98px) {
    .plan-price {
        font-size: 1.75rem;
    }
    
    .plan-features {
        font-size: 0.9rem;
    }
    
    .popular-badge {
        position: static;
        margin-bottom: 1rem;
        transform: none;
    }
}

/* Blog Cards Mobile Optimization */
@media (max-width: 767.98px) {
    .blog-image img {
        height: 150px;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
}

/* FAQ Mobile Optimization */
@media (max-width: 767.98px) {
    .faq-question {
        font-size: 1rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
    }
}

/* Gallery Mobile Optimization */
@media (max-width: 575.98px) {
    .gallery-section .col-sm-6 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .gallery-section img {
        height: 200px;
        object-fit: cover;
    }
}

/* Footer Mobile Optimization */
@media (max-width: 767.98px) {
    .footer {
        text-align: center;
    }
    
    .footer .row.align-items-center {
        text-align: center;
    }
    
    .footer .col-md-6:last-child {
        margin-top: 1rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        margin-bottom: 0.5rem;
        border-radius: 8px;
    }
    
    .newsletter-form .btn {
        border-radius: 8px;
    }
}

/* Accessibility Improvements for Mobile */
@media (max-width: 767.98px) {
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improved form controls */
    .form-control {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Print Responsive Adjustments */
@media print {
    /* Hide mobile-specific elements */
    .navbar-toggler,
    .hero-shapes,
    .popular-badge {
        display: none;
    }
    
    /* Adjust spacing for print */
    .py-5 {
        padding: 1rem 0;
    }
    
    /* Ensure proper page breaks */
    .section-title {
        page-break-after: avoid;
    }
    
    .feature-card,
    .service-card,
    .review-card {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
} 

body {
    overflow-x: hidden;
}

.hero-section h1 {
    padding-top: 275px;
}