/* Mobile First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    body {
        padding-top: 70px;
    overflow-x: hidden;
}
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-section {
        padding: 30px 0;
        min-height: auto;
    }
    
    .hero-section .row {
        min-height: auto;
    }
    
    .display-4 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .h2 {
        font-size: 1.6rem;
    }
    
    .h3 {
        font-size: 1.4rem;
    }
    
    .h4 {
        font-size: 1.2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Remove animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .feature-card:hover,
    .feature-item:hover,
    .analytics-feature:hover,
    .integration-card:hover,
    .security-feature:hover,
    .industry-card:hover,
    .project-feature:hover,
    .client-feature:hover,
    .enterprise-card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    /* Mobile spacing */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Mobile card adjustments */
    .card-img-top {
        height: 150px;
    }
    
    /* Mobile form adjustments */
    .form-control {
        padding: 10px 12px;
    }
    
    /* Mobile team images */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Mobile footer */
    #footer {
        text-align: center;
        padding: 2rem 0;
    }
    
    #footer .col-md-6,
    #footer .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    #footer h5,
    #footer h6 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    #footer p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    #footer small {
        font-size: 0.8rem;
        color: #b0b0b0;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .card-img-top {
        height: 170px;
    }
    
    .team-member img {
        width: 130px;
        height: 130px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .team-member img {
        width: 140px;
        height: 140px;
    }
    
    /* Tablet navigation */
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0 10px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section .container {
        max-width: 960px;
    }
    
    .card-img-top {
        height: 190px;
    }
    
    .team-member img {
        width: 150px;
        height: 150px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section .container {
        max-width: 1140px;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    /* Enhanced hover effects for large screens */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    }
}

/* Navigation Mobile Improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--neutral-light);
        border-radius: 8px;
        margin-top: 10px;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 8px 15px;
        border-radius: 5px;
        margin: 2px 0;
    }
    
    .navbar-nav .nav-link:hover {
        background: var(--primary-color);
        color: white;
    }
}

/* Gallery Responsive */
@media (max-width: 767.98px) {
    #gallery .col-md-6 {
        margin-bottom: 15px;
    }
    
    #gallery img {
        height: 200px;
        object-fit: cover;
        width: 100%;
    }
}

/* Services Grid Responsive */
@media (max-width: 767.98px) {
    #services .col-md-6 {
        margin-bottom: 20px;
    }
}

/* Contact Form Mobile */
@media (max-width: 575.98px) {
    .contact-info {
        margin-top: 30px;
        text-align: center;
    }
    
    .contact-info p {
        margin-bottom: 10px;
    }
}

/* Breadcrumb Mobile */
@media (max-width: 575.98px) {
    .breadcrumb-section {
        padding: 10px 0;
    }
    
    .breadcrumb {
        margin-bottom: 0;
        padding: 5px 0;
    }
}

/* Additional Pages Mobile Optimization */
@media (max-width: 575.98px) {
    .feature-item,
    .analytics-feature,
    .integration-card,
    .security-feature,
    .industry-card,
    .project-feature,
    .client-feature,
    .enterprise-card {
        margin-bottom: 15px;
        padding: 15px;
    }
    
    .enterprise-card .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .enterprise-card .me-3 {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    #footer,
    .breadcrumb-section {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        color: black;
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .bg-light,
    .bg-dark {
        background: white !important;
        color: black !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0056b3;
        --text-color: #000000;
        --neutral-color: #ffffff;
        --neutral-dark: #cccccc;
    }
    
    .card {
        border: 2px solid #000000;
    }
    
    .btn-primary {
        background-color: #000000;
        border-color: #000000;
        color: #ffffff;
    }
    
    #footer {
        background: #000000 !important;
        color: #ffffff !important;
        border-top: 3px solid #ffffff;
    }
    
    #footer h5,
    #footer h6,
    #footer p {
        color: #ffffff !important;
    }
    
    #footer a {
        color: #ffffff !important;
        text-decoration: underline;
    }
    
    #footer a:hover {
        color: #cccccc !important;
    }
} 

.hero-section h1 {
    padding-top: 175px;
}