/* Responsive Styles - Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 1.79rem;
    }
    
    h2 {
        font-size: 1.58rem;
    }
    
    h3 {
        font-size: 1.30rem;
    }
    
    .navbar-brand {
        font-size: 1.12rem !important;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 80vh;
        text-align: center;
    }
    
    #hero h1 {
        font-size: 1.64rem;
        margin-bottom: 1rem;
    }
    
    #hero h2 {
        font-size: 1.39rem;
        margin-bottom: 1rem;
    }
    
    #hero p {
        font-size: 0.94rem;
        margin-bottom: 1.68rem;
    }
    
    /* Disable animations on mobile as per requirements */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Cards spacing */
    .card {
        margin-bottom: 1.70rem;
    }
    
    /* Services grid */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team section mobile */
    #team .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
    
    /* Gallery mobile */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Contact form mobile */
    .form-control {
        margin-bottom: 1rem;
    }
    
    /* Button adjustments */
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Navbar mobile */
    .navbar-collapse {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Footer mobile */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Process steps mobile */
    .process-step::after {
        display: none;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Timeline mobile */
    .timeline-item {
        border-left: none;
        border-top: 3px solid var(--primary-color);
        padding-left: 0;
        padding-top: var(--spacing-md);
    }
    
    .timeline-item::before {
        left: 0;
        top: -8px;
    }
    
    /* Additional page sections mobile */
    .col-lg-4.mb-4,
    .col-lg-6.mb-4 {
        margin-bottom: 2rem !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero h2 {
        font-size: 1.57rem;
    }
    
    /* Disable animations on mobile */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Team section */
    #team img {
        width: 110px;
        height: 110px;
    }
    
    /* Services grid adjustments */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Button adjustments */
    .btn {
        width: auto;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.73rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero h1 {
        font-size: 2.37rem;
    }
    
    #hero h2 {
        font-size: 1.88rem;
    }
    
    /* Team section */
    #team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
    
    /* Services section */
    #services .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Process steps */
    .process-step::after {
        right: -25%;
    }
    
    /* Additional pages */
    .col-lg-4.mb-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Large devices (desktops, 993px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Team section adjustments */
    #team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Services section */
    #services .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Gallery section */
    #gallery .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Hero section enhancements */
    #hero h1 {
        font-size: 2.51rem;
    }
    
    #hero h2 {
        font-size: 2rem;
    }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Larger spacing for ultra-wide */
    section {
        padding: 4rem 0;
    }
    
    /* Hero section */
    #hero h1 {
        font-size: 2.79rem;
    }
    
    #hero h2 {
        font-size: 2.38rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    /* Reduce hero height on landscape mobile */
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    /* Reduce section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Navbar adjustments */
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Print media queries */
@media print {
    /* Reset responsive breakpoints for print */
    .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
    .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Ensure proper page breaks */
    .card, .timeline-item, .process-step {
        page-break-inside: avoid;
    }
    
    section {
        page-break-before: auto;
        page-break-after: auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows */
    .card {
        box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    }
    
    .btn {
        border-width: 1px;
    }
}

/* Dark mode preferences */

/* Reduced motion preferences - Override animations */
@media (prefers-reduced-motion: reduce) {
    /* Disable all Sal.js animations */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Disable hover transforms */
    .card:hover,
    #team img:hover,
    #gallery img:hover,
    .btn-primary:hover {
        transform: none !important;
    }
    
    /* Disable all transitions */
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        padding: 0.75rem 1.5rem;
        min-height: 44px;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem;
        min-height: 44px;
    }
    
    .form-control {
        padding: 0.75rem;
        min-height: 44px;
    }
    
    /* Remove hover effects */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #team img:hover,
    #gallery img:hover {
        transform: none;
    }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--neutral-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--primary-dark);
    }
    
    .form-control {
        border: 2px solid var(--neutral-dark);
    }
    
    .navbar-nav .nav-link {
        border: 1px solid transparent;
    }
    
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link:hover {
        border-color: var(--primary-color);
    }
}

/* Container adjustments for different screen sizes */
@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;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Utility classes for responsive design */
.d-mobile-none {
    display: none;
}

@media (min-width: 768px) {
    .d-mobile-none {
        display: block;
    }
    
    .d-tablet-none {
        display: none;
    }
}

@media (min-width: 992px) {
    .d-tablet-none {
        display: block;
    }
    
    .d-desktop-none {
        display: none;
    }
}

@media (min-width: 1200px) {
    .d-desktop-none {
        display: block;
    }
}

/* Responsive text sizes */
.text-responsive {
    font-size: 0.89rem;
}

@media (min-width: 576px) {
    .text-responsive {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .text-responsive {
        font-size: 1.25rem;
    }
}

@media (min-width: 992px) {
    .text-responsive {
        font-size: 1.28rem;
    }
}

/* Responsive spacing */
.py-responsive {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .py-responsive {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (min-width: 992px) {
    .py-responsive {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 1200px) {
    .py-responsive {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
} 

body {
    overflow-x: hidden;
}