:root {
    /* Transitions */
    --transition-speed: 0.3s;
    
    /* Default (Light Theme) Palette */
    --color-bg: #E0D4B8;
    --color-text: #1C1C1E;
    --color-header: #1C1C1E;
    --color-link: #7FB8CC;
    --color-link-hover: #5d98ae;
    --color-button: #A85840;
    --color-button-hover: #8f4833;
    --color-button-text: #FFFFFF;
    --color-neutral: #B8B8B8;
    
    /* Glassmorphism settings */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --color-bg: #1C1C1E;
    --color-text: #e1e1e1; /* Off-white for better readability */
    --color-header: #E0D4B8;
    --color-link: #7FB8CC;
    --color-link-hover: #98d1e5;
    --color-button: #7FB8CC;
    --color-button-hover: #67a2b7;
    --color-button-text: #1C1C1E;
    
    /* Glassmorphism for dark mode */
    --glass-bg: rgba(28, 28, 30, 0.4);
    --glass-border: rgba(224, 212, 184, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    line-height: 1.6;
}

/* Typography */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-header);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    transition: color var(--transition-speed) ease;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-link-hover);
}

/* Parallax Background */
.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.layer {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: transform 0.1s ease-out;
}

.layer-bg {
    background-image: url('3.webp');
    z-index: 1;
}

.layer-person {
    background-image: url('2.webp');
    z-index: 2;
    /* Move the person image slightly to the right/bottom depending on how it's cut */
    background-position: bottom right;
    background-size: contain; 
}

/* Add a subtle overlay so text remains readable against dynamic backgrounds */
.parallax-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(28, 28, 30, 0.2) 0%, rgba(224, 212, 184, 0.1) 100%);
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: overlay;
}
[data-theme="dark"] .parallax-container::after {
    background: linear-gradient(135deg, rgba(28, 28, 30, 0.7) 0%, rgba(28, 28, 30, 0.4) 100%);
}

/* UI Controls */
.controls {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 100;
    opacity: 0;
    animation: fadeInControls 0.8s ease forwards 2s;
}

@keyframes fadeInControls {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.control-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 6px var(--glass-shadow);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--glass-shadow);
    background: rgba(255,255,255,0.4);
}
[data-theme="dark"] .control-btn:hover {
    background: rgba(255,255,255,0.15);
}

/* Main Content */
.content-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    /* Adjust padding to not hide behind person on desktop if they are on right */
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 8px 32px var(--glass-shadow);
    z-index: 10;
    transform: translateY(0);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Identity List */
.identity-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.identity-list li {
    font-size: 1.1rem;
    font-weight: 300;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: var(--color-button);
    color: var(--color-button-text) !important;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-weight: 400;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all var(--transition-speed) ease;
}

.link-btn:hover {
    background-color: var(--color-button-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.link-btn svg {
    transition: transform 0.2s ease;
}

.link-btn:hover svg {
    transform: translate(2px, -2px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.social-icon {
    color: var(--color-neutral);
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--color-button);
    transform: scale(1.1) translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .glass-card {
        padding: 2rem;
        margin-top: 4rem; /* ensure header btns have space */
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .identity-list li {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .controls {
        top: 1rem;
        right: 1rem;
    }
    
    .layer-person {
        /* Move persona up slightly on mobile so they don't get covered completely? 
        Actually bottom right without contain might clip strangely. Cover or contain? */
        background-size: cover;
        background-position: center bottom;
    }
}
