/* ScoreVault - Responsive Styles */
/* Mobile-first responsive design with NO mobile animations */

/* Mobile animations disabled as per requirements */
@media (max-width: 767.98px) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .sal-animate {
        animation: none !important;
    }
    
    [data-sal] {
        animation: none !important;
    }
}

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar brand size reduction */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section adjustments */
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    /* Button sizes */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    /* Card spacing */
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    /* Section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Contact form */
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Team member images */
    .rounded-circle {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Process circles */
    .bg-primary.rounded-circle {
        width: 50px !important;
        height: 50px !important;
    }
    
    .bg-primary.rounded-circle .h4 {
        font-size: 1rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer spacing */
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Hide some decorative elements on mobile */
    .hero-section::before {
        display: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.675rem;
    }
    
    /* Hero adjustments */
    .hero-section {
        min-height: 80vh;
    }
    
    /* Card spacing */
    .card-body {
        padding: 1.25rem;
    }
    
    /* Section padding */
    section {
        padding: 2.5rem 0;
    }
    
    /* Team images */
    .rounded-circle {
        width: 130px !important;
        height: 130px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1, .h1 {
        font-size: 2.125rem;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 90vh;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1.5rem;
    }
    
    /* Section spacing */
    section {
        padding: 2.75rem 0;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Team spacing */
    .col-lg-2-4 {
        width: 33.333333%;
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Standard desktop styling - most styles from main.css apply */
    
    /* Team grid for 5 columns */
    .col-lg-2-4 {
        width: 20%;
    }
    
    /* Ensure proper spacing */
    section {
        padding: 3rem 0;
    }
    
    /* Card hover effects enabled on larger screens */
    .card:hover {
        transform: translateY(-4px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-widths */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 4rem 0;
    }
    
    /* Typography scaling */
    h1, .h1 {
        font-size: 2.5rem;
    }
    
    h2, .h2 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
    
    /* Enhanced card effects */
    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    }
    
    /* Hero enhancements */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Enhanced button sizing */
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1.125rem;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Further enhance spacing */
    section {
        padding: 5rem 0;
    }
    
    /* Scale up key typography */
    .display-4 {
        font-size: 3rem;
    }
    
    .lead {
        font-size: 1.375rem;
    }
}

/* Orientation-specific styles */
@media (orientation: landscape) and (max-height: 600px) {
    /* Landscape mobile adjustments */
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on retina displays */
    .card {
        backface-visibility: hidden;
    }
    
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark mode support (if system preference) */

/* Print-specific responsive styles */
@media print {
    /* Ensure proper printing layout */
    .container {
        width: auto !important;
        max-width: none !important;
    }
    
    .row {
        display: block !important;
    }
    
    .col-md-6,
    .col-lg-4,
    .col-lg-3 {
        width: 100% !important;
        float: none !important;
    }
    
    section {
        padding: 1rem 0 !important;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
}

/* Accessibility - Focus indicators for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Custom responsive grid classes */
@media (min-width: 576px) {
    .col-sm-2-5 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* Ensure images are responsive in all contexts */
img {
    max-width: 100%;
    height: auto;
}

/* Gallery responsive improvements */
@media (max-width: 575.98px) {
    #gallery .col-md-4 {
        padding: 0.25rem;
    }
    
    #gallery img {
        border-radius: 0.25rem;
    }
}

/* Form responsive improvements */
@media (max-width: 767.98px) {
    .contact-info .card {
        margin-top: 2rem;
    }
    
    form .row {
        margin: 0;
    }
    
    form .col-md-6,
    form .col-12 {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 1rem;
    }
}

/* Navigation responsive enhancements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
} 

.hero-section h1 {
    padding-top: 225px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
