/* ========================================
   TREATMENT CONSTELLATION CAROUSEL
   Premium beauty services showcase
   ROSE/PINK THEME - FULLY RESPONSIVE
========================================= */

:root {
    /* ===========================================
       WARM BRONZE COLOR PALETTE
       Elegant luxury beauty theme
    =========================================== */
    --carousel-primary: #c89a63;
    --carousel-primary-light: #d4ab7a;
    --carousel-primary-dark: #a67c48;
    --carousel-secondary: #FFF8F0;
    --carousel-accent: #dbb488;
    --carousel-accent-light: #e8c9a8;
    --carousel-gold: #D4AF37;
    --carousel-gold-light: #F5E6A3;
    
    /* Gradient colors */
    --carousel-gradient-start: #c89a63;
    --carousel-gradient-mid: #d1a46f;
    --carousel-gradient-end: #d4ab7a;
    
    /* Shadows with bronze tint */
    --carousel-shadow: rgba(200, 154, 99, 0.12);
    --carousel-shadow-hover: rgba(200, 154, 99, 0.28);
    --carousel-shadow-active: rgba(200, 154, 99, 0.35);
    
    /* Background colors */
    --carousel-bg-start: #FFFBF7;
    --carousel-bg-mid: #FFF8F0;
    --carousel-bg-end: #FFFFFF;
    
    /* Text colors */
    --carousel-text-dark: #4A3C2B;
    --carousel-text-medium: #6B5740;
    --carousel-text-light: #8B7355;
    
    /* ===========================================
       CAROUSEL SIZING VARIABLES - DESKTOP
    =========================================== */
    --card-width: 380px;
    --card-gap: 20px;
    --card-peek: 60px;
    --side-padding: 40px;
    --card-image-height: 240px;
    
    /* Card state transformations */
    --active-scale: 1;
    --adjacent-scale: 0.88;
    --far-scale: 0.78;
    
    --active-opacity: 1;
    --adjacent-opacity: 0.75;
    --far-opacity: 0.4;
    
    --active-blur: 0px;
    --adjacent-blur: 2px;
    --far-blur: 4px;
    
    /* Navigation button size */
    --nav-btn-size: 52px;
}

/* ===========================================
   RESPONSIVE BREAKPOINTS
=========================================== */

/* Large Desktop */
@media (min-width: 1400px) {
    :root {
        --card-width: 400px;
        --card-gap: 24px;
        --card-peek: 80px;
        --side-padding: 60px;
    }
}

