/* Mobile-First Responsive Design */
/* Base styles are mobile-first, then enhanced for larger screens */

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.65rem;
    }
    
    h3 {
        font-size: 1.44rem;
    }
    
    .navbar-brand {
        font-size: 1.20rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.84rem;
        margin-bottom: 1rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.31rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 0.98rem;
        margin-bottom: 1.73rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    section h2 {
        font-size: 1.57rem;
    }
    
    section h3 {
        font-size: 1.35rem;
    }
    
    section p {
        font-size: 0.99rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-body h5 {
        font-size: 1rem;
    }
    
    .card-body h6 {
        font-size: 1.03rem;
    }
    
    /* Contact Info */
    .contact-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    /* Team Grid */
    #team .col-lg-2 {
        margin-bottom: 1rem;
    }
    
    /* Process Steps */
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.93rem;
    }
    
    /* Gallery */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Space Page */
    #space {
        padding-top: 60px;
    }
    
    #space h1 {
        font-size: 1.85rem;
    }
    
    #space .lead {
        font-size: 1rem;
    }
}

/* Small Devices (Landscape Phones) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1 {
        font-size: 2.34rem;
    }
    
    h2 {
        font-size: 1.84rem;
    }
    
    .navbar-brand {
        font-size: 1.23rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 90px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.36rem;
    }
    
    /* Sections */
    section {
        padding: 3.5rem 0;
    }
    
    /* Cards */
    .card-body {
        padding: 1.25rem;
    }
    
    /* Contact Info */
    .contact-info {
        padding: 1.75rem;
    }
    
    /* Space Page */
    #space {
        padding-top: 70px;
    }
    
    #space h1 {
        font-size: 2rem;
    }
    
    #space .lead {
        font-size: 1.20rem;
    }
}

/* Medium Devices (Tablets) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1 {
        font-size: 2.33rem;
    }
    
    h2 {
        font-size: 2.00rem;
    }
    
    .navbar-brand {
        font-size: 1.34rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 95px;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.47rem;
    }
    
    /* Sections */
    section {
        padding: 3.75rem 0;
    }
    
    /* Cards in Services */
    .card-img-top {
        height: 180px;
    }
    
    /* Team Images */
    #team .card-img-top {
        height: 220px;
    }
    
    /* Contact Form */
    .contact-info {
        margin-top: 3rem;
    }
    
    /* Space Page */
    #space {
        padding-top: 75px;
    }
    
    #space h1 {
        font-size: 2.24rem;
    }
}

/* Large Devices (Desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Typography */
    .navbar-brand {
        font-size: 1.39rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-section h1 {
        font-size: 2.50rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.58rem;
    }
    
    /* Cards in Services */
    .card-img-top {
        height: 190px;
    }
    
    /* Team Images */
    #team .card-img-top {
        height: 240px;
    }
    
    /* Contact Form */
    .contact-info {
        margin-top: 0;
    }
    
    /* Space Page */
    #space {
        padding-top: 80px;
    }
    
    #space h1 {
        font-size: 2.47rem;
    }
}

/* Extra Large Devices (Large Desktops) */
@media (min-width: 1200px) {
    /* Typography */
    .navbar-brand {
        font-size: 1.32rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-section h1 {
        font-size: 2.60rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.56rem;
    }
    
    /* Cards in Services */
    .card-img-top {
        height: 200px;
    }
    
    /* Team Images */
    #team .card-img-top {
        height: 250px;
    }
    
    /* Sections */
    section {
        padding: 4rem 0;
    }
    
    /* Space Page */
    #space {
        padding-top: 80px;
    }
    
    #space h1 {
        font-size: 2.63rem;
    }
    
    #space .lead {
        font-size: 1.31rem;
    }
}

/* Navigation Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(248, 249, 250, 0.95);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        border-radius: 4px;
        margin-bottom: 0.40rem;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(90, 157, 232, 0.10);
    }
}

/* Form Responsive Adjustments */
@media (max-width: 767.98px) {
    .form-control {
        padding: 0.6rem;
        font-size: 0.98rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 1.03rem;
    }
}

/* Card Hover Effects - Disable on Touch Devices */
@media (hover: none) {
    .card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* High DPI Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    #team .card-img-top,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding-top: 80px;
    }
    
    .hero-section .min-vh-100 {
        min-height: 80vh;
    }
    
    #space.min-vh-100 {
        min-height: 80vh;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb-section,
    footer,
    .btn {
        display: none;
    }
    
    .hero-section {
        padding-top: 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .card {
        border: 1px solid #e6eff4;
        box-shadow: none;
    }
    
    a {
        color: inherit;
        text-decoration: none;
    }
    
    .text-primary {
        color: #000000;
    }
    
    .bg-light {
        background-color: #ffffff;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .card,
    .btn-primary,
    #gallery img,
    .form-control,
    .navbar-nav .nav-link {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */