/* Responsive Design CSS */

/* Extra Large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .display-1 { font-size: 5.58rem; }
    .display-2 { font-size: 4.60rem; }
    .display-3 { font-size: 3.57rem; }
    .display-4 { font-size: 2.87rem; }
    .display-5 { font-size: 2.30rem; }
}

/* Large devices (1200px and up) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .container {
        max-width: 1140px;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .hero-shape {
        font-size: 8rem;
    }
}

/* Medium devices (994px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .display-4 { font-size: 2.32rem; }
    .display-5 { font-size: 1.92rem; }
    
    .hero-shape {
        font-size: 6rem;
    }
    
    .navbar-brand {
        font-size: 1.54rem;
    }
}

/* Small devices (768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.86rem; }
    
    .hero-shape {
        font-size: 5rem;
    }
    
    .navbar-brand {
        font-size: 1.43rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .process-icon {
        width: 70px;
        height: 70px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item::before {
        left: 30px;
    }
    
    .timeline-content {
        margin-left: 60px;
    }
}

/* Extra small devices (less than 768px) */
@media (max-width: 767.98px) {
    /* General Layout */
    section {
        padding: 2.5rem 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography */
    .display-1 { font-size: 3rem; }
    .display-2 { font-size: 2.65rem; }
    .display-3 { font-size: 2rem; }
    .display-4 { font-size: 1.77rem; }
    .display-5 { font-size: 1.57rem; }
    .display-6 { font-size: 1.32rem; }
    
    h1 { font-size: 1.89rem; }
    h2 { font-size: 1.61rem; }
    h3 { font-size: 1.37rem; }
    h4 { font-size: 1.17rem; }
    h5 { font-size: 1rem; }
    
    .lead {
        font-size: 1rem;
    }
    
    p {
        font-size: 1.05rem;
    }
    
    /* Navbar */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.34rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid #f2f5f7;
        padding-top: 1rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .hero-shape {
        display: none;
    }
    
    /* Buttons */
    .btn {
        font-size: 1.03rem;
        padding: 0.625rem 1.25rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.60rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    .card-title {
        font-size: 1.24rem;
    }
    
    .card-text {
        font-size: 1.01rem;
    }
    
    /* Feature Icons */
    .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.95rem;
    }
    
    .feature-icon i {
        font-size: 1.30rem;
    }
    
    /* Process Icons */
    .process-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .process-icon .h4 {
        font-size: 1.33rem;
    }
    
    /* Timeline */
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item::before {
        left: 15px;
    }
    
    .timeline-content {
        margin-left: 45px;
    }
    
    /* Team Images */
    .card-img-top.rounded-circle {
        width: 120px;
        height: 120px;
    }
    
    /* Contact Form */
    .contact-form .form-control {
        margin-bottom: 1rem;
    }
    
    /* Gallery */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    #footer .col-lg-4,
    #footer .col-lg-2,
    #footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    #footer .col-md-8,
    #footer .col-md-4 {
        text-align: center;
    }
    
    /* Price Cards */
    .price {
        font-size: 2rem;
    }
    
    /* Reviews */
    .reviews-item {
        margin-bottom: 2rem;
    }
    
    /* Blog Grid */
    #blog_grid .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* FAQ */
    .faq .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Utilities */
    .text-center-mobile {
        text-align: center;
    }
    
    .mb-mobile-3 {
        margin-bottom: 1rem;
    }
    
    .px-mobile-2 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Ultra small devices (less than 576px) */
@media (max-width: 575.98px) {
    /* Container */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Typography */
    .display-4 { font-size: 1.58rem; }
    .display-5 { font-size: 1.28rem; }
    
    h1 { font-size: 1.62rem; }
    h2 { font-size: 1.32rem; }
    
    /* Hero Section */
    #hero {
        min-height: 80vh;
        text-align: center;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    /* Cards */
    .card-body {
        padding: 0.75rem;
    }
    
    /* Buttons */
    .btn {
        font-size: 0.92rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Feature Icons */
    .feature-icon {
        width: 35px;
        height: 35px;
    }
    
    .feature-icon i {
        font-size: 1rem;
    }
    
    /* Process Icons */
    .process-icon {
        width: 50px;
        height: 50px;
    }
    
    .process-icon .h4 {
        font-size: 1rem;
    }
    
    /* Team Images */
    .card-img-top.rounded-circle {
        width: 100px;
        height: 100px;
    }
    
    /* Timeline */
    .timeline-content {
        margin-left: 35px;
    }
    
    /* Price */
    .price {
        font-size: 1.76rem;
    }
    
    /* Contact Info */
    .contact-info {
        margin-bottom: 1.73rem;
    }
    
    /* Footer */
    #footer {
        padding: 2rem 0;
    }
    
    #footer .row > div {
        margin-bottom: 1.58rem;
    }
}

/* Landscape phone orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 70vh;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* Disable animations on mobile for performance */
@media (max-width: 767.98px) {
    /* Remove animations for better mobile performance */
    .hero-shape {
        animation: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .feature-icon:hover {
        transform: none;
    }
    
    .process-icon:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    /* Disable parallax and complex effects */
    .timeline::before {
        animation: none;
    }
    
    /* Simplified hover states */
    .card:hover {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Print responsive */
@media print {
    .container {
        max-width: none;
        width: 100%;
    }
    
    .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%;
    }
    
    .d-print-none {
        display: none;
    }
    
    .d-print-block {
        display: block;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on high DPI displays */
    .feature-icon,
    .process-icon {
        transform: translateZ(0);
        will-change: transform;
    }
}

/* Hover capability detection */
@media (hover: none) {
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn-primary:hover,
    .feature-icon:hover,
    .process-icon:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    @keyframes float {
        0%, 100% { transform: translateY(0px) rotate(0deg); }
    }
    
    .hero-shape {
        animation: none;
    }
    
    .card,
    .btn,
    .feature-icon,
    .process-icon {
        transition: none;
    }
    
    .animate-on-scroll {
        transition: none;
        opacity: 1;
        transform: none;
    }
} 