/* Responsive Design Styles */

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .hero-shapes .shape-1 {
        width: 250px;
        height: 250px;
    }
    
    .hero-shapes .shape-2 {
        width: 200px;
        height: 200px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    #hero {
        min-height: 100vh;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    [id^="services-item-"] .card-img-top {
        height: 280px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .display-4 {
        font-size: 2.75rem;
    }
    
    .h2 {
        font-size: 2.25rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
    
    #hero {
        padding-top: 100px;
    }
    
    .hero-shapes .shape-1 {
        width: 180px;
        height: 180px;
    }
    
    .hero-shapes .shape-2 {
        width: 120px;
        height: 120px;
    }
    
    .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Mobile devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    /* NO ANIMATIONS ON MOBILE - Following requirements */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments for mobile */
    .display-4 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .h2 {
        font-size: 1.75rem;
    }
    
    .h4 {
        font-size: 1.125rem;
    }
    
    .h5 {
        font-size: 1rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        margin: 0;
        border-bottom: 1px solid var(--neutral-light);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 80vh;
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-shapes {
        display: none; /* Hide decorative shapes on mobile */
    }
    
    #hero .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }
    
    #hero .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .btn-primary {
        padding: 0.625rem 1.25rem;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    [id^="services-item-"] .card-img-top {
        height: 200px;
    }
    
    /* Team member images */
    [id^="team-member-"] img,
    [id^="team_"] {
        width: 120px;
        height: 120px;
        margin: 0 auto 1rem;
    }
    
    /* Form adjustments */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.75rem;
    }
    
    /* Contact form */
    #contacts .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* FAQ cards */
    #faq .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    #gallery img {
        border-radius: var(--border-radius);
    }
    
    /* Process steps */
    .process-step .step-number,
    .bg-primary.rounded-circle {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Pricing cards */
    .border-primary::before {
        font-size: 0.75rem;
        padding: 0.125rem 0.75rem;
    }
    
    /* Footer adjustments */
    #footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    #footer .d-flex {
        justify-content: center;
    }
    
    #footer .fab {
        font-size: 1.5rem;
    }
    
    /* Text alignment on mobile */
    .text-center-mobile {
        text-align: center;
    }
    
    /* Spacing adjustments */
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Hide decorative elements on mobile */
    .hero-shapes,
    .shape-1,
    .shape-2 {
        display: none;
    }
    
    /* Breadcrumb mobile */
    .breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
    
    /* Additional page sections mobile */
    [id^="add_page_"] .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    [id^="add_page_"] .col-md-6,
    [id^="add_page_"] .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Ensure readability */
    p, .text-muted {
        line-height: 1.6;
    }
    
    /* Contact info mobile */
    #contacts .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Services grid mobile */
    #services .col-md-6,
    #services .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Features section mobile */
    #features .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* About features mobile */
    #about .col-md-6,
    #about .col-lg-3 {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    /* Price plan mobile */
    #priceplan .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Reviews mobile */
    #reviews .col-md-6,
    #reviews .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Case studies mobile */
    #casestudy .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Process mobile */
    #process .col-md-6,
    #process .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team mobile */
    #team .col-md-6,
    #team .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Extra small devices (portrait phones, less than 375px) */
@media (max-width: 374.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    [id^="team-member-"] img,
    [id^="team_"] {
        width: 100px;
        height: 100px;
    }
    
    .process-step .step-number,
    .bg-primary.rounded-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-shapes {
        display: none;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    [id^="team-member-"] img,
    [id^="team_"] {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode preference (respect user settings) */

/* Reduced motion preferences - Enhanced */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover effects that use transform */
    .card:hover,
    .btn-primary:hover,
    #gallery img:hover {
        transform: none !important;
    }
    
    /* Keep functional focus states */
    a:focus,
    button:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Print styles */
@media print {
    /* Hide non-essential elements */
    .hero-shapes,
    #header,
    #footer,
    .btn,
    .navbar-toggler {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: black !important;
        background: white !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    /* Ensure text is readable */
    .text-muted {
        color: #666 !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
    
    .card {
        page-break-inside: avoid;
    }
} 