@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --bg:       #09090f;
  --bg-2:     #111119;
  --bg-3:     #17171f;
  --bg-4:     #1e1e28;
  --border:   rgba(255,255,255,0.07);
  --border-h: rgba(255,255,255,0.14);
  --accent:   #4f8ef7;
  --accent-d: rgba(79,142,247,0.13);
  --accent-g: rgba(79,142,247,0.22);
  --green:    #34d399;
  --green-d:  rgba(52,211,153,0.13);
  --text:     #eeeef5;
  --text-2:   #8888a4;
  --text-3:   #44445a;
  --fd: 'Syne', sans-serif;
  --fb: 'DM Sans', sans-serif;
  --r:  12px;
  --rs: 8px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:auto; }
body { font-family:var(--fb); background:var(--bg); color:var(--text); font-size:16px; line-height:1.7; overflow-x:hidden; }
::-webkit-scrollbar { width:3px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.1); border-radius:4px; }

/* NAV */
nav {
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 4rem; height:60px;
  background:rgba(9,9,15,0.88); backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
}
.nav-links { display:flex; gap:2.5rem; list-style:none; }
.nav-links a { font-size:13px; color:var(--text-2); text-decoration:none; letter-spacing:0.06em; text-transform:uppercase; transition:color 0.2s; }
.nav-links a:hover, .nav-links a.active { color:var(--text); }

