@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    /* White Aesthetic Palette with Forest & Sage Green */
    --bg-page: #fdf5e6;
    --bg-green: #fdf5e6; /* Fallback for existing components */
    --surface-card: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.88);
    --surface-subtle: #f5f8f5;

    /* Forest Green tones inspired by the editorial reference */
    --forest-deep: #1e4528;
    --forest-primary: #346841;
    --forest-accent: #3e7b4f;
    --forest-mid: #498e5b;
    --forest-hover: #295333;
    --sage-light: #e8efe9;
    --sage-pill: #edf3ee;
    --sage-border: rgba(30, 58, 43, 0.12);

    /* Mapped compatibility tokens */
    --gold: #346841;
    --gold-dim: rgba(30, 58, 43, 0.12);
    --gold-light: rgba(30, 58, 43, 0.25);
    --gold-glow: rgba(46, 83, 61, 0.08);

    /* Typography tones */
    --text-cream: #1e4528;
    --text-main: #1e4528;
    --text-body: #3c4f44;
    --text-muted: #647b6e;
    --text-light: #ffffff;

    /* Liquid Glass & Curved Editorial Tokens */
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-full: 9999px;

    --glass-blur: blur(20px) saturate(140%);
    --liquid-bg: #ffffff;
    --liquid-border: 1px solid rgba(30, 58, 43, 0.1);
    --liquid-border-top: 1px solid rgba(255, 255, 255, 0.95);
    --liquid-shadow: 0 12px 35px rgba(22, 47, 33, 0.05), 0 2px 6px rgba(22, 47, 33, 0.02);
    --liquid-shadow-hover: 0 20px 48px rgba(22, 47, 33, 0.1), 0 4px 12px rgba(22, 47, 33, 0.04);
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Google Gemini-Style Atmospheric Blurred Background Animation */
.gemini-bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.gemini-bg-mesh .mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(75px);
    opacity: 0.72;
    mix-blend-mode: multiply;
    will-change: transform;
}

/* Luminous Mint-Jade Glow (Center-Top Flow) */
.gemini-bg-mesh .mesh-orb-1 {
    width: 65vw;
    height: 55vh;
    top: -12vh;
    left: 8vw;
    background: radial-gradient(circle, rgba(98, 222, 148, 0.76) 0%, rgba(142, 230, 180, 0.48) 45%, rgba(205, 246, 222, 0.2) 72%, transparent 85%);
    animation: geminiOrbit1 9s ease-in-out infinite alternate;
}

/* Warm Golden Sunbeam Yellow (Top-Right) */
.gemini-bg-mesh .mesh-orb-2 {
    width: 65vw;
    height: 60vh;
    top: -15vh;
    right: 5vw;
    background: radial-gradient(circle, rgba(255, 224, 98, 0.78) 0%, rgba(255, 236, 148, 0.5) 45%, rgba(255, 248, 200, 0.2) 72%, transparent 85%);
    animation: geminiOrbit2 10s ease-in-out infinite alternate;
}

/* Radiant Emerald Silk Glow (Right Edge) */
.gemini-bg-mesh .mesh-orb-3 {
    width: 65vw;
    height: 65vw;
    top: 25vh;
    right: -15vw;
    background: radial-gradient(circle, rgba(82, 206, 138, 0.74) 0%, rgba(135, 224, 175, 0.45) 45%, rgba(198, 244, 218, 0.18) 70%, transparent 85%);
    animation: geminiOrbit3 12s ease-in-out infinite alternate;
}

/* Fresh Lime-Mint Aurora Glow (Bottom Flow) */
.gemini-bg-mesh .mesh-orb-4 {
    width: 70vw;
    height: 65vh;
    bottom: -18vh;
    left: 10vw;
    background: radial-gradient(circle, rgba(162, 235, 118, 0.72) 0%, rgba(206, 242, 155, 0.45) 45%, rgba(238, 250, 204, 0.18) 72%, transparent 85%);
    animation: geminiOrbit4 11s ease-in-out infinite alternate;
}

