/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.76rem;
    }
    
    h3 {
        font-size: 1.54rem;
    }
    
    h4 {
        font-size: 1.36rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.42rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        text-align: center;
    }
    
    /* Hero Section */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 70vh;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.34rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.68rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.91rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Team Section */
    .team-member {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.23rem;
    }
    
    /* Form */
    .form-control {
        padding: 10px 12px;
        font-size: 1.01rem;
    }
    
    /* Gallery */
    .gallery .col-md-3 {
        margin-bottom: 1rem;
    }
    
    /* Contact Info */
    .contact-info {
        text-align: center;
        margin-bottom: 1.62rem;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.55rem;
    }
    
    .hero-section .lead {
        font-size: 1.34rem;
    }
    
    /* Team Grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Card Spacing */
    .card {
        margin-bottom: 1.66rem;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 1.67rem;
    }
    
    /* Gallery */
    .gallery .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2.90rem;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        margin: 0 0.3rem;
    }
    
    /* Team Layout */
    .team-member {
        margin-bottom: 1.61rem;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 1rem;
    }
    
    /* Card Grid */
    .card {
        margin-bottom: 1.60rem;
    }
    
    /* Gallery Grid */
    .gallery .col-md-3 {
        margin-bottom: 1rem;
    }
    
    /* Accordion */
    .accordion-button {
        padding: 1.2rem;
    }
    
    .accordion-body {
        padding: 1.2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 3rem;
    }
    
    /* Team Grid Adjustments */
    .team-member {
        margin-bottom: 1rem;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 0.75rem;
    }
    
    /* Card Hover Effects */
    .card:hover {
        transform: translateY(-3px);
    }
    
    .feature-card:hover {
        transform: translateY(-3px);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 3.64rem;
    }
    
    .hero-section .lead {
        font-size: 1.47rem;
    }
    
    /* Container Max Width */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced Hover Effects */
    .card:hover {
        transform: translateY(-5px);
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
    }
    
    /* Team Grid */
    .team-member {
        margin-bottom: 0;
    }
}

/* Portrait Orientation */
@media (orientation: portrait) {
    /* Hero Section */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        background-attachment: scroll;
    }
    
    /* Gallery */
    .gallery img {
        height: 150px;
    }
    
    /* Team Images */
    .team-member img {
        width: 120px;
        height: 120px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 100vh;
    }
    
    /* Navigation */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 10px;
        padding: 1rem;
        margin-top: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhance image quality for retina displays */
    .card-img-top,
    .gallery img,
    .team-member img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and footer */
    .navbar,
    footer {
        display: none !important;
    }
    
    /* Adjust colors for print */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        background: none !important;
        color: #000 !important;
    }
    
    .card {
        border: 1px solid #dcdcdc !important;
        box-shadow: none !important;
    }
    
    /* Ensure readable text */
    body {
        color: #000 !important;
        background: #fff !important;
    }
    
    /* Page breaks */
    .section {
        page-break-inside: avoid;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable animations and transitions */
    .card,
    .feature-card,
    .btn,
    .gallery img {
        transition: none !important;
        transform: none !important;
    }
    
    .card:hover,
    .feature-card:hover,
    .btn:hover {
        transform: none !important;
    }
    
    /* Remove parallax effect */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        background-attachment: scroll !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Note: Not implementing dark mode per requirements */
    /* This is just a placeholder for future dark mode support */
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    /* Enhance contrast for accessibility */
    .card {
        border: 2px solid var(--dark-gray) !important;
    }
    
    .btn {
        border: 2px solid var(--white) !important;
    }
    
    .form-control {
        border: 2px solid var(--dark-gray) !important;
    }
    
    .navbar {
        border-bottom: 2px solid var(--dark-gray);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        padding: 15px 30px;
        min-height: 44px;
    }
    
    .nav-link {
        padding: 1rem 0.5rem;
        min-height: 44px;
    }
    
    .form-control {
        padding: 15px;
        min-height: 44px;
    }
    
    .accordion-button {
        padding: 2rem 1.5rem;
        min-height: 60px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .feature-card:hover,
    .gallery img:hover {
        transform: none;
    }
}

/* Specific Breakpoint Adjustments */

/* Services Grid */
@media (max-width: 767.98px) {
    .services .col-lg-4 {
        margin-bottom: 1.59rem;
    }
}

/* Pricing Cards */
@media (max-width: 991.98px) {
    .priceplan .col-lg-4 {
        margin-bottom: 1.63rem;
    }
}

/* FAQ Section */
@media (max-width: 767.98px) {
    .accordion-button {
        font-size: 0.92rem;
        padding: 1rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
}

/* Contact Form */
@media (max-width: 767.98px) {
    .contact-form .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Gallery Grid Adjustments */
@media (max-width: 575.98px) {
    .gallery .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 400px) {
    .gallery .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
} 