﻿body {
       -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
}

.text-center {
    text-align: center;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.text-white {
    color: white;
}

.text-gray-600 {
    color: #4b5563;
}

@media (min-width: 768px) {
    .md-mt-12 {
        margin-top: 3rem;
    }

    .md-mt-8 {
        margin-top: 4rem;
    }
}

/* Carousel Wrapper */
.carousel-wrapper {
    max-width: 1600px;
    margin: 40px auto 0px auto;
    padding: 0 2rem;
    transform-origin: center top;
    transition: transform 0.3s ease;
}

@media (max-width: 1800px) {
    .carousel-wrapper {
        transform: scale(0.85);
    }
}

@media (max-width: 1600px) {
    .carousel-wrapper {
        transform: scale(0.78);
    }
}

@media (max-width: 1400px) {
    .carousel-wrapper {
        transform: scale(0.70);
    }
}

@media (max-width: 1280px) {
    .carousel-wrapper {
        transform: scale(0.65);
    }
}

@media (max-width: 1024px) {
    .carousel-wrapper {
        transform: scale(0.55);
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        transform: scale(0.75);
    }
}

@media (max-width: 640px) {
    .carousel-wrapper {
        transform: scale(0.68);
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        transform: scale(0.60);
    }
}

@media (max-width: 380px) {
    .carousel-wrapper {
        transform: scale(0.52);
    }
}

/* Carousel Scene - 3D perspective container */
.carousel-scene {
    perspective: 1400px;
    -webkit-perspective: 1400px; /* Safari fallback */
    perspective-origin: center center;
    -webkit-perspective-origin: center center; /* Safari fallback */
    width: 100%;
    height: 460px;
    position: relative;
    overflow: visible;
    margin-bottom: 1.5rem;
    touch-action: pan-y;
    -webkit-touch-action: pan-y; /* Safari fallback */
}

@media (min-width: 640px) {
    .carousel-scene {
        height: 420px;
        perspective: 1600px;
        -webkit-perspective: 1600px; /* Safari fallback */
    }
}

@media (min-width: 768px) {
    .carousel-scene {
        height: 460px;
        perspective: 1800px;
        -webkit-perspective: 1800px; /* Safari fallback */
        margin-bottom: 2rem;
    }
}

@media (min-width: 1024px) {
    .carousel-scene {
        height: 460px;
        perspective: 2200px;
        -webkit-perspective: 2200px; /* Safari fallback */
    }
}

/* Carousel Container - holds all cards */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d; /* Safari fallback */
    z-index: 100;
}

/* STATIC BADGES LAYER - Positioned absolutely, never re-rendered */
.badges-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.static-badge {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    /* NO transitions - badges must stay completely fixed */
}

/* Hide outer badges on mobile (show only 3: 03, 04, 05) */
@media (max-width: 767px) {
    .desktop-only-badge {
        display: none;
    }
}

.static-badge-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: white;
    color: #b8885f;
    border: 2px solid #b8885f;
    font-weight: 600;
    /* NO transitions - prevent any animation */
    transition: none !important;
}

@media (min-width: 640px) {
    .static-badge-circle {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .static-badge-circle {
        width: 52px;
        height: 52px;
        font-size: 17px;
        border: 3px solid #b8885f;
    }
}

@media (min-width: 1024px) {
    .static-badge-circle {
        width: 56px;
        height: 56px;
        font-size: 18px;
    }
}

.static-badge-connector {
    width: 2px;
    height: 70px;
    background: linear-gradient(180deg, #b8885f 0%, rgba(184, 136, 95, 0.3) 100%);
    margin-top: 0;
}

@media (min-width: 768px) {
    .static-badge-connector {
        height: 60px;
    }
}

@media (min-width: 1024px) {
    .static-badge-connector {
        height: 60px;
    }
}

/* Individual Card */
.carousel-card {
    position: absolute;
    left: 50%;
    width: 340px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    opacity: 1 !important;
}

/* Card Body */
.card-body {
    width: 100%;
    border-radius: 20px;
    padding: 2rem 3rem 3rem 3rem;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Card flip transition - matches React preview */
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d; /* Safari fallback */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden; /* Safari fallback */
}

@media (min-width: 640px) {
    .card-body {
        min-height: 320px;
        padding: 2.25rem 1.5rem 1.5rem;
    }
}

.card-active {
    background: linear-gradient(135deg, #c9996d 0%, #b8885f 100%);
    box-shadow: 0 20px 60px rgba(184, 136, 95, 0.4);
}

.card-inactive {
    background: white;
    border: 2.5px solid #c9996d;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .card-inactive {
        border: 3px solid #c9996d;
    }
}

.carousel-card:hover .card-inactive {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

/* Card Icon */
.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

    .card-icon img {
        max-height: 40px;
    }



@media (min-width: 768px) {
    .card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.15rem;
    }
}

@media (min-width: 1024px) {
    .card-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1.25rem;
    }
}

.icon-active {
    background: #fff;
    color: #b97e46;
}

.icon-inactive {
    background: #fff;
    color: #b97e46;
}

/* Card Title */
.card-title {
    font-size: 18px;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    line-height: 1.3;
    font-weight: 600;
}

@media (min-width: 640px) {
    .card-title {
        font-size: 18px;
        margin-bottom: 0.85rem;
    }
}

@media (min-width: 768px) {
    .card-title {
        font-size: 19px;
        margin-bottom: 0.9rem;
    }
}

@media (min-width: 1024px) {
    .card-title {
        font-size: 20px;
        margin-bottom: 1rem;
    }
}

/* Card Description */
.card-description {
    font-size: 22px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

@media (min-width: 640px) {
    .card-description {
        font-size: 18px;
        line-height: 1.55;
    }
}

@media (min-width: 1024px) {
    .card-description {
        font-size: 18px;
        line-height: 1.6;
    }
}

/* Icon SVG styles */
.icon-svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
}

@media (min-width: 1024px) {
    .cta-btn {
        padding: 16px 48px;
        font-size: 16px;
    }
}

.cta-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Navigation Dots */
.nav-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    padding: 0;
    margin:5px;
}

.dot-active {
    background: #be8e64;
    transform: scale(1.2);
}

.dot-inactive {
    background: #d4a574;
    opacity: 0.4;
}

    .dot-inactive:hover {
        opacity: 0.7;
        transform: scale(1.15);
    }
