:root {
  --bg: #0a0a0f;
  --bg-soft: #12121a;
  --card: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --fg: #f4f4f7;
  --muted: #a9adba;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --grad: linear-gradient(120deg, #818cf8 0%, #22d3ee 100%);
  --max-width: 1120px;
  --radius: 18px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Background orbs */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.28; }
.orb-1 { width: 520px; height: 520px; background: var(--accent); top: -160px; left: -120px; }
.orb-2 { width: 480px; height: 480px; background: var(--accent-2); bottom: -180px; right: -120px; opacity: 0.20; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-style: normal; }
h1, h2, h3, .brand { font-family: "Sora", "Inter", sans-serif; letter-spacing: -0.02em; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.3rem; font-weight: 700; color: var(--fg); text-decoration: none; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 14px rgba(129, 140, 248, 0.7); }
.social a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--fg); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 0.5rem 0.9rem; border: 1px solid var(--card-border); border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.social a:hover { background: var(--card); border-color: var(--accent); transform: translateY(-1px); }

/* Hero */
.hero { padding-block: clamp(3rem, 9vw, 6.5rem); }
.hero-inner {
  display: grid; grid-template-columns: 320px 1fr;
  gap: clamp(2rem, 6vw, 4.5rem); align-items: center;
}
.hero-photo { display: flex; justify-content: center; }
.photo-ring {
  padding: 5px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 20px 60px -20px rgba(99, 102, 241, 0.6);
}
.photo-ring img {
  width: 300px; height: 300px; max-width: 70vw; aspect-ratio: 1/1;
  object-fit: cover; border-radius: 50%; display: block;
  border: 4px solid var(--bg);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--muted); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.6);} 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0);} 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0);} }

h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 800; line-height: 1.05; }
.role { font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 600; color: var(--fg); margin-top: 0.6rem; }
.lead { color: var(--muted); font-size: 1.05rem; margin-top: 1.2rem; max-width: 60ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--grad); color: #0a0a0f; box-shadow: 0 10px 30px -8px rgba(99,102,241,0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(99,102,241,0.75); }
.btn-ghost { color: var(--fg); border: 1px solid var(--card-border); }
.btn-ghost:hover { border-color: var(--accent); background: var(--card); transform: translateY(-2px); }

/* Sections */
.section { padding-block: clamp(2.5rem, 7vw, 5rem); }
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700;
  display: flex; align-items: center; gap: 0.7rem; margin-bottom: 2rem;
}
.section-title .emoji { font-size: 0.9em; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(129,140,248,0.5); background: rgba(255,255,255,0.05); }
.card-icon {
  width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.5rem;
  border-radius: 12px; background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25);
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* Tech section */
.tech-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.tech-image { margin: 0; }
.tech-image img {
  width: 100%; height: auto; display: block; border-radius: var(--radius);
  border: 1px solid var(--card-border); box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8);
}
.tech-body p { color: var(--muted); }
.tech-body p + p { margin-top: 1rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.chips li {
  font-size: 0.9rem; font-weight: 500; color: var(--fg);
  padding: 0.5rem 0.9rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--card-border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.chips li:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; margin-top: 2rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.15rem; }
.footer-copy { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }
.footer-social {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  color: var(--fg); border: 1px solid var(--card-border); transition: all 0.2s ease;
}
.footer-social:hover { border-color: var(--accent); background: var(--card); transform: translateY(-2px); }

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

/* Responsive */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-photo { order: -1; }
  .lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .tech-inner { grid-template-columns: 1fr; }
  .section-title { justify-content: center; }
  .chips { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
  html { scroll-behavior: auto; }
}
