:root {
    --burgundy: #5B0E14;
    --burgundy-dark: #3d090d;
    --burgundy-light: #7a1a22;
    --gold: #F1E194;
    --gold-dark: #d4c476;
    --gold-light: #f5eab5;
    --white: #FFFFFF;
    --off-white: #FAF9F6;
    --cream: #F5F3EE;
    --gray-100: #E8E6E1;
    --gray-200: #D1CEC6;
    --gray-300: #9A968C;
    --gray-400: #6B675D;
    --gray-500: #4A473F;
    --black: #1A1815;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-lg: 0 20px 60px rgba(91, 14, 20, 0.15);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--off-white);
    color: var(--gray-500);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--burgundy);
    border-radius: 10px;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--burgundy);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: normal;
    /* Changed back to normal for better control */
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--burgundy);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.3s var(--ease-out-expo);
    opacity: 0.4;
}

/* Transition Overlay */
#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 300vmax;
    height: 300vmax;
    border-radius: 50%;
    background: #1a1815;
    /* Dark color for transition */
    transform: translate(-50%, -50%) scale(0);
    z-index: 9999;
    pointer-events: none;
    /* Transition controlled by JS animation for more control */
}

/* Toast */
.toast {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--burgundy);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.5s var(--ease-out-expo);
    z-index: 10000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast svg {
    color: var(--gold);
}

/* Main Section */
.main-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-circle-1 {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
    opacity: 0.5;
    border-radius: 50%;
    animation: float1 20s ease-in-out infinite;
}

.bg-circle-2 {
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, var(--burgundy-light) 0%, transparent 70%);
    opacity: 0.25;
    border-radius: 50%;
    animation: float2 25s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(30px, -20px);
    }

    50% {
        transform: translate(-20px, 30px);
    }

    75% {
        transform: translate(20px, 20px);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(-25px, 15px);
    }

    66% {
        transform: translate(25px, -25px);
    }
}

/* Content Layout */
.content-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    /* Adjusted for balance */
    position: relative;
    z-index: 10;
}

/* Left - Signature */
.signature-side {
    position: relative;
    flex-shrink: 0;
    /* Ensure mouse tracking area behaves predictably */
    padding: 10px;
}

.signature-wrapper {
    position: relative;
    width: 300px;
    height: auto;
    display: grid;
    grid-template-areas: "stack";
    place-items: center;
}

/* Layer that creates the Gold Gradient Text - Acts as Spotlight Object */
.gold-signature {
    grid-area: stack;
    width: 100%;
    height: 100%;

    /* 1. The Look: "Live" Liquid Gold Texture */
    background:
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.4) 0%, transparent 60%),
        linear-gradient(45deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    background-size: 150% 150%;
    background-blend-mode: overlay, normal;
    animation: shine 4s ease infinite;
    filter: brightness(1.2) contrast(1.1);

    /* 2. The Shape: Signature Text */
    /* We need to apply the signature shape mask AND the spotlight mask together */
    /* Standard CSS Masking: Composite */

    /* Mask 1: The Image (Signature Shape) */
    /* Mask 2: The Spotlight (Moving Circle) */

    -webkit-mask-image:
        radial-gradient(circle 50px at var(--x, -100%) var(--y, -100%), black 20%, transparent 80%),
        url('alairas.png');

    mask-image:
        radial-gradient(circle 50px at var(--x, -100%) var(--y, -100%), black 20%, transparent 80%),
        url('alairas.png');

    /* Composite: Source-In (Show gradient where BOTH masks overlap) */
    /* Actually simpler: Use mask-composite */
    -webkit-mask-composite: source-in;
    /* For non-standard webkit */
    mask-composite: intersect;
    /* Standard */

    /* Fallback/Correction for WebKit (Chrome/Safari) often needs 'source-in' logic differently applied or just stacking */
    /* Alternative robust method: Mask the CONTAINER with the image, then mask the inner div with the spotlight. 
       But here we are one element. */
    /* Let's try the robust single-mask variable approach if composite is flaky. */

    -webkit-mask-size: 100% 100%, contain;
    mask-size: 100% 100%, contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;

    pointer-events: none;
    z-index: 2;
    transition: opacity 0.2s;
}

