/* =========================================================
   KARTEL62 PERFUME STORE
   Animation & Motion
   ========================================================= */

/* ---------------------------------------------------------
   1. GLOBAL PAGE ENTRANCE
   --------------------------------------------------------- */

body {
    animation: pageFadeIn 0.7s ease both;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* ---------------------------------------------------------
   2. HEADER
   --------------------------------------------------------- */

.header {
    animation: headerDrop 0.8s ease both;
}

@keyframes headerDrop {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand {
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.brand:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transform: translateX(-50%);
    transition: width 0.35s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


/* ---------------------------------------------------------
   3. HERO
   --------------------------------------------------------- */

.hero-content {
    animation: heroContentReveal 1s ease 0.15s both;
}

@keyframes heroContentReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-background {
    animation: heroImageReveal 1.4s ease both;
}

@keyframes heroImageReveal {
    from {
        opacity: 0;
        transform: scale(1.06);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-title {
    animation: heroTitleReveal 1s ease 0.25s both;
}

@keyframes heroTitleReveal {
    from {
        opacity: 0;
        transform: translateY(22px);
        letter-spacing: 0.02em;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: normal;
    }
}

.hero-description {
    animation: heroDescriptionReveal 1s ease 0.4s both;
}

@keyframes heroDescriptionReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    animation: heroButtonsReveal 1s ease 0.55s both;
}

@keyframes heroButtonsReveal {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---------------------------------------------------------
   4. BUTTON ANIMATION
   --------------------------------------------------------- */

.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent,
        rgba(255, 255, 255, 0.18),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.65s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 140%;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   5. CATEGORY CARDS
   --------------------------------------------------------- */

.category-card {
    animation: cardReveal 0.8s ease both;
    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease,
        border-color 0.45s ease;
}

.category-card:nth-child(1) {
    animation-delay: 0.1s;
}

.category-card:nth-child(2) {
    animation-delay: 0.2s;
}

.category-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card:hover {
    transform: translateY(-8px);
}

.category-card img {
    transition:
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.06);
    filter: brightness(1.08);
}


/* ---------------------------------------------------------
   6. PRODUCT CARDS
   --------------------------------------------------------- */

.product-card {
    animation: productReveal 0.8s ease both;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.product-card:nth-child(1) {
    animation-delay: 0.08s;
}

.product-card:nth-child(2) {
    animation-delay: 0.16s;
}

.product-card:nth-child(3) {
    animation-delay: 0.24s;
}

.product-card:nth-child(4) {
    animation-delay: 0.32s;
}

.product-card:nth-child(5) {
    animation-delay: 0.40s;
}

.product-card:nth-child(6) {
    animation-delay: 0.48s;
}

@keyframes productReveal {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-7px);
}

.product-card img {
    transition:
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}


/* ---------------------------------------------------------
   7. PRODUCT IMAGE
   --------------------------------------------------------- */

.product-image {
    overflow: hidden;
}

.product-image img {
    display: block;
    width: 100%;
    transition:
        transform 0.65s ease,
        filter 0.45s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.07);
}


/* ---------------------------------------------------------
   8. BADGE
   --------------------------------------------------------- */

.product-badge,
.badge {
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.72;
    }
}


/* ---------------------------------------------------------
   9. BRAND STORY
   --------------------------------------------------------- */

.story-image {
    overflow: hidden;
}

.story-image img {
    transition:
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.5s ease;
}

.story-image:hover img {
    transform: scale(1.04);
    filter: brightness(1.04);
}

.story-content {
    animation: storyContentReveal 0.9s ease both;
}

@keyframes storyContentReveal {
    from {
        opacity: 0;
        transform: translateX(25px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ---------------------------------------------------------
   10. BENEFIT / WHY US CARDS
   --------------------------------------------------------- */

.benefit-card {
    animation: benefitReveal 0.8s ease both;
    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.benefit-card:nth-child(1) {
    animation-delay: 0.1s;
}

.benefit-card:nth-child(2) {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(3) {
    animation-delay: 0.3s;
}

.benefit-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes benefitReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-card:hover {
    transform: translateY(-6px);
}

.benefit-icon {
    transition:
        transform 0.4s ease,
        background 0.4s ease;
}

.benefit-card:hover .benefit-icon {
    transform: translateY(-3px) scale(1.05);
}


/* ---------------------------------------------------------
   11. SECTION LABEL
   --------------------------------------------------------- */

.section-label {
    animation: labelReveal 0.8s ease both;
}

@keyframes labelReveal {
    from {
        opacity: 0;
        letter-spacing: 0.35em;
    }

    to {
        opacity: 1;
        letter-spacing: 0.18em;
    }
}


/* ---------------------------------------------------------
   12. SECTION TITLE
   --------------------------------------------------------- */

.section-title {
    animation: titleReveal 0.9s ease both;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---------------------------------------------------------
   13. CTA SECTION
   --------------------------------------------------------- */

.cta-box {
    animation: ctaReveal 0.9s ease both;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

@keyframes ctaReveal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-box:hover {
    transform: translateY(-4px);
}


/* ---------------------------------------------------------
   14. GOLD LINE EFFECT
   --------------------------------------------------------- */

.gold-line {
    position: relative;
}

.gold-line::after {
    content: "";
    display: block;
    width: 55px;
    height: 1px;
    margin-top: 12px;
    background: var(--gold);
    transform-origin: left center;
    animation: goldLineGrow 0.8s ease both;
}

@keyframes goldLineGrow {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}


/* ---------------------------------------------------------
   15. IMAGE HOVER SHINE
   --------------------------------------------------------- */

.image-shine {
    position: relative;
    overflow: hidden;
}

.image-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.14),
        transparent
    );
    transform: skewX(-20deg);
    pointer-events: none;
}

.image-shine:hover::after {
    animation: imageShine 0.8s ease;
}

@keyframes imageShine {
    from {
        left: -100%;
    }

    to {
        left: 150%;
    }
}


/* ---------------------------------------------------------
   16. FLOATING DECORATION
   --------------------------------------------------------- */

.float-soft {
    animation: floatSoft 5s ease-in-out infinite;
}

@keyframes floatSoft {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}


/* ---------------------------------------------------------
   17. GOLD GLOW
   --------------------------------------------------------- */

.gold-glow:hover {
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.18),
        0 15px 40px rgba(212, 175, 55, 0.08);
}


/* ---------------------------------------------------------
   18. LINK HOVER
   --------------------------------------------------------- */

a {
    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}


/* ---------------------------------------------------------
   19. SCROLL REVEAL SUPPORT
   --------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    animation: revealElement 0.8s ease forwards;
}

@keyframes revealElement {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---------------------------------------------------------
   20. FOOTER
   --------------------------------------------------------- */

.footer {
    animation: footerReveal 0.8s ease both;
}

@keyframes footerReveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.footer-link {
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.footer-link:hover {
    transform: translateX(3px);
}


/* ---------------------------------------------------------
   21. FOCUS ACCESSIBILITY
   --------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}


/* ---------------------------------------------------------
   22. REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* ---------------------------------------------------------
   23. MOBILE MOTION OPTIMIZATION
   --------------------------------------------------------- */

@media (max-width: 700px) {
    .category-card:hover,
    .product-card:hover,
    .benefit-card:hover,
    .cta-box:hover {
        transform: translateY(-3px);
    }

    .category-card:hover img,
    .product-card:hover img {
        transform: scale(1.03);
    }
}