:root {
    --bg:      #080e0b;
    --bg2:     #0d1510;
    --bg3:     #111a14;
    --border:  rgba(134,179,122,0.10);
    --border2: rgba(134,179,122,0.22);
    --text:    #dde8d8;
    --muted:   #7a9c72;
    --dimmed:  #3a5535;
    --sage:    #b8d4aa;
    --forest:  #4a8c5c;
    --moss:    #2d6642;
    --pale:    #c8e0bc;
    --accent:  #86b37a;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-body:  'DM Sans', system-ui, sans-serif;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.75; }

/* ── Ambient glows ── */
.glow-1, .glow-2 { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; }
.glow-1 { width:600px; height:500px; background:rgba(42,90,55,0.4); top:-150px; left:-100px; }
.glow-2 { width:400px; height:400px; background:rgba(26,65,38,0.3); bottom:0; right:-80px; }

/* ── Leaf watermark ── */
.leaf-bg {
    position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M100 180 C60 140 20 100 40 60 C60 20 140 20 160 60 C180 100 140 140 100 180Z' fill='%2386b37a'/%3E%3Cline x1='100' y1='180' x2='100' y2='60' stroke='%2386b37a' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ── Nav ── */
.navbar { background: rgba(8,14,11,0.88) !important; backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.navbar-brand { font-family: var(--font-serif); font-size: 22px; color: var(--sage) !important; font-style: italic; }
.nav-link { color: var(--muted) !important; font-size: 13px; letter-spacing: 0.3px; transition: color 0.2s; }
.nav-link:hover { color: var(--pale) !important; }
.btn-nav {
    font-size: 12px; padding: 7px 18px; border: 1px solid var(--border2);
    border-radius: 6px; color: var(--sage); text-decoration: none; font-weight: 500;
    transition: all 0.2s; letter-spacing: 0.3px;
}
.btn-nav:hover { background: rgba(134,179,122,0.08); border-color: var(--accent); color: var(--sage); }

/* ── Sections ── */
section { padding: 88px 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg2); }
.section-label {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 10px; color: var(--forest); letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 48px; font-weight: 500;
}
.section-label::after { content:''; width:32px; height:1px; background:var(--forest); opacity:0.5; }

/* ── Hero ── */
.hero { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding: 80px 0 60px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; color: var(--forest); letter-spacing: 2.5px;
    text-transform: uppercase; margin-bottom: 20px; font-weight: 500;
    opacity: 0; animation: fadeUp 0.7s 0.1s ease forwards;
}
.hero-eyebrow::before { content:''; width:28px; height:1px; background:var(--forest); }
.hero-name {
    font-family: var(--font-serif);
    font-size: clamp(52px, 9vw, 96px);
    font-weight: 700; line-height: 0.95; letter-spacing: -3px; color: var(--text);
    opacity: 0; animation: fadeUp 0.7s 0.2s ease forwards;
}
.hero-name em { color: var(--sage); font-style: italic; }
.hero-role {
    font-size: clamp(16px, 2.5vw, 22px); color: var(--muted); font-weight: 300;
    min-height: 36px; opacity: 0; animation: fadeUp 0.7s 0.3s ease forwards;
}
.typewriter { color: var(--sage); font-style: italic; font-family: var(--font-serif); }
.cursor { display:inline-block; width:2px; height:1em; background:var(--forest); vertical-align:-3px; margin-left:2px; animation:blink 1s step-end infinite; }
.hero-quote {
    font-family: var(--font-serif); font-style: italic; font-size: 15px;
    color: var(--dimmed); border-left: 2px solid var(--dimmed); padding-left: 16px;
    opacity: 0; animation: fadeUp 0.7s 0.4s ease forwards;
}
.hero-actions { opacity: 0; animation: fadeUp 0.7s 0.5s ease forwards; }
.hero-tags { opacity: 0; animation: fadeUp 0.7s 0.45s ease forwards; }

.hero-leaf { position: absolute; right: 0; top: 50%; transform: translateY(-50%); opacity: 0.07; pointer-events: none; animation: float 7s ease-in-out infinite; }

.hero-scroll {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: var(--dimmed); font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    opacity: 0; animation: fadeUp 1s 1.2s ease forwards;
}
.hero>div{max-width: 768px;}
.scroll-line { width:1px; height:44px; background:linear-gradient(to bottom, var(--dimmed), transparent); }

/* ── Buttons ── */
.btn-primary-custom {
    background: var(--moss); color: var(--pale); border: 1px solid var(--forest);
    padding: 12px 26px; border-radius: 8px; font-size: 13px; font-weight: 500;
    text-decoration: none; transition: all 0.2s; display: inline-block; letter-spacing: 0.3px;
}
.btn-primary-custom:hover { background: var(--forest); color: var(--pale); transform: translateY(-1px); }
.btn-outline-custom {
    background: transparent; color: var(--muted); border: 1px solid var(--border);
    padding: 12px 26px; border-radius: 8px; font-size: 13px; font-weight: 500;
    text-decoration: none; transition: all 0.2s; display: inline-block; letter-spacing: 0.3px;
}
.btn-outline-custom:hover { border-color: var(--border2); color: var(--pale); transform: translateY(-1px); }

/* ── Tags ── */
.tag {
    font-size: 11px; padding: 5px 12px; border-radius: 20px;
    border: 1px solid var(--border2); color: var(--muted);
    background: rgba(134,179,122,0.05); letter-spacing: 0.3px;
    display: inline-block; margin: 3px; transition: all 0.2s;
}
.tag:hover { color: var(--pale); border-color: var(--accent); background: rgba(134,179,122,0.10); }

/* ── About ── */
.about-lead { font-family: var(--font-serif); font-size: 22px; color: var(--text); line-height: 1.5; font-style: italic; }
.about-text { font-size: 15px; color: var(--muted); line-height: 1.85; font-weight: 300; }
.about-text strong { color: var(--sage); font-weight: 400; }
.stat-card {
    background: var(--bg3); border: 1px solid var(--border);
    border-radius: 12px; padding: 18px 20px; transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--border2); }
.stat-num { font-family: var(--font-serif); font-size: 34px; font-weight: 700; color: var(--sage); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text); margin-top: 2px; }
.stat-sub { font-size: 11px; color: var(--muted); }

