:root {
    --bg-color: #05010a;
    --primary-purple: #6b21a8;
    --accent-purple: #a855f7;
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --portal-glow: rgba(168, 85, 247, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(5, 1, 10, 0.4) 0%, rgba(5, 1, 10, 0.9) 100%);
    z-index: -1;
}

body {
    background-color: var(--bg-color);
    background: radial-gradient(circle at 50% -20%, #2e1065 0%, var(--bg-color) 80%);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    text-align: center;
    min-height: 100vh;
    justify-content: flex-start; /* Default to top-start for quiz pages */
    padding-top: 4.75vh;
}

.container-bottom {
    justify-content: flex-end;
    padding-bottom: 8vh;
}

/* Text Content */
.content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.headline {
    font-family: 'Inter', sans-serif;
    font-size: 28px; /* Increased from 25px */
    font-weight: 700;
    color: var(--text-white);
    text-wrap: balance;
    line-height: 1.2;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.subtext {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: var(--text-gray);
    text-wrap: balance;
    line-height: 1.5;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

/* Button Styling */
.btn-start {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 320px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.15);
}

.btn-start:active {
    transform: scale(0.98);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.btn-start:hover .btn-icon {
    transform: translateX(4px);
}

/* Fullscreen Video Overlay */
#video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeInOverlay 0.8s ease forwards;
}

.video-wrapper {
    width: 100%;
    height: 100%;
    max-width: 450px; /* Mobile width on desktop */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#vsl-video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full video without cropping */
    background: #000;
}

.close-video {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

/* Quiz Styles */
.quiz-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-purple);
}

.quiz-option.selected {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.radio-circle {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.quiz-option.selected .radio-circle {
    border-color: var(--accent-purple);
}

.quiz-option.selected .radio-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--accent-purple);
    border-radius: 50%;
}

.btn-start:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-start:disabled .btn-icon {
    opacity: 0.2;
}

/* Slider Styles */
.slider-container {
    width: 100%;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.range-display {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-purple);
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    font-family: 'Inter', sans-serif;
}

.custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    background: #ffffff;
    border: 3px solid var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-purple);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-labels {
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 0.9rem;
    padding: 0 5px;
}

/* Card Styles */
.cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    margin-top: 1rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-align: left;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.card-img-placeholder {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    flex-shrink: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* Callout Box & Arrow */
.callout-box {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 1.5rem;
    border-radius: 16px;
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
}

.pulsing-arrow {
    color: var(--accent-purple);
    font-size: 2rem;
    margin: 1rem 0;
    animation: arrowPulse 1.5s infinite ease-in-out;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
}

.highlight-text {
    color: var(--accent-purple);
    font-weight: 700;
    line-height: 1.3;
}

/* Card Flip Animation */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    width: 100%;
    max-width: 480px;
    margin: 1rem auto;
    perspective: 1000px;
}

/* Ultra-Realistic 3D Flip */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    width: 100%;
    max-width: 480px;
    margin: 1rem auto;
    perspective: 2000px; /* Deep perspective for 3D realism */
}

.card-item {
    width: 100%;
    aspect-ratio: 2/3;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Physics-based bounce */
}

.card-item:hover {
    transform: translateY(-5px) rotateY(5deg);
}

.card-item.revealed {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Critical for 3D flip */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-back {
    transform: rotateY(180deg);
}

/* Lighting effect during flip */
.card-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(105deg, 
        transparent 30%, 
        rgba(255,255,255,0.1) 45%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0.1) 55%, 
        transparent 70%);
    z-index: 10;
    pointer-events: none;
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.8s;
}

.card-item.revealed::after {
    transform: translateX(100%) skewX(-15deg);
}

@keyframes cardShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Animations */
.fade-out {
    opacity: 0 !important;
    transform: translateY(-20px) !important;
    transition: all 0.6s ease;
    pointer-events: none;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
        gap: 2rem;
    }
}
