@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --ink: #080b12;
  --ink-soft: #101520;
  --paper: #f5f3ee;
  --paper-2: #ebe9e2;
  --text: #11151d;
  --muted: #69707d;
  --line: rgba(8,11,18,.12);
  --accent: #b8ff4f;
  --accent-2: #8ee52c;
  --white: #fff;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; font-family:'DM Sans',sans-serif; color:var(--text); background:var(--paper); line-height:1.7; }
body, a, button { -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
.site-bg { position:fixed; inset:0; pointer-events:none; z-index:-1; background:radial-gradient(circle at 85% 15%,rgba(184,255,79,.10),transparent 28%),radial-gradient(circle at 10% 70%,rgba(80,120,255,.06),transparent 30%); }
.container { width:min(var(--max),calc(100% - 48px)); margin:auto; }
.topbar { position:fixed; top:0; left:0; right:0; z-index:100; background:rgba(8,11,18,.82); backdrop-filter:blur(18px); border-bottom:1px solid rgba(255,255,255,.08); color:#fff; }
.nav-wrap { width:min(var(--max),calc(100% - 48px)); margin:auto; height:76px; display:flex; align-items:center; justify-content:space-between; gap:30px; }
.brand { display:flex; align-items:center; gap:11px; font-family:'Space Grotesk'; font-weight:600; }
.brand span { width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:var(--accent);color:var(--ink);font-size:12px;font-weight:700; }
.brand strong { font-size:15px; }
.nav-links { display:flex; gap:30px; font-size:13px; color:#aeb4c0; }
.nav-links a:hover { color:var(--accent); }
.nav-cta { border:1px solid rgba(255,255,255,.22); padding:9px 15px; border-radius:99px; font-size:12px; }
.nav-cta:hover { background:var(--accent); color:var(--ink); border-color:var(--accent); }
.section { padding:120px 0; position:relative; overflow:hidden; }
.hero { min-height:100vh; display:flex; align-items:center; background:var(--ink); color:#fff; padding-top:150px; padding-bottom:80px; }
.hero:before { content:''; position:absolute; width:620px;height:620px; border:1px solid rgba(184,255,79,.13); border-radius:50%; right:-230px; top:80px; }
.hero:after { content:''; position:absolute; width:440px;height:440px; border:1px solid rgba(184,255,79,.09); border-radius:50%; right:-140px; top:170px; }
.hero-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:70px; align-items:center; position:relative; z-index:2; }
.eyebrow,.section-kicker { font-size:11px; letter-spacing:2.2px; font-weight:700; color:var(--accent); }
.eyebrow { display:flex; align-items:center; gap:9px; margin-bottom:26px; }
.status-dot { width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px rgba(184,255,79,.09); }
.hero h1 { font-family:'Space Grotesk'; font-size:clamp(50px,6.5vw,88px); line-height:.98; letter-spacing:-4px; margin:0 0 30px; max-width:850px; }
.hero h1 em,.section-heading span,.about-grid h2 span,.contact-section h2 span { color:var(--accent); font-style:normal; }
.hero-lead { max-width:620px; color:#aeb4c0; font-size:18px; line-height:1.8; }
.hero-actions,.contact-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:34px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:13px 19px; border-radius:8px; font-weight:700; font-size:13px; transition:.25s ease; }
.btn-primary { background:var(--accent); color:var(--ink); }
.btn-primary:hover { background:#d0ff91; transform:translateY(-2px); }
.btn-ghost { color:#fff; border:1px solid rgba(255,255,255,.18); }
.btn-ghost:hover { border-color:var(--accent); color:var(--accent); }
.hero-meta { display:flex; gap:25px; margin-top:28px; color:#737b89; font-size:12px; }
.hero-visual { min-height:500px; display:grid; place-items:center; position:relative; }
.glow { position:absolute; width:350px;height:350px;background:rgba(184,255,79,.12);filter:blur(80px);border-radius:50%; }
.portrait-card { width:min(340px,80vw); background:#111720; border:1px solid rgba(255,255,255,.12); padding:12px; transform:rotate(3deg); box-shadow:30px 30px 80px rgba(0,0,0,.4); position:relative; z-index:2; }
.portrait { height:390px; background-size:cover;background-position:center top; filter:saturate(.85); }
.portrait-info { padding:17px 7px 7px; display:grid; gap:3px; }
.portrait-info span { color:#737b89;text-transform:uppercase;font-size:9px;letter-spacing:2px; }
.portrait-info strong { font-family:'Space Grotesk'; font-size:17px; }
.portrait-info small { color:#8d95a3;font-size:11px; }
.floating-card { position:absolute; z-index:3; background:rgba(18,24,33,.92);border:1px solid rgba(255,255,255,.13);backdrop-filter:blur(12px);padding:13px 15px;display:flex;align-items:center;gap:10px;box-shadow:0 15px 40px rgba(0,0,0,.3); }
.floating-card b { color:var(--accent);font-family:'Space Grotesk';font-size:22px; }
.floating-card span { color:#aeb4c0;font-size:10px;line-height:1.25; }
.fc-one { left:0; top:20%; }
.fc-two { right:0; bottom:18%; }
.scroll-cue { position:absolute; bottom:28px; left:50%; transform:translateX(-50%); font-size:10px;color:#646c79;letter-spacing:1.8px;text-transform:uppercase; }
.scroll-cue span { display:inline-block;width:35px;height:1px;background:#414854;vertical-align:middle;margin-right:9px; }
.section-light { background:var(--paper); }
.section-dark { background:var(--ink); color:#fff; }
.about-grid { display:grid;grid-template-columns:1fr 1fr;gap:100px;margin-top:55px; }
.about-grid h2,.section-heading h2 { font-family:'Space Grotesk';font-size:clamp(38px,4.7vw,64px);line-height:1.02;letter-spacing:-2.5px;margin:0; }
.about-copy { max-width:570px;color:var(--muted); }
.about-copy .lead { color:#272d38;font-size:20px;line-height:1.55;margin-top:0; }
.about-links { display:flex;gap:22px;margin-top:28px;flex-wrap:wrap; }
.about-links a { font-weight:700;font-size:13px;border-bottom:1px solid var(--text);padding-bottom:3px; }
.about-links a:hover { color:#5b9d17;border-color:#5b9d17; }
.stats { display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);margin-top:90px; }
.stats div { padding:30px 25px;border-right:1px solid var(--line); }
.stats div:first-child { padding-left:0; }
.stats div:last-child { border-right:0; }
.stats strong { display:block;font:700 39px 'Space Grotesk';letter-spacing:-1px; }
.stats span { display:block;color:var(--muted);font-size:11px;line-height:1.45;margin-top:4px; }
.section-heading { display:flex;justify-content:space-between;align-items:end;gap:60px;margin:35px 0 60px; }
.section-heading p { max-width:420px;color:#808895;margin:0;font-size:15px; }
.light-heading { margin-bottom:55px; }
.timeline-modern { border-top:1px solid rgba(255,255,255,.12); }
.experience-card { display:grid;grid-template-columns:180px 1fr;gap:45px;padding:45px 0;border-bottom:1px solid rgba(255,255,255,.12); }
.exp-year { color:#6f7785;font:600 11px 'Space Grotesk';letter-spacing:1.8px; }
.exp-main { max-width:760px; }
.tag,.project-content>span { color:var(--accent);font-size:10px;letter-spacing:1.8px;font-weight:700; }
.exp-main h3 { font:600 31px 'Space Grotesk';margin:9px 0 2px;letter-spacing:-1px; }
.exp-main h4 { color:#9ba3b1;font-size:14px;font-weight:500;margin:0 0 15px; }
.exp-main p { color:#858e9d;margin:0;max-width:720px; }
.tech-row { display:flex;gap:8px;flex-wrap:wrap;margin-top:20px; }
.tech-row span { padding:5px 9px;border:1px solid rgba(255,255,255,.12);border-radius:99px;color:#aab1bd;font-size:10px; }
.skills-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:15px; }
.skill-card { background:#fff;border:1px solid var(--line);padding:28px;min-height:220px;transition:.25s; }
.skill-card:hover { transform:translateY(-5px);border-color:rgba(91,157,23,.4);box-shadow:0 15px 35px rgba(0,0,0,.06); }
.skill-icon { width:42px;height:42px;display:grid;place-items:center;background:#eafbd5;color:#4d8c0d;font:700 12px 'Space Grotesk';margin-bottom:27px;border-radius:9px; }
.skill-card h3 { font:600 20px 'Space Grotesk';margin:0 0 8px; }
.skill-card p { color:var(--muted);font-size:13px;margin:0;line-height:1.65; }
.tech-cloud { display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:45px; }
.tech-cloud span { color:#68707d;background:#e9e7e0;padding:7px 11px;border-radius:99px;font-size:11px; }
.project-grid { display:grid;grid-template-columns:1.25fr .75fr;gap:15px; }
.project-card { min-height:310px;padding:30px;background:#111720;border:1px solid rgba(255,255,255,.10);position:relative;overflow:hidden;transition:.25s; }
.project-card:hover { border-color:rgba(184,255,79,.45);transform:translateY(-4px); }
.project-card.featured { grid-row:span 2;min-height:635px;background:linear-gradient(145deg,#151c27,#0d1118); }
.project-number { color:#454d5b;font:700 42px 'Space Grotesk'; }
.project-content { position:absolute;left:30px;right:30px;bottom:30px; }
.project-content h3 { font:600 29px 'Space Grotesk';letter-spacing:-1px;margin:8px 0 10px; }
.project-content p { color:#7f8998;font-size:13px;max-width:600px;margin:0 0 18px; }
.project-content b { display:inline-block;color:#adb5c1;font-size:10px;font-weight:500;border:1px solid rgba(255,255,255,.12);border-radius:99px;padding:5px 8px;margin-right:5px; }
.github-banner { margin-top:20px;border:1px solid rgba(255,255,255,.12);padding:18px 20px;display:flex;justify-content:space-between;gap:20px;color:#818a99;font-size:12px; }
.github-banner a { color:var(--accent);font-weight:700; }
.contact-section { background:var(--accent); }
.contact-wrap { text-align:center; }
.contact-section .section-kicker { color:#456d16; }
.contact-section h2 { font:600 clamp(48px,7vw,90px) 'Space Grotesk';line-height:.95;letter-spacing:-4px;margin:35px auto 20px; }
.contact-section p { color:#466020;margin:0;font-size:16px; }
.contact-actions { justify-content:center; }
.btn-outline-dark { border:1px solid rgba(8,11,18,.35);color:var(--ink); }
.btn-outline-dark:hover { background:var(--ink);color:#fff; }
.contact-details { display:flex;justify-content:center;gap:25px;flex-wrap:wrap;margin-top:55px;padding-top:22px;border-top:1px solid rgba(8,11,18,.16);font-size:12px;color:#4b631f; }
.contact-details a { font-weight:700; }
.footer { background:var(--ink);color:#6e7785;padding:22px 0;font-size:11px; }
.footer-inner { display:flex;justify-content:space-between;align-items:center;gap:20px; }
.footer a { color:#aeb4c0;margin-left:18px; }
.footer a:hover { color:var(--accent); }
.section,.experience-card,.skill-card,.project-card { opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease; }
.section.is-visible,.experience-card.is-visible,.skill-card.is-visible,.project-card.is-visible { opacity:1;transform:none; }
.hero { opacity:1;transform:none; }
@media(max-width:900px){
  .nav-links { display:none; }
  .hero-grid,.about-grid { grid-template-columns:1fr; }
  .hero { padding-top:130px; }
  .hero-visual { min-height:430px; }
  .about-grid { gap:35px; }
  .stats { grid-template-columns:repeat(2,1fr); }
  .stats div:nth-child(2) { border-right:0; }
  .section-heading { display:block; }
  .section-heading p { margin-top:25px; }
  .skills-grid { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:600px){
  .container,.nav-wrap { width:min(var(--max),calc(100% - 30px)); }
  .section { padding:85px 0; }
  .hero h1 { font-size:49px;letter-spacing:-2.8px; }
  .hero-lead { font-size:16px; }
  .hero-meta { flex-direction:column;gap:6px; }
  .portrait { height:350px; }
  .floating-card { transform:scale(.9); }
  .fc-one { left:-5px; }
  .fc-two { right:-5px; }
  .stats { margin-top:60px; }
  .stats div { padding:22px 15px; }
  .stats div:nth-child(odd) { padding-left:0; }
  .experience-card { grid-template-columns:1fr;gap:10px;padding:30px 0; }
  .skills-grid,.project-grid { grid-template-columns:1fr; }
  .project-card.featured { grid-row:auto;min-height:420px; }
  .project-card { min-height:330px; }
  .github-banner,.footer-inner { flex-direction:column;align-items:flex-start; }
  .contact-section h2 { font-size:50px;letter-spacing:-2.5px; }
  .contact-details { flex-direction:column;gap:8px; }
}

/* Premium typography refinements */
body { letter-spacing:-.01em; }
h1,h2,h3,h4,.brand,strong,.btn,.nav-links,.nav-cta,.section-kicker,.eyebrow,.exp-year,.tag,.project-content>span,.skill-icon,.stats strong {
  font-family:'Manrope','DM Sans',sans-serif;
}
.hero h1,.section-heading h2,.about-grid h2,.contact-section h2 {
  font-family:'Manrope',sans-serif;
  font-weight:800;
  letter-spacing:-.045em;
}
.hero h1 { line-height:.94; }
.hero h1 em { font-weight:800; }
.section-heading h2,.about-grid h2 { font-weight:800; }
.exp-main h3,.project-content h3 { font-family:'Manrope',sans-serif;font-weight:700;letter-spacing:-.035em; }
.portrait-info strong { font-family:'Manrope',sans-serif;font-weight:700; }
.hero-lead { font-weight:400;letter-spacing:-.015em; }


/* SEO / contact visibility */
.hero-services {
  margin: 1.15rem 0 0;
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.75;
  opacity: .9;
}
.hero-services strong { font-weight: 700; }
.hero-meta a {
  color: inherit;
  text-decoration: none;
}
.hero-meta a:hover,
.phone-contact:hover {
  text-decoration: underline;
}
.phone-contact {
  font-weight: 700;
  text-decoration: none;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
@media (max-width: 600px) {
  .contact-actions .btn { width: 100%; text-align: center; }
  .hero-meta { gap: .75rem; }
}


/* Software services contrast */
#services .section-kicker {
  color: #18202c;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
#services .section-kicker::before {
  content: '';
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: var(--accent-2);
}
#services .section-heading h2 {
  color: #080b12;
}
#services .section-heading h2 span {
  color: #5b8f19;
}
#services .section-heading p {
  color: #505866;
}
#services .skill-card {
  background: #111720;
  border-color: rgba(8,11,18,.08);
  color: #fff;
  position: relative;
  overflow: hidden;
}
#services .skill-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}
#services .skill-card:hover {
  border-color: rgba(91,143,25,.5);
  box-shadow: 0 18px 40px rgba(8,11,18,.14);
}
#services .skill-card h3 {
  color: #fff;
}
#services .skill-card p {
  color: #aeb6c3;
}


/* Global light-section contrast */
.section-light .section-kicker,
.section-light .section-kicker span { color: #18202c; }
.section-light .section-heading h2,
.section-light .about-grid h2 { color: #080b12; }
.section-light .section-heading h2 span,
.section-light .about-grid h2 span { color: #5b8f19; }
.section-light .section-heading p,
.section-light .about-copy,
.section-light .about-copy .lead { color: #4f5765; }
.section-light .about-links a { color: #18202c; border-color: #18202c; }
.section-light .about-links a:hover { color: #4f8612; border-color: #4f8612; }
.section-light .stats strong { color: #080b12; }
.section-light .stats span { color: #5b6370; }
.section-light .tech-cloud span { color: #3f4754; background: #dedcd4; }
.section-light .skill-card h3 { color: #080b12; }
.section-light .skill-card p { color: #555e6c; }
/* Keep intentionally dark service cards readable */
#services .skill-card h3 { color: #fff; }
#services .skill-card p { color: #aeb6c3; }
