/* 
   =============================================================================
   GLOBAL VARIABLES & RESET
   =============================================================================
*/
:root {
    --bg-color: #050505;        /* Deep black background */
    --text-color: #ffffff;      /* Main text color */
    --accent-color: #00f2ff;    /* Electric Blue accent */
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* Prevent scrolling, 3D canvas covers all */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 
   =============================================================================
   BACKGROUND CANVAS
   =============================================================================
*/
#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind everything */
}

/* 
   =============================================================================
   ENTRANCE OVERLAY
   =============================================================================
*/
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999; /* Topmost layer */
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease-out, visibility 1.5s;
    cursor: pointer;
}

#overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.overlay-content p {
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 
   =============================================================================
   MAIN CONTENT LAYOUT
   =============================================================================
*/
.content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* 
   GLASS CARD STYLING
   The user requested specific manual overrides for transparency and blur.
*/
.glass-card {
    position: relative;
    /* User Preference: Dark gradient for "Smoked Glass" look */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    
    /* User Preference: Extreme blur */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Manual User Override */
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    
    /* User Preference: Opacity override */
    opacity: 0.8; 
    
    transition: opacity 0.5s;
}

/* Initial state before entrance animation */
.glass-card.hidden {
    opacity: 0;
}

/* 
   =============================================================================
   TYPOGRAPHY
   =============================================================================
*/
h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    
    /* Dynamic Gradient Text */
    background: linear-gradient(135deg, var(--ui-gradient-1, #fff) 0%, var(--ui-gradient-2, #ccc) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Fallback shadow */
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    
    opacity: 0; /* Hidden for staggered animation */
    transition: filter 0.3s; /* Smooth transition if needed */
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: #e0e0e0;
    letter-spacing: 0.5px;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    opacity: 0; /* Hidden for staggered animation */
}

.separator {
    color: var(--ui-gradient-1); /* Also link separator to primary color */
    margin: 0 0.8rem;
    transition: color 1s ease;
}

/* 
   =============================================================================
   SOCIAL LINKS
   =============================================================================
*/
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    opacity: 0; /* Hidden for staggered animation */
}

.social-links a {
    color: var(--text-color);
    transition: all 0.3s ease;
    opacity: 0.8;
    display: inline-flex;
    padding: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,242,255, 0.3);
}

.social-links svg {
    width: 28px;
    height: 28px;
}

/* 
   =============================================================================
   ENTRANCE ANIMATIONS
   =============================================================================
*/
.animate-active h1, 
.animate-active .subtitle, 
.animate-active .social-links,
.animate-active .description {
    animation: blurFadeIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Stagger delays for sequential reveal */
.animate-active .stagger-1 { animation-delay: 0.5s; }
.animate-active .stagger-2 { animation-delay: 1.2s; }
.animate-active .stagger-3 { animation-delay: 1.8s; }
.animate-active .stagger-4 { animation-delay: 2.4s; }

.description {
    margin-top: 2.5rem;
    font-size: 1.0rem;
    line-height: 1.7;
    font-weight: 200;
    
    /* Subtle Dynamic Gradient for description too */
    background: linear-gradient(135deg, var(--ui-gradient-1, #b0b0b0) 0%, var(--ui-gradient-2, #808080) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0; /* Hidden for animation */
}

@keyframes blurFadeIn {
    0% {
        opacity: 0;
        filter: blur(15px);
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* 
   =============================================================================
   RESPONSIVE TWEAKS
   =============================================================================
*/
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    .glass-card {
        padding: 2.5rem 1.5rem;
    }
    .subtitle {
        font-size: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .separator {
        display: none;
    }
}
