/* Fonts loaded via <link> in HTML head for performance */

/* ======================
   CSS Custom Properties
====================== */
:root {
    /* Warm Hearth Palette */
    --color-cream: #F5EDE3;
    --color-sand: #EBE0D0;
    --color-parchment: #DDD1BF;
    --color-forest: #3B2A1F;
    --color-forest-light: #5C3D2E;
    --color-sage: #8B6F4E;
    --color-sage-light: #A68B6B;
    --color-moss: #6B5240;
    --color-brown: #5A4035;
    --color-brown-light: #745A48;
    --color-bronze: #9A7B5A;
    --color-burnt-orange: #D4764E;
    --color-terracotta: #C4553A;
    --color-warm-red: #B84233;
    --color-amber: #D4A03C;
    --color-deep-red: #8B3A2A;
    --color-clay: #A0522D;
    --color-card: rgba(255, 250, 243, 0.55);
    --color-card-border: rgba(255, 250, 243, 0.4);

    /* Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-gap: 5rem;
    --card-radius: 20px;
    --card-shadow: 0 8px 32px rgba(59, 42, 31, 0.1);
    --card-shadow-hover: 0 16px 48px rgba(59, 42, 31, 0.18);

    /* Glassmorphism */
    --glass-bg: rgba(255, 250, 243, 0.55);
    --glass-border: rgba(255, 250, 243, 0.4);
    --glass-blur: blur(16px) saturate(1.4);
    --glass-shadow: 0 8px 32px rgba(59, 42, 31, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    --glass-shadow-hover: 0 16px 48px rgba(59, 42, 31, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-base: 0.4s var(--ease-out-expo);
    --transition-slow: 0.7s var(--ease-out-expo);
}

/* ======================
   Global Reset & Base
====================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-forest);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain texture overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* Selection colors */
::selection {
    background: var(--color-burnt-orange);
    color: #fff;
}

a {
    color: var(--color-burnt-orange);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ======================
   Skip Navigation
====================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--color-forest);
    color: var(--color-cream) !important;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ======================
   Focus Visible Styles
====================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--color-burnt-orange);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ======================
   Scroll-triggered Animations
====================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* ======================
   Header / Navigation
====================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    background: rgba(245, 237, 227, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-card-border);
    transition: all var(--transition-base);
}

header.scrolled {
    padding: 0.7rem 2.5rem;
    background: rgba(245, 237, 227, 0.7);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    box-shadow: 0 4px 30px rgba(59, 42, 31, 0.08);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-forest);
}

.header-logo img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-burnt-orange);
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.header-logo:hover img {
    transform: scale(1.08);
    border-color: var(--color-burnt-orange);
}

.header-logo span {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

/* Rainbow logo home indicator */
.header-logo--home {
    position: relative;
    padding: 0.3rem 0.5rem;
    border-radius: 10px;
    transition: all var(--transition-base);
    background: rgba(139, 111, 78, 0.03);
    border: 1.5px solid rgba(212, 118, 78, 0.12);
}

.header-logo--home span {
    font-size: 1.5rem;
    transition: transform var(--transition-base);
}

.header-logo--home:hover {
    background: rgba(212, 118, 78, 0.06);
    border-color: rgba(212, 118, 78, 0.25);
}

.header-logo--home:hover span {
    transform: scale(1.15) rotate(-8deg);
}

/* Desktop nav */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-brown);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 10px;
    transition: all var(--transition-base);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-forest);
    background: rgba(139, 111, 78, 0.1);
}

.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(90deg, var(--color-burnt-orange), var(--color-amber));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

/* Nav overlay for mobile */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(45, 58, 46, 0.3);
    backdrop-filter: blur(4px);
    z-index: 998;
}

.nav-overlay.active {
    display: block;
}

/* Hamburger menu for mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-forest);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out-expo);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ======================
   Organic Decorative Shapes
====================== */
.organic-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
    animation: drift 20s ease-in-out infinite alternate;
}

.organic-shape:nth-child(2) {
    animation-delay: -7s;
    animation-duration: 25s;
}

.organic-shape:nth-child(3) {
    animation-delay: -14s;
    animation-duration: 22s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -15px) scale(1.05); }
    66% { transform: translate(-15px, 10px) scale(0.95); }
    100% { transform: translate(10px, -20px) scale(1.02); }
}

