/* ===============================
   Responsive Design - Mobile First
   =============================== */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    .navbar-brand {
        font-size: 1.16rem;
    }
    
    h1 {
        font-size: 1.85rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.60rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.29rem;
    }
    
    h4 {
        font-size: 1.17rem;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    p {
        font-size: 1.03rem;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 120px;
        text-align: center;
    }
    
    #hero .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 120px;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Team Images */
    #team img {
        width: 80px;
        height: 80px;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    /* Forms */
    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 1.05rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.93rem;
    }
    
    /* Process Steps */
    .rounded-circle[style*="width: 60px"] {
        width: 410px !important;
        height: 45px !important;
    }
    
    .rounded-circle .fs-4 {
        font-size: 1rem !important;
    }
    
    /* Gallery */
    #gallery .col-6 {
        padding: 0.25rem;
    }
    
    /* Navigation - NO MOBILE ANIMATIONS */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        text-align: center;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.82rem;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 100px;
    }
    
    /* Cards */
    .card-img-top {
        height: 140px;
    }
    
    /* Team Images */
    #team img {
        width: 90px;
        height: 90px;
    }
    
    /* Process Steps */
    .rounded-circle[style*="width: 60px"] {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1 {
        font-size: 2.35rem;
    }
    
    h2 {
        font-size: 1.95rem;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 90px;
    }
    
    /* Cards */
    .card-img-top {
        height: 160px;
    }
    
    /* Team Images */
    #team img {
        width: 100px;
        height: 100px;
    }
    
    /* Services Grid */
    #services .col-md-6 {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Team Images */
    #team img {
        width: 110px;
        height: 110px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Team Images */
    #team img {
        width: 120px;
        height: 120px;
    }
}

/* ===============================
   Mobile-Specific Overrides
   =============================== */
@media (max-width: 767.98px) {
    /* NO SCROLL ANIMATIONS ON MOBILE */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Disable hover effects on mobile */
    .card:hover {
        transform: none;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }
    
    #team img:hover,
    #gallery img:hover {
        transform: none;
    }
    
    /* Mobile-friendly spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    #footer .row.align-items-center .col-md-4 {
        text-align: center;
        margin-top: 1rem;
    }
    
    /* Contact form adjustments */
    #contacts .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    /* Blog grid adjustments */
    #blog_grid .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* FAQ grid adjustments */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-lg-3,
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* ===============================
   Tablet-Specific Adjustments
   =============================== */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Services grid */
    #services .col-lg-4:nth-child(3n+1) {
        clear: both;
    }
    
    /* Team layout */
    #team .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Process steps */
    #process .col-lg-2,
    #timeline .col-lg-2 {
        margin-bottom: 2rem;
    }
}

/* ===============================
   Print Styles
   =============================== */
@media print {
    /* Hide navigation and interactive elements */
    #header,
    #footer,
    .btn,
    .breadcrumb-nav {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: #000 !important;
        background: #fff !important;
    }
    
    .card {
        border: 1px solid #c4c4c4 !important;
        box-shadow: none !important;
    }
    
    /* Ensure good contrast */
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
}

/* ===============================
   High DPI / Retina Displays
   =============================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure images look crisp on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===============================
   Landscape Phone Orientation
   =============================== */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        padding-top: 80px;
        min-height: 70vh;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* ===============================
   Accessibility Enhancements
   =============================== */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions on mobile */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-high-contrast: high) {
    /* High contrast mode adjustments */
    .card {
        border: 2px solid !important;
    }
    
    .btn {
        border: 2px solid !important;
    }
}

/* ===============================
   Dark Mode Support (Optional)
   =============================== */

/* ===============================
   Container Breakpoint Overrides
   =============================== */
@media (max-width: 575.98px) {
    .container {
        max-width: 100%;
        padding: 0 0.75rem;
    }
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
} 