/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .h2 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding-top: 6rem;
    }
    
    .hero-section .row {
        text-align: center;
    }
    
    .contact-info {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .step-number, .step-circle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* No animations on mobile */
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    .hero-section {
        padding-top: 5rem;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 4rem;
    }
    
    .navbar-brand {
        font-size: 1.75rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        padding-top: 2rem;
    }
    
    .hero-section::before {
        display: block;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb-section,
    footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    .rounded-circle {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section .min-vh-100 {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--text-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--primary-color);
    }
    
    /* High contrast footer styles */
    footer {
        background-color: #000000 !important; /* Pure black background */
    }
    
    footer h5, footer h6 {
        color: #ffffff !important; /* Pure white headings */
        font-weight: 700;
    }
    
    footer p, footer .small {
        color: #ffffff !important; /* White text */
    }
    
    footer a {
        color: #ffffff !important; /* White links */
        text-decoration: underline;
        border-bottom: 1px solid #ffffff;
    }
    
    footer a:hover, footer a:focus {
        background-color: #ffffff !important;
        color: #000000 !important;
        text-decoration: none;
    }
    
    footer hr {
        background-color: #ffffff !important;
        opacity: 1;
        height: 2px;
    }
}

/* Dark Mode Support */

body {
    overflow-x: hidden;
}

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