.organic-shape--green {
    background: var(--color-deep-red);
}

.organic-shape--orange {
    background: var(--color-burnt-orange);
}

.organic-shape--brown {
    background: var(--color-clay);
}

.organic-shape--red {
    background: var(--color-warm-red);
}

/* ======================
   Page Wrapper
====================== */
.page-wrapper {
    position: relative;
    overflow: hidden;
}

/* ======================
   Main Layout
====================== */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
    min-height: 100vh;
    position: relative;
}

/* ======================
   Hero Section
====================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    min-height: 80vh;
    padding: 2rem 0;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

/* Animated gradient mesh background — all pages */
.page-wrapper::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 45%, rgba(212, 118, 78, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 25%, rgba(212, 160, 60, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 55% 75%, rgba(196, 85, 58, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 35% 35%, rgba(160, 82, 45, 0.03) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: meshShift 18s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

/* Home — warm orange/amber (strongest) */
.page-wrapper--hero::before {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 118, 78, 0.09) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 160, 60, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(196, 85, 58, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 30%, rgba(160, 82, 45, 0.05) 0%, transparent 50%);
    animation-duration: 15s;
}

/* About — forest green */
.page-wrapper--about::before {
    background:
        radial-gradient(ellipse at 30% 60%, rgba(46, 125, 50, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 25%, rgba(76, 175, 80, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(56, 142, 60, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 15% 20%, rgba(27, 94, 32, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 70%, rgba(102, 187, 106, 0.07) 0%, transparent 50%);
    animation-duration: 20s;
}

/* Experience — woodsy brown */
.page-wrapper--experience::before {
    background:
        radial-gradient(ellipse at 15% 40%, rgba(121, 85, 72, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 55%, rgba(93, 64, 55, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 45% 85%, rgba(141, 110, 99, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse at 65% 15%, rgba(109, 76, 65, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(161, 136, 127, 0.10) 0%, transparent 50%);
    animation-duration: 22s;
}

/* Research — warm orange */
.page-wrapper--research::before {
    background:
        radial-gradient(ellipse at 25% 55%, rgba(230, 126, 34, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 30%, rgba(243, 156, 18, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(211, 84, 0, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 35% 20%, rgba(245, 166, 35, 0.05) 0%, transparent 50%);
    animation-duration: 20s;
}

/* CV — warm sunny yellow */
.page-wrapper--cv::before {
    background:
        radial-gradient(ellipse at 20% 35%, rgba(255, 193, 7, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(255, 213, 79, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 55% 20%, rgba(255, 179, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(255, 235, 59, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 40%, rgba(251, 192, 45, 0.06) 0%, transparent 50%);
    animation-duration: 22s;
}

/* Resume — deep purple */
.page-wrapper--resume::before {
    background:
        radial-gradient(ellipse at 20% 40%, rgba(103, 58, 183, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 55%, rgba(126, 87, 194, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 55% 20%, rgba(81, 45, 168, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(149, 117, 205, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 65% 35%, rgba(171, 71, 188, 0.05) 0%, transparent 50%);
    animation-duration: 20s;
}

.hero::before {
    display: none;
}

@keyframes meshShift {
    0% { background-position: 0% 0%; }
    25% { background-position: 50% 30%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 30% 80%; }
    100% { background-position: 0% 100%; }
}

/* Hero stagger entrance */
.hero-stagger > *:nth-child(1) { animation: heroFadeUp 0.8s var(--ease-out-expo) 0.1s both; }
.hero-stagger > *:nth-child(2) { animation: heroFadeUp 0.8s var(--ease-out-expo) 0.25s both; }
.hero-stagger > *:nth-child(3) { animation: heroFadeUp 0.8s var(--ease-out-expo) 0.4s both; }
.hero-stagger > *:nth-child(4) { animation: heroFadeUp 0.8s var(--ease-out-expo) 0.55s both; }

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-terracotta);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.hero-eyebrow .dot-pulse {
    width: 8px;
    height: 8px;
    background: var(--color-terracotta);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--color-forest);
}

.hero h1 .accent {
    color: var(--color-burnt-orange);
    position: relative;
}

.hero h1 .accent::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--color-burnt-orange);
    opacity: 0.15;
    border-radius: 4px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-brown);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 0 0 auto;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 340px;
    height: 400px;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px 30px 60px 30px;
    box-shadow: var(--card-shadow);
}

.hero-image-wrapper::before {
    content: "";
    position: absolute;
    top: -12px;
    right: -12px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-burnt-orange);
    border-radius: 30px 30px 60px 30px;
    z-index: -1;
    opacity: 0.4;
}

/* Frosted depth layer behind hero image */
.hero-image-wrapper::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 118, 78, 0.15), rgba(212, 160, 60, 0.1));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 30px 30px 60px 30px;
    z-index: -2;
    transform: rotate(2deg);
}

/* Floating leaf decoration near hero image */
.hero-leaf {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

.hero-leaf:nth-child(1) { top: -20px; right: -30px; animation-delay: 0s; }
.hero-leaf:nth-child(2) { bottom: 20px; left: -25px; animation-delay: 2s; }
.hero-leaf:nth-child(3) { top: 50%; right: -35px; animation-delay: 4s; font-size: 1.5rem; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

/* ======================
   Buttons
====================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-forest);
    color: var(--color-cream);
}

.btn-primary:hover {
    background: var(--color-forest-light);
    color: var(--color-cream);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 58, 46, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--color-forest);
    border: 1.5px solid var(--color-parchment);
}

.btn-secondary:hover {
    border-color: var(--color-sage);
    background: rgba(107, 143, 113, 0.06);
    color: var(--color-forest);
    transform: translateY(-2px);
}

/* ======================
   Section Titles
====================== */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--color-forest);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--color-brown-light);
    font-size: 1.05rem;
    max-width: 100%;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-divider .leaf-icon {
    font-size: 1.2rem;
    opacity: 0.5;
}

.section-divider hr {
    flex: 1;
    border: none;
    height: 1px;
    background: linear-gradient(to right, var(--color-parchment), transparent);
}

/* ======================
   Cards (Glassmorphism Style)
====================== */
.card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-clay), var(--color-burnt-orange), var(--color-amber));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    box-shadow: var(--glass-shadow-hover);
    transform: perspective(800px) translateY(-4px) rotateX(-1deg) rotateY(1deg);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
}

.card:hover::before {
    opacity: 1;
}

@supports not (backdrop-filter: blur(1px)) {
    .card {
        background: rgba(255, 250, 243, 0.92);
    }
}

/* ======================
   Content Sections
====================== */
.content-section {
    margin-bottom: var(--section-gap);
    position: relative;
}

.content-section:not(:last-child)::after {
    content: "";
    display: none;
}

/* ======================
   About Page — Offset Photo + Glass Card
====================== */
.about-hero {
    position: relative;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 0;
    align-items: start;
    min-height: 480px;
}

/* About hero photo reveal animation */
.about-hero-photo {
    position: relative;
    z-index: 1;
    transform: rotate(-2deg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(59, 42, 31, 0.22);
    transition: transform 0.6s var(--ease-out-expo);
}

.about-hero-photo:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-hero-photo img {
    width: 100%;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.about-hero-glow {
    position: absolute;
    inset: -30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 118, 78, 0.2) 0%, rgba(196, 85, 58, 0.08) 40%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.about-hero-card {
    position: relative;
    z-index: 2;
    margin-left: -3rem;
    margin-top: 3rem;
    padding: 2.5rem 2.75rem;
    background: rgba(255, 250, 243, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 111, 78, 0.15);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(59, 42, 31, 0.1);
}

.about-hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-burnt-orange);
    padding: 0.3rem 0.85rem;
    background: rgba(212, 118, 78, 0.1);
    border-radius: 20px;
    margin-bottom: 1rem;
}

.about-hero-card h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-forest);
    margin-bottom: 1.25rem;
}

.about-hero-card p {
    color: var(--color-brown);
    line-height: 1.85;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

/* Legacy about classes */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
}

.about-image img {
    width: 100%;
    display: block;
    transition: transform var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--color-brown);
    line-height: 1.85;
    margin-bottom: 1.25rem;
    font-size: 1.02rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.highlight-item {
    padding: 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    transition: all var(--transition-base);
    box-shadow: var(--glass-shadow);
}

.highlight-item:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--glass-shadow-hover);
    border-color: rgba(212, 118, 78, 0.2);
}

.highlight-item .icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.highlight-item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: 0.25rem;
}

.highlight-item p {
    font-size: 0.8rem;
    color: var(--color-brown-light);
    margin: 0;
    line-height: 1.5;
}

/* ======================
   Experience Section
====================== */
.exp-timeline {
    position: relative;
    padding-left: 2rem;
}

.exp-timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-burnt-orange), var(--color-parchment));
    border-radius: 2px;
}

.exp-category {
    margin-bottom: 3rem;
}

.exp-category-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-terracotta);
    margin-bottom: 1.5rem;
    padding: 0.35rem 1rem;
    background: rgba(196, 85, 58, 0.08);
    border-radius: 20px;
    position: relative;
    left: -1rem;
}