/* Base layer effectively hidden, acting as layout spacer usually, but here grid stacks them.
   We hide it to let the Ink layer shine. */
.signature-base {
    grid-area: stack;
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    /* Hidden in favor of Ink Layer */
    z-index: 1;
    user-select: none;
    -webkit-user-drag: none;
}

/* Glossy Ink Layer (Default Mode Star) */
.ink-signature {
    grid-area: stack;
    width: 100%;
    height: 100%;

    /* Simulate Wet Black Ink with Glossy Highlights */
    background: linear-gradient(135deg,
            #0a0a0a 0%,
            #2b2b2b 25%,
            #000000 50%,
            #3d3d3d 75%,
            #1a1a1a 100%);
    background-size: 200% 200%;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    /* Slight depth */

    /* Masking to signature shape */
    -webkit-mask-image: url('alairas.png');
    mask-image: url('alairas.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;

    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;

    /* Subtle shine animation to make it look "wet" or "fresh" */
    animation: inkShine 8s ease-in-out infinite;
}

@keyframes inkShine {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Remove old spotlight-layer as it is now redundant/merged logic */
.spotlight-layer {
    display: contents;
    /* Just let children exist in the grid */
}

/* Active State */
.signature-wrapper:hover .spotlight-layer {
    opacity: 1;
}

@keyframes shine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* Platinum Layer (Hidden by default) */
.platinum-signature {
    grid-area: stack;
    width: 100%;
    height: 100%;

    /* High Contrast Metallic Platinum Gradient */
    background: linear-gradient(90deg,
            #909090 0%,
            #e8e8e8 20%,
            #ffffff 35%,
            #c0c0c0 50%,
            #ffffff 65%,
            #e8e8e8 80%,
            #909090 100%);
    background-size: 300% 100%;
    animation: platinumShine 8s linear infinite;

    /* Masking */
    -webkit-mask-image: url('alairas.png');
    mask-image: url('alairas.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;

    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    /* Below base so spotlight can work on top */
    pointer-events: none;
}

@keyframes platinumShine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

/* --- Easter Egg Global Dark Mode --- */

body {
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.easter-egg-mode {
    background-color: #1a1815;
    /* Dark almost black */
}

/* 1. Base Fades Out - Already hidden, but good to keep */
body.easter-egg-mode .signature-base {
    opacity: 0;
}

/* 1b. Ink Layer Fades Out */
body.easter-egg-mode .ink-signature {
    opacity: 0;
}

/* 2. Platinum Layer Fades In */
body.easter-egg-mode .platinum-signature {
    opacity: 1;
}

/* 3. Spotlight turns Rose Pink */
body.easter-egg-mode .gold-signature {
    background:
        radial-gradient(circle at center, rgba(255, 105, 180, 0.4) 0%, transparent 60%),
        linear-gradient(45deg, #FFB6C1, #FF69B4, #E6E6FA, #FF1493);
    background-size: 200% 200%;
    filter: brightness(1.2) contrast(1.2);
}

/* 3. Text & Elements Adaptation */
body.easter-egg-mode .info-label {
    color: #888;
}

body.easter-egg-mode .info-value {
    color: #f0f0f0;
    /* Platinum white */
}

body.easter-egg-mode .info-email {
    color: #FFB6C1;
    /* Light Pink link */
    border-bottom-color: transparent;
}

body.easter-egg-mode .info-email:hover {
    color: #FF69B4;
    /* Hot Pink hover */
    border-bottom-color: #FF69B4;
}

body.easter-egg-mode .connector-line {
    background: linear-gradient(to bottom, transparent, #C0C0C0, #E0E0E0, #C0C0C0, transparent);
    opacity: 0.2;
}

body.easter-egg-mode .list-line {
    background: linear-gradient(to bottom, transparent, #C0C0C0, #E0E0E0, #C0C0C0, transparent);
}

body.easter-egg-mode .item-dot,
body.easter-egg-mode .connector-dot {
    background: #E0E0E0;
    border-color: #333;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

body.easter-egg-mode .bg-circle-1 {
    background: radial-gradient(circle, rgba(255, 182, 193, 0.15) 0%, transparent 70%);
}

body.easter-egg-mode .bg-circle-2 {
    background: radial-gradient(circle, rgba(230, 230, 250, 0.1) 0%, transparent 70%);
}

body.easter-egg-mode .corner-decoration {
    border-color: #777;
    opacity: 0.3;
}

/* Toast in Easter Egg Mode - Platinum/Pink Premium Look */
body.easter-egg-mode .toast {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #444;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 105, 180, 0.2);
}

body.easter-egg-mode .toast svg {
    color: #FF69B4;
}

body.easter-egg-mode .toast span {
    background: linear-gradient(90deg, #E0E0E0, #FFFFFF, #FFB6C1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Right - Integrated List */
.info-list {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3.5rem;
    padding-left: 2rem;
    min-height: 400px;
    width: fit-content;
    max-width: 600px;
    /* More compact for better centering */
}

/* Vertical Line */
.list-line {
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold), var(--burgundy), var(--gold), transparent);
    opacity: 0.4;
}

.list-item {
    position: relative;
    display: flex;
    align-items: center;
    /* Vertically align dot with text block center */
}

.item-dot {
    position: absolute;
    left: -2rem;
    /* Aligned with the list-line (padding-left: 2rem on parent) */
    /* Half width of line is 0.5px. Dot center should be at -2rem */
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--burgundy);
    border-radius: 50%;
    border: 2px solid var(--off-white);
    box-shadow: 0 0 15px rgba(91, 14, 20, 0.3);
    z-index: 2;
}

.item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.3s ease;
}

.list-item:hover .item-content {
    transform: translateX(10px);
}

.info-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
}

.info-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--black);
    line-height: 1.2;
}

.info-email {
    text-decoration: none;
    color: var(--burgundy);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.info-email:hover {
    color: var(--burgundy-dark);
    border-bottom-color: var(--gold);
}

/* Copy Success Feedback State */
.info-email.copy-success {
    color: #2ecc71 !important;
    border-bottom-color: #2ecc71 !important;
    animation: pulse-success 0.3s ease;
}

body.easter-egg-mode .info-email.copy-success {
    color: #00ff88 !important;
    border-bottom-color: #00ff88 !important;
}

@keyframes pulse-success {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Selection */
::selection {
    background: var(--gold);
    color: var(--burgundy);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* Prevent image dragging */
img {
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* Decorations */
.corner-decoration {
    position: absolute;
    width: 15vw;
    height: 15vw;
    border: 2px solid var(--gray-300);
    /* Darker gray for better visibility on white */
    /* decrease size or increase opacity? User said "barely visible" */
    opacity: 0.4;
    /* Increased from 0.15 */
}

.top-left {
    top: 40px;
    left: 40px;
    border-right: none;
    border-bottom: none;
}

.bottom-right {
    bottom: 40px;
    right: 40px;
    border-left: none;
    border-top: none;
}

/* Navigation Text Buttons */
.links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.text-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    width: max-content;
}

.text-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--burgundy);
    transition: width 0.3s ease;
}

.text-btn:hover {
    color: var(--burgundy);
}

.text-btn:hover::after {
    width: 100%;
}

/* Dark Mode Adaptation for Links */
body.easter-egg-mode .text-btn:hover {
    color: #FFB6C1;
}


/* --- Focus Mode (Focus on Expanded Content) --- */
.info-list.focus-mode .list-item:nth-child(1),
.info-list.focus-mode .list-item:nth-child(2) {
    /* Effectively hide the items */
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    /* Prevent clicks while hidden */
    transform: translateY(-20px);
    /* Slide up slightly */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-list.focus-mode .list-item:nth-child(1) .item-dot,
.info-list.focus-mode .list-item:nth-child(2) .item-dot {
    transform: scale(0);
    /* Shrink dots */
}

/* Ensure the remaining items slide up smoothly */
.list-item {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Accordion & Content Styles --- */
.accordion-item {
    display: flex;
    flex-direction: column;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content.open {
    /* max-height handled by JS for smooth slide */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Books List */
.book-list {
    list-style: none;
    padding-left: 1rem;
    border-left: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.book-item {
    font-size: 0.9rem;
    color: var(--black);
}

.book-author {
    color: var(--gray-400);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Movies Grid */
.movie-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.movie-grid::-webkit-scrollbar {
    display: none;
}

.movie-card {
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.movie-card:hover {
    transform: translateY(-5px);
}

.movie-poster {
    width: 100%;
    border-radius: 4px;
    aspect-ratio: 2/3;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.movie-title {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
}

/* Music Grid */
.music-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.music-grid::-webkit-scrollbar {
    display: none;
}

.music-card {
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.music-card:hover {
    transform: scale(1.05);
}

.music-cover {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    /* CD Look */
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background: #000;
    transition: rotate 20s linear infinite;
}

.music-card:hover .music-cover {
    animation: spin 4s linear infinite;
}

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

/* Easter Egg Mode Adaptations for Content */
body.easter-egg-mode .book-item {
    color: #f0f0f0;
}

body.easter-egg-mode .book-author {
    color: #888;
}

body.easter-egg-mode .book-list {
    border-left-color: #444;
}

/* Responsive */
@media (max-width: 1100px) {
    .signature-wrapper {
        width: 450px;
    }

    .info-value {
        font-size: 1.75rem;
    }
}

@media (max-width: 850px) {
    .content-wrapper {
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }

    .info-list {
        padding-left: 0;
        gap: 3rem;
        align-items: center;
    }

    .list-line {
        display: none;
        /* Hide vertical line on mobile */
    }

    .item-dot {
        display: none;
        /* Hide dots on mobile */
    }

    .list-item:hover .item-content {
        transform: none;
    }
}

@media (max-width: 500px) {
    .signature-wrapper {
        width: 300px;
    }

    .info-value {
        font-size: 1.5rem;
    }
}

/* --- View Transitions API Support --- */
::view-transition-image-pair(root) {
    isolation: isolate;
}

/* --- Optimized Entry Animations (CSS-Driven) --- */

/* Initial States (Hidden/Pre-transform) */
.signature-wrapper {
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.list-line {
    transform: scaleY(0);
    transform-origin: top;
    will-change: transform;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.item-content {
    opacity: 0;
    transform: translateX(20px);
    will-change: opacity, transform;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.item-dot {
    transform: translateX(-50%) scale(0);
    /* Keep translateX(-50%) alignment */
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.corner-decoration {
    opacity: 0;
    transition: opacity 1s ease;
}

/* Loaded States (Triggered by body.loaded) */
body.loaded .signature-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

body.loaded .list-line {
    transform: scaleY(1);
    transition-delay: 0.6s;
}

/* Staggered List Items */
/* Item 1 (2nd child of .info-list because list-line is 1st) */
body.loaded .list-item:nth-child(2) .item-dot {
    transform: translateX(-50%) scale(1);
    transition-delay: 1.0s;
}

body.loaded .list-item:nth-child(2) .item-content {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 1.0s;
}

/* Item 2 (3rd child) */
body.loaded .list-item:nth-child(3) .item-dot {
    transform: translateX(-50%) scale(1);
    transition-delay: 1.3s;
}

body.loaded .list-item:nth-child(3) .item-content {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 1.3s;
}

/* Item 3 (4th child) - New Interests Section */
body.loaded .list-item:nth-child(4) .item-dot {
    transform: translateX(-50%) scale(1);
    transition-delay: 1.6s;
}

body.loaded .list-item:nth-child(4) .item-content {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 1.6s;
}

/* Staggered Corners */
/* Top Left (1st .corner-decoration in DOM usually, but we can target by class if needed or generic nth-child if they share parent) */
/* They are siblings in .main-section. */
body.loaded .corner-decoration.top-left {
    opacity: 0.15;
    transition-delay: 1.5s;
}

body.loaded .corner-decoration.bottom-right {
    opacity: 0.15;
    transition-delay: 1.7s;
}

/* --- Custom Context Menu --- */
.context-menu {
    position: fixed;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    display: none;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.context-menu.visible {
    display: block;
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.menu-header {
    padding: 8px 16px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 4px;
}

.menu-item {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #1a1815;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease;
}

.menu-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.menu-item .flag {
    font-size: 1.1rem;
}

/* Dark Mode (Easter Egg) Context Menu */
body.easter-egg-mode .context-menu {
    background: rgba(26, 24, 21, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

body.easter-egg-mode .menu-item {
    color: #FAF9F6;
}

body.easter-egg-mode .menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.easter-egg-mode .menu-header {
    color: #666;
    border-color: rgba(255, 255, 255, 0.05);
}

/* Theme Toggle Highlighting */
.scheme-dark,
.scheme-light {
    transition: all 0.3s ease;
    opacity: 0.4;
    display: inline-block;
}

body.easter-egg-mode .scheme-dark {
    opacity: 1;
    text-decoration: underline;
    font-weight: 700;
}

body:not(.easter-egg-mode) .scheme-light {
    opacity: 1;
    text-decoration: underline;
    font-weight: 700;
}


/* Hide dots of commented out items if they were not fully removed from DOM */
/* --- Info Container & Language Hint --- */
.info-container {
    position: fixed;
    top: 60px;
    left: 60px;
    z-index: 1000;
}

.info-toggle {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s var(--ease-out-expo);
    opacity: 0;
    transform: scale(0.8);
}

body.loaded .info-toggle {
    opacity: 1;
    transform: scale(1);
}

.info-toggle:hover {
    background: var(--gold);
    color: var(--burgundy);
    transform: scale(1.1);
}

.info-content {
    position: absolute;
    top: 0;
    left: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--gold);
    border-radius: 4px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 15px 45px rgba(91, 14, 20, 0.1);
    transform: translateX(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s var(--ease-out-expo);
    white-space: nowrap;
}

.info-container.expanded .info-content {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}

.info-container.expanded .info-toggle {
    background: var(--burgundy);
    color: var(--gold);
    border-color: var(--burgundy);
}

.hint-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--burgundy);
}

.hint-icon {
    width: 20px;
    height: 1px;
    background: var(--gold);
    display: inline-block;
}

.info-divider {
    width: 1px;
    height: 20px;
    background: var(--gray-100);
    margin: 0 5px;
}

.made-by-details {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: none;
    letter-spacing: normal;
}

.dot-separator {
    color: var(--gold);
    font-size: 1rem;
}

.hint-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--gray-300);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hint-close:hover {
    color: var(--burgundy);
    transform: scale(1.2);
}

/* Context Menu Updates */
.menu-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-section:last-child {
    border-bottom: none;
}

.context-email {
    text-decoration: none;
    color: var(--burgundy) !important;
}

.disabled-item {
    cursor: default !important;
    opacity: 0.6;
    font-size: 0.75rem !important;
}

.disabled-item:hover {
    background: transparent !important;
}

body.easter-egg-mode .context-email {
    color: var(--gold) !important;
}

/* Dark Mode Hint */
body.easter-egg-mode .info-toggle {
    background: rgba(26, 24, 21, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--gold);
}

body.easter-egg-mode .info-content {
    background: rgba(26, 24, 21, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

body.easter-egg-mode .info-divider {
    background: rgba(255, 255, 255, 0.1);
}

body.easter-egg-mode .made-by-details {
    color: var(--gray-300);
}

body.easter-egg-mode .hint-content {
    color: var(--gold);
}

body.easter-egg-mode .hint-icon {
    background: var(--burgundy-light);
}

/* Mobile Optimization */
@media (max-width: 850px) {
    .info-container {
        top: 25px;
        left: 25px;
        right: auto;
    }

    .info-content {
        left: 0;
        top: 45px;
        width: calc(100vw - 50px);
        max-width: 320px;
        white-space: normal;
        padding: 15px;
        flex-direction: row;
        justify-content: space-between;
    }

    .hint-content {
        font-size: 0.75rem;
    }
}

/* Touch device hint toggle - since hover isn't great on mobile */
@media (hover: none) {
    .info-container.expanded .info-content {
        transform: translateX(0);
        opacity: 1;
        pointer-events: all;
    }
}

/* --- Professional Experience Grid & Toggle --- */
.experience-toggle-wrapper {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}

.btn-separator {
    color: var(--gold);
    opacity: 0.5;
    font-size: 0.8rem;
}

.experience-btn {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--burgundy);
    cursor: pointer;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--gold);
    transition: all 0.3s ease;
    opacity: 0.7;
    text-decoration: none;
    display: inline-block;
}


.experience-btn:hover {
    opacity: 1;
    color: var(--burgundy-dark);
    border-bottom-color: var(--burgundy);
}

.experience-container {
    max-height: 0;
    overflow: hidden;
    transition: all 0.8s var(--ease-out-expo);
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.experience-container.open {
    max-height: 800px;
    opacity: 1;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns is better for width management */
    gap: 1.5rem;
    padding-left: 0.5rem;
    max-width: 900px;
}

.experience-item {
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-400);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.exp-dot {
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 6px;
    height: 1px;
    background: var(--burgundy);
    opacity: 0.6;
}

body.easter-egg-mode .exp-dot {
    background: var(--gold);
    opacity: 1;
}

body.easter-egg-mode .experience-btn {
    color: var(--gold);
}

body.easter-egg-mode .experience-item {
    color: var(--gray-300);
}

@media (max-width: 1200px) {
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

/* --- Dino Game Modal --- */
.dino-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.dino-modal.active {
    opacity: 1;
    pointer-events: all;
}

.dino-container {
    background: var(--off-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 650px;
    position: relative;
    border: 1px solid var(--gold);
    overflow: hidden;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.dino-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(91, 14, 20, 0.85);
    /* Burgundy overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.dino-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.dino-overlay h2 {
    font-family: var(--font-display);
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    letter-spacing: 0.1em;
}

.dino-restart-btn {
    background: var(--gold);
    color: var(--burgundy);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dino-restart-btn:hover {
    background: var(--white);
    transform: scale(1.05);
}

body.easter-egg-mode .dino-overlay {
    background: rgba(26, 24, 21, 0.9);
}

body.easter-egg-mode .dino-restart-btn {
    background: var(--gold);
    color: var(--black);
}

body.easter-egg-mode .dino-restart-btn:hover {
    background: #fff;
}


body.easter-egg-mode .dino-container {
    background: #1a1815;
}

.dino-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dino-header h3 {
    font-family: var(--font-display);
    color: var(--burgundy);
    margin: 0;
}

body.easter-egg-mode .dino-header h3 {
    color: var(--gold);
}

.dino-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.3s;
}

.dino-close:hover {
    color: var(--burgundy);
}

#dino-canvas {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid var(--gray-100);
}

body.easter-egg-mode #dino-canvas {
    background: #2a2825;
    border-color: #444;
}

.dino-instructions {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray-400);
    font-weight: 500;
}

.dino-score {
    text-align: right;
    margin-top: 10px;
    font-weight: 700;
    color: var(--burgundy);
    font-family: var(--font-body);
}

body.easter-egg-mode .dino-score {
    color: var(--gold);
}

.secret-item {
    color: var(--gold-dark) !important;
    font-style: italic;
    font-weight: 600 !important;
}

.secret-item:hover {
    color: var(--burgundy) !important;
    background: rgba(241, 225, 148, 0.1) !important;
}

@media (max-width: 600px) {
    .dino-container {
        padding: 1rem;
    }
}