/* Mobile First Responsive Design */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .hero-shapes .shape-1 {
        width: 120px;
        height: 120px;
    }
    
    .hero-shapes .shape-2 {
        width: 180px;
        height: 60px;
    }
}

/* Large Devices (992px to 1199px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

/* Medium Devices (768px to 991px) */
@media (max-width: 991.98px) {
    /* Navigation */
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    
    /* Hero Section */
    #hero {
        padding: 3rem 0;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .hero-shapes {
        display: none; /* Hide decorative shapes on tablets */
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Team Images */
    #team img {
        width: 120px;
        height: 120px;
    }
    
    /* Process Steps */
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
}

/* Small Devices (576px to 767px) */
@media (max-width: 767.98px) {
    /* Typography */
    .display-4 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    /* Hero Section */
    #hero {
        padding: 2rem 0;
        min-height: 70vh;
    }
    
    #hero .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    .card-img-top {
        height: 160px;
    }
    
    /* Services Cards */
    #services .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    /* Features */
    #features .d-flex {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    #features .fa-2x {
        margin-bottom: 1rem;
    }
    
    /* Team */
    #team img {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    
    /* Process */
    #process .rounded-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Contact Form */
    .form-control {
        padding: 0.6rem 0.8rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Spacing */
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* Extra Small Devices (less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-toggler {
        padding: 0.2rem 0.5rem;
        font-size: 1rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 60vh;
        padding: 1.5rem 0;
    }
    
    /* Container */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    /* Cards */
    .card-body {
        padding: 1.2rem;
    }
    
    .card-img-top {
        height: 140px;
    }
    
    /* Icons */
    .fa-3x {
        font-size: 2rem !important;
    }
    
    .fa-2x {
        font-size: 1.5rem !important;
    }
    
    /* Team Images */
    #team img {
        width: 80px;
        height: 80px;
    }
    
    /* Process Numbers */
    #process .rounded-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Gallery Grid */
    #gallery .col-lg-4 {
        margin-bottom: 0.5rem;
    }
    
    /* Contact Form */
    .form-control {
        padding: 0.5rem 0.7rem;
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Spacing Adjustments */
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1.5rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Footer */
    #footer {
        padding: 2rem 0 !important;
    }
    
    #footer .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Breadcrumbs */
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
    
    /* Additional Page Content */
    .mt-5 {
        margin-top: 2rem !important;
    }
}

/* Mobile Specific Animations - Disable on Mobile */
@media (max-width: 767.98px) {
    /* Disable scroll animations on mobile for better performance */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Disable hover effects on mobile */
    .card:hover {
        transform: none;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
    
    #team img:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #features .d-flex:hover {
        background-color: transparent;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 50vh;
        padding: 1rem 0;
    }
    
    .display-4 {
        font-size: 1.4rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    #team img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .hero-shapes {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support (if needed in future) */

/* Focus States for Better Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Touch Target Improvements for Mobile */
@media (max-width: 767.98px) {
    .btn,
    .nav-link,
    .form-control {
        min-height: 44px;
        min-width: 44px;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
} 