/* 
  ELEGANCE - Premium Web Design
  Experimental Styles & Animations
*/

:root {
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f5f5f5;
    --gray-mid: #999999;
    --gray-dark: #333333;
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Inter', sans-serif;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container.narrow {
    max-width: 800px;
}

.section {
    padding: 100px 0;
}

.bg-soft {
    background: var(--gray-light);
}

/* Animations Definitions */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: var(--transition);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: var(--transition);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
}

.logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.icon-btn:hover {
    transform: scale(1.1);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 0.6rem;
    background: var(--black);
    color: var(--white);
    padding: 2px 5px;
    border-radius: 10px;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 20s infinite alternate ease-in-out;
    filter: brightness(0.6) contrast(1.1) saturate(0.8) sepia(0.1);
    /* Cinematic Filter */
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    /* Gradient overlay */
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 2rem;
}

.hero-tagline {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    display: inline-block;
}

.hero-tagline::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    margin: 10px auto 0;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 5.5rem;
    /* Increased size */
    line-height: 1;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-title em {
    font-family: 'Playfair Display', var(--font-serif);
    /* Fallback to serif if Playfair not loaded, or use same */
    font-style: italic;
    font-weight: 400;
    display: block;
    /* Create visual break */
    font-size: 6rem;
    color: #f0f0f0;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 200;
    letter-spacing: 0.4em;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hero Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: textAppear 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-text-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: textAppear 1.5s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-text-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: textAppear 1.5s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-text-delay-3 {
    opacity: 0;
    transform: translateY(30px);
    animation: textAppear 1.5s 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes textAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--black);
    color: var(--white);
}

.btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: var(--black);
    border: none;
    width: 100%;
}

.btn-outline {
    border: 1px solid var(--black);
    color: var(--black);
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
}

/* Collection */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.link-underline {
    font-size: 0.75rem;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.product-card {
    cursor: pointer;
}

.product-img-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--gray-light);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    transform: translateY(0);
}

.product-info {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-name {
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 0.9rem;
    color: var(--gray-mid);
}

.wishlist-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-mid);
    transition: var(--transition);
}

.wishlist-btn:hover {
    color: var(--black);
    transform: scale(1.2);
}

/* Benefits */
.benefits {
    padding: 100px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    text-align: center;
}

.benefit-item .benefit-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 1.5rem;
}

.benefit-item h3 {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.benefit-item p {
    font-size: 0.8rem;
    color: var(--gray-mid);
}

/* Editorial */
.editorial-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    background: var(--white);
}

.editorial-img-box {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s linear;
}

.editorial-content {
    padding: 0 6rem;
}

.tag {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--gray-mid);
    display: block;
    margin-bottom: 1rem;
}

.editorial-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.editorial-desc {
    font-size: 1rem;
    color: var(--gray-dark);
    margin-bottom: 3rem;
    max-width: 400px;
}

/* Testimonials Redesign */
.testimonials.bg-soft {
    background: #f9f9f9;
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

.section-title.text-center {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 0.1em;
}

.testimonial-card {
    display: none;
    /* Hidden by default for slider */
    text-align: center;
    background: var(--white);
    padding: 4rem 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
    border-radius: 4px;
    animation: fadeTestimonial 0.8s ease-out;
    /* Animation on active */
}

.testimonial-card.active {
    display: block;
    /* Show active slide */
}

@keyframes fadeTestimonial {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
}

.star-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    /* Make stars solid */
}

.quote {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    /* Slightly smaller for longer text */
    line-height: 1.8;
    color: var(--gray-dark);
    font-style: italic;
    margin-bottom: 2.5rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.author-name {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--black);
}

.author-role {
    font-size: 0.65rem;
    color: var(--gray-mid);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 3rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--black);
    transform: scale(1.4);
}

/* Newsletter */
.newsletter {
    text-align: center;
    border-top: 1px solid var(--gray-light);
}

.newsletter-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-desc {
    color: var(--gray-mid);
    margin-bottom: 3rem;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid var(--black);
    padding-bottom: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0 1rem;
}

.newsletter-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 60px;
}

.footer-title {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    font-size: 0.75rem;
    color: var(--gray-mid);
}

.footer-col ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 40px;
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--gray-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .editorial-container {
        grid-template-columns: 1fr;
    }

    .editorial-content {
        padding: 5rem 2rem;
        text-align: center;
    }

    .editorial-desc {
        margin: 0 auto 3rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   New Animations & Effects
   ========================================= */

/* 1. Navigation Hover Effect (Underline Slide) */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--black);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* 2. Enhanced Primary Button (Ripple/Glow) */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 3. Product Card Floating Hover */
.product-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-card:hover .product-img {
    transform: scale(1.1);
    /* Slightly stronger zoom */
}

/* 4. Gradient Text Animation */
.text-gradient-anim {
    background: linear-gradient(90deg,
            #000000 0%,
            #666666 50%,
            #000000 100%);
    background-size: 200% auto;
    color: #000;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* 5. Smooth Image Loading */
img {
    transition: opacity 0.5s ease-in-out;
}

/* 6. Magnetic Look for Benefits */
.benefit-item {
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    transition: transform 0.5s ease;
}

.benefit-item:hover .benefit-icon {
    transform: rotateY(180deg);
}