/* =========================================
       1. ANIMAȚIA DE INTRARE (PRELOADER)
       ========================================= */
    #preloader {
        position: fixed;
        top: 0; left: 0; width: 100vw; height: 100vh;
        background-color: #0f0f0f;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        animation: fadeOutBg 0.5s ease-in 2.5s forwards;
    }

    .brand-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        animation: flyToTopCenter 1s cubic-bezier(0.7, 0, 0.3, 1) 1s forwards;
    }

    .logo-ks {
        width: 120px;
        height: 120px;
        border-radius: 50%;
    }

    .text-ks {
        color: #c9a050;
        font-size: 3rem;
        font-weight: bold;
        letter-spacing: 4px;
        margin-left: 20px;
    }

    @keyframes flyToTopCenter {
        0% { transform: translate(0, 0) scale(1); opacity: 1; }
        100% { transform: translate(0, -45vh) scale(0.05); opacity: 0; }
    }

    @keyframes fadeOutBg {
        to { opacity: 0; visibility: hidden; }
    }

    /* =========================================
       2. STILURI PENTRU ELEMENTELE PAGINII
       ========================================= */
    /* Animație Marquee Bandă */
    @keyframes marquee {
        0% { transform: translateX(0%); }
        100% { transform: translateX(-50%); }
    }
    .animate-marquee {
        display: flex;
        width: 200%;
        animation: marquee 25s linear infinite;
    }
    .animate-marquee:hover {
        animation-play-state: paused;
    }

    /* Font de mână elegant */
    .font-handwriting {
        font-family: 'Great Vibes', cursive;
    }

    /* CONTAINERUL MARE CU GRADIENT LUMINOS */
    .hero-right-container {
        position: relative;
        background: radial-gradient(circle at center, rgba(209, 163, 116, 0.22) 0%, rgba(33, 31, 32, 0.8) 50%, rgba(20, 18, 19, 1) 100%);
        border: 1px solid #383335;
        border-radius: 2rem;
        box-shadow: 0 0 60px rgba(209, 163, 116, 0.15), inset 0 0 40px rgba(0, 0, 0, 0.8);
        transition: all 0.5s ease;
    }
    .hero-right-container:hover {
        box-shadow: 0 0 80px rgba(209, 163, 116, 0.25), inset 0 0 50px rgba(209, 163, 116, 0.1);
        border-color: #d1a374;
    }

    /* CARDUL AURIU MARE */
    .hero-big-card {
        background: linear-gradient(135deg, #e3ba90 0%, #b38656 50%, #8c6337 100%);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(209, 163, 116, 0.4);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .hero-big-card:hover, .hero-big-card:active {
        transform: scale(1.03);
        box-shadow: 0 30px 70px rgba(209, 163, 116, 0.6), 0 0 60px rgba(209, 163, 116, 0.8);
        filter: brightness(1.1);
    }

    /* Badge-urile interactive de pe margini */
    .category-badge {
        transition: all 0.3s ease;
    }
    .category-badge:hover, .category-badge:active {
        transform: scale(1.1) translateY(-2px);
        border-color: #d1a374;
        color: #ffffff;
        box-shadow: 0 0 25px rgba(209, 163, 116, 0.8);
        background-color: #2b2728;
    }

    /* STILIZARE CARUSEL SWIPER */
    .swiper-pagination-bullet {
        background: #383335 !important;
        opacity: 1 !important;
    }
    .swiper-pagination-bullet-active {
        background: #d1a374 !important;
        width: 24px !important;
        border-radius: 6px !important;
    }
    .swiper-button-next, .swiper-button-prev {
        color: #d1a374 !important;
        background: rgba(24, 22, 23, 0.8);
        border: 1px solid #383335;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50%;
        backdrop-filter: blur(4px);
    }
    .swiper-button-next:after, .swiper-button-prev:after {
        font-size: 16px !important;
        font-weight: bold;
    }
    .swiper-button-next:hover, .swiper-button-prev:hover {
        border-color: #d1a374;
        background: #211f20;
    }


/* ===== KASEM ALIVE V1 ===== */

/*
   Mișcare ambientală discretă.
   Nu schimbă paleta de culori a site-ului.
*/

/* Intrarea elementelor principale din hero */
.scroll-reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: ksHeroReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 2.45s forwards;
}

