/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Hero Section */
    #hero {
        padding: 2rem 0;
        min-height: 100vh;
    }
    
    #hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-shapes .shape-1,
    .hero-shapes .shape-2 {
        display: none; /* Hide decorative shapes on mobile */
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid var(--border-color);
        padding-top: 1rem;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-sm {
        width: auto;
    }
    
    /* Team Section */
    .rounded-circle {
        width: 100px;
        height: 100px;
    }
    
    /* Timeline */
    .timeline .card::before {
        display: none;
    }
    
    /* Contact Form */
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Footer */
    #footer .row > div {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Process Steps */
    .process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Disable animations on mobile for performance */
    .card:hover {
        transform: none;
    }
    
    .rounded-circle:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    #hero h1 {
        font-size: 2.5rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 190px;
    }
    
    /* Team Photos */
    .rounded-circle {
        width: 110px;
        height: 110px;
    }
    
    /* Buttons */
    .btn {
        width: auto;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    #hero h1 {
        font-size: 2.8rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Team Photos */
    .rounded-circle {
        width: 120px;
        height: 120px;
    }
    
    /* Timeline */
    .timeline .card::before {
        left: -20px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    #hero h1 {
        font-size: 3rem;
    }
    
    /* Sections */
    section {
        padding: 5rem 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Hero Section */
    #hero h1 {
        font-size: 3.5rem;
    }
    
    /* Sections */
    section {
        padding: 6rem 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 220px;
    }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    /* Reduce hero height on landscape mobile */
    #hero {
        min-height: auto;
        padding: 1rem 0;
    }
    
    /* Compact navigation */
    .navbar {
        padding: 0.25rem 0;
    }
    
    /* Reduce section padding */
    section {
        padding: 1.5rem 0;
    }
}

/* Print Specific Responsive Styles */
@media print {
    /* Force single column layout */
    .col-lg-6,
    .col-lg-4,
    .col-lg-3,
    .col-md-6,
    .col-md-4 {
        width: 100%;
        float: none;
    }
    
    /* Adjust margins for print */
    section {
        padding: 1rem 0;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
    
    /* Hide decorative elements */
    .hero-shapes,
    .shape-1,
    .shape-2 {
        display: none;
    }
}

/* Accessibility: Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    /* Disable hover effects that use transform */
    .card:hover,
    .rounded-circle:hover,
    #gallery img:hover,
    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: none;
    }
    
    /* Keep only opacity changes for feedback */
    .card:hover {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    
    #gallery img:hover {
        opacity: 0.9;
    }
}

/* Dark Mode Support (if browser/OS supports it) */

/* Focus Management for Keyboard Navigation */
@media (any-hover: none) {
    /* Touch devices - remove hover effects */
    .card:hover,
    .rounded-circle:hover,
    #gallery img:hover {
        transform: none;
        box-shadow: none;
        opacity: 1;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    /* Increase contrast for accessibility */
    :root {
        --primary-color: #2D5A3D;
        --text-color: #000000;
        --text-dark: #000000;
        --border-color: #000000;
    }
    
    .card {
        border: 2px solid var(--border-color);
    }
    
    .btn-primary {
        border: 2px solid #000000;
    }
}

/* Container Fluid Breakpoints */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Specific Component Responsive Adjustments */

/* Services Grid */
@media (max-width: 767.98px) {
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Features List */
@media (max-width: 991.98px) {
    #features .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    #features .flex-shrink-0 {
        margin-bottom: 1rem;
    }
}

/* Price Plans */
@media (max-width: 767.98px) {
    #priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Blog Grid */
@media (max-width: 767.98px) {
    #blog .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* FAQ Grid */
@media (max-width: 767.98px) {
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
} 