/* --- Base & Background --- */
body {
    font-family: "Inter", sans-serif;
    background-color: #f0f2f5; /* A slightly cooler light gray */
    color: #1f2937;
    overflow-x: hidden;
}

/* --- NEW HERO STYLES (LIGHT THEME) --- */
.hero-section-bg {
    background: linear-gradient(135deg, #e0f7fa 0%, #f5f7fa 100%);
    color: #1f2937;
    overflow: hidden;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(10deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.floating-svg {
    position: absolute;
    opacity: 0.3; /* Increased visibility */
    animation: float 8s ease-in-out infinite;
    color: #ff6f00;
    transition: transform 0.5s ease-out;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-container {
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.marquee-content {
    display: flex;
    animation: marquee 25s linear infinite;
    will-change: transform;
}
.hot-now-container {
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}
/* --- Text & Effects --- */
.gradient-text {
    background: linear-gradient(to right, #ff8c00, #ff6f00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Coupon Carousel (Existing styles, largely unchanged) --- */
:root {
    --card-primary-color: #ff6f00;
    --card-success-color: #388e3c;
    --card-background-color: #ffffff;
    --card-text-dark: #333333;
    --card-text-light: #4b5563;
    --card-border-color: #e5e7eb;
}
.carousel-container {
    position: relative;
}
.coupon-carousel {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    margin: 0 -1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    scroll-behavior: smooth;
}
.coupon-carousel::-webkit-scrollbar {
    display: none;
}
.coupon-carousel.grabbing {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

/* Card Base Styles */
.coupon-card {
    flex: 0 0 280px;
    width: 280px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.04),
        0 4px 6px -4px rgb(0 0 0 / 0.04);
    border: 1px solid rgba(229, 231, 235, 0.8);
    padding: 20px;
    overflow: visible;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    margin: 5px;
}
.coupon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.08),
        0 8px 10px -6px rgb(0 0 0 / 0.08);
}
.coupon-card::before,
.coupon-card::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    background: #f0f2f5; /* Match new card background */
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 1;
}
.coupon-card::before {
    left: -13px;
}
.coupon-card::after {
    right: -13px;
}

/* Card Content Styles */
.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--card-border-color);
}
.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--card-border-color);
    flex-shrink: 0;
}
.brand-info {
    display: flex;
    align-items: center;
    gap: 6px;
}
.brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--card-text-dark);
}
.verified-badge {
    width: 20px;
    height: 20px;
    color: var(--card-success-color);
    flex-shrink: 0;
}
.coupon-card h3 {
    margin: 8px 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--card-text-dark);
    line-height: 1.2;
}
.coupon-card p {
    margin: 0 0 20px 0;
    color: var(--card-text-light);
    font-size: 0.9rem;
    flex-grow: 1;
}
.coupon-code-container {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}
.coupon-code-container.revealed {
    border-color: var(--card-success-color);
    background-color: #e8f5e9;
}
.coupon-code {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--card-primary-color);
    display: block;
    margin-bottom: 6px;
}
.cta-text-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.cta-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--card-primary-color);
    transition: color 0.3s ease;
}
.copy-icon {
    width: 16px;
    height: 16px;
    color: var(--card-primary-color);
    transition: color 0.3s ease;
}
.coupon-code-container.revealed .cta-text,
.coupon-code-container.revealed .copy-icon {
    color: var(--card-success-color);
}
.coupon-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--card-text-light);
}
.validity,
.usage-count {
    display: flex;
    align-items: center;
    gap: 5px;
}
.tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-text-dark);
    color: var(--card-background-color);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    white-space: nowrap;
}
.coupon-code-container.copied .tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 120%;
}

/* --- Carousel Navigation --- */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}
.carousel-nav:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
}
.carousel-nav.prev-btn {
    left: -22px;
}
.carousel-nav.next-btn {
    right: -22px;
}

/* --- Glowing Treasure Animation --- */
.top-pick-card {
    position: relative;
}
.top-pick-card::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 111, 0, 0.5),
        transparent 70%
    ); /* New Orange Glow */
    z-index: -1;
    opacity: 0;
    animation: treasure-glow 4s ease-out infinite;
}
@keyframes treasure-glow {
    0%,
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
}

.top-pick-badge {
    position: absolute;
    top: -1px;
    right: 16px;
    background: linear-gradient(
        to right,
        #ff6f00,
        #ff8f00
    ); /* New Orange Gradient */
    color: white;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 2;
}
.flame-icon {
    display: inline-block;
}
@keyframes flame {
    0%,
    100% {
        transform: scale(1) rotate(-4deg);
    }
    50% {
        transform: scale(1.15) rotate(4deg);
    }
}
.top-pick-badge .flame-icon {
    animation: flame 1.5s ease-in-out infinite;
}

/* --- Animation Utility --- */
#hero-title .letter {
    display: inline-block;
}
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes showTopText {
    0% {
        transform: translate3d(0, 100%, 0);
    }
    40%,
    60% {
        transform: translate3d(0, 50%, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}
@keyframes showBottomText {
    0% {
        transform: translate3d(0, -100%, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}
.animated-title {
    color: #222;
    font-family: Roboto, Arial, sans-serif;
    height: 90vmin;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90vmin;
}

.animated-title > div {
    height: 50%;
    overflow: hidden;
    position: absolute;
    width: 100%;
}

.animated-title > div div {
    font-size: 12vmin;
    padding: 2vmin 0;
    position: absolute;
}

.animated-title > div div span {
    display: block;
}

.animated-title > div.text-top {
    border-bottom: 1vmin solid #000;
    top: 0;
}

.animated-title > div.text-top div {
    animation: showTopText 1s;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
    bottom: 0;
    transform: translate(0, 100%);
}

.animated-title > div.text-top div span:first-child {
    color: #767676;
}

.animated-title > div.text-bottom {
    bottom: 0;
}

.animated-title > div.text-bottom div {
    animation: showBottomText 0.5s;
    animation-delay: 1.75s;
    animation-fill-mode: forwards;
    top: 0;
    transform: translate(0, -100%);
}