.exp-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.exp-item::before {
    content: "";
    position: absolute;
    left: -2.35rem;
    top: 0.6rem;
    width: 10px;
    height: 10px;
    background: var(--color-cream);
    border: 2px solid var(--color-burnt-orange);
    border-radius: 50%;
    transition: all var(--transition-base);
}

.exp-item:hover::before {
    background: var(--color-burnt-orange);
    transform: scale(1.3);
}

/* Timeline dot pulse ring when visible */
.exp-item.visible::after {
    content: "";
    position: absolute;
    left: -2.65rem;
    top: 0.3rem;
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-burnt-orange);
    border-radius: 50%;
    animation: pulseRing 1s var(--ease-out-expo) forwards;
    pointer-events: none;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}

.exp-item .card {
    padding: 1.75rem;
}

.exp-role {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-forest);
    margin-bottom: 0.3rem;
}

.exp-company {
    font-weight: 600;
    color: var(--color-burnt-orange);
    font-size: 0.95rem;
}

.exp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--color-brown-light);
}

.exp-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.exp-details {
    list-style: none;
    padding: 0;
}

.exp-details li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
    color: var(--color-brown);
    line-height: 1.65;
}

.exp-details li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-burnt-orange);
    font-weight: 600;
}

/* Accordion expand/collapse */
.exp-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-terracotta);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0.3rem 0;
    transition: color var(--transition-base);
}