/* HERO */
#hero {
  min-height:100vh; display:grid;
  grid-template-columns:1fr 1fr;
  gap:0; align-items:center;
  padding:0 4rem; padding-top:60px;
  position:relative; overflow:hidden;
  max-width:1200px; margin:0 auto;
}
.hero-bg {
  position:fixed; inset:0; pointer-events:none; z-index:0;
  background-image:
    linear-gradient(rgba(79,142,247,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,142,247,0.035) 1px, transparent 1px);
  background-size:64px 64px;
}
.hero-blob {
  position:absolute; width:700px; height:700px; border-radius:50%;
  background:radial-gradient(circle, rgba(79,142,247,0.07) 0%, transparent 65%);
  top:50%; left:30%; transform:translate(-50%,-50%);
  pointer-events:none;
}
.hero-left { position:relative; z-index:1; padding:3rem 0; }
.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--accent-d); border:1px solid rgba(79,142,247,0.28);
  color:var(--accent); font-size:11px; font-weight:500;
  letter-spacing:0.1em; text-transform:uppercase;
  padding:5px 14px; border-radius:100px; margin-bottom:1.75rem;
  animation:fadeUp 0.5s ease both;
}
.hero-badge::before {
  content:''; width:5px; height:5px; border-radius:50%; background:var(--accent);
  animation:blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero h1 {
  font-family:var(--fd); font-size:clamp(44px,5.5vw,76px);
  font-weight:800; line-height:1.0; letter-spacing:-0.03em;
  margin-bottom:1.5rem;
  animation:fadeUp 0.5s 0.08s ease both;
}
.hero h1 .accent { color:var(--accent); }
.hero h1 .dim { color:var(--text-3); }
.hero-desc {
  font-size:15px; font-weight:300; color:var(--text-2);
  line-height:1.85; margin-bottom:2rem; max-width:420px;
  animation:fadeUp 0.5s 0.16s ease both;
}
.hero-desc strong { color:var(--text); font-weight:500; }
.hero-btns {
  display:flex; gap:12px; flex-wrap:wrap;
  animation:fadeUp 0.5s 0.24s ease both;
}
.btn-p {
  display:inline-flex; align-items:center; gap:7px;
  background:var(--accent); color:#fff;
  font-family:var(--fb); font-size:13px; font-weight:500;
  padding:11px 26px; border-radius:var(--rs);
  text-decoration:none; border:none; cursor:pointer;
  transition:all 0.2s;
}
.btn-p:hover { background:#6ba3f9; transform:translateY(-1px); box-shadow:0 8px 28px rgba(79,142,247,0.35); }
.btn-o {
  display:inline-flex; align-items:center; gap:7px;
  background:transparent; color:var(--text-2);
  font-family:var(--fb); font-size:13px; font-weight:400;
  padding:11px 26px; border-radius:var(--rs);
  border:1px solid var(--border-h); text-decoration:none;
  cursor:pointer; transition:all 0.2s;
}
.btn-o:hover { color:var(--text); border-color:rgba(255,255,255,0.28); transform:translateY(-1px); }

/* HERO RIGHT — quick info panel */
.hero-right {
  position:relative; z-index:1;
  padding:3rem 0 3rem 3rem;
  display:flex; flex-direction:column; gap:14px;
}
.info-card {
  background:var(--bg-2); border:1px solid var(--border);
  border-radius:var(--r); padding:1.25rem 1.5rem;
  transition:border-color 0.2s;
}
.info-card:hover { border-color:var(--border-h); }
.info-card-head {
  display:flex; align-items:center; gap:10px; margin-bottom:10px;
}
.info-card-icon {
  width:32px; height:32px; border-radius:var(--rs);
  background:var(--accent-d); border:1px solid rgba(79,142,247,0.2);
  display:flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0;
}
.info-card-title { font-family:var(--fd); font-size:13px; font-weight:600; color:var(--text); }
.info-card-sub { font-size:12px; color:var(--text-2); line-height:1.6; }
.lang-row { display:flex; align-items:center; gap:10px; margin-top:6px; }
.lang-name { font-size:12px; font-weight:500; min-width:48px; color:var(--text-2); }
.lang-bar { flex:1; height:4px; background:var(--bg-4); border-radius:4px; overflow:hidden; }
.lang-fill { height:100%; border-radius:4px; background:var(--accent); }
.lang-fill.green { background:var(--green); }
.lang-pct { font-size:11px; color:var(--text-3); min-width:28px; text-align:right; }

/* SECTION WRAPPER */
.wrap { max-width:1200px; margin:0 auto; padding:5rem 4rem; }
.divider { max-width:1200px; margin:0 auto; padding:0 4rem; height:1px; background:var(--border); }

.eyebrow {
  display:flex; align-items:center; gap:10px; margin-bottom:0.6rem;
  font-size:11px; font-weight:500; letter-spacing:0.12em;
  text-transform:uppercase; color:var(--accent);
}
.eyebrow::after { content:''; width:32px; height:1px; background:var(--accent); opacity:0.4; }
.sec-title {
  font-family:var(--fd); font-size:clamp(26px,3.5vw,36px);
  font-weight:700; letter-spacing:-0.02em; margin-bottom:2.5rem; line-height:1.1;
}

/* ABOUT */
.about-grid { display:grid; grid-template-columns:1.1fr 0.9fr; gap:3.5rem; align-items:start; }
.about-text p { font-size:15px; font-weight:300; color:var(--text-2); line-height:1.95; margin-bottom:1.1rem; }
.about-text p:last-child { margin-bottom:0; }
.about-text strong { color:var(--text); font-weight:500; }

.about-right { display:flex; flex-direction:column; gap:12px; }
.stat-row {
  background:var(--bg-2); border:1px solid var(--border);
  border-radius:var(--r); padding:1rem 1.25rem;
  display:flex; align-items:center; gap:14px;
  transition:border-color 0.2s;
}
.stat-row:hover { border-color:var(--border-h); }
.stat-row-icon {
  width:36px; height:36px; border-radius:var(--rs);
  background:var(--accent-d); border:1px solid rgba(79,142,247,0.18);
  display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0;
}
.stat-row-label { font-size:11px; text-transform:uppercase; letter-spacing:0.07em; color:var(--text-3); margin-bottom:2px; }
.stat-row-value { font-size:14px; font-weight:500; color:var(--text); }

/* SKILLS */
.skills-layout { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.skill-card {
  background:var(--bg-2); border:1px solid var(--border);
  border-radius:var(--r); padding:1.5rem;
  transition:all 0.25s; position:relative; overflow:hidden;
}
.skill-card::after {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg,var(--accent),transparent);
  opacity:0; transition:opacity 0.25s;
}
.skill-card:hover { border-color:rgba(79,142,247,0.25); transform:translateY(-2px); }
.skill-card:hover::after { opacity:1; }
.skill-card.green-card::after { background:linear-gradient(90deg,var(--green),transparent); }
.skill-card.green-card:hover { border-color:rgba(52,211,153,0.25); }

.skill-top { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:12px; }
.skill-icon-wrap {
  width:38px; height:38px; border-radius:var(--rs);
  background:var(--accent-d); border:1px solid rgba(79,142,247,0.2);
  display:flex; align-items:center; justify-content:center; font-size:18px;
}
.skill-icon-wrap.g { background:var(--green-d); border-color:rgba(52,211,153,0.2); }
.skill-level { font-size:10px; font-weight:500; letter-spacing:0.08em; text-transform:uppercase; color:var(--text-3); }
.skill-name { font-family:var(--fd); font-size:15px; font-weight:600; margin-bottom:8px; }
.skill-desc { font-size:13px; font-weight:300; color:var(--text-2); line-height:1.7; margin-bottom:12px; }
.skill-tags { display:flex; flex-wrap:wrap; gap:6px; }
.tag {
  font-size:11px; color:var(--text);
  background:var(--bg-3); border:1px solid var(--border);
  padding:3px 9px; border-radius:100px; letter-spacing:0.02em;
}

/* PROJECTS */
.projects-layout { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.proj-featured {
  grid-column:span 2;
  background:var(--bg-3); border:1px solid rgba(79,142,247,0.18);
  border-radius:var(--r); padding:2rem;
  display:grid; grid-template-columns:auto 1fr; gap:2rem; align-items:start;
  transition:all 0.25s;
}
.proj-featured:hover { border-color:rgba(79,142,247,0.35); box-shadow:0 0 48px rgba(79,142,247,0.07); }
.proj-featured-icon {
  width:56px; height:56px; border-radius:var(--r);
  background:var(--accent-d); border:1px solid rgba(79,142,247,0.25);
  display:flex; align-items:center; justify-content:center; font-size:26px; flex-shrink:0;
}
.proj-featured-badge {
  display:inline-flex; align-items:center; gap:6px;
  background:var(--accent-d); border:1px solid rgba(79,142,247,0.25);
  color:var(--accent); font-size:10px; font-weight:500;
  letter-spacing:0.1em; text-transform:uppercase;
  padding:3px 10px; border-radius:100px; margin-bottom:10px;
}
.proj-title { font-family:var(--fd); font-size:17px; font-weight:700; margin-bottom:8px; }
.proj-featured .proj-title { font-size:20px; }
.proj-desc { font-size:13px; font-weight:300; color:var(--text-2); line-height:1.8; margin-bottom:14px; }
.proj-tags { display:flex; flex-wrap:wrap; gap:6px; }

.proj-card {
  background:var(--bg-2); border:1px solid var(--border);
  border-radius:var(--r); padding:1.5rem;
  display:flex; flex-direction:column; gap:10px;
  transition:all 0.25s;
}
.proj-card:hover { border-color:var(--border-h); transform:translateY(-2px); background:var(--bg-3); }
.proj-card-head { display:flex; align-items:center; gap:12px; }
.proj-icon {
  width:40px; height:40px; border-radius:var(--rs);
  background:var(--accent-d); border:1px solid rgba(79,142,247,0.18);
  display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0;
}
.proj-icon.g { background:var(--green-d); border-color:rgba(52,211,153,0.18); }

/* FOOTER */
footer {
  border-top:1px solid var(--border);
  padding:2rem 4rem; display:flex; align-items:center; justify-content:space-between;
}
.footer-left { font-family:var(--fd); font-size:14px; font-weight:700; color:var(--text-2); }
.footer-left span { color:var(--accent); }
.footer-right { font-size:12px; color:var(--text-3); }

/* ANIMATIONS */
@keyframes fadeUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
.anim { opacity:0; }
.anim.visible { animation:fadeUp 0.5s ease both; }

/* RESPONSIVE */
@media(max-width:1024px) {
  nav { padding:0 2.5rem; }
  #hero { padding:0 2.5rem; padding-top:60px; gap:0; }
  .hero-right { padding-left:2rem; }
  .wrap { padding:4.5rem 2.5rem; }
  .divider { padding:0 2.5rem; }
  footer { padding:2rem 2.5rem; }
}
@media(max-width:860px) {
  #hero { grid-template-columns:1fr; min-height:auto; padding:5rem 2rem 3rem; }
  .hero-right { padding:0; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  .hero-blob { display:none; }
  .about-grid { grid-template-columns:1fr; gap:2rem; }
  .skills-layout { grid-template-columns:1fr; }
  .projects-layout { grid-template-columns:1fr; }
  .proj-featured { grid-column:span 1; grid-template-columns:auto 1fr; }
  .wrap { padding:3.5rem 2rem; }
  .divider { padding:0 2rem; }
  nav { padding:0 2rem; }
  footer { padding:1.75rem 2rem; }
}
@media(max-width:600px) {
  nav { padding:0 1.25rem; }
  .nav-links { gap:1.5rem; }
  #hero { padding:4.5rem 1.25rem 2.5rem; }
  .hero-right { grid-template-columns:1fr; }
  .hero h1 { font-size:40px; }
  .wrap { padding:3rem 1.25rem; }
  .divider { padding:0 1.25rem; }
  .proj-featured { grid-template-columns:1fr; }
  .proj-featured-icon { display:none; }
  footer { flex-direction:column; gap:6px; text-align:center; padding:1.5rem 1.25rem; }
}
@media(max-width:400px) {
  .nav-links { display:none; }
  .hero-btns { flex-direction:column; }
}