/* ==========================================================================
   VTALL Landing Page - SpaceX Inspired Premium Dark Theme CSS
   ========================================================================== */

/* Design Tokens & Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    --bg-black: #000000;
    --bg-dark-gray: #0b0b0b;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --text-dim: #707070;
    --accent-red: #ff3333;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: all 0.25s cubic-bezier(0.19, 1, 0.22, 1);
    --transition-medium: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    --transition-slow: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

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

html, body {
    height: 100%;
    width: 100%;
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-black);
}
::-webkit-scrollbar-thumb {
    background: #222222;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

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

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

button {
    font-family: inherit;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

/* Scroll Snap Sections */
.snap-section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 6rem 8% 8rem 8%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

/* Dark Section Overlay for Perfect Readability */
.snap-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Section Content Container */
.section-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1), transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Reveal Animation Class (Toggled via JS or CSS intersection observer) */
.snap-section.active .section-content {
    opacity: 1;
    transform: translateY(0);
}

/* Sub-text / Eyebrow */
.section-eyebrow {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 0.75rem;
    animation: pulseGlow 4s infinite alternate;
}

/* Big Headlines */
.section-headline {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
    .section-headline {
        font-size: 4.5rem;
    }
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-gray);
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Custom SpaceX Outline Buttons */
.btn-spacex {
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 1.1rem 2.8rem;
    border: 2px solid var(--text-white);
    background: transparent;
    color: var(--text-white);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.btn-spacex::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-white);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.btn-spacex:hover {
    color: var(--bg-black) !important;
}

.btn-spacex:hover::after {
    transform: scaleY(1);
}

.btn-group {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Technical Specification Rows (Crew Dragon style) */
.stats-row {
    display: flex;
    gap: 4rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-white);
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Header & Sticky Navigation
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.4s ease, padding 0.4s ease, border-bottom 0.4s ease;
}

#main-header.scrolled {
    padding: 1.25rem 5%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Header Logo */
.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--text-white);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-red);
}

/* Navigation Links (Center) */
.nav-links {
    display: none;
    gap: 2rem;
}

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

.nav-link {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-white);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-white);
    transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

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

/* Right Section with menu toggle */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-header-cta {
    display: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.6rem 1.5rem;
    border: 1.5px solid var(--text-white);
    transition: var(--transition-fast);
}

@media (min-width: 768px) {
    .btn-header-cta {
        display: inline-block;
    }
}

.btn-header-cta:hover {
    background-color: var(--text-white);
    color: var(--bg-black);
}

/* Hamburger Menu Icon */
.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 12px;
    z-index: 1002;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Open Menu Animation */
.menu-btn.open span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.menu-btn.open span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* ==========================================================================
   SpaceX Style Slide-out Drawer Menu
   ========================================================================== */
.sidebar-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 8rem 3rem 4rem 3rem;
    transition: right 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.sidebar-drawer.open {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: auto;
}

.drawer-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-white);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    width: 100%;
    text-align: right;
}

.drawer-link:hover {
    color: var(--text-gray);
    padding-right: 0.5rem;
}

.drawer-footer {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: right;
    line-height: 1.8;
}

/* ==========================================================================
   Reserve Section (Split Configurator Layout)
   ========================================================================== */
.reserve-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    height: 100%;
    width: 100%;
}

@media (min-width: 992px) {
    .reserve-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 6rem;
    }
}

.reserve-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Premium Dark Configurator Card */
.configurator-card {
    background: rgba(11, 11, 11, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 4px; /* Hard edges, SpaceX minimalist style */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: 2px;
    transition: var(--transition-fast);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 576px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group select option {
    background-color: var(--bg-dark-gray);
    color: var(--text-white);
}

.form-group textarea {
    resize: none;
}

/* Form Error Messaging */
.error-msg {
    display: block;
    font-size: 0.65rem;
    color: var(--accent-red);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    height: 0;
    transition: var(--transition-fast);
}

.form-group.invalid input,
.form-group.invalid select {
    border-color: var(--accent-red);
}

.form-group.invalid .error-msg {
    opacity: 1;
    height: auto;
    margin-top: 0.4rem;
}

/* Success Confirmation Screen */
.success-screen {
    text-align: center;
    padding: 2rem 0;
    display: none;
}

.success-icon-wrap {
    width: 60px;
    height: 60px;
    border: 2px solid var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    animation: scaleUp 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.success-icon-wrap i {
    width: 28px;
    height: 28px;
    stroke-width: 2.5px;
}

.success-screen h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.success-screen p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.success-email-highlight {
    color: var(--text-white);
    font-weight: 600;
    border-bottom: 1px dashed var(--text-white);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.footer-wrap {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-wrap {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav-link {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-nav-link:hover {
    color: var(--text-white);
}

/* ==========================================================================
   Micro-animations & Utilities
   ========================================================================== */
@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlow {
    from { opacity: 0.85; text-shadow: 0 0 5px rgba(255,255,255,0.1); }
    to { opacity: 1; text-shadow: 0 0 15px rgba(255,255,255,0.4); }
}

/* Indicator arrow for page scrolling */
.scroll-down-arrow {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--text-white);
    font-size: 1.5rem;
    animation: bounceIndicator 2.5s infinite;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-down-arrow:hover {
    opacity: 1;
}

@keyframes bounceIndicator {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}