/* Medium Desktop / Large Tablet Landscape */
@media (max-width: 1200px) {
    :root {
        --card-width: 350px;
        --card-gap: 18px;
        --card-peek: 50px;
        --side-padding: 30px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    :root {
        --card-width: 320px;
        --card-gap: 16px;
        --card-peek: 45px;
        --side-padding: 25px;
        --card-image-height: 210px;
        --nav-btn-size: 46px;
    }
}

/* Large Phone / Small Tablet */
@media (max-width: 768px) {
    :root {
        --card-width: min(300px, 70vw);
        --card-gap: 14px;
        --card-peek: 35px;
        --side-padding: 15px;
        --card-image-height: 190px;
        --nav-btn-size: 42px;
        
        --adjacent-scale: 0.85;
        --far-scale: 0.75;
        --adjacent-blur: 3px;
        --far-blur: 5px;
    }
}

/* Medium Phone */
@media (max-width: 640px) {
    :root {
        --card-width: min(280px, 72vw);
        --card-gap: 12px;
        --card-peek: 28px;
        --side-padding: 12px;
        --card-image-height: 170px;
        --nav-btn-size: 38px;
    }
}

/* Small Phone */
@media (max-width: 480px) {
    :root {
        --card-width: min(260px, 68vw);
        --card-gap: 10px;
        --card-peek: 22px;
        --side-padding: 10px;
        --card-image-height: 155px;
        --nav-btn-size: 36px;
        
        --adjacent-scale: 0.82;
        --adjacent-opacity: 0.6;
    }
}

/* Extra Small Phone */
@media (max-width: 375px) {
    :root {
        --card-width: min(240px, 66vw);
        --card-gap: 8px;
        --card-peek: 18px;
        --side-padding: 8px;
        --card-image-height: 140px;
        --nav-btn-size: 34px;
    }
}

/* Very Small Phone (iPhone SE, etc.) */
@media (max-width: 320px) {
    :root {
        --card-width: min(220px, 70vw);
        --card-gap: 6px;
        --card-peek: 14px;
        --side-padding: 6px;
        --card-image-height: 130px;
    }
}

/* ===========================================
   MAIN CONSTELLATION SECTION
=========================================== */

.services-constellation {
    position: relative;
    padding: clamp(50px, 8vw, 100px) 0;
    background: linear-gradient(
        180deg,
        var(--carousel-bg-start) 0%,
        var(--carousel-bg-mid) 35%,
        var(--carousel-bg-end) 100%
    );
    overflow: hidden;
    
    /* Decorative background elements */
}

/* Decorative background patterns */
.services-constellation::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(200, 154, 99, 0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.services-constellation::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 50%;
    height: 80%;
    background: radial-gradient(
        ellipse at center,
        rgba(212, 171, 122, 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

/* ===========================================
   CONSTELLATION HEADER
=========================================== */

.constellation-header {
    position: relative;
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
    padding: 0 var(--side-padding);
    z-index: 1;
}

.constellation-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(
        135deg,
        var(--carousel-primary) 0%,
        var(--carousel-accent) 50%,
        var(--carousel-primary-dark) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(200, 154, 99, 0.15);
}

.constellation-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    color: var(--carousel-text-medium);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===========================================
   CATEGORY PILLS
=========================================== */

.category-constellation {
    display: flex;
    gap: clamp(0.4rem, 1.5vw, 0.75rem);
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 var(--side-padding) clamp(1.5rem, 4vw, 2.5rem);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.category-pill {
    padding: clamp(0.5rem, 1.2vw, 0.7rem) clamp(0.9rem, 2vw, 1.4rem);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(200, 154, 99, 0.15);
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.75rem, 1.4vw, 0.9rem);
    color: var(--carousel-text-dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(200, 154, 99, 0.08);
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.category-pill:hover {
    transform: translateY(-2px);
    border-color: var(--carousel-primary-light);
    box-shadow: 0 6px 20px rgba(200, 154, 99, 0.18);
    background: rgba(255, 255, 255, 1);
}

.category-pill.active {
    background: linear-gradient(
        135deg,
        var(--carousel-primary) 0%,
        var(--carousel-accent) 100%
    );
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 25px rgba(200, 154, 99, 0.4);
    transform: translateY(-1px);
}

/* ===========================================
   CAROUSEL WRAPPER
=========================================== */

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: clamp(0.5rem, 2vw, 1.5rem) 0;
    z-index: 1;
}

/* ===========================================
   CAROUSEL TRACK CONTAINER
=========================================== */

.carousel-track-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: clamp(1rem, 3vw, 2rem) 0;
}

/* ===========================================
   CAROUSEL TRACK
   Key: Left-aligned start with proper spacing
=========================================== */

.carousel-track {
    display: flex;
    align-items: center;
    gap: var(--card-gap);
    transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
    
    /* 
     * CRITICAL FIX: Padding calculation
     * Left padding: Small offset for the first card
     * Right padding: Ensures last card can be centered
     */
    padding-left: var(--side-padding);
    padding-right: calc(100vw - var(--card-width) - var(--side-padding));
    
    /* Touch handling - JS detects direction, no restriction here */
    -webkit-user-select: none;
    user-select: none;
}

/* Ensure touch scrolling feels native */
@media (hover: none) and (pointer: coarse) {
    .carousel-track {
        cursor: grab;
    }
    
    .carousel-track:active {
        cursor: grabbing;
    }
}

/* ===========================================
   SERVICE CARD - BASE STYLES
=========================================== */

.service-card {
    /* Consistent sizing using CSS variables */
    flex: 0 0 var(--card-width);
    width: var(--card-width);
    min-width: var(--card-width);
    max-width: 420px;
    
    background: white;
    border-radius: clamp(16px, 2.5vw, 24px);
    overflow: hidden;
    position: relative;
    
    /* Default state: Far/Inactive */
    opacity: var(--far-opacity);
    transform: scale(var(--far-scale));
    filter: blur(var(--far-blur));
    
    /* Smooth, elegant transitions */
    transition: 
        transform 0.5s cubic-bezier(0.33, 1, 0.68, 1),
        opacity 0.5s cubic-bezier(0.33, 1, 0.68, 1),
        filter 0.5s cubic-bezier(0.33, 1, 0.68, 1),
        box-shadow 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    
    will-change: transform, opacity, filter;
    cursor: pointer;
    z-index: 1;
    
    /* Base shadow */
    box-shadow: 
        0 4px 20px rgba(200, 154, 99, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.05);
    
    /* Bronze border accent */
    border: 1px solid rgba(200, 154, 99, 0.08);
}

/* ===========================================
   SERVICE CARD - STATE CLASSES
=========================================== */

/* ACTIVE CARD - Fully visible and prominent */
.service-card.active {
    opacity: var(--active-opacity);
    transform: scale(var(--active-scale));
    filter: blur(var(--active-blur));
    z-index: 10;
    
    box-shadow: 
        0 20px 50px rgba(200, 154, 99, 0.2),
        0 10px 25px rgba(200, 154, 99, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.08);
    
    border-color: rgba(200, 154, 99, 0.15);
}

/* ADJACENT CARDS - Peeking from sides with blur */
.service-card.adjacent {
    opacity: var(--adjacent-opacity);
    transform: scale(var(--adjacent-scale));
    filter: blur(var(--adjacent-blur));
    z-index: 5;
    
    box-shadow: 
        0 8px 25px rgba(200, 154, 99, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Slight rotation for depth effect on adjacent cards */
.service-card.adjacent-left {
    transform: scale(var(--adjacent-scale)) perspective(1000px) rotateY(3deg);
    transform-origin: right center;
}

.service-card.adjacent-right {
    transform: scale(var(--adjacent-scale)) perspective(1000px) rotateY(-3deg);
    transform-origin: left center;
}

/* FAR CARDS - Heavily blurred background cards */
.service-card.far {
    opacity: var(--far-opacity);
    transform: scale(var(--far-scale));
    filter: blur(var(--far-blur));
    z-index: 1;
    pointer-events: none;
    
    box-shadow: 0 4px 15px rgba(200, 154, 99, 0.05);
}

/* ===========================================
   CARD IMAGE SECTION
=========================================== */

.card-image-wrapper {
    position: relative;
    height: var(--card-image-height);
    overflow: hidden;
    
    /* Clean white background for seamless premium look */
    background: #FFFFFF;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain for PNG images with transparency */
    padding: 12px; /* Add padding to prevent edge touching */
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Hover zoom effect on active card */
.service-card.active:hover .card-image {
    transform: scale(1.08);
}

/* Elegant overlay gradient */
.card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 100%
    );
    pointer-events: none;
}

/* ===========================================
   CARD BADGE
=========================================== */

.card-badge {
    position: absolute;
    top: clamp(0.6rem, 2vw, 1rem);
    right: clamp(0.6rem, 2vw, 1rem);
    padding: clamp(0.3rem, 0.8vw, 0.4rem) clamp(0.6rem, 1.2vw, 0.85rem);
    border-radius: 25px;
    font-size: clamp(0.6rem, 1.1vw, 0.72rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    z-index: 2;
}

.card-badge.badge-popular {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #5D4000;
}

.card-badge.badge-luxury {
    background: linear-gradient(135deg, var(--carousel-gold) 0%, #C9A227 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.card-badge.badge-bridal {
    background: linear-gradient(135deg, var(--carousel-primary) 0%, var(--carousel-accent) 100%);
    color: white;
}

.card-badge.badge-new {
    background: linear-gradient(135deg, #00C853 0%, #69F0AE 100%);
    color: #004D25;
}

.card-badge.badge-trending {
    background: linear-gradient(135deg, #7C4DFF 0%, #B388FF 100%);
    color: white;
}

/* ===========================================
   CARD CONTENT
=========================================== */

.card-content {
    padding: clamp(1rem, 2.5vw, 1.6rem);
    background: white;
}

.card-title {
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    font-weight: 700;
    color: var(--carousel-text-dark);
    margin-bottom: clamp(0.4rem, 1vw, 0.65rem);
    line-height: 1.3;
    
    /* Elegant text truncation */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description {
    font-size: clamp(0.8rem, 1.4vw, 0.92rem);
    color: var(--carousel-text-light);
    line-height: 1.55;
    margin-bottom: clamp(0.6rem, 1.5vw, 0.9rem);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===========================================
   CARD META CHIPS
=========================================== */

.card-meta {
    display: flex;
    gap: clamp(0.3rem, 0.8vw, 0.45rem);
    flex-wrap: wrap;
    margin-bottom: clamp(0.8rem, 1.8vw, 1.15rem);
}

.meta-chip {
    padding: clamp(0.25rem, 0.6vw, 0.32rem) clamp(0.5rem, 1vw, 0.7rem);
    background: linear-gradient(135deg, var(--carousel-secondary) 0%, #FAFDF2 100%);
    border-radius: 10px;
    font-size: clamp(0.7rem, 1.2vw, 0.8rem);
    color: var(--carousel-text-medium);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    border: 1px solid rgba(200, 154, 99, 0.1);
}

.meta-chip i {
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    color: var(--carousel-primary);
}

/* ===========================================
   BOOK SERVICE BUTTON
=========================================== */

.btn-book-service {
    width: 100%;
    padding: clamp(0.7rem, 1.8vw, 0.9rem) clamp(1rem, 2vw, 1.4rem);
    background: linear-gradient(
        135deg,
        var(--carousel-primary) 0%,
        var(--carousel-accent) 100%
    );
    color: white;
    border: none;
    border-radius: clamp(10px, 1.5vw, 14px);
    font-weight: 700;
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
    box-shadow: 
        0 4px 15px rgba(200, 154, 99, 0.3),
        0 2px 6px rgba(200, 154, 99, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-book-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-book-service:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(200, 154, 99, 0.4),
        0 4px 12px rgba(200, 154, 99, 0.3);
}

.btn-book-service:hover::before {
    left: 100%;
}

.btn-book-service:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 15px rgba(200, 154, 99, 0.3),
        0 2px 6px rgba(200, 154, 99, 0.2);
}

.btn-book-service i {
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    transition: transform 0.3s ease;
}

.btn-book-service:hover i {
    transform: translateX(3px);
}

/* ===========================================
   NAVIGATION BUTTONS
=========================================== */

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    
    width: var(--nav-btn-size);
    height: var(--nav-btn-size);
    
    background: white;
    border: 2px solid rgba(200, 154, 99, 0.2);
    border-radius: 50%;
    color: var(--carousel-primary);
    cursor: pointer;
    
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.85rem, 1.4vw, 1.1rem);
    
    transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
    box-shadow: 
        0 4px 20px rgba(200, 154, 99, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.08);
}

.carousel-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--carousel-primary) 0%, var(--carousel-accent) 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 
        0 8px 30px rgba(200, 154, 99, 0.35),
        0 4px 12px rgba(200, 154, 99, 0.25);
}

.carousel-btn:active:not(:disabled) {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(0, 0, 0, 0.1);
    color: #ccc;
    box-shadow: none;
}

.btn-prev {
    left: clamp(8px, 2vw, 20px);
}

.btn-next {
    right: clamp(8px, 2vw, 20px);
}

/* Mobile: Smaller, semi-transparent buttons */
@media (max-width: 640px) {
    .carousel-btn {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
    }
}

/* Very small screens: Keep buttons on sides with reduced size */
@media (max-width: 380px) {
    :root {
        --nav-btn-size: 32px;
    }
    
    .carousel-btn {
        font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    }
    
    .btn-prev {
        left: 4px;
    }
    
    .btn-next {
        right: 4px;
    }
}

/* ===========================================
   CAROUSEL INDICATORS / DOTS
=========================================== */

.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(6px, 1.2vw, 10px);
    margin-top: clamp(1.2rem, 3vw, 2rem);
    padding: 0 var(--side-padding);
    flex-wrap: wrap;
}

.indicator-dot {
    width: clamp(8px, 1.2vw, 10px);
    height: clamp(8px, 1.2vw, 10px);
    background: var(--carousel-primary-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.33, 1, 0.68, 1);
    opacity: 0.35;
    padding: 0;
}

.indicator-dot:hover {
    opacity: 0.7;
    transform: scale(1.25);
    background: var(--carousel-primary);
}

.indicator-dot.active {
    width: clamp(28px, 4vw, 36px);
    border-radius: 6px;
    background: linear-gradient(90deg, var(--carousel-primary) 0%, var(--carousel-accent) 100%);
    opacity: 1;
    box-shadow: 0 2px 10px rgba(200, 154, 99, 0.4);
}

/* ===========================================
   SWIPE HINT FOR TOUCH DEVICES
=========================================== */

.carousel-swipe-hint {
    display: none;
    text-align: center;
    font-size: clamp(0.7rem, 1.2vw, 0.8rem);
    color: var(--carousel-text-light);
    margin-top: 0.6rem;
    opacity: 0;
    animation: fadeInHint 0.5s ease 1s forwards;
}

@keyframes fadeInHint {
    to {
        opacity: 0.7;
    }
}

/* Show swipe hint on touch devices */
@media (hover: none) and (pointer: coarse) {
    .carousel-swipe-hint {
        display: block;
    }
}

/* Swipe animation hint */
.carousel-swipe-hint::before {
    content: '👆';
    display: inline-block;
    margin-right: 0.4rem;
    animation: swipeHandMotion 2s ease-in-out infinite;
}

@keyframes swipeHandMotion {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-8px);
    }
}

/* ===========================================
   LOADING STATE
=========================================== */

.service-card.loading {
    pointer-events: none;
}

.service-card.loading .card-image-wrapper {
    background: linear-gradient(
        90deg,
        var(--carousel-secondary) 0%,
        #fff 50%,
        var(--carousel-secondary) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===========================================
   LANDSCAPE ORIENTATION
=========================================== */

@media (max-height: 500px) and (orientation: landscape) {
    :root {
        --card-image-height: 110px;
    }
    
    .services-constellation {
        padding: 25px 0 35px;
    }
    
    .constellation-header {
        margin-bottom: 1rem;
    }
    
    .category-constellation {
        padding-bottom: 1rem;
    }
    
    .card-content {
        padding: 0.75rem;
    }
    
    .card-description {
        -webkit-line-clamp: 1;
    }
    
    .card-meta {
        margin-bottom: 0.5rem;
    }
}

/* ===========================================
   HIGH RESOLUTION / RETINA DISPLAYS
=========================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-card {
        border-width: 0.5px;
    }
    
    .category-pill {
        border-width: 1.5px;
    }
}

/* ===========================================
   REDUCED MOTION PREFERENCE
=========================================== */

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .carousel-track,
    .category-pill,
    .carousel-btn,
    .indicator-dot,
    .btn-book-service,
    .card-image,
    .carousel-swipe-hint::before {
        transition: opacity 0.2s ease !important;
        animation: none !important;
        transform: none !important;
    }
    
    .service-card.active {
        transform: none !important;
    }
    
    .service-card.adjacent,
    .service-card.far {
        transform: scale(0.95) !important;
    }
}

/* ===========================================
   PRINT STYLES
=========================================== */

@media print {
    .services-constellation {
        background: white !important;
        padding: 20px 0;
    }
    
    .carousel-btn,
    .carousel-indicators,
    .carousel-swipe-hint {
        display: none !important;
    }
    
    .carousel-track-container {
        overflow: visible !important;
    }
    
    .carousel-track {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 10px;
        transform: none !important;
    }
    
    .service-card {
        flex: 0 0 calc(50% - 15px);
        width: calc(50% - 15px);
        min-width: auto;
        max-width: none;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ===========================================
   ACCESSIBILITY FOCUS STATES
=========================================== */

.category-pill:focus-visible,
.carousel-btn:focus-visible,
.indicator-dot:focus-visible,
.btn-book-service:focus-visible,
.service-card:focus-visible {
    outline: 3px solid var(--carousel-accent);
    outline-offset: 3px;
}

.service-card:focus-visible {
    outline-offset: 5px;
}

/* ===========================================
   SPECIFIC DEVICE TARGETING
=========================================== */

/* iPhone 14 Pro Max, 15 Pro Max */
@media (width: 430px) {
    :root {
        --card-width: 280px;
        --card-peek: 30px;
    }
}

/* iPhone 14, 15 */
@media (width: 390px) {
    :root {
        --card-width: 260px;
        --card-peek: 25px;
    }
}

/* iPhone SE, iPhone 8 */
@media (width: 375px) {
    :root {
        --card-width: 250px;
        --card-peek: 22px;
    }
}

/* Samsung Galaxy S series */
@media (width: 360px) {
    :root {
        --card-width: 240px;
        --card-peek: 20px;
    }
}

/* iPad */
@media (width: 768px) {
    :root {
        --card-width: 300px;
        --card-peek: 45px;
    }
}

/* iPad Pro 11" */
@media (width: 834px) {
    :root {
        --card-width: 320px;
        --card-peek: 55px;
    }
}

/* iPad Pro 12.9" */
@media (width: 1024px) {
    :root {
        --card-width: 350px;
        --card-peek: 65px;
    }
}

/* ===========================================
   LOADING STATE
=========================================== */

.carousel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--carousel-secondary);
    border-top: 4px solid var(--carousel-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.carousel-loading p {
    margin-top: 20px;
    color: var(--carousel-text-medium);
    font-size: 1.1rem;
    font-weight: 500;
}
