/* SpiceVault - Responsive CSS */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1, .display-4 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    p.lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile adjustments */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hide decorative shapes on mobile for performance */
    .hero-shapes {
        display: none;
    }
    
    /* Card spacing adjustments */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Button adjustments */
    .btn {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 1rem; /* Prevent zoom on iOS */
    }
    
    /* Team member images */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    footer .container {
        text-align: center;
    }
    
    footer .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* NO ANIMATIONS ON MOBILE as per requirements */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Disable hover effects on mobile */
    .card:hover,
    .feature-card:hover,
    .info-card:hover,
    .btn:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 85vh;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    /* Still no animations on small devices */
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .team-member img {
        width: 115px;
        height: 115px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    /* Enable subtle animations on tablets */
    .card {
        transition: box-shadow 0.3s ease;
    }
    
    .card:hover {
        box-shadow: var(--shadow-lg);
    }
    
    /* But disable transform animations */
    .card:hover,
    .feature-card:hover,
    .info-card:hover {
        transform: none !important;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
    }
    
    /* Full animations enabled on desktop */
    .card,
    .feature-card,
    .info-card,
    .btn {
        transition: all 0.3s ease;
    }
    
    .card:hover,
    .feature-card:hover,
    .info-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    .btn:hover {
        transform: translateY(-1px);
    }
    
    /* Show hero shapes on larger screens */
    .hero-shapes {
        display: block;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 5rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section p.lead {
        font-size: 1.25rem;
    }
}

/* Extra Extra Large Devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    section {
        padding: 6rem 0;
    }
}

/* Landscape Phone Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    padding-top: 100px;
}
    
    .hero-section p.lead {
        font-size: 0.9rem;
    }
}

/* High DPI / Retina Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders for high-DPI displays */
    .card,
    .btn,
    .form-control {
        border-width: 0.5px;
    }
}

/* Print Responsive Adjustments */
@media print {
    /* Hide non-essential elements */
    .navbar,
    .hero-shapes,
    .btn,
    footer,
    #gallery {
        display: none !important;
    }
    
    /* Adjust typography for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
    
    /* Ensure good contrast for print */
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-shapes {
        display: none;
    }
}

/* Dark Mode Support (if user prefers) */

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .form-control {
        border: 2px solid #000;
    }
}

/* Focus Management for Keyboard Navigation */
@media (any-hover: none) {
    /* Touch devices - remove hover effects */
    .card:hover,
    .feature-card:hover,
    .info-card:hover,
    .btn:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }
}

/* Tablet Specific Adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Optimize for tablet viewing */
    .hero-section {
        padding: 3rem 0;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    /* Adjust grid for better tablet layout */
    .col-lg-2-4 {
        width: 33.333333%;
    }
}

/* iPhone X and similar notch devices */
@media screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
    .hero-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* iPad specific adjustments */
@media screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: var(--border-radius-lg);
        margin-top: 1rem;
        padding: 1rem;
    }
} 