:root {
    --bg-color: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-blue: #0071e3;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
}

.mobile-only {
    display: none;
}

@media (max-width: 767px) {
    .mobile-only {
        display: block;
    }

    .mobile-hide {
        display: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

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

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

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

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

nav .logo {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    color: #000;
}

/* SCROLLYTELLING LAYOUT */
.scroll-container {
    height: 400vh;
    /* 4x viewport height for long scroll timeline */
    position: relative;
    z-index: 1;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* TRUE CENTER */
    align-items: center;
    padding: 0 20px;
}

.hero-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 130px;
    /* Restored to original position for better spacing */
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    text-align: center;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Premium Header Styling */
.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #1d1d1f 0%, #424245 50%, #1d1d1f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content h2 {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--text-secondary);
    margin: 0;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3.8rem;
        /* Slightly smaller to prevent wrap */
        letter-spacing: -2px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }
}

.visual-center {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
}

/* 3D Model Override */
model-viewer {
    width: 100%;
    height: 100%;
    /* Fill screen and remove gap */
    max-width: 100%;
    /* No restriction for macro view */
    outline: none;
    z-index: 2;
}

/* FLOATING CARDS */
.floating-features {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    pointer-events: none;
    z-index: 3;
}

.feature-card {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Consistent spacing */
    gap: 15px;
    background: rgba(255, 255, 255, 0.85);
    /* Glass effect */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 300px;
    /* Wider for description */
    height: 110px;
    /* Taller for description */
}

/* Position mapping */
.card-left {
    left: 10%;
    flex-direction: row;
    text-align: left;
}

.card-right {
    right: 10%;
    flex-direction: row-reverse;
    /* text-align: right; handled by helper class */
}

.text-box.align-right {
    text-align: right;
}

/* Individual Positions */
.card-1 {
    top: 20%;
}

.card-2 {
    top: 25%;
}

.card-3 {
    top: 60%;
}

.card-4 {
    top: 65%;
}

/* Active State for Animation */
.feature-card.visible-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: #f5f5f7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.text-box h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.text-box p {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.card-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.3;
    font-weight: 400;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .feature-card {
        padding: 12px 16px;
        max-width: 200px;
    }

    .card-left {
        left: 2%;
    }

    .card-right {
        right: 2%;
    }
}

@media (max-width: 768px) {
    .scroll-container {
        height: 500vh;
        /* Longer scroll for mobile */
    }

    .feature-card {
        padding: 10px 14px;
        backdrop-filter: blur(15px);
        background: rgba(255, 255, 255, 0.9);
    }

    .text-box p {
        font-size: 0.95rem;
    }

    .text-box h3 {
        font-size: 0.7rem;
    }

    .icon-box {
        width: 36px;
        height: 36px;
    }

    /* Stack cards vertically or close to edges on mobile */
    .card-left {
        left: 50%;
        transform: translate(-160%, 30px);
    }

    .card-right {
        right: 50%;
        transform: translate(160%, 30px);
    }

    .feature-card.visible-card.card-left {
        transform: translate(-160%, 0);
    }

    .feature-card.visible-card.card-right {
        transform: translate(160%, 0);
    }

    /* Adjust vertical positions */
    .card-1 {
        top: 15%;
        left: 20px !important;
        transform: translate(0, 30px) !important;
    }

    .card-2 {
        top: 15%;
        right: 20px !important;
        transform: translate(0, 30px) !important;
    }

    .card-3 {
        top: 75%;
        left: 20px !important;
        transform: translate(0, 30px) !important;
    }

    .card-4 {
        top: 75%;
        right: 20px !important;
        transform: translate(0, 30px) !important;
    }

    .feature-card.visible-card {
        transform: translate(0, 0) !important;
    }
}

/* Testimonials */
.testimonials-section {
    padding: 100px 20px;
    background: #fbfbfd;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 600;
    color: #1d1d1f;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.quote {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #424245;
}

.author {
    border-top: 1px solid #f5f5f7;
    padding-top: 20px;
}

.author-name {
    font-weight: 600;
    display: block;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    padding: 100px 20px 120px;
    text-align: center;
    background: #fbfbfd;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 40px;
}

.pricing {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.original-price {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    font-weight: 400;
}

.promo-price {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ff3b30;
    letter-spacing: -2px;
}

.countdown-container {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-container p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

#countdown {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f5f5f7;
    padding: 20px 24px;
    border-radius: 16px;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.time-block span {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.time-block label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    font-weight: 500;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #25D366;
    color: white;
    padding: 20px 48px;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 767px) {
    .cta-section {
        padding: 60px 20px 80px;
    }

    .cta-section h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
        line-height: 1.1;
    }

    .promo-price {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }

    #countdown {
        gap: 8px;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        justify-content: center;
    }

    .time-block {
        flex: 1;
        min-width: 0;
        padding: 12px 4px;
        border-radius: 12px;
    }

    .time-block span {
        font-size: 1.4rem;
    }

    .time-block label {
        font-size: 0.55rem;
    }

    .whatsapp-btn {
        width: 100%;
        max-width: 320px;
        padding: 16px 20px;
        font-size: 1rem;
        justify-content: center;
        margin: 0 auto;
    }
}