/* ====================================
   Responsive CSS File
   Mobile-First Approach
==================================== */

/* Extra Small Devices (Phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.375rem; }
    h4 { font-size: 1.25rem; }
    
    /* Hero Section */
    #hero {
        min-height: 70vh;
        text-align: center;
        padding: 2rem 0;
    }
    
    #hero .display-4 {
        font-size: 1.875rem;
    }
    
    #hero .h3 {
        font-size: 1.25rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .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;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Hero Shapes - Hide on mobile */
    .hero-shapes {
        display: none;
    }
    
    /* Team Section */
    #team .col-md-6.col-lg-2 {
        margin-bottom: 2rem;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
    
    /* Services Grid */
    #services .card-img-top {
        height: 180px;
    }
    
    /* Gallery */
    #gallery .col-md-4 {
        margin-bottom: 0.5rem;
    }
    
    /* Contact Form */
    #contacts .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Price Plans */
    #priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Button Adjustments */
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Form Adjustments */
    .form-control {
        padding: 0.625rem 0.875rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-section {
        text-align: center;
        padding: 1rem 0;
    }
    
    .breadcrumb-section img {
        max-height: 40px;
    }
}

/* Small Devices (Landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    #hero {
        min-height: 80vh;
    }
    
    #hero .display-4 {
        font-size: 2.25rem;
    }
    
    /* Services Grid */
    #services .card-img-top {
        height: 200px;
    }
    
    /* Team Images */
    #team img {
        width: 110px;
        height: 110px;
    }
    
    /* Navigation */
    .navbar-nav {
        margin-top: 0.5rem;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    #hero {
        min-height: 85vh;
    }
    
    /* Services Grid */
    #services .card-img-top {
        height: 220px;
    }
    
    /* Team Images */
    #team img {
        width: 120px;
        height: 120px;
    }
    
    /* Gallery Spacing */
    #gallery .row {
        margin: 0 -0.5rem;
    }
    
    #gallery .col-md-4 {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    
    /* Contact Section */
    #contacts .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Services Grid */
    #services .card-img-top {
        height: 240px;
    }
    
    /* Hero Adjustments */
    #hero .display-4 {
        font-size: 2.75rem;
    }
    
    /* Team Section */
    #team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Extra Large Devices (Large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container Max Width */
    .container {
        max-width: 1140px;
    }
    
    /* Hero Section */
    #hero .display-4 {
        font-size: 3rem;
    }
    
    /* Services Grid */
    #services .card-img-top {
        height: 250px;
    }
    
    /* Enhanced Spacing */
    section {
        padding: 5rem 0;
    }
    
    .py-5 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced Typography */
    .lead {
        font-size: 1.25rem;
    }
    
    /* Hero Section */
    #hero .display-4 {
        font-size: 3.5rem;
    }
    
    /* Card Enhancements */
    .card-body {
        padding: 2rem;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows for retina displays */
    .card {
        border-width: 0.5px;
    }
    
    .btn {
        border-width: 1px;
    }
}

/* Print Media Queries */
@media print {
    /* Hide navigation and interactive elements */
    #header,
    .navbar,
    .btn,
    #footer .no-print {
        display: none !important;
    }
    
    /* Adjust spacing for print */
    section {
        padding: 1rem 0;
    }
    
    /* Ensure proper page breaks */
    .card,
    .row {
        page-break-inside: avoid;
    }
    
    /* Black and white adjustments */
    .bg-primary,
    .bg-secondary,
    .text-primary,
    .text-secondary {
        color: #000 !important;
        background-color: transparent !important;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable animations on mobile for better performance */
    @media (max-width: 991.98px) {
        * {
            animation: none !important;
            transition: none !important;
        }
        
        .hero-shapes {
            display: none !important;
        }
    }
}

/* Dark Mode Support (Future Enhancement) */

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
    
    #team img:hover,
    #gallery img:hover {
        transform: none;
    }
    
    .shape-1,
    .shape-2 {
        animation: none;
    }
}

/* Focus Improvements for Keyboard Navigation */
@media (min-width: 768px) {
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline-width: 3px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    #team img:hover {
        transform: none;
    }
}

/* Specific Breakpoint Adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    /* Tablet-specific adjustments */
    .navbar-nav {
        flex-direction: row;
        justify-content: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0 0.5rem;
    }
}

/* Container Fluid Adjustments */
@media (min-width: 1200px) {
    .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Form Responsive Improvements */
@media (max-width: 767.98px) {
    .row.g-3 > * {
        margin-bottom: 1rem;
    }
    
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Gallery Responsive Grid */
@media (max-width: 575.98px) {
    #gallery .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    #gallery .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
} 