:root {
    --text-color: #ffffff;
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-color: #ffffff;
    --transition-speed: 0.6s;
    --font-main: 'Inter', sans-serif;
}

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

body, html {
    height: 100%;
    width: 100%;
    font-family: var(--font-main);
    overflow: hidden;
    background-color: #050505;
    color: var(--text-color);
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
}

.persona {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: transform 0.1s ease-out; /* For parallax */
}

/* Night Persona */
.night-persona {
    z-index: 1;
    opacity: 0; /* Hidden initially to prevent flash */
    transition: opacity 0.3s ease;
}
.night-persona .bg-image {
    filter: brightness(0.4) contrast(1.2);
    transform: scale(1.05); /* Initial scale for parallax room */
}

/* Day Persona */
.day-persona {
    z-index: 2;
    width: 100%;
    border-right: 1px solid rgba(255,255,255,0.1);
    box-shadow: -10px 0 50px rgba(0,0,0,0.8);
    will-change: width;
    background-color: #050505; /* Prevent transparency before image loads */
}
.day-persona .bg-image {
    width: 100vw;
    transform: scale(1.05); /* Initial scale for parallax room */
}

/* Content Styling */
.content {
    position: absolute;
    bottom: 15%;
    left: 8%;
    max-width: 650px;
    padding: 3rem;
    
    /* Premium Glassmorphism */
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 2px; /* Sharper corners for "tech" feel */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    
    /* Ensure consistent height between personas */
    height: 400px; /* Fixed height for perfect symmetry */
    display: flex;
    flex-direction: column;
    justify-content: center;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

.day-content {
    position: absolute; /* Clipped by parent */
    width: 90vw;
    max-width: 650px;
    left: 8%;
    bottom: 15%;
}

.night-content h1, .night-content h2, .night-content p {
    text-align: right;
}
.night-content {
    /* Revert to Right Alignment */
    right: 8%;
    left: auto;
    bottom: 15%;
    
    /* Match Day Width explicitly */
    width: 90vw;
    max-width: 650px;
    
    text-align: right;
    align-items: flex-end;
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin-bottom: 0.5rem;
    color: #fff;
}

h2 {
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.7);
    border-left: 2px solid #fff;
    padding-left: 1rem;
}

.night-content h2 {
    /* Revert to Right Border */
    border-left: none;
    border-right: 2px solid #fff;
    padding-left: 0;
    padding-right: 1rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: #fff;
    font-size: 1.8rem;
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.1);
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

/* Slider Handle */
.slider-handle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(-50%, -50%); /* Center on the edge */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 1000; /* Ensure above noise overlay */
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    animation: nudge 3s infinite ease-in-out;
}

.slider-handle.interacting {
    animation: none;
}

@keyframes nudge {
    0%, 100% { transform: translate(-50%, -50%); box-shadow: 0 0 30px rgba(0,0,0,0.3); }
    50% { transform: translate(-60%, -50%); box-shadow: 0 0 50px rgba(255,255,255,0.2); }
}

.slider-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(0.95);
    background: rgba(255,255,255,0.2);
}

.handle-graphic {
    display: flex;
    gap: 4px;
}

.handle-bar {
    width: 2px;
    height: 20px;
    background: #fff;
    border-radius: 2px;
}

.drag-hint {
    position: absolute;
    bottom: -30px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    opacity: 0.5;
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    .content { 
        padding: 2rem; 
        bottom: 10%;
        left: 5%;
        width: 90%;
    }
    .day-content { width: 90vw; }
    .night-content { right: 5%; }
}