/* Sunny Buttercup Amber Glow (Left Floating Core) */
.gemini-bg-mesh .mesh-orb-5 {
    width: 55vw;
    height: 55vw;
    top: 30vh;
    left: -12vw;
    background: radial-gradient(circle, rgba(255, 228, 118, 0.74) 0%, rgba(255, 210, 100, 0.46) 45%, rgba(255, 244, 185, 0.18) 72%, transparent 85%);
    animation: geminiOrbit5 8.5s ease-in-out infinite alternate;
}

@keyframes geminiOrbit1 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(14vw, 10vh) scale(1.22) rotate(18deg);
    }
    100% {
        transform: translate(-10vw, 16vh) scale(0.88) rotate(-14deg);
    }
}

@keyframes geminiOrbit2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-14vw, 12vh) scale(1.2);
    }
    100% {
        transform: translate(-8vw, 20vh) scale(0.9);
    }
}

@keyframes geminiOrbit3 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-16vw, -12vh) scale(1.24);
    }
    100% {
        transform: translate(-10vw, 18vh) scale(0.85);
    }
}

@keyframes geminiOrbit4 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-14vw, -15vh) scale(1.18);
    }
    100% {
        transform: translate(16vw, -8vh) scale(1.12);
    }
}

@keyframes geminiOrbit5 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(15vw, -12vh) scale(1.24);
    }
    100% {
        transform: translate(8vw, 16vh) scale(0.86);
    }
}

body.entry-active {
    overflow: hidden;
    height: 100vh;
}

body.entry-active main,
body.entry-active nav {
    opacity: 0;
    pointer-events: none;
}

main, nav {
    transition: opacity 0.8s ease;
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--forest-deep);
}

.gold-text {
    color: var(--forest-primary);
}

.cream-text {
    color: var(--forest-deep);
}

/* Entry Portal / Launch Page - Minimal Green Edition */
#entry-portal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e2fbe7;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    user-select: none;
}

/* 8-Bit Dino Game Fullscreen Canvas */
.dino-game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    cursor: pointer;
}

/* Subtle cinematic atmospheric lighting & vignette for depth */
#entry-portal::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle at 86% 38%, rgba(186, 235, 120, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 50% 50%, transparent 65%, rgba(22, 52, 38, 0.05) 100%);
}

/* Retro Score Board in Top Right */
.dino-score-board {
    position: absolute;
    top: 28px;
    right: 36px;
    z-index: 10;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #173b2a;
    background: rgba(226, 251, 231, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 9999px;
    border: 1.5px solid rgba(23, 59, 42, 0.2);
    box-shadow: 0 4px 14px rgba(23, 59, 42, 0.08);
}

.dino-score-board .score-hi {
    color: rgba(23, 59, 42, 0.55);
    margin-right: 14px;
}

.dino-score-board .score-now {
    color: #173b2a;
}

/* Interactive Hint Prompt */
.dino-hint-prompt {
    margin-top: 26px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(23, 59, 42, 0.22);
    padding: 8px 22px;
    border-radius: 9999px;
    font-family: 'Plus Jakarta Sans', monospace, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #173b2a;
    box-shadow: 0 4px 16px rgba(23, 59, 42, 0.08);
    transition: opacity 0.35s ease, transform 0.35s ease;
    animation: dinoPromptFloat 2.4s ease-in-out infinite alternate;
}

@keyframes dinoPromptFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

.dino-pulse-dot {
    width: 8px;
    height: 8px;
    background: #4caf7c;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #4caf7c;
    animation: dinoDotBlink 1.2s infinite;
}

@keyframes dinoDotBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.dino-hint-prompt.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

/* Game Over Overlay - Sleek Retro Minimalist */
.dino-game-over {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(230, 250, 233, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid #173b2a;
    padding: 14px 28px;
    border-radius: 9999px;
    box-shadow: 0 6px 20px rgba(23, 59, 42, 0.12);
    animation: dinoPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

@keyframes dinoPopIn {
    0% { opacity: 0; transform: scale(0.94); }
    100% { opacity: 1; transform: scale(1); }
}

.dino-game-over.hidden {
    display: none !important;
}

.game-over-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 6px;
    color: #173b2a;
    line-height: 1.2;
}

.game-over-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(23, 59, 42, 0.7);
}

.portal-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.72;
}