.hero-right-container.scroll-reveal {
    animation-delay: 2.6s;
}

@keyframes ksHeroReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Lumină ambientală în zona preview-ului */
.hero-right-container::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;

    background:
        radial-gradient(
            circle at var(--ks-spot-x, 50%) var(--ks-spot-y, 50%),
            rgba(209, 163, 116, 0.24) 0%,
            rgba(209, 163, 116, 0.10) 22%,
            rgba(209, 163, 116, 0) 48%
        );

    opacity: 0.55;
    animation: ksAmbientPulse 6s ease-in-out infinite;
}

@keyframes ksAmbientPulse {
    0%, 100% {
        opacity: 0.38;
    }
    50% {
        opacity: 0.68;
    }
}


/* Reflexie foarte lentă pe cardul Kasem Studio */
.hero-big-card {
    background-size: 180% 180%;
    animation: ksGoldDrift 9s ease-in-out infinite;
}

@keyframes ksGoldDrift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}


/* Apariția secțiunilor la scroll */
.ks-reveal-section {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.ks-reveal-section.ks-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Respectăm utilizatorii care dezactivează animațiile */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .hero-big-card,
    .hero-right-container::after {
        animation: none !important;
    }

    .scroll-reveal,
    .ks-reveal-section {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ===== END KASEM ALIVE V1 ===== */


/* ===== KASEM ALIVE V2 ===== */

/* Cardul principal devine mai "viu" */
.hero-big-card {
    position: relative;
    overflow: hidden;

    --ks-rx: 0deg;
    --ks-ry: 0deg;
    --ks-scale: 1;

    transform:
        perspective(950px)
        rotateX(var(--ks-rx))
        rotateY(var(--ks-ry))
        scale(var(--ks-scale));

    transition:
        transform 0.18s ease-out,
        box-shadow 0.35s ease,
        filter 0.35s ease;
}


/* Reflexie luminoasă vizibilă */
.hero-big-card::before {
    content: "";
    position: absolute;
    top: -35%;
    left: -70%;
    width: 42%;
    height: 175%;

    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.42) 48%,
        rgba(255,255,255,0.08) 62%,
        transparent 100%
    );

    transform: rotate(12deg);
    pointer-events: none;
    z-index: 2;

    animation: ksLuxuryShine 5.5s ease-in-out infinite;
}

@keyframes ksLuxuryShine {
    0%, 18% {
        left: -70%;
        opacity: 0;
    }

    28% {
        opacity: 1;
    }

    55% {
        left: 130%;
        opacity: 1;
    }

    66%, 100% {
        left: 130%;
        opacity: 0;
    }
}


/* Hover mai prezent, dar nu agresiv */
.hero-big-card:hover {
    --ks-scale: 1.035;

    box-shadow:
        0 32px 80px rgba(0,0,0,0.82),
        0 0 65px rgba(209,163,116,0.58);

    filter: brightness(1.08);
}


/* Lumina ambientală */
.hero-right-container::after {
    opacity: 0.72;
    animation: ksAmbientPulseV2 4.5s ease-in-out infinite;
}

@keyframes ksAmbientPulseV2 {
    0%, 100% {
        opacity: 0.42;
        filter: blur(0px);
    }

    50% {
        opacity: 0.88;
        filter: blur(2px);
    }
}


/* Badge-urile par suspendate */
.category-badge {
    animation: ksBadgeFloat 4.2s ease-in-out infinite;
}

.category-badge:nth-of-type(2n) {
    animation-delay: -1.1s;
}

.category-badge:nth-of-type(3n) {
    animation-delay: -2.2s;
}

.category-badge:nth-of-type(4n) {
    animation-delay: -3.1s;
}

@keyframes ksBadgeFloat {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -7px;
    }
}


/* Reveal-ul la scroll devine mai perceptibil */
.ks-reveal-section {
    opacity: 0;
    transform: translateY(38px) scale(0.985);
}

