
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}


:root{
  --bg: #0b0f14;
  --surface: #0f141b;
  --surface-2: #141b23;
  --fg: #e7eef6;
  --muted: #a6b3c2;
  --primary: #5cc8ff;
  --primary-2:#3aa9e2;
  --card: #0f141b;
  --ok: #2bd97c;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

@media (prefers-color-scheme: light){
  :root{
    --bg:#f6f8fb; --surface:#ffffff; --surface-2:#f0f3f7; --fg:#0f141b; --muted:#4c5a6a;
    --card:#ffffff; --shadow: 0 8px 24px rgba(16,24,40,.08);
  }
}


.container { width:min(1120px, 90%); margin-inline:auto; }
.section { padding: 80px 0; }
.section.alt { background: var(--surface-2); }
.grid-2 { display:grid; gap:40px; grid-template-columns: repeat(2, 1fr); }
.sub { color: var(--muted); margin-top: -8px; }
.badge{
  display:inline-block; font-size:.875rem; background: rgba(92,200,255,.12);
  color: var(--primary); padding:6px 10px; border-radius:999px; border:1px solid rgba(92,200,255,.25);
}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background: var(--primary); color:#00131f; border:none; border-radius:12px;
  padding:12px 16px; font-weight:600; text-decoration:none; box-shadow: var(--shadow);
  transition: transform .12s ease, background .2s ease;
}
.btn:hover{ transform: translateY(-1px); background: var(--primary-2); }
.btn-ghost{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px; border-radius:12px; border:1px solid rgba(255,255,255,.18);
  color: var(--fg); text-decoration:none; background: transparent;
}
.btn-sm{ padding:8px 12px; border-radius:10px; font-size:.9rem; }
.btn-block{ display:block; width:100%; }
.tiny{ font-size:.8rem; color: var(--muted); }