body:not(.entry-active) #entry-portal {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Corner Logo - Clean Organic 'A' Badge in Top Left */
.portal-corner-logo {
    position: absolute;
    top: 36px;
    left: 44px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.portal-corner-logo:hover {
    transform: scale(1.06);
    opacity: 0.88;
}

.portal-brand-mark {
    width: 42px;
    height: 46px;
    display: block;
}

/* Center Core Content */
.portal-center-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    margin-top: -12px;
}

/* Big Bold Dark Forest Green Title */
.portal-main-heading {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(3.2rem, 7vw, 5.2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #173b2a;
    line-height: 1.1;
    margin: 0 0 34px 0;
    text-transform: uppercase;
    user-select: none;
}

/* Action Group with Pill Buttons */
.portal-action-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* Modern Minimalist Pill Buttons */
.portal-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 164px;
    height: 52px;
    padding: 0 28px;
    border-radius: 9999px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.portal-pill-btn .pill-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* Outline Pill (Personal) */
.portal-pill-outline {
    background: transparent;
    border: 1.6px solid #1a3d2f;
    color: #1a3d2f;
}

.portal-pill-outline:hover {
    background: rgba(26, 61, 47, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 61, 47, 0.1);
}

/* Tools Pill Button */
.portal-pill-tools {
    background: rgba(26, 61, 47, 0.12);
    border: 1.6px solid #1a3d2f;
    color: #1a3d2f;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.portal-pill-tools:hover {
    background: #1a3d2f;
    color: #f4ede2;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(26, 61, 47, 0.22);
}

/* Filled Pill (Portfolio) */
.portal-pill-filled {
    background: #173b2a;
    border: 1.6px solid #173b2a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(23, 59, 42, 0.16);
}

.portal-pill-filled:hover {
    background: #0f281c;
    border-color: #0f281c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(23, 59, 42, 0.28);
}

@media (max-width: 640px) {
    .portal-corner-logo {
        top: 24px;
        left: 24px;
    }
    .portal-brand-mark {
        width: 34px;
        height: 38px;
    }
    .portal-main-heading {
        font-size: 2.8rem;
        margin-bottom: 26px;
    }
    .portal-action-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .portal-pill-btn {
        width: 100%;
        max-width: 260px;
    }
}

/* Nav Brand Logo */
.nav-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Buttons */
.royal-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 32px;
    border: 1px solid rgba(30, 58, 43, 0.22);
    border-radius: var(--radius-full);
    color: var(--forest-primary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(22, 47, 33, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.royal-btn:hover {
    background: var(--forest-primary);
    color: #ffffff;
    border-color: var(--forest-primary);
    box-shadow: 0 8px 24px rgba(30, 58, 43, 0.2);
    transform: translateY(-2px);
}

.primary-btn {
    background: var(--forest-primary);
    color: #ffffff;
    border: 1px solid var(--forest-primary);
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(30, 58, 43, 0.16);
}

.primary-btn:hover {
    background: var(--forest-accent);
    color: #ffffff;
    border-color: var(--forest-accent);
    box-shadow: 0 10px 28px rgba(30, 58, 43, 0.26);
    transform: translateY(-2px);
}

/* Navigation - Floating White Glass Island */
.royal-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 1160px);
    padding: 16px 36px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(30, 58, 43, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-full);
    box-shadow: 0 12px 35px rgba(22, 47, 33, 0.05), 0 2px 6px rgba(22, 47, 33, 0.02);
    transition: all 0.4s ease;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand i {
    font-size: 0.75rem;
    color: var(--forest-mid);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--forest-primary);
    text-shadow: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
}

.nav-links a:hover {
    color: var(--forest-primary);
    background: var(--sage-pill);
}

/* Nav Hamburger / Collapse Button */
.nav-hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    transition: background-color 0.25s ease, transform 0.2s ease;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
}