.ks-reveal-section.ks-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* Accesibilitate */
@media (prefers-reduced-motion: reduce) {
    .hero-big-card,
    .hero-big-card::before,
    .category-badge,
    .hero-right-container::after {
        animation: none !important;
    }

    .hero-big-card {
        transform: none !important;
    }
}

/* ===== END KASEM ALIVE V2 ===== */


/* ===== KASEM GOLD SECTION V1 ===== */

/*
   Secțiune inversată:
   champagne / auriu în fundal + carduri dark.
*/

.categories-inverted {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            to bottom,
            #181617 0px,
            #4d382c 28px,
            #8f6746 55px,
            #d1a374 85px,
            #d1a374 calc(100% - 85px),
            #8f6746 calc(100% - 55px),
            #4d382c calc(100% - 28px),
            #181617 100%
        );
}


/* Reflexie foarte discretă în fundal */
.categories-inverted::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -30%;
    width: 45%;
    height: 200%;

    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255,255,255,0.04) 35%,
        rgba(255,255,255,0.22) 50%,
        rgba(255,255,255,0.04) 65%,
        transparent 100%
    );

    transform: rotate(12deg);
    pointer-events: none;

    animation: ksCategoryGoldShine 12s ease-in-out infinite;
}

@keyframes ksCategoryGoldShine {
    0%, 25% {
        left: -40%;
        opacity: 0;
    }

    35% {
        opacity: 0.8;
    }

    65% {
        left: 120%;
        opacity: 0.8;
    }

    75%, 100% {
        left: 120%;
        opacity: 0;
    }
}


/* Cardurile rămân elegante și dark */
.categories-inverted-card {
    position: relative;

    box-shadow:
        0 16px 34px rgba(35, 24, 18, 0.20),
        0 2px 8px rgba(0, 0, 0, 0.18);
}

.categories-inverted-card:hover {
    transform: translateY(-5px);

    border-color: rgba(255, 226, 191, 0.85);

    box-shadow:
        0 24px 50px rgba(50, 31, 19, 0.30),
        0 0 0 1px rgba(255,255,255,0.08);
}


/* Conținutul rămâne peste reflexia de fundal */
.categories-inverted > div {
    position: relative;
    z-index: 2;
}


@media (prefers-reduced-motion: reduce) {
    .categories-inverted::before {
        animation: none !important;
    }

    .categories-inverted-card:hover {
        transform: none;
    }
}

/* ===== END KASEM GOLD SECTION V1 ===== */


/* ===== KASEM GOLD SMOOTH TRANSITION ===== */
.categories-inverted {
    background:
        radial-gradient(
            circle at 18% 28%,
            rgba(255, 230, 196, 0.20) 0%,
            rgba(255, 230, 196, 0) 30%
        ),
        radial-gradient(
            circle at 82% 72%,
            rgba(82, 52, 34, 0.14) 0%,
            rgba(82, 52, 34, 0) 32%
        ),
        linear-gradient(
            to bottom,
            #181617 0px,
            #4d382c 28px,
            #8f6746 55px,
            #d1a374 85px,
            #d1a374 calc(100% - 85px),
            #8f6746 calc(100% - 55px),
            #4d382c calc(100% - 28px),
            #181617 100%
        ) !important;

    border-color: #2d292a !important;
}
/* ===== END KASEM GOLD SMOOTH TRANSITION ===== */

/* ===== KASEM GOLD 5 ZONES ===== */

.categories-inverted {
    background:
        linear-gradient(
            to bottom,

            /* 1. NEGRU */
            #181617 0%,
            #181617 18%,

            /* 2. TRANZIȚIE */
            #3b2d27 24%,
            #76523b 31%,
            #ad7e57 37%,
            #d1a374 41%,

            /* 3. AURIU */
            #d1a374 41%,
            #d1a374 59%,

            /* 4. TRANZIȚIE */
            #ad7e57 63%,
            #76523b 69%,
            #3b2d27 76%,
            #181617 82%,

            /* 5. NEGRU */
            #181617 82%,
            #181617 100%
        ) !important;

    border-color: #2d292a !important;
}

/* ===== END KASEM GOLD 5 ZONES ===== */


