:root {
  --bg: #070b18;
  --bg-2: #0b1024;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --text: #eaf0ff;
  --muted: #9aa6c4;
  --primary: #2f6bff;       /* electric blue */
  --accent: #16c8d4;        /* teal */
  --primary-2: #14b8a6;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --container: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 80% -10%, #11204a 0%, transparent 55%),
              radial-gradient(1000px 600px at 0% 10%, #0a2a33 0%, transparent 50%),
              var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(100% - 40px, var(--container)); margin: 0 auto; }

/* ---------- Background blobs ---------- */
.bg-blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35; }
.blob-1 { width: 420px; height: 420px; background: var(--primary); top: -80px; left: -60px; animation: float1 14s ease-in-out infinite; }
.blob-2 { width: 360px; height: 360px; background: var(--accent); bottom: -100px; right: -40px; animation: float2 18s ease-in-out infinite; }
.blob-3 { width: 300px; height: 300px; background: #7c3aed; top: 40%; left: 55%; opacity: 0.18; animation: float1 20s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,30px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px,-40px); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 24, 0.55);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 14px; font-weight: 800; color: #fff;
}
.brand-text strong { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 8px 14px; color: var(--muted); border-radius: 10px; font-size: 14px; font-weight: 500; transition: .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 10px 30px rgba(47,107,255,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(47,107,255,.5); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; padding: 70px 0 60px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-avatar { margin-bottom: 6px; }
.avatar-ring {
  width: 110px; height: 110px; border-radius: 50%; padding: 4px;
  background: conic-gradient(from 180deg, var(--primary), var(--accent), #7c3aed, var(--primary));
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-initials {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); font-size: 34px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-eyebrow { color: var(--muted); font-size: 15px; }
.hero-title {
  font-size: clamp(34px, 7vw, 60px); font-weight: 800; line-height: 1.1; letter-spacing: -1px;
  min-height: 1.2em;
}
.type-target { background: linear-gradient(120deg, #fff 10%, var(--accent) 60%, var(--primary) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 620px; color: var(--muted); font-size: 17px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero-social { display: flex; gap: 10px; margin-top: 10px; }
.hero-social a, .hero-social a:visited {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: .2s;
}
.hero-social a:hover { color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); transform: translateY(-3px); border-color: transparent; }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 1; padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.5px; }
.grid-2 { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }

/* ---------- About ---------- */
.about-photo { display: flex; justify-content: center; }
.photo-card {
  position: relative; width: 100%; max-width: 320px; aspect-ratio: 1; border-radius: 24px;
  background: linear-gradient(135deg, rgba(47,107,255,.25), rgba(22,200,212,.18));
  border: 1px solid var(--border); display: grid; place-items: center; box-shadow: var(--shadow);
}
.photo-initials { font-size: 92px; font-weight: 800; background: linear-gradient(135deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.photo-badge { position: absolute; bottom: 14px; background: rgba(7,11,24,.7); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--text); }
.about-text p { color: var(--muted); margin: 14px 0; }
.stats { display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 34px; font-weight: 800; background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 13px; color: var(--muted); }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: .25s; }
.skill-card:hover { transform: translateY(-4px); border-color: rgba(47,107,255,.5); background: var(--surface-2); }
.skill-card h3 { margin-bottom: 14px; font-size: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(47,107,255,.12); color: #cfe0ff; border: 1px solid rgba(47,107,255,.25); }
.tags.sm li { font-size: 12px; padding: 4px 10px; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(22,200,212,.5); box-shadow: var(--shadow); }
.project-thumb { height: 120px; display: grid; place-items: center; font-size: 40px; font-weight: 800; color: #fff; }
.thumb-edu { background: linear-gradient(135deg, #0F3D91, #0E7490); }
.thumb-aura { background: linear-gradient(135deg, #7c3aed, #db2777); }
.thumb-happy { background: linear-gradient(135deg, #0ea5e9, #14b8a6); }
.thumb-foot { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.project-body { padding: 18px; }
.project-body h3 { font-size: 18px; margin-bottom: 6px; }
.project-body p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; transition: .25s; }
.service-card:hover { transform: translateY(-4px); background: var(--surface-2); border-color: rgba(22,200,212,.5); }
.svc-icon { font-size: 30px; margin-bottom: 12px; }
.service-card h3 { font-size: 17px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.contact-grid { align-items: start; }
.contact-info p { color: var(--muted); margin: 14px 0 22px; max-width: 420px; }
.contact-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--muted); border-bottom: 1px solid var(--border); }
.contact-list a:hover { color: var(--accent); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.25);
  border: 1px solid var(--border); color: var(--text); font-size: 14px; font-family: inherit; transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,107,255,.18); }
.field textarea { resize: vertical; }
.form-note { margin-top: 12px; font-size: 14px; min-height: 18px; }
.form-note.ok { color: #4ade80; }
.form-note.err { color: #f87171; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 26px 0; background: rgba(7,11,24,.6); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
.footer-top:hover { color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; gap: 30px; }
  .skills-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: rgba(7,11,24,.97); border-bottom: 1px solid var(--border); padding: 12px; gap: 4px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px; }
  .nav-toggle { display: flex; }
}
@media (max-width: 520px) {
  .skills-grid, .services-grid { grid-template-columns: 1fr; }
  .stats { gap: 18px; }
}
