/* Mobile-First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    h3, .h3 {
        font-size: 1.5rem;
    }
    
    h4, .h4 {
        font-size: 1.25rem;
    }
    
    /* Section padding reduction for mobile */
    section {
        padding: 40px 0;
    }
    
    /* Hero section mobile adjustments */
    .hero-section {
        min-height: 70vh;
        padding: 60px 0 40px;
    }
    
    /* Card spacing on mobile */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Button full width on mobile */
    .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Navigation adjustments */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 4px 8px;
    }
    
    /* Footer adjustments */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Team member images */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process numbers */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* NO ANIMATIONS ON MOBILE - Respecting the rule */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
    
    .btn-primary:hover {
        transform: none !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Section padding */
    section {
        padding: 60px 0;
    }
    
    /* Hero adjustments */
    .hero-section {
        min-height: 80vh;
    }
    
    /* Typography fine-tuning */
    h1, .display-4 {
        font-size: 2.25rem;
    }
    
    h2, .h2 {
        font-size: 1.875rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation */
    .navbar-nav {
        margin-top: 1rem;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 85vh;
    }
    
    /* Card grid adjustments */
    .services .col-md-6:nth-child(odd) {
        padding-right: 15px;
    }
    
    .services .col-md-6:nth-child(even) {
        padding-left: 15px;
    }
    
    /* Team layout */
    .team .col-md-6 {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full animations enabled on desktop */
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    /* Hero section full height */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Navigation spacing */
    .navbar-nav .nav-item {
        margin: 0 0.5rem;
    }
    
    /* Team grid - 5 columns */
    .team .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max width adjustment */
    .container {
        max-width: 1140px;
    }
    
    /* Typography scaling */
    h1, .display-4 {
        font-size: 2.75rem;
    }
    
    /* Section padding increase */
    section {
        padding: 100px 0;
    }
    
    /* Card hover effects enhanced */
    .card:hover .card-img-top {
        transform: scale(1.05);
    }
}

/* Extra Extra Large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced spacing for very large screens */
    .hero-section .container {
        padding: 0 2rem;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and footer for printing */
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    /* Adjust colors for printing */
    * {
        color: black !important;
        background: white !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    /* Typography for print */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* High DPI / Retina Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders on high DPI displays */
    .card,
    .btn,
    .form-control {
        border-width: 0.5px;
    }
}

/* Landscape Phone Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    /* Reduce hero height in landscape */
    .hero-section {
        min-height: 60vh;
        padding: 40px 0;
    }
    
    /* Adjust section padding */
    section {
        padding: 30px 0;
    }
}

/* Dark Mode Support (if user prefers dark) */

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations for users who prefer reduced motion */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
@media (any-hover: none) {
    /* Touch device specific styles */
    .btn:active {
        transform: scale(0.98);
    }
    
    .card:active {
        transform: scale(0.99);
    }
}

/* Hover support detection */
@media (hover: hover) {
    /* Only apply hover effects on devices that support hover */
    .nav-link:hover,
    .btn:hover,
    .card:hover {
        /* Hover effects are already defined in main.css */
    }
}

/* Specific mobile menu adjustments (using standard Bootstrap) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
} 

body {
    overflow-x: hidden;
}

.hero-section h1 {
    padding-top: 225px;
}