/* 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.25rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 0.5rem 1rem;
        text-align: center;
    }
    
    /* Hero Section */
    #hero {
        padding: 2rem 0;
        min-height: 70vh;
    }
    
    #hero .container .row {
        flex-direction: column-reverse;
    }
    
    #hero img {
        margin-bottom: 2rem;
        max-width: 100%;
        height: auto;
    }
    
    /* NO ANIMATIONS ON MOBILE */
    #hero [data-sal],
    [data-sal] {
        animation: none;
        transform: none;
        opacity: 1;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    /* Services */
    #services .row .col-lg-4,
    #services .row .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Features */
    #features .row .col-lg-3,
    #features .row .col-md-6 {
        margin-bottom: 2rem;
    }
    
    #features i {
        font-size: 2rem;
    }
    
    /* Price Plans */
    #priceplan .card {
        margin-bottom: 2rem;
    }
    
    /* Team */
    #team .row .col-lg-2,
    #team .row .col-md-4,
    #team .row .col-sm-6 {
        margin-bottom: 2rem;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
    
    /* Gallery */
    #gallery .row .col-lg-3,
    #gallery .row .col-md-4,
    #gallery .row .col-sm-6 {
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    #contacts .row .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Footer */
    #footer {
        padding: 2rem 0;
    }
    
    #footer .row .col-lg-4,
    #footer .row .col-lg-2 {
        margin-bottom: 1.5rem;
    }
    
    #footer .text-end {
        text-align: center;
    }
    
    /* Process Steps */
    #process .row .col-lg-2,
    #process .row .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Timeline */
    #timeline .row .col-lg-2,
    #timeline .row .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Career */
    #career .row .col-lg-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Core Info */
    #coreinfo .row .col-lg-4,
    #coreinfo .row .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* FAQ */
    #faq .row .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Blog */
    #blog .row .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Reviews */
    #reviews .row .col-lg-4,
    #reviews .row .col-lg-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Case Studies */
    #casestudy .row .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    .navbar-brand {
        font-size: 1.375rem;
    }
    
    /* Hero Section */
    #hero {
        padding: 3rem 0;
        min-height: 80vh;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Team */
    #team img {
        width: 120px;
        height: 120px;
    }
    
    /* NO ANIMATIONS ON MOBILE */
    [data-sal] {
        animation: none;
        transform: none;
        opacity: 1;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1 {
        font-size: 2.375rem;
    }
    
    h2 {
        font-size: 1.9375rem;
    }
    
    .navbar-brand {
        font-size: 1.4375rem;
    }
    
    /* Hero Section */
    #hero {
        padding: 3.5rem 0;
        min-height: 85vh;
    }
    
    /* Sections */
    section {
        padding: 3.5rem 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 190px;
    }
    
    /* Team */
    #team img {
        width: 130px;
        height: 130px;
    }
    
    /* Gallery Grid Adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Process Steps - Better spacing */
    #process .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Typography */
    h1 {
        font-size: 2.4375rem;
    }
    
    h2 {
        font-size: 1.96875rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 90vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 195px;
    }
    
    /* Team */
    #team img {
        width: 140px;
        height: 140px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Team */
    #team img {
        width: 150px;
        height: 150px;
    }
    
    /* Container max-width adjustment for very large screens */
    .container {
        max-width: 1140px;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Prevent excessive stretching on ultra-wide screens */
    #hero .container,
    section .container {
        max-width: 1200px;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    /* Hero section height adjustment for landscape mobile */
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    /* Reduce section padding in landscape mobile */
    section {
        padding: 1.5rem 0;
    }
    
    /* Navbar adjustments */
    .navbar {
        padding: 0.25rem 0;
    }
}

/* Print Styles */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    #footer,
    .navbar-toggler {
        display: none;
    }
    
    /* Adjust typography for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    /* Ensure cards print properly */
    .card {
        border: 1pt solid #000;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    /* Adjust images for print */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Remove shadows and transitions for print */
    * {
        box-shadow: none;
        transition: none;
        animation: none;
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Adjust font smoothing for high DPI displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Ensure icons remain crisp */
    .fas, .fa {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Dark Mode Support (if user prefers dark color scheme) */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    /* Remove hover effects that use transform */
    .card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Focus Visible Support for Better Accessibility */
@supports selector(:focus-visible) {
    .btn:focus:not(:focus-visible),
    .form-control:focus:not(:focus-visible),
    .nav-link:focus:not(:focus-visible) {
        outline: none;
    }
    
    .btn:focus-visible,
    .form-control:focus-visible,
    .nav-link:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
} 