:root {
    --bg: #F5F7F8; --ink: #1E293B; --mint: #10B981; --slate: #64748B; --paper: #FFFFFF;
    --line: rgba(30, 41, 59, 0.1);
    --f-head: 'Space Grotesk', sans-serif; --f-sans: 'Inter', sans-serif; --f-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* Subtle Grid/Ledger Texture */
body::after {
    content: ""; position: fixed; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 50px 50px; pointer-events: none; z-index: 1;
}

.wrap { max-width: 1050px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; }
section { padding: 80px 0; border-bottom: 1px solid var(--line); }

/* AUDIT REVEAL ANIMATION */
.rv { opacity: 0; transform: translateY(15px); transition: all 0.6s var(--ease); }
.rv.in { opacity: 1; transform: translateY(0); }

/* --- NAVIGATION --- */
.nav { position: fixed; top: 0; width: 100%; height: 70px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); z-index: 100; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.nav-in { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-family: var(--f-head); font-size: 1.4rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.logo span { color: var(--mint); }
.menu { display: flex; gap: 20px; }
.menu a { text-decoration: none; color: var(--slate); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.menu a:hover, .menu a.active { color: var(--ink); }

/* --- HERO --- */
.hero { min-height: 80vh; display: flex; align-items: center; padding-top: 100px; border-bottom: none; }
.hero-content { max-width: 700px; }
.tag { font-family: var(--f-mono); font-size: 0.7rem; color: var(--mint); background: rgba(16, 185, 129, 0.1); padding: 4px 12px; border-radius: 4px; display: inline-block; margin-bottom: 20px; }
.hero h1 { font-family: var(--f-head); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 20px; font-weight: 700; }
.hero h1 span { color: var(--mint); }
.hero-p { font-size: 1.1rem; color: var(--slate); margin-bottom: 35px; }

/* --- STATS (THE BALANCE SHEET) --- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat-item { background: var(--paper); padding: 30px; text-align: left; }
.stat-item b { font-family: var(--f-head); font-size: 2.5rem; display: block; color: var(--ink); line-height: 1; }
.stat-item span { font-size: 0.7rem; font-weight: 600; color: var(--slate); text-transform: uppercase; }

/* --- ABOUT (THE PREFACE) --- */
.ledger-about { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.letter-body { font-size: 1.1rem; color: #444; border-left: 2px solid var(--mint); padding-left: 30px; }
.letter-body p { margin-bottom: 20px; }

/* --- EXPERIENCE (THE AUDIT TRAIL) --- */
.ledger-row { display: grid; grid-template-columns: 180px 1fr; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.ledger-row:last-child { border: none; }
.date-label { font-family: var(--f-mono); font-size: 0.8rem; color: var(--slate); }
.ledger-row h3 { font-family: var(--f-head); font-size: 1.6rem; margin-bottom: 5px; }
.ledger-row .org { color: var(--mint); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; display: block; }

/* --- SKILLS & CERTS --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.card { background: var(--paper); padding: 30px; border-radius: 4px; border: 1px solid var(--line); }
.card h4 { font-family: var(--f-head); font-size: 1.2rem; margin-bottom: 15px; }
.skill-line { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; padding-bottom: 5px; border-bottom: 1px dashed var(--line); }

/* --- GALLERY --- */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.gal-item { aspect-ratio: 3/2; overflow: hidden; background: #ddd; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.5s; }
.gal-item:hover img { filter: grayscale(0); transform: scale(1.05); }

/* --- RECRUITER BOARD (THE FINANCIAL REPORT) --- */
.report-box { background: var(--ink); color: #fff; padding: 50px; border-radius: 4px; }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 30px; padding-top: 30px; }
.report-item label { font-family: var(--f-mono); font-size: 0.6rem; color: var(--mint); text-transform: uppercase; margin-bottom: 8px; display: block; }
.report-item span { font-weight: 600; }

/* --- CONTACT --- */
.contact-link { font-family: var(--f-head); font-size: clamp(1.8rem, 4vw, 3rem); color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--mint); line-height: 1.2; }

footer { padding: 40px 0; text-align: center; font-family: var(--f-mono); font-size: 0.7rem; color: var(--slate); opacity: 0.7; }

@media (max-width: 800px) {
    .ledger-about, .grid-2, .stat-row, .report-grid, .gal-grid, .ledger-row { grid-template-columns: 1fr; }
    .nav-in .menu { display: none; }
    .date-label { margin-bottom: 10px; }
}
