/* ======== Color Palette and Variables ======== */
:root {
    --primary-blue: #0A2540; /* JVAR Dark Blue Base */
    --secondary-blue: #2CB0E7; /* JVAR Light Blue / Cyan details */
    --accent-orange: #FF4A00; /* VoltZ-inspired CTA Orange */
    --accent-orange-hover: #E04000;
    --dark-bg: #091524;
    --light-bg: #F4F7FB;
    --text-main: #334155;
    --text-light: #64748B;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 15px 30px -5px rgb(0 0 0 / 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ======== Typography ======== */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-blue);
    line-height: 1.2;
    font-weight: 800;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; letter-spacing: -0.01em;}
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
.lead { font-size: 1.125rem; color: var(--text-light); }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-content { max-width: 800px; }
.text-orange { color: var(--accent-orange) !important; }

/* ======== Utilities ======== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-bg); color: var(--white); }
.bg-primary { background-color: var(--primary-blue); color: var(--white); }
.bg-orange { background-color: var(--accent-orange); color: var(--white); }

.section { padding: 6rem 0; }
.section-sm { padding: 3rem 0; }

/* ======== Navbar ======== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--white);
}

.navbar.scrolled {
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

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

.nav-brand img {
    height: 68px;
    width: auto;
    transition: opacity 0.3s ease;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
}

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links li a:hover {
    color: var(--accent-orange);
}

@media (min-width: 992px) {
    .nav-links {
        display: flex;
        align-items: center;
    }
}

/* ======== Buttons ======== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    gap: 0.5rem;
}

.btn-orange {
    background-color: var(--accent-orange);
    color: var(--white);
    border-color: var(--accent-orange);
}

.btn-orange:hover {
    background-color: var(--accent-orange-hover);
    border-color: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 74, 0, 0.3);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

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

/* ======== Scroll-Driven Hero Sequence ======== */
#hero-sequence-section {
    position: relative;
    height: 500vh; /* gives enough room for scroll to play all frames smoothly */
    background-color: var(--dark-bg); /* matches the dark vibe typically used in premium scroll pages */
}

.sticky-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100vh;
    width: 100vw;
    object-fit: cover;
    z-index: 1;
}

/* Vignette Overlay to darken video edges and give cinematic feel */
.video-vignette {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(10,37,64,0) 20%, rgba(10,37,64,0.6) 100%),
                linear-gradient(to bottom, rgba(10,37,64,0.7) 0%, transparent 20%, transparent 80%, rgba(10,37,64,0.9) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.mouse-icon {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 12px;
    position: relative;
}

.mouse-icon .wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 12px); opacity: 0; }
}

.scroll-indicator span {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Hero Dark Overlay */
.hero-dark-overlay {
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(4, 10, 18, 0.85); /* Dark JVAR blueish black */
    z-index: 5;
    pointer-events: none;
    will-change: opacity;
}

/* Text 1 - Initial Hero Hook */
.hero-hook {
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    z-index: 10;
    color: #fff;
    text-align: center;
    pointer-events: none;
    will-change: transform, opacity;
}

.hero-hook h1 {
    font-size: clamp(2rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-shadow: 0 10px 40px rgba(0,0,0,0.8);
    margin: 0;
    color: #fff;
    transform-origin: center center;
    will-change: transform, opacity;
}

/* Apple Text Layer for Steps 2 & 3 */
.apple-text-layer {
    position: absolute;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(30px);
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.9);
}

.apple-text-layer.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.apple-text-layer h1 {
    font-size: clamp(1.75rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: #fff;
}

.apple-text-layer p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 0;
    color: #fff;
}

/* Sequential Texts (Step 3 components) */
#text-step-3-pre,
#text-step-3-title,
#text-step-3-subtitle,
#text-step-3-cta {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#text-step-3-pre.visible,
#text-step-3-title.visible,
#text-step-3-subtitle.visible,
#text-step-3-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulseCta {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 74, 0, 0); }
    50% { transform: scale(1.05); box-shadow: 0 4px 20px rgba(255, 74, 0, 0.4); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 74, 0, 0); }
}

#text-step-3-cta.visible .btn {
    animation: pulseCta 2s infinite ease-in-out;
}

/* ======== Split Sections (Image & Text) ======== */
.split-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .split-section {
        grid-template-columns: 1fr 1fr;
    }
}

.split-image-wrapper {
    position: relative;
}

.split-image {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4/3;
}

.badge-floating {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--accent-orange);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .badge-floating {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: -40px;
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 1.5rem;
        z-index: 10;
        box-shadow: var(--shadow-lg);
    }
}

.badge-floating .number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.badge-floating .text {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.section-label {
    display: inline-block;
    color: var(--accent-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--accent-orange);
}

/* List Styles */
.custom-list {
    list-style: none;
    margin: 2rem 0;
}

.custom-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

.custom-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: rgba(44, 176, 231, 0.1);
    color: var(--secondary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
}

.warning-list li::before {
    background: rgba(255, 74, 0, 0.1);
    color: var(--accent-orange);
    content: "!";
}

/* ======== Grid Cards (Logic/Steps) ======== */
.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card-modern {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.step-card-modern:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-orange);
    transform: translateY(-5px);
}

.step-number-modern {
    font-size: 4rem;
    font-weight: 900;
    color: var(--light-bg);
    position: absolute;
    top: -10px;
    right: -10px;
    line-height: 1;
    z-index: 1;
    transition: color 0.3s;
}

.step-card-modern:hover .step-number-modern {
    color: rgba(255, 74, 0, 0.1);
}

.step-card-modern h3, .step-card-modern p {
    position: relative;
    z-index: 2;
}

/* ======== Reviews (Blog Style) ======== */
.review-card-modern {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.review-img {
    height: 200px;
    background-color: var(--light-bg);
    background-image: url('Banners/banner-4-lp.png');
    background-size: cover;
    background-position: center;
}

.review-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stars {
    color: var(--accent-orange);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    flex: 1;
    margin-bottom: 1.5rem;
}

.review-author {
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-author::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--accent-orange);
}

/* ======== FAQ Section ======== */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 992px) {
    .faq-layout {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 4rem;
        align-items: flex-start;
    }
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-question::after {
    content: "↓";
    font-size: 1.25rem;
    color: var(--accent-orange);
    transition: transform 0.3s;
    font-weight: 700;
}

.faq-item.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-question {
    color: var(--white);
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
    color: var(--white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* ======== CTA / Closing Section ======== */
.cta-section {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #D83F00 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.125rem;
    opacity: 0.9;
}

/* ======== Footer ======== */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.875rem;
    max-width: 300px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* ======== WhatsApp Float ======== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366; /* Keep WA green for recognition, or use orange? Keep green */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Animations */
.hidden-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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