/**
 * Fullscreen 3D Background Styles
 * Enhances the production Lisa 3D model experience
 */

/* Ensure body allows fullscreen 3D background with no scroll */
body {
    overflow: hidden; /* Prevent all scrolling - everything fits on screen */
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Hide the default starry background canvas since we're using 3D stars */
#starryBackground {
    display: none !important;
}

/* No scrolling needed - single screen experience */
html {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

/* Hero section enhancements */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Hero content styling improvements */
.hero-content {
    animation: fadeInUp 1s ease-out 0.5s both;
}

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

/* Welcome message enhancements */
.welcome-message, .user-welcome {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.welcome-message:hover, .user-welcome:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* CTA buttons enhancement */
.cta-button, .login-button {
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cta-button:hover {
    background: #ff5252 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.login-button:hover {
    background: rgba(78, 205, 196, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

/* Gallery section spacing adjustments for fullscreen hero */
#gallery-wrap {
    margin-top: 40px;
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px 20px 0 0;
    padding-top: 30px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

/* Section title styling over 3D background */
.section-title {
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 20px;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        margin-left: 20px;
        margin-top: 0;
        margin-right: 20px;
    }
    
    .welcome-message, .user-welcome {
        max-width: none;
        margin: 0;
    }
    
    .hero-section {
        min-height: 80vh; /* Shorter on mobile for better UX */
    }
    
    #gallery-wrap {
        margin-top: 20px;
        border-radius: 15px 15px 0 0;
    }
}

@media (max-width: 480px) {
    .hero-content {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .welcome-message h1 {
        font-size: 2em !important;
    }
    
    .cta-button, .login-button {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
}

/* Loading indicator for 3D model */
.lisa-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lisa-loading.show {
    opacity: 1;
}

.lisa-loading .spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #4ecdc4;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

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

/* Subtle hint for interactive 3D model */
.interaction-hint {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInOut 6s ease-in-out;
    pointer-events: none;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

/* Performance optimization for 3D rendering */
#three-canvas {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Ensure content flows properly over 3D background */
.main-content {
    position: relative;
    z-index: 2;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    animation: bounce 2s infinite;
}

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

.scroll-indicator::after {
    content: '⬇';
    display: block;
    font-size: 24px;
    margin-top: 5px;
} 