/* ── Skill cards ── */
.skill-card {
    background: var(--bg3); border: 1px solid var(--border);
    border-radius: 12px; padding: 18px 20px; transition: all 0.25s; height: 100%;
}
.skill-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.skill-name { font-size: 14px; font-weight: 500; color: var(--text); }
.skill-badge { font-size: 10px; padding: 2px 9px; border-radius: 10px; font-weight: 500; letter-spacing: 0.3px; }
.badge-adv   { background: rgba(45,102,66,0.3); color: var(--sage); border: 1px solid rgba(74,140,92,0.25); }
.badge-mid   { background: rgba(26,65,38,0.3); color: var(--muted); border: 1px solid rgba(58,85,53,0.3); }
.badge-learn { background: rgba(12,28,16,0.4); color: var(--dimmed); border: 1px solid rgba(42,70,48,0.3); }
.skill-bar-wrap { height: 2px; background: var(--bg); border-radius: 2px; overflow: hidden; }
.skill-bar-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--moss), var(--accent)); width: 0; transition: width 1.4s cubic-bezier(0.16,1,0.3,1); }

/* ── Project cards ── */
.proj-card {
    background: var(--bg3); border: 1px solid var(--border);
    border-radius: 14px; padding: 26px; transition: all 0.25s;
    position: relative; overflow: hidden; height: 100%;
}
.proj-card::after {
    content:''; position:absolute; top:0; left:0; right:0; height:2px;
    background: linear-gradient(90deg, transparent, var(--moss), transparent);
    opacity:0; transition: opacity 0.3s;
}
.proj-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.proj-card:hover::after { opacity: 1; }
.proj-card.featured { border-color: rgba(74,140,92,0.18); background: linear-gradient(135deg, var(--bg3), rgba(26,65,38,0.08)); }
.proj-icon { width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; }
.proj-icon-g { background: rgba(45,102,66,0.2); color: var(--forest); }
.proj-icon-s { background: rgba(74,140,92,0.15); color: var(--accent); }
.proj-icon-p { background: rgba(26,65,38,0.25); color: var(--muted); }
.proj-title { font-family: var(--font-serif); font-size: 18px; font-weight: 500; color: var(--text); letter-spacing: -0.3px; }
.proj-desc { font-size: 13px; color: var(--muted); line-height: 1.65; font-weight: 300; }
.proj-status { font-size: 10px; padding: 3px 9px; border-radius: 10px; letter-spacing: 0.3px; }
.status-live     { background: rgba(45,102,66,0.2); color: var(--accent); }
.status-building { background: rgba(26,65,38,0.25); color: var(--muted); }
.status-planned  { background: rgba(16,28,18,0.4); color: var(--dimmed); }
.proj-tag { font-size: 11px; padding: 3px 8px; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; color: var(--dimmed); }
.proj-link { font-size: 12px; color: var(--forest); text-decoration: none; opacity: 0.7; transition: opacity 0.2s; letter-spacing: 0.3px; }
.proj-link:hover { opacity: 1; }

/* ── Contact ── */
.contact-title { font-family: var(--font-serif); font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -1.5px; color: var(--text); line-height: 1.05; }
.contact-title em { color: var(--sage); font-style: italic; }
.form-label-custom { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.form-control-custom {
    background: var(--bg3) !important; border: 1px solid var(--border) !important;
    border-radius: 8px !important; color: var(--text) !important;
    font-family: var(--font-body); font-size: 14px; padding: 11px 14px !important;
}
.form-control-custom:focus { border-color: var(--forest) !important; box-shadow: none !important; }
.form-control-custom::placeholder { color: var(--dimmed) !important; }
.btn-submit {
    background: var(--moss); color: var(--pale); border: 1px solid var(--forest);
    padding: 12px 28px; border-radius: 8px; font-size: 13px; font-weight: 500;
    font-family: var(--font-body); transition: all 0.2s; letter-spacing: 0.3px;
}
.btn-submit:hover { background: var(--forest); color: var(--pale); transform: translateY(-1px); }
.contact-link {
    display: flex; align-items: center; gap: 8px; font-size: 13px;
    color: var(--muted); text-decoration: none; padding: 10px 16px;
    border: 1px solid var(--border); border-radius: 8px; transition: all 0.2s;
}
.contact-link:hover { border-color: var(--border2); color: var(--pale); }

/* ── Footer ── */
footer { padding: 28px 0; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.footer-logo { font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: var(--sage); font-style: italic; }
.footer-copy { font-size: 12px; color: var(--dimmed); }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); position: relative; z-index: 1; }

/* ── Animations ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes blink  { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes float  { 0%,100%{transform:translateY(0) rotate(-2deg)} 50%{transform:translateY(-14px) rotate(2deg)} }
.reveal { opacity:0; transform:translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

@media (max-width: 767px) { .hero-leaf { display: none; } .hero-name { letter-spacing: -2px; } }