.nav-hamburger:hover,
.nav-hamburger:focus-visible {
    background: var(--sage-pill);
    outline: none;
}

.hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--forest-primary);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    transform-origin: center;
}

/* Hamburger Active State: morph into an 'X' */
.nav-hamburger.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav Backdrop Overlay */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(18, 36, 26, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Main Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 24px 90px;
    display: flex;
    flex-direction: column;
    gap: 110px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--forest-deep);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 18px;
    text-shadow: none;
}

.section-title::after {
    content: '✧';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--forest-mid);
    font-size: 1rem;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 65vh;
    gap: 50px;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.hero-text h2 {
    color: var(--forest-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    font-family: var(--font-body);
    font-weight: 700;
    background: var(--sage-pill);
    padding: 7px 18px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(30, 58, 43, 0.1);
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    white-space: nowrap;
}

.typewriter-cursor {
    display: inline-block;
    color: var(--forest-primary);
    font-weight: 300;
    margin-left: 3px;
    animation: blinkCursor 0.85s infinite;
}

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

.hero-text h1 {
    font-size: 5.2rem;
    line-height: 1.05;
    color: var(--forest-deep);
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
    text-shadow: none;
    min-height: 1.1em;
    display: inline-flex;
    align-items: baseline;
}

.hero-text h1 span {
    font-style: normal;
    font-weight: 400;
    color: var(--forest-accent);
}

.hero-text h1 .typewriter-name-first {
    color: var(--forest-deep);
    font-weight: 800;
}

.hero-text h1 .typewriter-name-last {
    color: var(--forest-accent);
    font-weight: 400;
}

.typewriter-name-cursor {
    display: inline-block;
    color: var(--forest-accent);
    font-weight: 300;
    font-style: normal;
    margin-left: 4px;
    animation: blinkCursor 0.85s infinite;
}

.hero-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 460px;
    font-weight: 400;
    line-height: 1.75;
}

.hero-text p.animate-in {
    animation: heroFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(30, 58, 43, 0.14);
    border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
    z-index: -1;
    background: radial-gradient(circle at 30% 20%, rgba(46, 83, 61, 0.06) 0%, transparent 70%);
    filter: drop-shadow(0 15px 30px rgba(22, 47, 33, 0.04));
}

.profile-frame {
    width: 380px;
    height: 520px;
    border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(30, 58, 43, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 45px rgba(22, 47, 33, 0.07);
    background: #ffffff;
    position: relative;
}

.profile-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 40%, rgba(30, 58, 43, 0.06) 100%);
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-frame:hover img {
    transform: scale(1.04);
}

/* About & Full Width */
.full-width {
    padding: 60px 70px;
    border: var(--liquid-border);
    border-top: var(--liquid-border-top);
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--liquid-shadow);
    text-align: center;
    font-size: 1.35rem;
    line-height: 1.85;
    font-family: var(--font-serif);
    color: var(--forest-deep);
    position: relative;
    overflow: hidden;
}

.full-width::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(46, 83, 61, 0.2), transparent);
}

.contact-chips {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 18px;
}

/* Contact chips are always fully visible */
.about-card .contact-chips {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}


/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 36px;
}

/* Cards with Clean Aesthetic Glass / White Effect */
.royal-card {
    padding: 42px;
    border: var(--liquid-border);
    border-top: var(--liquid-border-top);
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--liquid-shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.royal-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--forest-deep);
}

.royal-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.royal-card i {
    font-size: 2rem;
    color: var(--forest-accent);
}

/* Project Cards */
.project-card {
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 250px;
    border-bottom: 1px solid rgba(30, 58, 43, 0.08);
    overflow: hidden;
    position: relative;
    background: var(--surface-subtle);
}

.project-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(22, 47, 33, 0.12) 100%);
    pointer-events: none;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.02);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.06);
}

