/* =======================
   RESPONSIVE CSS
   Team-Building Event Marketplace
   ======================= */

/* =======================
   EXTRA SMALL DEVICES (< 576px)
   ======================= */

@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    .hero-title {
        font-size: 2.28rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.24rem;
    }
    
    .section-title {
        font-size: 1.74rem;
    }
    
    h1, .h1 {
        font-size: 1.84rem;
    }
    
    h2, .h2 {
        font-size: 1.65rem;
    }
    
    /* Spacing adjustments */
    .section {
        padding: 2.5rem 0;
    }
    
    .hero-section {
        padding: 2rem 0;
        min-height: 90vh;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.71rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.98rem;
        width: 100%;
        margin-bottom: 0.74rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.6rem;
        font-size: 0.94rem;
    }
    
    /* Navigation adjustments */
    .navbar-brand {
        font-size: 1.24rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.97rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Hero shapes - hide on mobile for performance */
    .hero-shape-1,
    .hero-shape-2 {
        display: none;
    }
    
    /* Team member photo size */
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Service icon size */
    .service-icon {
        font-size: 2.51rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Disable scroll animations on mobile devices */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* =======================
   SMALL DEVICES (576px - 767.98px)
   ======================= */

@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography adjustments */
    .hero-title {
        font-size: 2.51rem;
    }
    
    .hero-subtitle {
        font-size: 1.28rem;
    }
    
    .section-title {
        font-size: 1.91rem;
    }
    
    /* Spacing adjustments */
    .section {
        padding: 3rem 0;
    }
    
    .hero-section {
        min-height: 95vh;
    }
    
    /* Card adjustments */
    .service-card {
        padding: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.7rem 1.3rem;
        width: auto;
    }
    
    /* Team member photo size */
    .team-photo {
        width: 140px;
        height: 140px;
    }
    
    /* Service icon size */
    .service-icon {
        font-size: 2.95rem;
    }
    
    /* Hero shapes - small on small devices */
    .hero-shape-1 {
        width: 200px;
        height: 200px;
    }
    
    .hero-shape-2 {
        width: 150px;
        height: 150px;
    }
    
    /* Disable scroll animations on mobile devices */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* =======================
   MEDIUM DEVICES (768px - 991.98px)
   ======================= */

@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography adjustments */
    .hero-title {
        font-size: 2.67rem;
    }
    
    .hero-subtitle {
        font-size: 1.37rem;
    }
    
    .section-title {
        font-size: 1.92rem;
    }
    
    /* Spacing adjustments */
    .section {
        padding: 3.5rem 0;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    /* Card adjustments */
    .service-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.75rem 1.5rem;
    }
    
    /* Team member photo size */
    .team-photo {
        width: 150px;
        height: 150px;
    }
    
    /* Service icon size */
    .service-icon {
        font-size: 3rem;
    }
    
    /* Hero shapes - medium size */
    .hero-shape-1 {
        width: 250px;
        height: 250px;
    }
    
    .hero-shape-2 {
        width: 180px;
        height: 180px;
    }
    
    /* Grid adjustments */
    .service-grid .col-md-4 {
        margin-bottom: 2rem;
    }
    
    .team-grid .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* =======================
   LARGE DEVICES (992px - 1199.98px)
   ======================= */

@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Typography adjustments */
    .hero-title {
        font-size: 2.89rem;
    }
    
    .hero-subtitle {
        font-size: 1.39rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Spacing adjustments */
    .section {
        padding: 4rem 0;
    }
    
    /* Card adjustments */
    .service-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Hero shapes - full size */
    .hero-shape-1 {
        width: 300px;
        height: 300px;
    }
    
    .hero-shape-2 {
        width: 200px;
        height: 200px;
    }
    
    /* Grid adjustments */
    .service-grid .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    .team-grid .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* =======================
   EXTRA LARGE DEVICES (≥ 1200px)
   ======================= */

@media (min-width: 1200px) {
    /* Typography adjustments */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.32rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    /* Spacing adjustments */
    .section {
        padding: 4.5rem 0;
    }
    
    /* Card adjustments */
    .service-card {
        padding: 2.5rem;
        margin-bottom: 2rem;
    }
    
    /* Hero shapes - full size */
    .hero-shape-1 {
        width: 350px;
        height: 350px;
    }
    
    .hero-shape-2 {
        width: 220px;
        height: 220px;
    }
    
    /* Container max-width */
    .container {
        max-width: var(--container-max-width);
    }
    
    /* Grid spacing */
    .service-grid .col-xl-4 {
        margin-bottom: 3rem;
    }
    
    .team-grid .col-xl-4 {
        margin-bottom: 3rem;
    }
}

/* =======================
   ULTRA WIDE DEVICES (≥ 1400px)
   ======================= */

@media (min-width: 1400px) {
    /* Typography adjustments */
    .hero-title {
        font-size: 3.25rem;
    }
    
    .section-title {
        font-size: 2.49rem;
    }
    
    /* Spacing adjustments */
    .section {
        padding: 5rem 0;
    }
    
    /* Card adjustments */
    .service-card {
        padding: 3rem;
    }
    
    /* Hero shapes - large size */
    .hero-shape-1 {
        width: 400px;
        height: 400px;
    }
    
    .hero-shape-2 {
        width: 250px;
        height: 250px;
    }
}

/* =======================
   LANDSCAPE ORIENTATION (Mobile/Tablet)
   ======================= */

@media (orientation: landscape) and (max-width: 991.98px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.28rem;
    }
    
    .hero-subtitle {
        font-size: 1.20rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    /* Hide hero shapes in landscape mobile for performance */
    .hero-shape-1,
    .hero-shape-2 {
        display: none;
    }
}

/* =======================
   HIGH DPI DISPLAYS (Retina)
   ======================= */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Adjust text rendering for high DPI */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Adjust border thickness for high DPI */
    .card {
        border-width: 0.5px;
    }
    
    .form-control {
        border-width: 0.5px;
    }
    
    .btn-outline-primary {
        border-width: 1px;
    }
}

/* =======================
   REDUCED MOTION PREFERENCES
   ======================= */

@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove floating animations */
    .hero-shape-1,
    .hero-shape-2 {
        animation: none;
    }
    
    /* Remove hover transforms */
    .card:hover,
    .service-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Remove scroll animations */
    [data-sal] {
        animation: none !important;
    }
}

/* =======================
   DARK MODE SUPPORT (System Preference)
   ======================= */


/* =======================
   PRINT STYLES
   ======================= */

@media print {
    /* Hide non-essential elements when printing */
    .hero-shape-1,
    .hero-shape-2,
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
    
    /* Adjust colors for print */
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #c3c3c3 !important;
        box-shadow: none !important;
    }
    
    /* Adjust font sizes for print */
    .hero-title {
        font-size: 24pt !important;
    }
    
    .section-title {
        font-size: 18pt !important;
    }
    
    p {
        font-size: 12pt !important;
    }
    
    /* Page breaks */
    .section {
        page-break-inside: avoid;
    }
}

