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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow-x: hidden;
}

/* Intro Animation Styles */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a0a0a 0%, #0f0f0f 50%, #2d1a1a 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: introFadeOut 1s ease-in-out 8s forwards;
}

.intro-overlay.hidden {
    display: none;
}

@keyframes introFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* Main content wrapper - initially hidden */
.main-content-wrapper {
    opacity: 0;
    animation: mainContentFadeIn 1s ease-in-out 9s forwards;
}

@keyframes mainContentFadeIn {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Book Cover Container */
.book-cover-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    animation: bookCoverFloat 8s ease-in-out infinite;
}

.book-cover {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: 0 0 200px rgba(255, 215, 0, 0.6),
                0 0 150px rgba(255, 107, 107, 0.4),
                inset 0 0 100px rgba(0, 0, 0, 0.3);
    animation: bookGlow 4s ease-in-out infinite alternate;
    transition: all 0.3s ease;
}

@keyframes bookCoverFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.02) rotate(1deg); }
    50% { transform: scale(1.05) rotate(0deg); }
    75% { transform: scale(1.02) rotate(-1deg); }
}

@keyframes bookGlow {
    0% { 
        box-shadow: 0 0 150px rgba(255, 215, 0, 0.4),
                    0 0 100px rgba(255, 107, 107, 0.3),
                    inset 0 0 50px rgba(0, 0, 0, 0.2);
    }
    100% { 
        box-shadow: 0 0 300px rgba(255, 215, 0, 0.8),
                    0 0 200px rgba(255, 107, 107, 0.6),
                    inset 0 0 100px rgba(0, 0, 0, 0.4);
    }
}

/* Falling Coins */
.coins-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.coin {
    position: absolute;
    font-size: 2.5rem;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: coinFall 6s linear infinite;
    opacity: 0.9;
}

.coin-1 { left: 10%; animation-delay: 0s; }
.coin-2 { left: 20%; animation-delay: 0.6s; }
.coin-3 { left: 30%; animation-delay: 1.2s; }
.coin-4 { left: 40%; animation-delay: 1.8s; }
.coin-5 { left: 50%; animation-delay: 2.4s; }
.coin-6 { left: 60%; animation-delay: 3.0s; }
.coin-7 { left: 70%; animation-delay: 3.6s; }
.coin-8 { left: 80%; animation-delay: 4.2s; }
.coin-9 { left: 90%; animation-delay: 4.8s; }
.coin-10 { left: 15%; animation-delay: 5.4s; }

@keyframes coinFall {
    0% {
        top: -10%;
        transform: rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: rotate(180deg) scale(1);
    }
    90% {
        opacity: 1;
        transform: rotate(720deg) scale(1);
    }
    100% {
        top: 110%;
        transform: rotate(900deg) scale(0.3);
        opacity: 0;
    }
}

/* Intro Text */
.intro-text {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    animation: introTextGlow 2s ease-in-out infinite alternate;
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.intro-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    animation: goldShimmer 3s ease-in-out infinite;
}

.intro-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #ff6b6b;
    font-weight: 600;
    font-style: italic;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.8);
}

@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes introTextGlow {
    0% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    100% { text-shadow: 0 0 40px rgba(255, 215, 0, 0.9), 0 0 60px rgba(255, 107, 107, 0.5); }
}

/* Loading Indicator */
.loading-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #ff6b6b);
    border-radius: 2px;
    animation: loadingProgress 8s ease-in-out forwards;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Sound Indicator Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #000000 0%, #1a0a0a 50%, #2d0a0a 100%);
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d, #ff6b6b);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    margin-bottom: 3rem;
    color: #e0e0e0;
    line-height: 1.7;
}

