/* ============================================
   WebVerse — Hero Section CSS
   File: home.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,700;0,900;1,300&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ── */
:root {
    --white: #ffffff;
    --off: #F7F5F2;
    --ink: #0F0E0C;
    --ink-light: #6B6560;
    --accent: #E8430A;
    --accent-2: #F0A500;
    --border: rgba(15, 14, 12, 0.08);
}

/* ── Scoped reset ── */
.wv-hero *,
.wv-hero *::before,
.wv-hero *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================
   HERO WRAPPER
   ============================================ */
.wv-hero {
    position: relative;
    min-height: 100vh;
    background-color: var(--off);
    display: flex;
    align-items: center;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
}

/* ── Animated blobs ── */
.wv-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.wv-hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    animation: blobReveal 1.2s ease forwards;
}

.wv-hero__blob--1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(232, 67, 10, 0.12), transparent 70%);
    top: -120px;
    right: 15%;
    animation: blobReveal 1.2s 0.3s ease forwards, blobDrift1 12s 1.5s ease-in-out infinite;
}

.wv-hero__blob--2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(240, 165, 0, 0.10), transparent 70%);
    bottom: -80px;
    right: 5%;
    animation: blobReveal 1.2s 0.5s ease forwards, blobDrift2 10s 1.5s ease-in-out infinite;
}

.wv-hero__blob--3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(232, 67, 10, 0.07), transparent 70%);
    top: 40%;
    left: 5%;
    animation: blobReveal 1.2s 0.7s ease forwards, blobDrift3 14s 1.5s ease-in-out infinite;
}

/* Dot grid */
.wv-hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(15, 14, 12, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0;
    animation: fadeIn 1s 0.2s ease forwards;
}

/* ============================================
   INNER LAYOUT
   ============================================ */
.wv-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    min-height: 100vh;
}

/* ============================================
   LEFT — TEXT
   ============================================ */
.wv-hero__left {
    padding: 2rem 0;
}

.wv-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.35rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--ink-light);
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(15, 14, 12, 0.06);
    opacity: 0;
    transform: translateY(16px);
    animation: slideUp 0.7s 0.2s ease forwards;
}

.wv-hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

.wv-hero__headline {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.7s 0.35s ease forwards;
}

.wv-hero__headline em {
    font-style: italic;
    font-weight: 300;
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.wv-hero__headline em::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
    animation: underlineGrow 0.8s 1.2s ease forwards;
}

.wv-hero__tagline {
    font-size: 1rem;
    font-weight: 300;
    color: var(--ink-light);
    line-height: 1.75;
    max-width: 420px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.7s 0.5s ease forwards;
}

.wv-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.7s 0.65s ease forwards;
}

/* Buttons */
.wv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.wv-btn--primary {
    background: var(--ink);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(15, 14, 12, 0.18);
}

.wv-btn--primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 67, 10, 0.28);
}

.wv-btn--primary .wv-btn__arrow {
    transition: transform 0.25s ease;
}

.wv-btn--primary:hover .wv-btn__arrow {
    transform: translateX(4px);
}

.wv-btn--ghost {
    background: var(--white);
    color: var(--ink);
    padding: 0.9rem 1.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.wv-btn--ghost:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(15, 14, 12, 0.08);
}

/* Trust line */
.wv-hero__trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeIn 0.7s 0.9s ease forwards;
}

.wv-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--ink-light);
}

.wv-hero__trust-icon {
    font-size: 1rem;
}

.wv-hero__trust-divider {
    width: 1px;
    height: 16px;
    background: var(--border);
}

/* ============================================
   RIGHT — CAROUSEL WRAPPER
   ============================================ */
.wv-hero__right {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.8s 0.4s ease forwards;
}

.wv-hero__shape {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(232, 67, 10, 0.06), rgba(240, 165, 0, 0.08));
    z-index: 1;
}

/* Floating chips */
.wv-hero__chip {
    position: absolute;
    background: var(--white);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    box-shadow: 0 4px 20px rgba(15, 14, 12, 0.10);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 10;
    white-space: nowrap;
}

.wv-hero__chip--1 {
    top: 50px;
    left: 0;
    animation: chipFloat 4s 0.5s ease-in-out infinite;
}

.wv-hero__chip--2 {
    bottom: 70px;
    right: 0;
    animation: chipFloat 6s 1s ease-in-out infinite;
}

.wv-hero__chip-icon {
    font-size: 1.3rem;
}

.wv-hero__chip-label {
    font-size: 0.68rem;
    color: var(--ink-light);
}

.wv-hero__chip-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}

/* ============================================
   3D CAROUSEL
   ============================================ */
.wv-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    z-index: 2;
}

/* Track holds all slides */
.wv-carousel__track {
    position: relative;
    width: 280px;
    height: 380px;
    transform-style: preserve-3d;
}

