/* ===== RESPONSIVE DESIGN ===== */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    .navbar-brand {
    font-size: 10px !important;
        font-size: 1.24rem !important;
    }
    
    .hero-section h1,
    .hero-section .display-5 {
        font-size: 1.55rem;
    }
    
    .hero-section h2 {
        font-size: 1.16rem;
    }
    
    .hero-section .lead {
        font-size: 1.08rem;
    }
    
    /* Section Padding */
    .py-5 {
        padding-top: 2.57rem !important;
        padding-bottom: 2.61rem !important;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Form */
    .form-control {
        padding: 0.75rem 1rem;
    }
    
    /* Team Images */
    .rounded-circle {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Contact Section */
    .col-md-4.text-center.mb-4 {
        margin-bottom: 2rem !important;
    }
    
    /* Navbar */
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .nav-item {
        margin-bottom: 0.56rem;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-section h1,
    .hero-section .display-5 {
        font-size: 1.78rem;
    }
    
    /* Section Padding */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Team Images */
    .rounded-circle {
        width: 130px !important;
        height: 130px !important;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-section h1,
    .hero-section .display-5 {
        font-size: 2rem;
    }
    
    /* Section Padding */
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* Cards Grid Adjustments */
    .col-md-6.col-lg-4 {
        margin-bottom: 1.57rem;
    }
    
    /* Team Images */
    .rounded-circle {
        width: 140px !important;
        height: 140px !important;
    }
    
    /* Contact Form */
    .col-lg-8.mx-auto {
        max-width: 90%;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 90vh;
    }
    
    /* Container Max Width */
    .container {
        max-width: 960px;
    }
    
    /* Section Spacing */
    .py-5 {
        padding-top: 4.56rem !important;
        padding-bottom: 4.72rem !important;
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Section Spacing */
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
    
    /* Max Content Width */
    .col-lg-8.mx-auto {
        max-width: 66.666667%;
    }
}

/* ===== SPECIFIC COMPONENT RESPONSIVE BEHAVIOR ===== */

/* Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: none;
        border-radius: 0.5rem;
        margin-top: 0.65rem;
        padding: 1rem;
        box-shadow: 0 5px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
}

/* Hero Section Responsive */
@media (max-width: 991.98px) {
    .hero-section .col-lg-6:first-child {
        order: 1;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-section .col-lg-6:last-child {
        order: 2;
    }
}

/* Cards Responsive Grid */
@media (max-width: 767.98px) {
    .col-md-6.col-lg-4,
    .col-md-6.col-lg-3,
    .col-lg-4 {
        margin-bottom: 1.70rem;
    }
}

/* Services Grid */
@media (max-width: 991.98px) {
    .services-grid .col-md-6.col-lg-4:nth-child(3n) {
        margin-bottom: 2rem;
    }
}

/* Contact Form */
@media (max-width: 767.98px) {
    .contact-form .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .contact-info .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Footer */
@media (max-width: 767.98px) {
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    footer .row:last-child .col-md-6 {
        text-align: center !important;
        margin-bottom: 1rem;
    }
}

/* Gallery Grid */
@media (max-width: 767.98px) {
    .gallery-grid .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Team Section */
@media (max-width: 767.98px) {
    .team-grid .col-md-6.col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Timeline */
@media (max-width: 991.98px) {
    .timeline-grid .col-md-6.col-lg-4 {
        margin-bottom: 1.75rem;
    }
}

/* Blog Grid */
@media (max-width: 991.98px) {
    .blog-grid .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* FAQ Grid */
@media (max-width: 991.98px) {
    .faq-grid .col-lg-6 {
        margin-bottom: 1.70rem;
    }
}

/* Process Steps */
@media (max-width: 767.98px) {
    .process-steps .col-md-6.col-lg-4 {
        margin-bottom: 2rem;
    }
    
    .process-steps .bg-primary.rounded-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.16rem;
    }
}

/* Pricing Cards */
@media (max-width: 991.98px) {
    .pricing-grid .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Features List */
@media (max-width: 767.98px) {
    .features-list .col-md-6 {
        margin-bottom: 1.69rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #cfbdbf;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ===== UTILITY CLASSES FOR RESPONSIVE DESIGN ===== */

/* Hide elements on specific screen sizes */
.d-mobile-none {
    display: block;
}

@media (max-width: 767.98px) {
    .d-mobile-none {
        display: none !important;
    }
}

.d-mobile-block {
    display: none;
}

@media (max-width: 767.98px) {
    .d-mobile-block {
        display: block !important;
    }
}

/* Responsive spacing utilities */
@media (max-width: 767.98px) {
    .mb-mobile-4 {
        margin-bottom: 1.75rem !important;
    }
    
    .py-mobile-3 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* Responsive text alignment */
@media (max-width: 767.98px) {
    .text-mobile-center {
        text-align: center !important;
    }
}

/* Container responsive adjustments */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
} 