/* =======================
   ACCESSIBILITY ENHANCEMENTS
   ======================= */

/* Focus visible for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
    :focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
        border-radius: 2px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
    }
    
    .form-control {
        border-width: 2px;
    }
}

/* =======================
   UTILITY RESPONSIVE CLASSES
   ======================= */

/* Hide elements on specific screen sizes */
.d-mobile-none {
    display: none !important;
}

@media (min-width: 768px) {
    .d-mobile-none {
        display: block !important;
    }
}

.d-desktop-none {
    display: block !important;
}

@media (min-width: 768px) {
    .d-desktop-none {
        display: none !important;
    }
}

/* Text alignment helpers */
.text-center-mobile {
    text-align: center;
}

@media (min-width: 768px) {
    .text-center-mobile {
        text-align: left;
    }
}

.text-center-desktop {
    text-align: left;
}

@media (min-width: 768px) {
    .text-center-desktop {
        text-align: center;
    }
}

/* Spacing helpers for different screen sizes */
.mb-mobile-2 {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .mb-mobile-2 {
        margin-bottom: 2rem;
    }
}

.p-mobile-1 {
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .p-mobile-1 {
        padding: 1rem;
    }
}

@media (min-width: 992px) {
    .p-mobile-1 {
        padding: 1.5rem;
    }
} 

.hero-content {
    padding-top: 150px;
}

/* =======================
   DISABLE SCROLL ANIMATIONS ON MOBILE
   (All devices up to 768px width)
   ======================= */

@media (max-width: 768px) {
    /* Completely disable all Sal.js scroll animations on mobile */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
    
    /* Also disable any animation-related CSS classes */
    .sal-animate {
        animation: none !important;
    }
    
    /* Disable any transform/transition properties that might be animation-related */
    * {
        animation-duration: 0s !important;
        animation-delay: 0s !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}