/* ── Every slide base ── */
.wv-carousel__slide {
    position: absolute;
    inset: 0;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 14, 12, 0.10);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.6s ease,
        filter 0.6s ease,
        box-shadow 0.6s ease;
    cursor: pointer;
    transform-origin: center center;
    will-change: transform, opacity;
}

/* ── Active (center) ── */
.wv-carousel__slide.active {
    transform: translateX(0) scale(1) translateZ(0px);
    opacity: 1;
    filter: none;
    z-index: 5;
    box-shadow:
        0 4px 8px rgba(15, 14, 12, 0.06),
        0 16px 40px rgba(15, 14, 12, 0.14),
        0 40px 80px rgba(15, 14, 12, 0.10);
}

/* ── Prev (left) ── */
.wv-carousel__slide.prev {
    transform: translateX(-68%) scale(0.82) translateZ(-80px) rotateY(12deg);
    opacity: 0.55;
    filter: blur(1.5px);
    z-index: 4;
}

/* ── Next (right) ── */
.wv-carousel__slide.next {
    transform: translateX(68%) scale(0.82) translateZ(-80px) rotateY(-12deg);
    opacity: 0.55;
    filter: blur(1.5px);
    z-index: 4;
}

/* ── Far prev / next (almost hidden) ── */
.wv-carousel__slide.far-prev {
    transform: translateX(-110%) scale(0.65) translateZ(-160px) rotateY(20deg);
    opacity: 0.20;
    filter: blur(3px);
    z-index: 3;
}

.wv-carousel__slide.far-next {
    transform: translateX(110%) scale(0.65) translateZ(-160px) rotateY(-20deg);
    opacity: 0.20;
    filter: blur(3px);
    z-index: 3;
}

/* All other slides = hidden */
.wv-carousel__slide:not(.active):not(.prev):not(.next):not(.far-prev):not(.far-next) {
    transform: translateX(0) scale(0.5) translateZ(-200px);
    opacity: 0;
    z-index: 1;
}

/* ── Image area ── */
.wv-carousel__img-wrap {
    position: relative;
    width: 100%;
    height: 260px;
    background: linear-gradient(145deg, #FDF0EA, #FAE8D4);
    overflow: hidden;
}

.wv-carousel__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.wv-carousel__slide.active .wv-carousel__img {
    transform: scale(1.04);
}

/* Shine overlay */
.wv-carousel__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.35) 0%,
            transparent 50%,
            rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

/* ── Product info ── */
.wv-carousel__info {
    padding: 1rem 1.2rem 1.2rem;
}

.wv-carousel__tag {
    display: inline-block;
    background: rgba(232, 67, 10, 0.08);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.45rem;
}

.wv-carousel__name {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.wv-carousel__price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
}

/* ── Arrows ── */
.wv-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(15, 14, 12, 0.10);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    color: var(--ink);
}

.wv-carousel__arrow:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(232, 67, 10, 0.25);
    transform: translateY(-50%) scale(1.08);
}

.wv-carousel__arrow--prev {
    left: -20px;
}

.wv-carousel__arrow--next {
    right: -20px;
}

/* ── Dots ── */
.wv-carousel__dots {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 20;
}

.wv-carousel__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(15, 14, 12, 0.20);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
}

.wv-carousel__dot.active {
    width: 22px;
    border-radius: 4px;
    background: var(--accent);
}

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes blobReveal {
    to {
        opacity: 1;
    }
}

@keyframes blobDrift1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-30px, 20px);
    }
}

@keyframes blobDrift2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -25px);
    }
}

@keyframes blobDrift3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(15px, 20px);
    }
}

@keyframes chipFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.6);
    }
}

@keyframes underlineGrow {
    to {
        width: 100%;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .wv-hero__inner {
        grid-template-columns: 1fr;

        text-align: center;
        padding-top: 5rem;
        min-height: unset;
        padding-bottom: 5rem;
        /* direction: rtl; */
        display: flex;
        flex-direction: column;
    }

    .wv-hero__tagline {
        margin: 0 auto 2.5rem;
    }

    .wv-hero__actions {
        justify-content: center;
    }

    .wv-hero__trust {
        justify-content: center;
    }

    .wv-hero__right {
        height: 480px;
    }
}

@media (max-width: 520px) {
    .wv-hero__inner {
        padding: 2rem 1rem 2rem 1rem;
    }

    .wv-hero__left {
        width: 100%;
    }

    .wv-hero__trust {
        gap: 1rem;
    }

    .wv-hero__trust-item {
        gap: 0rem;
    }

    .wv-hero__headline {
        font-size: 2.4rem;
    }

    .wv-hero__chip {
        display: none;
    }

    .wv-carousel__track {
        width: 240px;
        height: 340px;
    }

    .wv-carousel__img-wrap {
        height: 220px;
    }
}