.exp-toggle:hover {
    color: var(--color-forest-light);
}

.exp-toggle .arrow {
    transition: transform 0.3s var(--ease-out-expo);
    font-size: 0.75rem;
}

.exp-toggle.expanded .arrow {
    transform: none;
}

.exp-hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.exp-hidden.open {
    max-height: 600px;
    opacity: 1;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease 0.05s;
}

/* ======================
   Resume / CV Section
====================== */
.doc-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    padding: 2rem 0 3rem;
    margin-bottom: 1rem;
}

.doc-hero-content {
    flex: 1;
    max-width: 600px;
}

.doc-hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-burnt-orange);
    padding: 0.35rem 0.9rem;
    background: rgba(212, 118, 78, 0.1);
    border-radius: 20px;
    margin-bottom: 1.25rem;
}

.doc-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-forest);
    margin-bottom: 1.25rem;
}

.doc-hero-title span {
    color: var(--color-burnt-orange);
}

.doc-hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-brown);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

.doc-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.doc-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
    background: rgba(255, 250, 243, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 111, 78, 0.15);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(59, 42, 31, 0.08);
    min-width: 160px;
}

.doc-stat {
    text-align: center;
}

.doc-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-forest);
    line-height: 1.2;
}

.doc-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-brown-light);
}

/* Quick Links Row */
.doc-quick-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.doc-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-brown);
    background: rgba(255, 250, 243, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-base);
}

.doc-quick-link:hover {
    color: var(--color-forest);
    background: rgba(255, 250, 243, 0.95);
    border-color: var(--color-burnt-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 42, 31, 0.08);
}

.doc-quick-link span {
    font-size: 1rem;
}

.doc-section {
    max-width: 900px;
    margin: 0 auto;
}