.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{ left:16px; top:16px; width:auto; height:auto; padding:8px 12px; background:var(--primary); color:#00131f; border-radius:8px; }


.site-header{
  position: sticky; top:0; z-index: 50; backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.brand{
  font-weight:700; letter-spacing:.3px; text-decoration:none; color:var(--fg); font-size:1.25rem;
}
.brand span{ color:var(--primary); }
.menu{ display:flex; gap:22px; align-items:center; }
.menu a{ color:var(--fg); text-decoration:none; opacity:.9; }
.menu a:hover{ opacity:1; }

.nav-toggle{ display:none; }
.hamburger{ display:none; cursor:pointer; width:36px; height:28px; position:relative; }
.hamburger span{
  position:absolute; left:0; right:0; height:3px; background:var(--fg); border-radius:3px; transition:.2s ease;
}
.hamburger span:nth-child(1){ top:2px; }
.hamburger span:nth-child(2){ top:12px; }
.hamburger span:nth-child(3){ top:22px; }
.nav-toggle:checked + .hamburger span:nth-child(1){ transform:translateY(10px) rotate(45deg); }
.nav-toggle:checked + .hamburger span:nth-child(2){ opacity:0; }
.nav-toggle:checked + .hamburger span:nth-child(3){ transform:translateY(-10px) rotate(-45deg); }
.nav-toggle:checked ~ .menu{ transform: translateY(0); opacity:1; pointer-events:auto; }

.hero{ padding: 96px 0 48px; background: radial-gradient(1200px 600px at 80% -10%, rgba(92,200,255,.08), transparent 60%); }
.hero-grid{ display:grid; grid-template-columns: 1.3fr .7fr; gap:48px; align-items:center; }
.hero h1{ font-size: clamp(32px, 4vw, 48px); line-height:1.15; margin: 8px 0 10px; }
.hero h1 span{ color: var(--primary); }
.lead{ font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 60ch; }
.cta{ display:flex; gap:12px; margin-top:22px; flex-wrap: wrap; }
.hero-card{
  border-radius: 20px; overflow:hidden; background: var(--surface);
  border:1px solid rgba(255,255,255,.08); box-shadow: var(--shadow);
}
.hero-card img{ display:block; width:100%; height:auto; }


.about-card{
  background: var(--surface); border:1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 20px; box-shadow: var(--shadow);
}
.meta{ list-style:none; padding:0; margin:0 0 16px; }
.meta li{ display:flex; gap:8px; padding:6px 0; border-bottom:1px dashed rgba(255,255,255,.08); }
.meta li:last-child{ border-bottom:none; }
.meta span{ color: var(--muted); min-width: 130px; display:inline-block; }
.checks{ list-style: none; padding:0; margin:16px 0 0; }
.checks li{ padding-left:28px; position:relative; margin:8px 0; }
.checks li::before{
  content:"✓"; position:absolute; left:0; top:0; color: var(--ok);
}


.skills-grid{
  display:grid; gap:20px;
  grid-template-columns: repeat(4, minmax(0,1fr));
  margin-top: 22px;
}
.skill{
  background: var(--card); border:1px solid rgba(255,255,255,.08);
  border-radius:16px; padding:18px; transition:transform .12s ease, border-color .2s ease;
}
.skill:hover{ transform: translateY(-2px); border-color: rgba(92,200,255,.35); }
.skill-icon{ font-size:24px; line-height:1; margin-bottom:6px; }


.projects-grid{
  display:grid; gap:24px; grid-template-columns: repeat(3, minmax(0,1fr));
  margin-top: 22px;
}
.card{
  background: var(--card); border:1px solid rgba(255,255,255,.08); border-radius:16px;
  overflow:hidden; box-shadow: var(--shadow); display:flex; flex-direction:column;
}
.card img{ width:100%; height:180px; object-fit:cover; background:#0e1116; }
.card-body{ padding:16px; display:flex; flex-direction:column; gap:10px; }
.card-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.timeline{ position:relative; margin-top:22px; }
.timeline::before{
  content:""; position:absolute; left:12px; top:0; bottom:0; width:2px; background: rgba(255,255,255,.12);
}
.tl-item{ position:relative; padding-left:40px; margin: 22px 0; }
.tl-dot{
  position:absolute; left:7px; top:6px; width:10px; height:10px; background: var(--primary); border-radius:50%;
  box-shadow: 0 0 0 4px rgba(92,200,255,.18);
}
.tl-content header{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.tl-content header span{ color: var(--muted); font-size:.95rem; }


.contact{ list-style:none; padding:0; margin:0; }
.contact li{ margin:8px 0; }
.contact a{ color: var(--primary); text-decoration:none; }
.contact a:hover{ text-decoration:underline; }

.contact-form{
  background: var(--surface); border:1px solid rgba(255,255,255,.08);
  border-radius:16px; padding:18px; box-shadow: var(--shadow);
}
.contact-form label{ display:block; margin-bottom:12px; }
.contact-form span{ display:block; margin-bottom:6px; color: var(--muted); font-size:.95rem; }
.contact-form input,
.contact-form textarea{
  width:100%; border:1px solid rgba(255,255,255,.12); background: #0b1016; color: var(--fg);
  padding:12px 14px; border-radius:12px; outline:none;
}
.contact-form input:focus,
.contact-form textarea:focus{ border-color: rgba(92,200,255,.5); }


.site-footer{ padding: 22px 0; border-top:1px solid rgba(255,255,255,.06); background: var(--surface); }
.footer-grid{ display:flex; align-items:center; justify-content:space-between; }
.topo{ text-decoration:none; color: var(--muted); }
.topo:hover{ color: var(--fg); }


@media (max-width: 980px){
  .grid-2{ grid-template-columns: 1fr; }
  .hero-grid{ grid-template-columns: 1fr; }
  .skills-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .projects-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .menu{ position: absolute; inset: 64px 0 auto 0; background: var(--surface);
         transform: translateY(-12px); opacity:0; pointer-events:none; transition: .2s ease;
         padding: 14px 24px; display:flex; flex-direction:column; gap:14px; border-bottom:1px solid rgba(255,255,255,.06); }
  .hamburger{ display:block; }
}

@media (max-width: 640px){
  .skills-grid{ grid-template-columns: 1fr; }
  .projects-grid{ grid-template-columns: 1fr; }
}
