:root {
    --bg-color: hsl(0, 0%, 8%); /* Very dark charcoal: #141414 */
    --text-color-main: hsl(0, 0%, 90%); /* Off-white: #E5E5E5 */
    --text-color-subtle: hsl(0, 0%, 55%); /* Grey: #8C8C8C */
    --accent-color: hsl(43, 60%, 65%); /* Muted Gold: #C9AE5D */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html,
body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color-main);
    overflow-x: hidden;
    /* Subtle animated gradient background */
    background: linear-gradient(-45deg, #0f0f0f, #1a1a1a, #0a0a0a, #161616);
    background-size: 400% 400%;
    animation: atmosphericFlow 30s ease infinite;
}

@keyframes atmosphericFlow {
    0%, 100% { 
        background-position: 0% 50%;
        filter: brightness(1);
    }
    25% { 
        background-position: 100% 50%;
        filter: brightness(1.05);
    }
    50% { 
        background-position: 100% 100%;
        filter: brightness(0.98);
    }
    75% { 
        background-position: 0% 100%;
        filter: brightness(1.02);
    }
}

.digital-presence-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 3rem 1.5rem;
    text-align: center;
    width: 100%;
    opacity: 0;
    animation: containerReveal 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

@keyframes containerReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.core-content {
    max-width: 700px;
    width: 100%;
}

.name {
    font-weight: 600;
    font-size: clamp(3.5rem, 12vw, 5.5rem); /* Increased minimum from 2.8rem to 3.5rem */
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--text-color-main);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: nameReveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes nameReveal {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
        letter-spacing: 0.1em;
    }
    60% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: -0.02em;
    }
}

.name-line {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.name-line:hover {
    color: var(--accent-color);
    transform: translateY(-1px) scale(1.02);
    text-shadow: 0 4px 15px rgba(201, 174, 93, 0.4);
}

.bio-statement {
    font-weight: 300;
    font-size: clamp(1.2rem, 3.5vw, 1.3rem); /* Increased minimum from 1rem to 1.2rem */
    line-height: 1.6;
    color: var(--text-color-main);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: contentFloat 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.4s forwards;
}

.bio-statement:nth-child(2) {
    animation-delay: 1.6s;
}

.bio-statement:nth-child(3) {
    animation-delay: 1.8s;
}

@keyframes contentFloat {
    0% {
        opacity: 0;
        transform: translateY(30px) translateX(-10px);
        filter: blur(0.5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateX(0);
        filter: blur(0);
    }
}

.identity-separator,
.endeavor-separator {
    color: var(--text-color-subtle);
    font-weight: 300;
    margin: 0 0.25em;
    /* Removed transition and display properties */
}

.current-endeavor {
    font-weight: 300;
    font-size: clamp(1.1rem, 3vw, 1.2rem); /* Increased minimum from 0.95rem to 1.1rem */
    line-height: 1.7;
    color: var(--text-color-main);
    opacity: 0;
    animation: finalReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) 2.2s forwards;
}

@keyframes finalReveal {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.95);
    }
    70% {
        opacity: 0.9;
        transform: translateY(-2px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.endeavor-role, .endeavor-focus-intro {
     font-weight: 300;
}

.endeavor-role {
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
    position: relative;
}

.endeavor-role:hover {
    color: var(--accent-color);
    transform: translateY(-1px) scale(1.02);
    text-shadow: 0 4px 15px rgba(201, 174, 93, 0.4);
}

.endeavor-role::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -4px;
    right: -4px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(201, 174, 93, 0.1), transparent);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.endeavor-role:hover::before {
    opacity: 1;
}

.interactive-link {
    font-weight: 400;
    color: var(--text-color-main);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
}

/* Desktop hover effects */
@media (hover: hover) {
    .interactive-link {
        border-bottom: none;
        padding: 0 0 2px 0;
    }
    
    .interactive-link:hover,
    .interactive-link:focus {
        color: var(--accent-color);
        outline: none;
        transform: translateY(-1px) scale(1.02);
        text-shadow: 0 4px 15px rgba(201, 174, 93, 0.4);
    }
    
    .interactive-link:hover::after,
    .interactive-link:focus::after {
        width: 100%;
        height: 2px;
        box-shadow: 0 0 12px rgba(201, 174, 93, 0.6);
        transform: scaleX(1.05);
    }
}

/* Touch device specific styling */
@media (hover: none) {
    .interactive-link {
        color: var(--accent-color);
        font-weight: 500;
    }
    
    .interactive-link:active {
        transform: scale(0.98);
    }
}

/* Enhanced mobile styles */
@media (max-width: 480px) {
    .digital-presence-marker {
        padding: 2rem 1.25rem;
    }
    
    .name {
        font-size: clamp(3rem, 15vw, 4.5rem);
        margin-bottom: 2rem;
    }
    
    .bio-statement {
        font-size: clamp(1.1rem, 4vw, 1.25rem);
        margin-bottom: 1.25rem;
    }
    
    .current-endeavor {
        font-size: clamp(1rem, 3.5vw, 1.15rem);
    }
    
    .interactive-link {
        padding: 6px 4px 4px 4px;
        margin: 0 2px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width: 360px) {
    .name {
        font-size: clamp(2.5rem, 16vw, 4rem);
    }
    
    .bio-statement {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
    }
    
    .current-endeavor {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
    }
}