.doc-card {
    background: var(--color-card);
    border: 1px solid var(--color-card-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.doc-header {
    padding: 1.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid var(--color-card-border);
    background: rgba(255, 250, 243, 0.5);
}

.doc-header .doc-info h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.doc-header .doc-info p {
    font-size: 0.82rem;
    color: var(--color-brown-light);
}

.doc-embed {
    width: 100%;
    height: 800px;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .doc-hero {
        flex-direction: column;
        gap: 2rem;
    }

    .doc-hero-meta {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
    }

    .doc-quick-links {
        flex-direction: column;
    }

    .doc-quick-link {
        justify-content: center;
    }

    .doc-embed {
        height: 500px;
    }
}

/* ======================
   Diary / Journal Section
====================== */
.diary-intro {
    max-width: 100%;
    margin-bottom: 2.5rem;
}

.diary-intro p {
    color: var(--color-brown);
    font-size: 1.02rem;
    line-height: 1.8;
}

.diary-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.diary-filter-btn {
    padding: 0.45rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    border: 1.5px solid var(--color-parchment);
    border-radius: 20px;
    background: transparent;
    color: var(--color-brown);
    cursor: pointer;
    transition: all var(--transition-base);
}

.diary-filter-btn:hover,
.diary-filter-btn.active {
    border-color: var(--color-burnt-orange);
    background: rgba(212, 118, 78, 0.1);
    color: var(--color-forest);
}

.diary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.diary-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 1.75rem;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-base);
    cursor: default;
}

.diary-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.diary-card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.diary-card-emoji {
    font-size: 2rem;
    line-height: 1;
}

.diary-card-tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    background: rgba(107, 143, 113, 0.1);
    color: var(--color-sage);
}

.diary-card-tag.hobby { background: rgba(212, 118, 78, 0.1); color: var(--color-burnt-orange); }
.diary-card-tag.travel { background: rgba(107, 143, 113, 0.1); color: var(--color-sage); }
.diary-card-tag.food { background: rgba(196, 85, 58, 0.1); color: var(--color-terracotta); }
.diary-card-tag.life { background: rgba(139, 111, 78, 0.1); color: var(--color-bronze); }
.diary-card-tag.tech { background: rgba(45, 58, 46, 0.1); color: var(--color-forest); }

.diary-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: var(--color-forest);
}

.diary-card p {
    font-size: 0.9rem;
    color: var(--color-brown);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.diary-card-date {
    font-size: 0.78rem;
    color: var(--color-brown-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ======================
   Footer
====================== */
footer {
    background: var(--color-forest);
    color: var(--color-sand);
    padding: 3rem 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-warm-red), var(--color-burnt-orange), var(--color-amber), var(--color-clay));
}

footer::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(212, 118, 78, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-cream);
}

.footer-brand p {
    font-size: 0.85rem;
    opacity: 0.7;
    max-width: 280px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links-group h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-amber);
    margin-bottom: 0.75rem;
}

.footer-links-group a {
    display: block;
    color: var(--color-sand);
    opacity: 0.7;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
    transition: opacity var(--transition-base), color var(--transition-base);
}

.footer-links-group a:hover {
    opacity: 1;
    color: var(--color-burnt-orange);
}

