/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    /* Navbar brand smaller on mobile */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section mobile adjustments */
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    /* Cards full width on mobile */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Feature cards padding reduction */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Process steps mobile layout */
    .process-step {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Team member images smaller */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Info cards padding reduction */
    .info-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Contact form mobile */
    .contact-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    /* Timeline mobile adjustments */
    .timeline-item {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Button adjustments */
    .btn-primary {
        padding: 0.75rem 1.5rem;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* No hover effects on mobile */
    .card:hover,
    .feature-card:hover,
    .info-card:hover {
        transform: none;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    
    /* Gallery mobile layout */
    #gallery .col-md-3 {
        margin-bottom: 1rem;
    }
    
    /* Footer mobile adjustments */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Page header mobile */
    .page-header {
        padding: 3rem 0 2rem;
        text-align: center;
    }
    
    .page-section {
        padding: 2rem 0;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography adjustments for tablets */
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.375rem;
    }
    
    /* Hero section tablet */
    .hero-section {
        padding-top: 100px;
    }
    
    /* Cards spacing */
    .card {
        margin-bottom: 2rem;
    }
    
    /* Feature cards */
    .feature-card {
        margin-bottom: 2rem;
    }
    
    /* Process steps tablet layout */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Team layout adjustments */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Info cards */
    .info-card {
        margin-bottom: 2rem;
    }
    
    /* Timeline tablet */
    .timeline-item {
        margin-bottom: 2rem;
    }
    
    /* Contact form tablet */
    .contact-info {
        margin-top: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Fine-tune spacing for medium screens */
    .hero-section h1 {
        font-size: 2.125rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.625rem;
    }
    
    /* Card spacing adjustments */
    .card {
        margin-bottom: 2rem;
    }
    
    /* Feature items spacing */
    .feature-item {
        margin-bottom: 1.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) {
    /* Optimal spacing for large screens */
    .container {
        max-width: 1200px;
    }
    
    /* Hero section large screens */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Card grid improvements */
    .card {
        margin-bottom: 2rem;
    }
    
    /* Feature cards optimal sizing */
    .feature-card {
        min-height: 280px;
    }
    
    /* Info cards optimal sizing */
    .info-card {
        min-height: 250px;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced spacing for ultra-wide */
    .hero-section {
        padding: 120px 0;
    }
    
    .page-section {
        padding: 5rem 0;
    }
}

/* Mobile navigation adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #fcfcfd;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn,
    #gallery {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    /* Disable animations on mobile when reduced motion is preferred */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card,
    .feature-card,
    .info-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Dark mode support (when available) */

/* Specific mobile fixes */
@media (max-width: 575.98px) {
    /* Prevent horizontal scroll */
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix potential overflow issues */
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .col-12,
    .col-sm-12,
    .col-md-12,
    .col-lg-12 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Tablet landscape adjustments */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        min-height: 80vh;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
    }
}

/* Mobile landscape adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .navbar {
        padding: 0.25rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.125rem;
    }
} 