.project-info {
    padding: 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background: #ffffff;
}

.badge {
    color: var(--forest-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--sage-pill);
    border: 1px solid rgba(30, 58, 43, 0.12);
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 36px;
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(30, 58, 43, 0.08) 0%, rgba(30, 58, 43, 0.28) 50%, rgba(30, 58, 43, 0.08) 100%);
    border-radius: var(--radius-full);
}

.timeline-card {
    margin-left: 40px;
    padding: 34px;
    background: var(--surface-card);
    border: var(--liquid-border);
    border-top: var(--liquid-border-top);
    border-radius: var(--radius-md);
    box-shadow: var(--liquid-shadow);
    position: relative;
    transition: all 0.35s ease;
}

.timeline-card:hover {
    transform: translateX(6px);
    border-color: rgba(30, 58, 43, 0.2);
    box-shadow: var(--liquid-shadow-hover);
}

.timeline-card::before {
    content: '✦';
    position: absolute;
    left: -49px;
    top: 30px;
    color: var(--forest-primary);
    font-size: 0.85rem;
    background: #ffffff;
    border: 1.5px solid var(--forest-accent);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(30, 58, 43, 0.12);
}

.timeline-date {
    color: var(--forest-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.timeline-card h3 {
    margin-top: 4px;
    font-size: 1.35rem;
    color: var(--forest-deep);
}

.timeline-card p {
    color: var(--text-muted);
}

/* Page Switcher Button - Floating Minimalist Orb */
.page-switch-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #ffffff;
    border: 1px solid rgba(30, 58, 43, 0.2);
    color: var(--forest-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.05rem;
    z-index: 2000;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(22, 47, 33, 0.08);
}

.page-switch-btn span {
    display: none;
}

.page-switch-btn:hover {
    background: var(--forest-primary);
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 28px rgba(30, 58, 43, 0.22);
}

/* Coming Soon Toast - Clean Minimal Capsule */
.coming-soon-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(30, 58, 43, 0.18);
    color: var(--forest-primary);
    padding: 20px 46px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(22, 47, 33, 0.12);
}

.coming-soon-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* Responsive / Mobile Optimization */
@media (max-width: 900px) {
    /* Prevent horizontal page drift */
    body {
        overflow-x: hidden;
    }

    /* Ambient background orbs scaled for mobile */
    body::before {
        width: 380px;
        height: 380px;
        top: -80px;
        right: -80px;
    }

    body::after {
        width: 420px;
        height: 420px;
        bottom: -100px;
        left: -100px;
    }

    /* Nav Backdrop */
    .nav-backdrop {
        display: block;
    }

    .nav-backdrop.is-active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Floating Header Island */
    .royal-nav {
        top: 14px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 28px);
        max-width: 540px;
        padding: 10px 18px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-radius: 26px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 10px 30px rgba(18, 42, 28, 0.08), 0 2px 6px rgba(18, 42, 28, 0.03);
    }

    .nav-brand {
        gap: 10px;
    }

    .nav-brand-logo {
        width: 26px;
        height: 26px;
    }

    .nav-logo {
        font-size: 1.15rem;
        letter-spacing: 3px;
    }

    /* Show hamburger toggle button */
    .nav-hamburger {
        display: flex;
    }

    /* Collapsible Navigation Menu */
    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(28px) saturate(150%);
        -webkit-backdrop-filter: blur(28px) saturate(150%);
        border: 1px solid rgba(30, 58, 43, 0.12);
        border-top: 1px solid rgba(255, 255, 255, 0.95);
        border-radius: 22px;
        box-shadow: 0 18px 45px rgba(18, 42, 28, 0.12), 0 4px 12px rgba(18, 42, 28, 0.04);
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px) scale(0.97);
        pointer-events: none;
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                    visibility 0.3s;
    }

    /* Open state when hamburger is clicked */
    .royal-nav.menu-open .nav-links {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 2px;
        color: var(--forest-primary);
        border-radius: 14px;
        background: transparent;
        transition: all 0.25s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-links a::after {
        content: '→';
        font-size: 1rem;
        color: var(--forest-mid);
        opacity: 0.5;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .nav-links a:hover,
    .nav-links a:active {
        background: var(--sage-pill);
        color: var(--forest-primary);
        padding-left: 22px;
    }

    .nav-links a:hover::after,
    .nav-links a:active::after {
        opacity: 1;
        transform: translateX(4px);
    }

    /* Main Container */
    .container {
        padding: 100px 18px 80px;
        gap: 75px;
    }

    /* Hero Section */
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 15px;
        min-height: auto;
        gap: 36px;
    }

    .hero-text {
        align-items: center;
        width: 100%;
        gap: 18px;
    }

    .hero-text h2 {
        font-size: clamp(0.72rem, 3vw, 0.82rem);
        letter-spacing: 2.2px;
        padding: 6px 14px;
        white-space: normal;
        text-align: center;
        justify-content: center;
        max-width: 100%;
        min-height: 32px;
    }

    .hero-text h1 {
        font-size: clamp(2.6rem, 9vw, 3.8rem);
        white-space: normal;
        line-height: 1.1;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: baseline;
        gap: 6px;
        min-height: auto;
    }

    .hero-text p {
        font-size: 0.98rem;
        line-height: 1.65;
        max-width: 90%;
        margin: 0 auto;
    }

    .hero-visual {
        width: 100%;
        justify-content: center;
        margin-top: 6px;
    }

    .profile-frame {
        width: min(320px, 82vw);
        height: clamp(340px, 50vh, 420px);
        border-radius: 160px 160px var(--radius-lg) var(--radius-lg);
    }

    .hero-visual::before {
        top: -10px;
        right: -10px;
        border-radius: 160px 160px var(--radius-lg) var(--radius-lg);
    }

    /* Section Titles */
    .section-title {
        font-size: clamp(2rem, 7vw, 2.5rem);
        margin-bottom: 35px;
        padding-bottom: 14px;
    }

    /* About Full Width Card */
    .full-width {
        padding: 38px 24px;
        font-size: 1.15rem;
        line-height: 1.75;
        border-radius: var(--radius-md);
    }

    .contact-chips {
        margin-top: 26px;
    }

    /* Grid layouts */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .royal-card {
        padding: 30px 24px;
        gap: 14px;
        border-radius: var(--radius-md);
    }

    .royal-card h3 {
        font-size: 1.4rem;
    }

    .royal-card p {
        font-size: 0.88rem;
    }

    .royal-card i {
        font-size: 1.75rem;
    }

    .project-img {
        height: 220px;
    }

    .project-info {
        padding: 24px 20px;
        gap: 12px;
    }

    /* Experience & Timeline */
    .timeline {
        padding-left: 14px;
        gap: 26px;
    }

    .timeline-card {
        margin-left: 28px;
        padding: 24px 20px;
        border-radius: var(--radius-md);
    }

    .timeline-card::before {
        left: -37px;
        top: 24px;
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .timeline-card h3 {
        font-size: 1.2rem;
    }

    .timeline-card p {
        font-size: 0.9rem;
    }

    .timeline-date {
        font-size: 0.72rem;
        letter-spacing: 1.5px;
    }

    /* Entry Portal on Mobile */
    .entry-content {
        padding: 38px 24px;
        width: min(92vw, 380px);
        border-radius: 26px;
        gap: 18px;
    }

    .portal-logo-img {
        width: 76px;
        height: 76px;
    }

    .portal-brand-text h1 {
        font-size: clamp(2.5rem, 9vw, 3.2rem);
    }

    .entry-cards {
        gap: 12px;
        width: 100%;
    }

    /* Page switch floating button */
    .page-switch-btn {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        left: calc(20px + env(safe-area-inset-left, 0px));
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    /* Subpage headers & components */
    .projects-wrapper,
    .resume-wrapper,
    .skills-wrapper {
        padding: 100px 18px 70px !important;
    }

    .projects-page-header,
    .resume-header,
    .skills-page-header {
        padding: 38px 20px !important;
        margin-bottom: 32px !important;
        border-radius: var(--radius-lg) !important;
    }

    .projects-page-header h1,
    .resume-header h1,
    .skills-page-header h1 {
        font-size: clamp(2.2rem, 7.5vw, 2.8rem) !important;
    }
}

/* Extra Mobile Polish for Small Screens (< 500px) */
@media (max-width: 500px) {
    .container {
        padding: 90px 14px 70px;
        gap: 55px;
    }

    .royal-nav {
        top: 10px;
        width: calc(100% - 20px);
        padding: 8px 14px;
    }

    .nav-logo {
        font-size: 1.05rem;
        letter-spacing: 2px;
    }

    .nav-hamburger {
        width: 38px;
        height: 38px;
    }

    .hamburger-bar {
        width: 18px;
    }

    .hero-text h1 {
        font-size: clamp(2.1rem, 9vw, 2.7rem);
    }

    .hero-text h2 {
        font-size: 0.72rem;
        letter-spacing: 1.5px;
        padding: 5px 12px;
    }

    .profile-frame {
        width: min(270px, 85vw);
        height: clamp(300px, 46vh, 370px);
        border-radius: 130px 130px var(--radius-md) var(--radius-md);
    }

    .hero-visual::before {
        border-radius: 130px 130px var(--radius-md) var(--radius-md);
    }

    .full-width {
        padding: 28px 18px;
        font-size: 1.05rem;
    }

    .royal-btn {
        padding: 12px 24px;
        font-size: 0.78rem;
        letter-spacing: 1.2px;
    }

    .entry-cards {
        flex-direction: column;
    }

    .entry-cards .royal-btn {
        width: 100%;
        justify-content: center;
    }

    .timeline {
        padding-left: 8px;
    }

    .timeline-card {
        margin-left: 20px;
        padding: 20px 16px;
    }

    .timeline-card::before {
        left: -28px;
        top: 20px;
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }

    .contact-chips .royal-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .project-img {
        height: 190px;
    }

    .project-info {
        padding: 20px 16px;
    }
}

/* Mobile Optimization for Dino Launch Portal */
@media (max-width: 640px) {
    .dino-score-board {
        top: 16px;
        right: 16px;
        font-size: 0.95rem;
        letter-spacing: 2px;
        padding: 6px 14px;
    }
    .dino-hint-prompt {
        margin-top: 18px;
        font-size: 0.72rem;
        letter-spacing: 1.5px;
        padding: 7px 18px;
    }
    .portal-center-content {
        padding: 16px;
        margin-top: -35px;
    }
    .portal-main-heading {
        font-size: clamp(2.4rem, 11vw, 3.2rem);
        margin-bottom: 20px;
    }
    .portal-action-group {
        flex-direction: row;
        width: 100%;
        gap: 10px;
        justify-content: center;
    }
    .portal-pill-btn {
        min-width: 135px;
        height: 46px;
        padding: 0 18px;
        font-size: 0.76rem;
    }
    .dino-game-over {
        margin-top: 16px;
        padding: 14px 22px;
    }
    .game-over-title {
        font-size: 1.1rem;
        letter-spacing: 4px;
    }
}

@media (max-width: 380px) {
    .portal-action-group {
        flex-direction: column;
        align-items: center;
    }
    .portal-pill-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Discreet Bottom Text Prompt - Very Small Footnote */
.dino-bottom-prompt {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    user-select: none;
    text-align: center;
    white-space: nowrap;
    opacity: 0.65;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#dino-bottom-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: lowercase;
    color: #173b2a;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(226, 251, 231, 0.45);
}

.dino-bottom-prompt.fade-out {
    opacity: 0.18;
}

@media (max-width: 640px) {
    .dino-bottom-prompt {
        bottom: 16px;
    }
    #dino-bottom-text {
        font-size: 0.65rem;
        letter-spacing: 1.8px;
    }
}