.footer-bottom {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(240, 232, 218, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ======================
   Mobile Optimization
====================== */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 1.25rem;
    }

    .header-logo span {
        font-size: 1.1rem;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(245, 237, 227, 0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        font-size: 1.3rem;
        padding: 0.8rem 2rem;
    }

    .menu-toggle {
        display: flex;
    }

    main {
        padding: 5rem 1.25rem 3rem;
    }

    /* Hero mobile */
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
        min-height: auto;
        padding: 2rem 0 4rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image-wrapper {
        width: 240px;
        height: 290px;
    }

    .hero-visual {
        order: -1;
    }

    /* About mobile */
    .about-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .about-hero-photo {
        transform: rotate(-1deg);
        max-width: 280px;
        margin: 0 auto;
    }

    .about-hero-card {
        margin-left: 0;
        margin-top: -2rem;
        padding: 2rem 1.5rem;
    }

    .about-hero-card h2 {
        font-size: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    /* Experience mobile */
    .exp-timeline {
        padding-left: 1.25rem;
    }

    .exp-item {
        padding-left: 1rem;
    }

    /* Diary mobile */
    .diary-grid {
        grid-template-columns: 1fr;
    }

    /* Footer mobile */
    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Section spacing mobile */
    .content-section {
        margin-bottom: 5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-image-wrapper {
        width: 200px;
        height: 250px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .card {
        padding: 1.25rem;
    }
}

/* ======================
   Page Transition
====================== */
.page-enter {
    animation: pageEnter 0.6s var(--ease-out-expo) both;
}

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

/* ======================
   Scrollbar Styling
====================== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-parchment);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-brown-light);
}

/* ======================
   Utility Classes
====================== */
/* Cursor glow effect */
.cursor-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 118, 78, 0.08) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: left 0.15s ease-out, top 0.15s ease-out;
    z-index: -1;
}

/* ======================
   Publications Page
====================== */
.pub-card {
    margin-bottom: 2rem;
    padding: 2.25rem !important;
    position: relative;
}

.pub-card .pub-number {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
    color: var(--color-parchment);
    opacity: 0.5;
    pointer-events: none;
    background: linear-gradient(135deg, var(--color-parchment), var(--color-amber), var(--color-parchment));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pub-card:hover .pub-number {
    animation: shimmer 1.2s ease forwards;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.pub-card .pub-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-forest);
    margin-bottom: 0.5rem;
    max-width: 85%;
    line-height: 1.35;
}

.pub-card .pub-authors {
    font-size: 0.85rem;
    color: var(--color-burnt-orange);
    font-weight: 400;
    margin-bottom: 1rem;
}

.pub-card .pub-authors strong {
    font-weight: 800;
    color: var(--color-forest);
    text-decoration: underline;
    text-decoration-color: var(--color-burnt-orange);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

.pub-card .pub-description {
    font-size: 0.92rem;
    color: var(--color-brown);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.pub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pub-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 16px;
    background: rgba(196, 85, 58, 0.08);
    color: var(--color-terracotta);
}

.pub-tag:nth-child(2) {
    background: rgba(212, 160, 60, 0.1);
    color: var(--color-amber);
}

.pub-tag:nth-child(3) {
    background: rgba(139, 111, 78, 0.1);
    color: var(--color-bronze);
}

.pub-venue-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    background: var(--color-forest);
    color: var(--color-cream);
    margin-bottom: 1rem;
}

.pub-contribution {
    font-size: 0.88rem;
    color: var(--color-terracotta);
    font-weight: 500;
    font-style: italic;
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    background: rgba(196, 85, 58, 0.05);
    border-left: 3px solid var(--color-terracotta);
    border-radius: 0 8px 8px 0;
}

.pub-citation {
    font-size: 0.82rem;
    color: var(--color-brown-light);
    line-height: 1.65;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--color-sand);
    border-radius: 10px;
}

.pub-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--color-brown-light);
}

.pub-doi-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    background: var(--color-forest);
    color: var(--color-cream) !important;
    text-decoration: none;
    transition: all var(--transition-base);
}

.pub-doi-link:hover {
    background: var(--color-burnt-orange);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 118, 78, 0.25);
}

@media (max-width: 768px) {
    .pub-card .pub-number {
        font-size: 2rem;
        top: 1rem;
        right: 1rem;
    }

    .pub-card .pub-title {
        max-width: 100%;
        font-size: 1.1rem;
    }

    .pub-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Diary card image */
.diary-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

/* Diary card as link */
.diary-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.diary-card-link .diary-card {
    cursor: pointer;
}

.diary-card-link:hover .diary-card {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.diary-card-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem;
    color: var(--color-brown);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.diary-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.diary-card-read-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-burnt-orange);
    transition: color var(--transition-base);
}

.diary-card-link:hover .diary-card-read-more {
    color: var(--color-terracotta);
}

/* ======================
   Diary Detail Page
====================== */
.diary-back-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-burnt-orange);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color var(--transition-base);
}

.diary-back-link:hover {
    color: var(--color-terracotta);
}

.diary-detail-container {
    max-width: 750px;
}

.diary-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.diary-detail-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--color-forest);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.diary-detail-date {
    font-size: 0.9rem;
    color: var(--color-brown-light);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-parchment);
}

.diary-detail-body p {
    font-size: 1.05rem;
    color: var(--color-brown);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.diary-detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.diary-detail-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-base);
}

.diary-detail-image:hover {
    transform: scale(1.02);
}

.diary-detail-image-placeholder {
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--color-sand);
    border-radius: 16px;
    text-align: center;
    border: 2px dashed var(--color-parchment);
}

.diary-detail-image-placeholder p {
    font-size: 0.88rem;
    color: var(--color-brown-light);
}

/* ======================
   Education Cards
====================== */
.edu-card {
    position: relative;
}