/* =========================================================
   KASEM GOLD FLOW V1

   Produse populare:
       DARK -> GOLD

   Categorii:
       GOLD

   Reviews:
       GOLD -> DARK
   ========================================================= */


/* ---------------------------------------------------------
   1. PRODUSE POPULARE
   Dark în partea de sus, trecere spre auriu jos
   --------------------------------------------------------- */

.ks-popular-to-gold {
    position: relative;
    overflow: hidden;
}

.ks-popular-to-gold::after {
    content: "";
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 150px;

    pointer-events: none;
    z-index: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(24, 22, 23, 0) 0%,
            #332823 30%,
            #624735 55%,
            #98704e 78%,
            #d1a374 100%
        );
}

.ks-popular-to-gold > * {
    position: relative;
    z-index: 1;
}


/* ---------------------------------------------------------
   2. CATEGORII
   Auriu curat, fără cele două tranziții în interior
   --------------------------------------------------------- */

#categorii.categories-inverted {
    background:
        linear-gradient(
            135deg,
            #c79667 0%,
            #d1a374 45%,
            #c69464 100%
        ) !important;

    border-top-color: #d1a374 !important;
    border-bottom-color: #d1a374 !important;
}


/* Păstrăm o lumină discretă, dar fără gradient dark */
#categorii.categories-inverted::before {
    opacity: 0.35;
}


/* ---------------------------------------------------------
   3. REVIEWS
   Începe auriu și revine gradual la dark
   --------------------------------------------------------- */

.ks-gold-to-reviews {
    position: relative;
    overflow: hidden;
}

.ks-gold-to-reviews::before {
    content: "";
    position: absolute;

    left: 0;
    right: 0;
    top: 0;

    height: 150px;

    pointer-events: none;
    z-index: 0;

    background:
        linear-gradient(
            to bottom,
            #d1a374 0%,
            #98704e 22%,
            #624735 45%,
            #332823 70%,
            rgba(24, 22, 23, 0) 100%
        );
}

.ks-gold-to-reviews > * {
    position: relative;
    z-index: 1;
}


/* Reducem animațiile pentru cine are setarea activă */
@media (prefers-reduced-motion: reduce) {
    .ks-popular-to-gold::after,
    .ks-gold-to-reviews::before {
        animation: none !important;
    }
}


/* ===== END KASEM GOLD FLOW V1 ===== */


/* =========================================================
   KASEM GOLD FLOW V2
   Tranziția ocupă ÎNTREAGA secțiune
   ========================================================= */


/* ---------------------------------------------------------
   PRODUSE POPULARE
   Întreaga secțiune: DARK -> GOLD
   --------------------------------------------------------- */

.ks-popular-to-gold {
    background:
        linear-gradient(
            to bottom,
            #181617 0%,
            #2d2421 18%,
            #4e382d 36%,
            #76533d 54%,
            #a17655 73%,
            #bd8e64 87%,
            #d1a374 100%
        ) !important;

    position: relative;
    overflow: hidden;
}


/* Eliminăm vechea tranziție de doar 150px */
.ks-popular-to-gold::after {
    display: none !important;
}


/* ---------------------------------------------------------
   CATEGORII
   Rămâne complet auriu
   --------------------------------------------------------- */

#categorii.categories-inverted {
    background:
        linear-gradient(
            135deg,
            #c79667 0%,
            #d1a374 50%,
            #c79667 100%
        ) !important;
}


/* ---------------------------------------------------------
   REVIEW-URI
   Întreaga secțiune: GOLD -> DARK
   --------------------------------------------------------- */

.ks-gold-to-reviews {
    background:
        linear-gradient(
            to bottom,
            #d1a374 0%,
            #bd8e64 13%,
            #a17655 27%,
            #76533d 46%,
            #4e382d 64%,
            #2d2421 82%,
            #181617 100%
        ) !important;

    position: relative;
    overflow: hidden;
}


/* Eliminăm vechea tranziție de doar 150px */
.ks-gold-to-reviews::before {
    display: none !important;
}


/* ===== END KASEM GOLD FLOW V2 ===== */
