:root {
  color-scheme: light dark;
  --bg: #f3f1ec;
  --surface: #e9e6df;
  --text: #171716;
  --muted: #66645f;
  --line: #cbc7bd;
  --accent: #6c4cff;
  --accent-2: #a3ff62;
  --dark: #121212;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(26, 22, 16, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "DM Sans", sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; }
.logo { font: 700 1.05rem "Space Grotesk"; letter-spacing: .08em; }
.logo span, .hero h1 span { color: var(--accent); }
.nav-links { display: flex; gap: clamp(20px, 4vw, 48px); font-weight: 600; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--accent); transition: width .25s ease; }
.nav-links a:hover::after { width: 100%; }

.hero { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; padding-block: 90px; }
.eyebrow, .section-number, .project-index { font-weight: 700; letter-spacing: .13em; text-transform: uppercase; font-size: .75rem; }
.eyebrow { color: var(--muted); }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(3.1rem, 6.7vw, 6.35rem); letter-spacing: -.065em; max-width: 900px; }
h2 { font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: -.055em; }
.hero-text { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 600px; margin: 28px 0 34px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; gap: 14px; align-items: center; justify-content: center; padding: 14px 22px; border: 1px solid var(--text); border-radius: 999px; font-weight: 700; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--text); color: var(--bg); }
.button-secondary:hover { background: var(--text); color: var(--bg); }
.text-link { padding: 10px 5px; font-weight: 700; border-bottom: 1px solid; }
.hero-visual { position: relative; }
.code-window { background: var(--dark); color: #f4f2ea; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transform: rotate(2deg); }
.window-bar { height: 48px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: #202020; color: #888; font-size: .72rem; }
.window-bar i, .fake-browser span { width: 9px; height: 9px; border-radius: 50%; background: #ff695d; }
.window-bar i:nth-child(2), .fake-browser span:nth-child(2) { background: #ffc34a; }
.window-bar i:nth-child(3), .fake-browser span:nth-child(3) { background: #55cc62; }
.window-bar span { margin-left: auto; }
pre { margin: 0; padding: clamp(25px, 4vw, 45px); overflow: auto; font-size: clamp(.82rem, 1.5vw, 1rem); line-height: 1.8; }
code b { color: #c695ff; } code em { color: #7fe6ff; font-style: normal; } code q { color: #c5f78b; }
.floating-tag { position: absolute; right: -20px; bottom: -25px; background: var(--accent-2); color: #151515; padding: 12px 18px; border-radius: 99px; font-weight: 700; box-shadow: var(--shadow); transform: rotate(-4deg); }

.section { padding: 130px 0; border-top: 1px solid var(--line); }
.section-number { color: var(--accent); margin: 0 0 24px; }
.two-column { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; align-items: start; }
.about-copy { font-size: clamp(1.15rem, 2.2vw, 1.55rem); color: var(--muted); }
.about-copy p:first-child { margin-top: 0; color: var(--text); }
.arrow-link { display: inline-flex; gap: 30px; margin-top: 25px; color: var(--text); font-weight: 700; border-bottom: 1px solid; }
.arrow-link span { transition: transform .2s; } .arrow-link:hover span { transform: translateX(6px); }
.skills-section { background: var(--text); color: var(--bg); }
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #444; border-left: 1px solid #444; }
.skills-grid span { padding: clamp(24px, 4vw, 50px) 20px; border-right: 1px solid #444; border-bottom: 1px solid #444; font: 600 clamp(1.1rem, 2vw, 1.7rem) "Space Grotesk"; transition: background .25s, color .25s; }
.skills-grid span:hover { background: var(--accent-2); color: #111; }
.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 60px; margin-bottom: 65px; }
.section-heading > p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--surface) 55%, var(--bg)); transition: transform .3s, box-shadow .3s; }
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.project-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.project-image { min-height: 330px; padding: 45px 36px 0; position: relative; overflow: hidden; }
.kidbank-shot { background: #b7ff78; }
.flask-shot { background: #a68bff; }
.sql-shot { background: #ffd366; }
.fake-browser { height: 32px; background: #202020; border-radius: 12px 12px 0 0; display: flex; align-items: center; gap: 5px; padding: 0 12px; }
.fake-browser span { width: 7px; height: 7px; }
.bank-ui, .flask-ui, .sql-ui { height: 260px; background: #f7f6f2; color: #1b1b1b; border-radius: 0 0 5px 5px; box-shadow: 0 20px 40px #0002; }
.bank-ui { padding: 28px; }.bank-ui p { color: #666; margin: 25px 0 0; }.bank-ui strong { font-size: 2rem; }.chart { height: 80px; margin-top: 15px; background: linear-gradient(145deg, transparent 48%, #6251d8 49% 52%, transparent 53%), linear-gradient(20deg, transparent 48%, #6251d8 49% 52%, transparent 53%); background-size: 80px 60px; }
.flask-ui { display: flex; }.side { width: 23%; background: #272332; }.dashboard { flex: 1; padding: 24px; }.stat-row { display: flex; gap: 10px; margin: 24px 0; }.stat-row i { flex: 1; height: 55px; background: #e3ddff; border-radius: 6px; }.lines { height: 90px; background: repeating-linear-gradient(#ddd 0 1px, transparent 1px 22px); }
.sql-ui { padding: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font: .72rem monospace; }.sql-code { background: #1e1e25; color: white; padding: 18px; border-radius: 6px; line-height: 1.8; }.sql-code b { color: #c797ff; }.sql-code i { color: #c3ef8a; }.sql-table { display: grid; grid-template-columns: 1fr 1fr; align-content: start; }.sql-table span { padding: 10px 7px; border-bottom: 1px solid #ddd; }.sql-table span:nth-child(-n+2) { font-weight: bold; background: #eee; }
.project-info { padding: 30px; }.project-info h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }.project-index { color: var(--muted); margin: 0 0 9px; }.project-info > p { color: var(--muted); min-height: 52px; }.project-footer { border-top: 1px solid var(--line); padding-top: 19px; display: flex; justify-content: space-between; gap: 20px; font-weight: 700; }.project-footer span { color: var(--muted); font-weight: 500; }.project-footer a:hover { color: var(--accent); }
.education-section { background: var(--surface); }.education-card { border-top: 1px solid var(--text); padding-top: 25px; position: relative; }.education-card > span { position: absolute; right: 0; top: 25px; background: var(--accent-2); color: #111; padding: 5px 12px; border-radius: 99px; font-weight: 700; font-size: .75rem; }.education-card h3 { font-size: clamp(1.7rem, 3vw, 3rem); max-width: 75%; }.education-card p { font-size: 1.15rem; margin-bottom: 4px; }.education-card small { color: var(--muted); }
.contact { padding: 130px 0 40px; background: var(--dark); color: #f5f3ed; }.contact h2 { font-size: clamp(3.6rem, 9vw, 9rem); }.contact h2 span { color: #8f74ff; }.email-link { display: flex; justify-content: space-between; align-items: center; margin: 60px 0 100px; padding: 24px 0; border-bottom: 1px solid #555; font-size: clamp(1.15rem, 2.8vw, 2.2rem); }.email-link:hover { color: var(--accent-2); }.contact-bottom { display: flex; align-items: end; justify-content: space-between; gap: 30px; color: #999; font-size: .9rem; }.socials { display: flex; gap: 28px; color: #f5f3ed; font-weight: 700; }.socials a:hover { color: var(--accent-2); }
.reveal { animation: reveal both; animation-timeline: view(); animation-range: entry 8% cover 30%; }.hero .reveal { animation: hero-in .8s both; }.delay-1 { animation-delay: .15s !important; }
@keyframes reveal { from { opacity: 0; transform: translateY(45px); } to { opacity: 1; transform: none; } }
@keyframes hero-in { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: none; } }

@media (prefers-color-scheme: dark) {
  :root { --bg: #151515; --surface: #202020; --text: #f1efe8; --muted: #aaa79f; --line: #3d3c39; --accent: #9a82ff; --shadow: 0 25px 70px #0008; }
  .skills-section { background: #efede6; color: #151515; }.skills-grid { border-color: #bbb; }.skills-grid span { border-color: #bbb; }
  .button-primary { background: var(--text); color: #151515; }.education-card > span { color: #111; }
}
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 60px; padding-block: 70px; }.hero-visual { width: min(520px, 94%); margin: auto; }
  .two-column, .section-heading { grid-template-columns: 1fr; gap: 45px; }.skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }.project-card:last-child { grid-column: auto; display: block; }.project-image { min-height: 300px; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 30px, 1160px); }.nav { min-height: 68px; }.nav-links { gap: 14px; font-size: .83rem; }.logo { font-size: .9rem; }
  .hero { min-height: auto; padding-block: 65px 85px; }.hero h1 { font-size: clamp(2.8rem, 14vw, 4.5rem); }.hero-actions { align-items: stretch; }.button { flex: 1; min-width: 145px; }.text-link { width: 100%; text-align: center; }
  .floating-tag { right: -5px; font-size: .8rem; }.section { padding: 90px 0; }.skills-grid span { font-size: 1rem; padding: 25px 14px; }
  .project-image { min-height: 250px; padding: 28px 20px 0; }.bank-ui, .flask-ui, .sql-ui { height: 220px; }.sql-ui { grid-template-columns: 1fr; }.sql-table { display: none; }.project-footer { flex-direction: column; }
  .education-card h3 { max-width: 100%; padding-top: 45px; }.education-card > span { left: 0; right: auto; }.contact { padding-top: 90px; }.contact h2 { font-size: 18vw; }.email-link { margin: 45px 0 75px; }.contact-bottom { align-items: flex-start; flex-direction: column; }.socials { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