.edu-thesis-icon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.6rem;
    text-decoration: none;
    transition: all var(--transition-base);
    opacity: 0.7;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--color-sand);
}

.edu-thesis-icon:hover {
    opacity: 1;
    transform: scale(1.15) rotate(-5deg);
    background: var(--color-parchment);
    box-shadow: 0 4px 12px rgba(59, 42, 31, 0.12);
}

.edu-details {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edu-detail-section {
    padding: 0.85rem 1rem;
    background: var(--color-sand);
    border-radius: 12px;
    border-left: 3px solid var(--color-burnt-orange);
}

.edu-detail-section h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-forest);
    margin-bottom: 0.35rem;
}

.edu-detail-section p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.edu-detail-section p:last-child {
    margin-bottom: 0;
}

.edu-detail-section em {
    color: var(--color-forest);
    font-weight: 500;
}

.thesis-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    background: var(--color-forest);
    color: var(--color-cream) !important;
    text-decoration: none;
    transition: all var(--transition-base);
}

.thesis-link:hover {
    background: var(--color-burnt-orange);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 118, 78, 0.25);
}

@media (max-width: 768px) {
    .edu-thesis-icon {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .gccut-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ======================
   GCCUT Showcase
====================== */
.gccut-showcase {
    padding: 2.5rem !important;
}

.gccut-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.gccut-badge {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-sand);
    border-radius: 16px;
    flex-shrink: 0;
}

.gccut-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-forest);
    margin-bottom: 0.2rem;
}

.gccut-description {
    font-size: 0.95rem;
    color: var(--color-brown);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.gccut-description a {
    color: var(--color-burnt-orange);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gccut-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gccut-courses {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gccut-courses li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-brown);
    line-height: 1.55;
}

.gccut-courses li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-burnt-orange);
    font-weight: 600;
    font-size: 0.8rem;
}

/* Pre/code blocks */
pre code {
    font-family: 'Courier New', monospace;
}

code {
    background: var(--color-sand);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--color-forest);
}

.text-center { text-align: center; }
.text-sage { color: var(--color-sage); }
.text-orange { color: var(--color-burnt-orange); }
.text-brown { color: var(--color-brown); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ======================
   Typewriter Cursor
====================== */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--color-burnt-orange);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.7s step-end infinite;
}

.typewriter-cursor.done {
    animation: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* ======================
   Animated Counter
====================== */
.counter-value {
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
}

/* ======================
   Mobile PDF Fallback
====================== */
.mobile-pdf-fallback {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--glass-shadow);
}

.mobile-pdf-fallback .mobile-pdf-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.mobile-pdf-fallback h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-forest);
    margin-bottom: 0.5rem;
}

.mobile-pdf-fallback p {
    color: var(--color-brown);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ======================
   Tablet Breakpoint
====================== */
@media (max-width: 1024px) {
    .about-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .about-hero-photo {
        max-width: 320px;
        margin: 0 auto;
    }

    .about-hero-card {
        margin-left: 0;
        margin-top: -1.5rem;
    }

    .doc-hero {
        flex-direction: column;
        gap: 2rem;
    }

    .doc-hero-meta {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
    }

    .pub-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .gccut-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================
   Mobile Optimization (override)
====================== */
@media (max-width: 768px) {
    /* Mobile PDF: show fallback, hide iframe */
    .mobile-pdf-fallback {
        display: block;
    }

    .doc-embed {
        display: none;
    }

    /* Touch targets */
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 12px 2rem;
    }

    .menu-toggle {
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn {
        min-height: 44px;
        padding: 0.8rem 1.4rem;
    }

    .diary-filter-btn {
        min-height: 44px;
        padding: 0.5rem 1.1rem;
    }
}

/* ======================
   Prefers Reduced Motion
====================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in, .fade-in-left, .fade-in-right, .scale-in {
        opacity: 1;
        transform: none;
    }

    .stagger-children > * {
        opacity: 1;
        transform: none;
    }

    .organic-shape {
        animation: none;
    }

    .hero::before {
        animation: none;
    }

    .page-wrapper--hero::before {
        animation: none;
    }

    .page-wrapper::before {
        animation: none;
    }

    .typewriter-cursor {
        animation: none;
        opacity: 1;
    }

    html {
        scroll-behavior: auto;
    }
}



