/* ========================================
   1920s MAFIA WELCOME PAGE STYLES
   Empire of Crime - Est. 1920
   ======================================== */

/* Import Classic Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Cinzel:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    background: #0a0a0a;
    color: #c0c0c0;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ========================================
   BACKGROUND & ATMOSPHERIC EFFECTS
   ======================================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.9) 100%),
        linear-gradient(180deg, 
            rgba(10,10,10,1) 0%, 
            rgba(25,25,25,1) 50%, 
            rgba(10,10,10,1) 100%
        );
    z-index: -1;
}

/* Film Grain Effect */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* Rain Effect */
.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

/* Smoke Overlay */
.smoke-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(100,100,100,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(100,100,100,0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
    animation: smokeFloat 20s ease-in-out infinite;
}

@keyframes smokeFloat {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.5; transform: translateY(-20px); }
}

/* ========================================
   WELCOME CONTAINER
   ======================================== */
.welcome-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    padding: 20px;
}

/* ========================================
   OPENING SCENE
   ======================================== */
.opening-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 1s ease;
}

.opening-scene.hidden {
    opacity: 0;
    pointer-events: none;
}

.scene-content {
    max-width: 800px;
    padding: 40px;
    text-align: center;
}

.scene-text {
    margin-bottom: 40px;
    opacity: 0;
}

.narration {
    font-family: 'Crimson Text', serif;
    font-size: 2rem;
    color: #e0e0e0;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(192,192,192,0.5);
}

.narration.small {
    font-size: 1.2rem;
    font-style: italic;
    color: #a8a8a8;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 1px;
}

.quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #ffffff;
    font-style: italic;
    line-height: 1.6;
    text-shadow: 0 0 30px rgba(192,192,192,0.3);
    padding: 20px 0;
    border-left: 3px solid #c0c0c0;
    padding-left: 30px;
    margin-left: 20px;
}

.quote.final {
    font-size: 2rem;
    color: #e0e0e0;
    font-weight: 700;
    border: none;
    padding-left: 0;
    margin-left: 0;
}

/* Cigarette Glow Effect */
.cigarette-glow {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    margin: 20px auto;
    box-shadow: 
        0 0 20px #ffffff,
        0 0 40px #e0e0e0,
        0 0 60px #c0c0c0;
    animation: cigarettePulse 2s ease-in-out infinite;
}

@keyframes cigarettePulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Scene Fade-in Animations */
.fade-in-1 { animation: fadeIn 2s ease 0s forwards; }
.fade-in-2 { animation: fadeIn 2s ease 2.5s forwards; }
.fade-in-3 { animation: fadeIn 2s ease 5.5s forwards; }
.fade-in-4 { animation: fadeIn 2s ease 8.5s forwards; }
.fade-in-5 { animation: fadeIn 2s ease 11.5s forwards; }
.fade-in-6 { animation: fadeIn 2s ease 14.5s forwards; }
.fade-in-7 { animation: fadeIn 2s ease 17.5s forwards; }
.fade-in-8 { animation: fadeIn 2s ease 20s forwards; }

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

/* Enter Button */
.enter-button-container {
    margin-top: 60px;
    opacity: 0;
}

.enter-button {
    position: relative;
    background: transparent;
    color: #e0e0e0;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 4px;
    padding: 20px 60px;
    border: 2px solid #c0c0c0;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-shadow: 0 0 10px rgba(192,192,192,0.5);
}

