/* Responsive CSS - Mobile First Approach */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.99px) {
    /* Hero section */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    padding-top: 125px;
}
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Typography adjustments */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.78rem; }
    h3 { font-size: 1.53rem; }
    h4 { font-size: 1.36rem; }
    h5 { font-size: 1.25rem; }
    h6 { font-size: 1rem; }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.34rem;
    }
    
    /* Section padding */
    .py-5 {
        padding: 3rem 0;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1.5rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.93rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Team section */
    .team img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact info */
    .contact-info {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    /* Process section numbers */
    .process-section .rounded-circle {
        width: 50px;
        height: 50px;
    }
    
    .process-section .rounded-circle .h4 {
        font-size: 1.36rem;
    }
    
    /* Gallery grid */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Services grid */
    .services-section .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Features grid */
    #f2e4aftures .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    /* Price plan */
    #priceplan .display-4 {
        font-size: 2rem;
    }
    
    /* Footer adjustments */
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Blog grid */
    #blog_grid .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* FAQ grid */
    #faq .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Timeline adjustments */
    #timeline .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Core info grid */
    #coreinfo .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Career grid */
    #career .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero section */
    .hero-section {
        min-height: 85vh;
    }
    
    .hero-section h1 {
        font-size: 2.63rem;
    padding-top: 125px;
}
    
    /* Gallery grid */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Services grid */
    .services-section .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Features grid */
    #f8e4actures .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Core info grid */
    #coreinfo .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Timeline adjustments */
    #timeline .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-section h1 {
        font-size: 2.77rem;
    padding-top: 125px;
}
    
    /* Gallery grid */
    #gallery .col-lg-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Services grid */
    .services-section .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Features grid */
    #fff8aatures .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Core info grid */
    #coreinfo .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Timeline adjustments */
    #timeline .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Career grid */
    #career .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero section */
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 125px;
}
    
    /* Gallery grid adjustments */
    #gallery .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    /* Core info grid */
    #coreinfo .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Timeline adjustments */
    #timeline .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero section */
    .hero-section h1 {
        font-size: 3.60rem;
    padding-top: 125px;
}
    
    /* Container max-width adjustments */
    .container {
        max-width: 1200px;
    }
    
    /* Section padding */
    .py-5 {
        padding: 6rem 0;
    }
    
    /* Card enhancements */
    .card-body {
        padding: 2.5rem;
    }
}

/* Landscape phone orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.64rem;
    padding-top: 125px;
}
    
    .hero-section p {
        font-size: 0.92rem;
        margin-bottom: 0.67rem;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    .navbar-brand {
        font-size: 1.24rem;
    }
}

/* Print styles */
@media print {
    .hero-section {
        min-height: auto;
        background: none;
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #d6d6d6;
        page-break-inside: avoid;
    }
    
    .btn {
        display: none;
    }
    
    .navbar {
        display: none;
    }
    
    footer {
        background: none;
        color: #000;
    }
    
    #gallery {
        display: none;
    }
    
    .contact-info {
        background: none;
        border: 1px solid #d7d5d5;
    }
    
    /* Ensure text is readable in print */
    .text-primary {
        color: #000;
    }
    
    .bg-light {
        background: none;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhanced images for retina displays */
    .card-img-top,
    .team img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .process-section .rounded-circle:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    #blog_grid .card:hover {
        transform: none;
    }
    
    #coreinfo .text-center:hover {
        background: none;
    }
}

/* Dark mode support */

/* Container queries for modern browsers */
@container (max-width: 400px) {
    .card-body {
        padding: 1rem;
    }
}

/* Focus-visible for better accessibility */
@supports selector(:focus-visible) {
    .btn:focus {
        outline: none;
    }
    
    .btn:focus-visible {
        outline: 2px solid var(--primary-blue);
        outline-offset: 2px;
    }
}

/* Grid fallback for older browsers */
@supports not (display: grid) {
    .row {
        display: table;
        width: 100%;
    }
    
    .col-lg-3,
    .col-lg-4,
    .col-lg-6,
    .col-md-4,
    .col-md-6 {
        display: table-cell;
        vertical-align: top;
    }
}

/* Hover effects for touch devices */
@media (hover: hover) {
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    }
}

@media (hover: none) {
    .card:hover {
        transform: none;
        box-shadow: 0 5px 6px rgba(0, 0, 0, 0.1);
    }
}

/* Animation performance optimizations */
@media (prefers-reduced-motion: no-preference) {
    .hero-section::before {
        will-change: transform;
    }
    
    .card {
        will-change: transform;
    }
}

/* Viewport adjustments for mobile browsers */
@supports (-webkit-appearance: none) {
    .hero-section {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
}

/* Safe area adjustments for notched devices */
@supports (padding: max(0px)) {
    .hero-section {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    
    .navbar {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
} 