/* ===== Mobile First Responsive Design ===== */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.87rem;
    }
    
    h3 {
        font-size: 1.52rem;
    }
    
    h4 {
        font-size: 1.28rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.38rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 6rem 0 4rem;
        text-align: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    /* Sections */
    .section-padding {
        padding: 3rem 0;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .info-card,
    .blog-card,
    .faq-card {
        margin-bottom: 1.94rem;
    }
    
    .service-card img {
        height: 180px;
    }
    
    /* Team */
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.30rem;
    }
    
    /* Timeline */
    .timeline-item {
        margin-bottom: 2rem;
    }
    
    /* Price cards */
    .price-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    .gallery-image {
        margin-bottom: 1rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        margin-top: 56px;
    }
    
    /* Space page */
    #space {
        padding: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section {
        padding: 6rem 0 4rem;
    }
    
    .hero-buttons .btn {
        width: auto;
        margin-right: 1rem;
    }
    
    /* Sections */
    .section-padding {
        padding: 4rem 0;
    }
    
    /* Service cards */
    .service-card img {
        height: 200px;
    }
    
    /* Team */
    .team-photo {
        width: 140px;
        height: 140px;
    }
    
    /* Contact */
    .contact-form {
        padding: 2rem;
    }
    
    /* Footer */
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    /* Process steps */
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.45rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        margin-top: 66px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section {
        padding: 7rem 0 5rem;
    }
    
    /* Sections */
    .section-padding {
        padding: 4.5rem 0;
    }
    
    /* Team */
    .team-photo {
        width: 130px;
        height: 130px;
    }
    
    /* Contact */
    .contact-form {
        padding: 2rem;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 1rem;
    }
    
    /* Cards spacing */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .info-card,
    .blog-card,
    .faq-card {
        margin-bottom: 2rem;
    }
    
    /* Process steps */
    .step-number {
        width: 58px;
        height: 58px;
        font-size: 1.49rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        margin-top: 72px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-section {
        padding: 8rem 0;
    }
    
    /* Team */
    .team-photo {
        width: 140px;
        height: 140px;
    }
    
    /* Contact */
    .contact-form {
        padding: 2rem;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    /* Footer */
    .footer {
        text-align: left;
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        margin-top: 76px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero Section */
    .hero-section {
        padding: 8rem 0;
    }
    
    /* Team */
    .team-photo {
        width: 150px;
        height: 150px;
    }
    
    /* Contact */
    .contact-form {
        padding: 2rem;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    /* Footer */
    .footer {
        text-align: left;
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        margin-top: 76px;
    }
}

/* ===== Landscape Phone Orientation ===== */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding: 4rem 0 3rem;
        min-height: 70vh;
    }
    
    .section-padding {
        padding: 2.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.31rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1rem;
    }
}

/* ===== Touch Device Optimizations ===== */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .case-study-card:hover,
    .preparation-item:hover,
    .period-card:hover,
    .tech-feature:hover,
    .benefit-card:hover,
    .safety-item:hover,
    .destination-card:hover,
    .expertise-card:hover,
    .equipment-card:hover,
    .booking-info:hover,
    .support-card:hover {
        transform: none;
    }
    
    .gallery-image:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    /* Increase tap targets for better accessibility */
    .btn {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .form-control {
        min-height: 48px;
        padding: 0.75rem 1rem;
    }
    
    /* Improve form controls on mobile */
    .form-control:focus {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ===== Dark Mode Support ===== */

/* ===== High DPI / Retina Display Support ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high DPI displays */
    .hero-image,
    .service-card img,
    .team-photo,
    .gallery-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }
    
    .hero-section,
    .section-padding {
        padding: 1rem 0;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .info-card,
    .blog-card,
    .faq-card {
        box-shadow: none;
        border: 1px solid #ede6e5;
        break-inside: avoid;
    }
    
    * {
        color: #000;
        background: #fff;
    }
}

/* ===== Accessibility Improvements ===== */
/* Focus states for keyboard navigation */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.navbar-toggler:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .info-card,
    .blog-card,
    .faq-card {
        border: 2px solid var(--text-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--text-dark);
    }
}

/* ===== Internet Explorer 11 Support ===== */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .hero-section {
        display: block;
    }
    
    .feature-card,
    .service-card,
    .price-card {
        height: auto;
    }
    
    .team-photo {
        width: 150px;
        height: 150px;
    }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== Selection Styling ===== */
::selection {
    background: var(--primary-light);
    color: var(--text-dark);
}

::-moz-selection {
    background: var(--primary-light);
    color: var(--text-dark);
} 

.hero-section h1 {
    padding-top: 125px;
}