/* Video Container - Much Larger */
.video-container {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Increased from 700px */
    margin: 0 auto 3rem;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(255, 107, 107, 0.4), 0 0 100px rgba(255, 217, 61, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d) padding-box,
                linear-gradient(45deg, #ff6b6b, #ffd93d) border-box;
}

.video-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 40px 80px rgba(255, 107, 107, 0.6), 0 0 150px rgba(255, 217, 61, 0.4);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Video Hint */
.video-hint {
    margin-top: 1rem;
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 107, 0.1));
    border-radius: 25px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-size: 0.9rem;
    color: #ffd700;
    font-weight: 600;
    animation: hintGlow 2s ease-in-out infinite alternate;
}

.video-hint span {
    margin-left: 0.5rem;
}

@keyframes hintGlow {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
}

/* Download Buttons */
.download-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
}

.btn-secondary {
    background: linear-gradient(45deg, #ffd93d, #ff6b6b);
    color: #000;
    box-shadow: 0 10px 30px rgba(255, 217, 61, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 217, 61, 0.6);
}

.btn span {
    font-size: 1.2em;
}

/* Background Elements */
.bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}


.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(255, 217, 61, 0.1));
    animation: floatAround 20s ease-in-out infinite;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3), 
                0 0 60px rgba(255, 217, 61, 0.2);
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.bg-circle-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -5%;
    animation-delay: 8s;
    animation-duration: 30s;
}

.bg-circle-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 20%;
    animation-delay: 16s;
    animation-duration: 35s;
}

.bg-circle-4 {
    width: 180px;
    height: 180px;
    top: 80%;
    left: 15%;
    animation-delay: 5s;
    animation-duration: 28s;
}

.bg-circle-5 {
    width: 120px;
    height: 120px;
    top: 5%;
    right: 40%;
    animation-delay: 12s;
    animation-duration: 32s;
}

.bg-circle-6 {
    width: 220px;
    height: 220px;
    top: 45%;
    left: 5%;
    animation-delay: 20s;
    animation-duration: 26s;
}

/* Floating Animation Keyframes */
@keyframes floatAround {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(100px, -50px) rotate(90deg) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50px, -100px) rotate(180deg) scale(0.9);
        opacity: 0.7;
    }
    75% {
        transform: translate(-100px, 50px) rotate(270deg) scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
        opacity: 0.6;
    }
}


/* Main Content Section */
.main-content {
    padding: 6rem 0;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    position: relative;
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.main-text {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #d0d0d0;
}

.main-text strong {
    color: #ff6b6b;
    font-weight: 700;
}

.question-block {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(255, 217, 61, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.question-text {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: #ffffff;
    font-style: italic;
}

.action-call {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #2d0a0a, #1a0a0a);
    border-radius: 20px;
    border: 2px solid #ff6b6b;
}

.action-text {
    font-size: clamp(1.3rem, 2.8vw, 1.6rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.6;
}

.highlight {
    color: #ffd93d;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 217, 61, 0.5);
}

/* Footer */
.footer {
    padding: 4rem 0;
    background: #000000;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6b6b;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #333, #555);
    border: 2px solid #ff6b6b;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.social-icon-placeholder:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-title {
        margin-bottom: 1.5rem;
    }
    
    .hero-text {
        margin-bottom: 2rem;
    }
    
    .video-container {
        margin-bottom: 2rem;
        padding-bottom: 56.25%; /* Adjust for mobile */
        max-width: 100%; /* Full width on mobile */
    }
    
    .video-hint {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .main-content {
        padding: 4rem 0;
    }
    
    .question-block,
    .action-call {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .bg-circle {
        display: none; /* Hide on mobile for performance */
    }
    
    /* Intro animation mobile adjustments */
    .book-cover {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
    }
    
    .intro-text {
        bottom: 15%;
        padding: 1.5rem 2rem;
        max-width: 90vw;
    }
    
    .intro-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    
    .intro-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }
    
    .loading-indicator {
        width: 300px;
        max-width: 80vw;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .main-text {
        font-size: 1rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .action-text {
        font-size: 1.1rem;
    }
}

/* Scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Performance optimizations */
.hero, .main-content, .footer {
    will-change: transform;
}

.btn, .video-container {
    will-change: transform, box-shadow;
}