/* CSS Variables */
:root {
    --bg-color: #f9f9f7;
    /* Soft aesthetic cream */
    --text-color: #1a1a1a;
    --text-muted: #666666;
    --accent-color: #A68A64;
    /* Muted Gold/Bronze */
    --button-bg: #1a1a1a;
    --button-text: #ffffff;
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Manrope', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --spacing-container: 20px;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

.serif {
    font-family: var(--font-serif);
    font-style: italic;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.button-primary {
    background-color: var(--button-bg);
    color: var(--button-text);
}

.button-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.button-outline {
    background-color: transparent;
    border-color: var(--text-color);
    color: var(--text-color);
}

.button-outline:hover {
    background-color: var(--text-color);
    color: #fff;
    transform: translateY(-2px);
}

.button-dark {
    background-color: #111;
    color: #fff;
}

.button-sm {
    padding: 10px 20px;
    font-size: 12px;
}

.button-icon {
    padding: 12px;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    border-radius: 4px;
}

.button-icon:hover {
    background-color: var(--text-color);
    color: #fff;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    background: rgba(249, 249, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Center Logo Logic */
.header-left,
.header-right {
    flex: 1;
    display: flex;
}

.header-right {
    justify-content: flex-end;
}

.logo {
    font-family: var(--font-serif);
    font-size: 28px;
    /* Slightly larger */
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #000;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-cta {
    font-size: 11px;
    padding: 8px 16px;
    border-radius: 30px;
    /* Pill shape */
    border-color: #000;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100dvh;
    /* use dynamic viewport height for mobile */
    min-height: 700px;
    /* Increased min-height to fit content */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-bottom: 60px;
    /* Ensure space for bottom indicators */
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding-top: 80px;
}

/* Add margin to hero title on mobile to prevent button overlap if text wraps */
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 10vw, 68px);
    line-height: 1.15;
    margin-bottom: 25px;
    color: #111;
    font-weight: 400;
}

.hero-title .hero-line {
    display: inline-block;
}

.hero-title .serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(14px, 4vw, 16px);
    color: #444;
    margin-bottom: 45px;
    /* Increased bottom spacing */
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.cta-wrapper {
    margin-top: 20px;
}

.cta-label {
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-link {
    font-family: var(--font-serif);
    font-size: 18px;
    font-style: italic;
    border-bottom: 1px solid currentColor;
}

/* Scroll indicator removed per user request */

/* Sections General */
.section {
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.text-center {
    text-align: center;
    margin-bottom: 50px;
}

/* Brand Intro */
.brand-intro {
    background-color: #fff;
    text-align: center;
}

.brand-text {
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.3;
    max-width: 900px;
    margin: 0 auto 30px;
}

.brand-intro .highlight {
    font-weight: 600;
    color: #000;
}

.brand-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Product Carousel */
.products-section {
    background-color: var(--bg-color);
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 30px;
    /* Hide scrollbar spacing if needed or style it */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 20px;
    padding: 0 var(--spacing-container);
    width: max-content;
}

.product-card {
    width: 280px;
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-img-wrapper {
    height: 350px;
    width: 100%;
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h4 {
    font-family: var(--font-sans);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 500;
}

.carousel-nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Why GGLUX */
.reasons-section {
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-card {
    padding: 30px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--text-color);
    transform: scale(0.9);
    /* Smaller size */
    opacity: 0.85;
    /* Less saturated/stark */
}

.feature-icon svg {
    width: 48px;
    height: 48px;
}

.feature-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    font-family: var(--font-serif);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Feedback Section */
.feedback-section {
    background-color: var(--bg-color);
    padding: 60px 0;
    /* Reduced padding */
    min-height: auto;
    /* Remove excessive height constraint */
    overflow: hidden;
    /* Hide potential overflow during stack */
}

.feedback-grid {
    display: block;
    /* Custom Layout for Stacking */
    position: relative;
    max-width: 400px;
    /* Slightly narrower for tighter mobile feel */
    margin: 40px auto 100px;
    /* Add bottom margin for last card clearance */
    height: auto;
}

.feedback-card {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Softer, deeper shadow */
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Initial State for Animation */
    opacity: 0;
    transform: translateY(150px) scale(0.85);
    /* Start smaller */
    position: relative;
    margin-bottom: -280px;
    /* Aggressive negative margin for tight overlapping */
    z-index: 1;
    cursor: zoom-in;
    /* Indicate interactive */
}

/* Alternate entry directions classes (toggled by JS) */
.feedback-card.from-left {
    transform: translateX(-80px) translateY(80px) rotate(-15deg);
}

.feedback-card.from-right {
    transform: translateX(80px) translateY(80px) rotate(15deg);
}

/* Active State (In View / Stacked) */
.feedback-card.stacked {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(var(--rotation));
    z-index: var(--z-index);
}

/* Correct reset for the last card or specific mobile tweaks */
.feedback-card:last-child {
    margin-bottom: 0;
}

.feedback-img {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 9/16;
    /* Enforce story ratio consistency */
}

.feedback-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .feedback-grid {
        max-width: 90%;
        margin-top: 20px;
        margin-bottom: 80px;
    }

    .feedback-card {
        margin-bottom: -320px;
        /* Even tighter overlay on mobile approx 70% overlap */
    }

    /* Ensure last card doesn't pull section up too much */
    .feedback-card:last-child {
        margin-bottom: 20px;
        /* Minimal positive margin to stabilize */
    }
}

/* Final CTA */
.final-cta {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 120px 0;
}

.cta-box h2 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pulse-effect {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse-white 2s infinite;
    background: #fff;
    color: #000;
    font-weight: 600;
}

.pulse-effect:hover {
    background: #e6e6e6;
    transform: translateY(-2px);
}

@keyframes pulse-white {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

/* Footer */
.footer {
    background-color: #000;
    color: #555;
    padding: 40px 0;
    border-top: 1px solid #222;
    font-size: 14px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a:hover {
    color: #fff;
}

/* Utilities / Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

/* Mobile Optimization */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 30px;
    }

    .button {
        width: 100%;
    }

    .header-cta {
        display: none;
        /* Hide top CTA on mobile to clean up header */
    }

    .section {
        padding: 60px 0;
    }

    .footer .container {
        flex-direction: column-reverse;
        gap: 20px;
    }
}