.enter-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(192,192,192,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.enter-button:hover {
    background: rgba(192,192,192,0.1);
    box-shadow: 
        0 0 20px rgba(192,192,192,0.5),
        inset 0 0 20px rgba(192,192,192,0.2);
    transform: scale(1.05);
}

.enter-button:hover::before {
    width: 300px;
    height: 300px;
}

.button-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, #c0c0c0, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.enter-button:hover .button-glow {
    opacity: 0.5;
    animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   MAIN SCREEN
   ======================================== */
.main-screen {
    display: none;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    animation: fadeInMain 1.5s ease forwards;
}

.main-screen.active {
    display: block;
}

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

/* Logo Container */
.logo-container {
    margin-bottom: 80px;
}

.main-title {
    font-family: 'Cinzel', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.title-line-1 {
    font-size: 5rem;
    font-weight: 900;
    color: #e0e0e0;
    letter-spacing: 20px;
    text-shadow: 
        0 0 30px rgba(192,192,192,0.6),
        0 0 60px rgba(192,192,192,0.4),
        3px 3px 0 rgba(0,0,0,0.8);
    animation: titleGlow 3s ease-in-out infinite;
}

.title-divider {
    font-size: 1.5rem;
    color: #c0c0c0;
    letter-spacing: 5px;
    opacity: 0.8;
}

.title-line-2 {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 15px;
    text-shadow: 
        0 0 20px rgba(192,192,192,0.4),
        0 0 40px rgba(192,192,192,0.2),
        2px 2px 0 rgba(0,0,0,0.8);
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 30px rgba(192,192,192,0.6), 0 0 60px rgba(192,192,192,0.4), 3px 3px 0 rgba(0,0,0,0.8); }
    50% { text-shadow: 0 0 40px rgba(192,192,192,0.8), 0 0 80px rgba(192,192,192,0.6), 3px 3px 0 rgba(0,0,0,0.8); }
}

.tagline {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    color: #a8a8a8;
    font-style: italic;
    letter-spacing: 3px;
    margin-top: 20px;
}

/* Action Container */
.action-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 60px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.action-box {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    background: rgba(20,20,20,0.7);
    border: 2px solid #c0c0c0;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.action-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(192,192,192,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.action-box:hover {
    background: rgba(30,30,30,0.8);
    box-shadow: 
        0 0 40px rgba(192,192,192,0.3),
        inset 0 0 40px rgba(192,192,192,0.05);
    transform: translateY(-5px);
}

.action-box:hover::before {
    opacity: 1;
}

.action-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.action-description {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    color: #c9c9c9;
    line-height: 1.8;
    margin-bottom: 35px;
    font-style: italic;
}

/* Action Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    padding: 18px 50px;
    border: 2px solid #c0c0c0;
    background: transparent;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

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

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

.action-btn:hover {
    background: rgba(192,192,192,0.15);
    box-shadow: 
        0 0 30px rgba(192,192,192,0.5),
        inset 0 0 20px rgba(192,192,192,0.1);
    transform: scale(1.05);
    color: #ffffff;
    border-color: #ffffff;
}

.btn-icon {
    font-size: 0.8rem;
    opacity: 0.8;
}

.register-btn:hover {
    box-shadow: 
        0 0 30px rgba(192,192,192,0.6),
        inset 0 0 20px rgba(192,192,192,0.2);
}

.login-btn:hover {
    box-shadow: 
        0 0 30px rgba(192,192,192,0.6),
        inset 0 0 20px rgba(192,192,192,0.2);
}

/* Divider */
.divider-vertical {
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-diamond {
    font-size: 2rem;
    color: #c0c0c0;
    opacity: 0.6;
    animation: diamondPulse 2s ease-in-out infinite;
}

@keyframes diamondPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Footer Text */
.footer-text {
    margin-top: 40px;
}

.warning-text {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    color: #808080;
    font-style: italic;
    letter-spacing: 2px;
    animation: warningPulse 3s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 968px) {
    .action-container {
        flex-direction: column;
        align-items: center;
    }
    
    .divider-vertical {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    
    .title-line-1 {
        font-size: 3.5rem;
        letter-spacing: 15px;
    }
    
    .title-line-2 {
        font-size: 3rem;
        letter-spacing: 12px;
    }
}

@media (max-width: 768px) {
    .title-line-1 {
        font-size: 2.5rem;
        letter-spacing: 10px;
    }
    
    .title-line-2 {
        font-size: 2rem;
        letter-spacing: 8px;
    }
    
    .narration {
        font-size: 1.5rem;
    }
    
    .quote {
        font-size: 1.3rem;
    }
    
    .enter-button {
        font-size: 1rem;
        padding: 15px 40px;
        letter-spacing: 3px;
    }
    
    .action-box {
        padding: 40px 30px;
    }
    
    .action-title {
        font-size: 1.6rem;
    }
    
    .action-btn {
        font-size: 1rem;
        padding: 15px 40px;
    }
}

@media (max-width: 480px) {
    .title-line-1 {
        font-size: 2rem;
        letter-spacing: 5px;
    }
    
    .title-line-2 {
        font-size: 1.5rem;
        letter-spacing: 5px;
    }
    
    .scene-content {
        padding: 20px;
    }
    
    .narration.small {
        font-size: 1rem;
    }
    
    .quote {
        font-size: 1.1rem;
        padding-left: 15px;
        margin-left: 10px;
    }
}