/* Vistara Presentation Styles - Dark Minimalist */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #1a1a1a;
    /* Matches Login Page Background */
    --text-white: #ffffff;
    --text-gray: #a3a3a3;
    /* Light Gray for description */
    --gold: #d4af37;
    /* Approximate Gold for potential accents */
    --font-heading: 'Poppins', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* Fix for 3DVista "White Flash" - Ensure canvas is transparent until body loads */
html {
    background-color: transparent !important;
}

/* Global Reset ensures padding doesn't add to width */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-heading);
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

/* TRANSPARENT MODE (Controlled by ?transparent=true) */
body.transparent-mode {
    background: transparent !important;
}

/* Texture Overlay (Subtle) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* --- NAVBAR (Sticky) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

/* Blur on scroll (can be triggered by JS, but subtle gradient default works too) */
.navbar.scrolled {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 32px;
    width: auto;
}

.nav-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-white);
    text-transform: uppercase;
}

/* --- HERO SECTION --- */
/* Changed to 100vh for One-Page feel */
.hero-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.main-content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Ensure text centering */
}

/* Logo */
.logo-container {
    margin-bottom: 40px;
}

.logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    color: var(--text-white);
}

.tagline-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.description-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
    /* No bottom margin, scroll indicator handles spacing */
    font-weight: 400;
}

/* CTA Button (Now in Nav mainly, but kept class) */
.btn-launch {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-launch:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-gray);
    border-radius: 12px;
    position: relative;
    margin-bottom: 8px;
}

.mouse-icon::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-gray);
    border-radius: 50%;
    animation: scrollWheel 2s infinite;
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-gray);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-5px);
    }

    60% {
        transform: translateX(-50%) translateY(-3px);
    }
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 18px;
        opacity: 0;
    }
}

/* --- VALUE TRIO SECTION (NEW) --- */
.value-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
    position: relative;
    z-index: 10;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.value-item {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: 0.3s;
}

.value-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.value-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    /* Subtle gold background */
    color: var(--gold);
    margin-bottom: 20px;
}

.value-icon svg {
    width: 32px;
    height: 32px;
}

.value-title {
    font-size: 1rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.value-desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
}


/* --- PROCESS SECTION (TIMELINE) --- */
.process-section {
    padding: 100px 20px;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* The Vertical Line */
.timeline-container {
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(212, 175, 55, 0) 0%,
            rgba(212, 175, 55, 0.5) 10%,
            rgba(212, 175, 55, 0.5) 90%,
            rgba(212, 175, 55, 0) 100%);
    z-index: 1;
}

.timeline-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
    position: relative;
    /* Optional: Fade in on scroll logic would go here via JS class toggling */
}

/* Center Node */
.timeline-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 2px solid var(--gold);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.timeline-step.even {
    flex-direction: row-reverse;
}

.step-content {
    width: 42%;
    padding: 20px;
    text-align: right;
}

.timeline-step.even .step-content {
    text-align: left;
}

.step-number {
    font-family: var(--font-serif);
    color: var(--gold);
    font-size: 4rem;
    opacity: 0.2;
    line-height: 0.5;
    margin-bottom: 10px;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-white);
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.step-visual {
    width: 42%;
    position: relative;
}

/* The Screen placeholder */
.screen-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #262626;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-position: center;
    transition: 0.3s;
}

.screen-placeholder:hover {
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
}

/* Real Images in Timeline */
.step-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    display: block;
    /* Removes bottom space */
}

.step-img:hover {
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* Footer (Updated position) */
footer {
    padding: 50px 0;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .value-grid {
        grid-template-columns: 1fr;
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .navbar {
        padding: 15px 20px;
    }

    .timeline-container::before {
        left: 20px;
        /* Line moves to left */
    }

    .timeline-step {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 50px;
        /* Space for line */
        margin-bottom: 60px;
    }

    .timeline-step.even {
        flex-direction: column;
    }

    .timeline-node {
        left: -30px;
        /* Align with line (20px absolute - 50px margin) */
    }

    .step-content,
    .step-visual {
        width: 100%;
        text-align: left;
        padding: 0;
    }

    .step-content {
        order: 1;
        margin-bottom: 20px;
    }

    .timeline-step.even .step-content {
        text-align: left;
    }

    .step-visual {
        order: 2;
    }
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    border-color: var(--gold);
    background: rgba(26, 26, 26, 0.95);
    transform: translateY(-3px);
}

/* --- GLASS LIGHTBOX --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    /* Deep charcoal overlay */
    backdrop-filter: blur(15px);
    /* Heavy blur for focus */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    /* Removed padding: 20px; to let flex center perfectly without width addition */
    cursor: zoom-out;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-wrapper {
    position: relative;
    /* Use fit-content to shrink wrap the image exactly */
    width: fit-content;
    height: fit-content;
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    /* Simpler than flex for this wrapping */
    line-height: 0;
    /* Kill space */
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.lightbox-overlay.active .lightbox-wrapper {
    transform: scale(1);
}

.lightbox-content {
    /* Image drives the size, but constrained by viewport */
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: default;
    display: block;
}

.lightbox-overlay.active .lightbox-content {
    /* Removed transform from here, handling on wrapper now */
}

.lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(40, 40, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover {
    background: var(--gold);
    color: var(--bg-dark);
    transform: rotate(90deg);
    border-color: var(--gold);
}

/* --- SCALE / MODEL SECTION --- */
.scale-section {
    padding: 100px 20px;
    background: #1a1a1a;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separator */
}

.scale-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.scale-card {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.scale-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.scale-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    margin-bottom: 25px;
}

.scale-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.scale-metric {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
}

.scale-desc {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

.cta-container {
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50px;
    font-size: 0.9rem;
}

.cta-button:hover {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}