* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Intro Loading Screen */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.intro-screen.clickable {
    cursor: pointer;
}

.intro-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.intro-content {
    max-width: 700px;
    width: 90%;
    padding: 40px;
    background: #0a0a0a;
    border: 3px solid #00ff00;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.3);
}

.intro-logo {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #00ff00;
    padding-bottom: 20px;
}

.retro-text {
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    letter-spacing: 5px;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00; }
    50% { text-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00, 0 0 40px #00ff00; }
}

.version-text {
    font-family: 'Courier New', monospace;
    color: #00cc00;
    font-size: 0.9rem;
    margin-top: 10px;
    letter-spacing: 2px;
}

.loading-container {
    margin: 30px 0;
    font-family: 'Courier New', monospace;
}

.loading-step {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    margin: 8px 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    background: rgba(0, 255, 0, 0.05);
    border-left: 3px solid transparent;
}

.loading-step.active {
    opacity: 1;
    transform: translateX(0);
    border-left-color: #00ff00;
}

.loading-step.completed {
    opacity: 0.7;
}

.loading-icon {
    margin-right: 15px;
    font-size: 1.2rem;
}

.loading-text {
    flex: 1;
    color: #00ff00;
    font-size: 0.95rem;
}

.loading-status {
    color: #00ff00;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-step.completed .loading-status {
    opacity: 1;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: #1a1a1a;
    border: 2px solid #00ff00;
    border-radius: 5px;
    overflow: hidden;
    margin: 30px 0 10px 0;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px #00ff00;
}

.progress-text {
    text-align: center;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.intro-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #00ff00;
}

.blink-text {
    font-family: 'Courier New', monospace;
    color: #00ff00;
    font-size: 0.9rem;
    letter-spacing: 2px;
    animation: blink 1.5s infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.blink-text.visible {
    opacity: 1;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.3; }
}

/* Challenge Modal */
.challenge-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.challenge-modal.active {
    opacity: 1;
    visibility: visible;
}

.challenge-content {
    background: #0a0a0a;
    border: 3px solid #ff00ff;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.5);
    animation: modalPulse 2s ease-in-out infinite;
}

@keyframes modalPulse {
    0%, 100% {
        box-shadow: 0 0 50px rgba(255, 0, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 70px rgba(255, 0, 255, 0.8);
    }
}

.challenge-question {
    font-family: 'Courier New', monospace;
    color: #ff00ff;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #ff00ff;
}

.challenge-text {
    font-family: 'Courier New', monospace;
    color: #00ff00;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.challenge-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.challenge-btn {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px 30px;
    border: 2px solid #00ff00;
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.challenge-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.challenge-btn:active {
    transform: scale(0.98);
}

.challenge-feedback {
    margin-top: 20px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    min-height: 30px;
}

.challenge-feedback.wrong {
    color: #ff0000;
    animation: shake 0.5s;
}

.challenge-feedback.correct {
    color: #00ff00;
    font-size: 1.5rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Hide main content initially */
body > .container {
    opacity: 0;
    transition: opacity 1s ease;
}

body.intro-complete > .container {
    opacity: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Animated Background */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent);
    background-size: 200% 200%;
    animation: sparkle 8s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes sparkle {
    0%, 100% { background-position: 0% 0%; opacity: 0.3; }
    50% { background-position: 100% 100%; opacity: 0.6; }
}

/* Header Styles */
.main-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.glitch-wrapper {
    position: relative;
}

.glitch {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    text-shadow: 
        0 0 10px rgba(255,255,255,0.8),
        0 0 20px rgba(255,255,255,0.6),
        0 0 30px rgba(255,255,255,0.4);
    animation: textFloat 3s ease-in-out infinite;
}

@keyframes textFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitchTop 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    text-shadow: 2px 0 #ff00ff;
}

.glitch::after {
    animation: glitchBottom 3s infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    text-shadow: -2px 0 #00ffff;
}

@keyframes glitchTop {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(0); }
    80% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

@keyframes glitchBottom {
    0% { transform: translateX(0); }
    25% { transform: translateX(2px); }
    50% { transform: translateX(-2px); }
    75% { transform: translateX(0); }
    100% { transform: translateX(2px); }
}

.subtitle-wrapper {
    margin-top: 20px;
}

.subtitle {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.year-range {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 2px;
    margin: 10px 0;
}

.location-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 10px;
    border: 2px solid rgba(255,255,255,0.3);
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.stat-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Life Statistics Section */
.life-stats-section {
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    position: relative;
    z-index: 1;
}

.life-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.life-stat-card {
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.life-stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.life-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #FFD700;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.life-stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #fff;
}

.life-stat-detail {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.4;
    margin-top: 10px;
    font-style: italic;
}

.animate-stats-btn {
    background: linear-gradient(45deg, #9C27B0, #E91E63);
    margin-top: 20px;
}

/* Number animation */
.life-stat-card.counting .life-stat-number {
    animation: countPulse 0.1s ease;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Feature Boxes */
.main-content {
    display: grid;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

.feature-box h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Action Buttons */
.action-btn {
    position: relative;
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    color: #fff;
}

.quote-btn {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
}

.dial-btn {
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
}

.ai-btn {
    background: linear-gradient(45deg, #F2994A, #F2C94C);
    width: auto;
    padding: 15px 30px;
    font-size: 1rem;
}

.action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.action-btn:active {
    transform: scale(0.98);
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Quote Display */
.quote-display {
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    padding: 25px;
    min-height: 100px;
    margin-top: 20px;
    border-left: 4px solid #FF6B6B;
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
}

/* Dial Info */
.dial-info {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* AI Section */
.ai-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.ai-input {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.ai-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.ai-input:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.ai-response {
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
    min-height: 60px;
    border-left: 4px solid #F2994A;
    display: none;
}

.ai-response.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-response p {
    font-size: 1.1rem;
    margin: 0;
}

/* Birthday Message */
.message-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
}

.birthday-message h3 {
    margin-bottom: 20px;
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
}

.signature {
    text-align: right;
    font-style: italic;
    margin-top: 30px;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Feeling Down Section */
.feeling-down-section {
    background: linear-gradient(135deg, rgba(255,100,100,0.2), rgba(255,50,150,0.1));
}

.feeling-down-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.video-container {
    display: none;
    margin-top: 20px;
}

.video-container.active {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 1200px;
    height: auto;
    z-index: 10000;
    margin: 0;
    animation: videoZoomIn 0.5s ease-out;
}

@keyframes videoZoomIn {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: visible;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: none;
}

/* Secret Counter */
.secret-counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    border: 2px solid rgba(255,255,255,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.secret-counter.visible {
    opacity: 1;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px 20px;
    opacity: 0.7;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .intro-content {
        padding: 25px 20px;
    }
    
    .retro-text {
        font-size: 2rem;
        letter-spacing: 3px;
    }
    
    .version-text {
        font-size: 0.75rem;
    }
    
    .loading-step {
        padding: 10px 8px;
        margin: 6px 0;
    }
    
    .loading-text {
        font-size: 0.8rem;
    }
    
    .loading-icon {
        margin-right: 10px;
        font-size: 1rem;
    }
    
    .progress-bar-container {
        height: 25px;
    }
    
    .progress-text {
        font-size: 1rem;
    }
    
    .blink-text {
        font-size: 0.75rem;
    }
    
    .challenge-content {
        padding: 30px 20px;
        width: 95%;
        max-width: 95%;
    }
    
    .challenge-question {
        font-size: 1.2rem;
    }
    
    .challenge-text {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .challenge-btn {
        font-size: 0.95rem;
        padding: 14px 20px;
    }
    
    .challenge-feedback {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .main-header {
        padding: 20px 10px;
    }
    
    .feature-box {
        padding: 20px;
    }
    
    .life-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .life-stat-card {
        padding: 20px 15px;
    }
    
    .life-stat-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .life-stat-number {
        font-size: 1.8rem;
        min-height: 45px;
    }
    
    .life-stat-label {
        font-size: 0.9rem;
    }
    
    .life-stat-detail {
        font-size: 0.75rem;
    }
    
    .ai-container {
        flex-direction: column;
    }
    
    .ai-btn {
        width: 100%;
    }
    
    .video-container.active {
        width: 95vw;
    }
    
    .secret-counter {
        bottom: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 8px 15px;
    }
}

/* Fun Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

