:root {
  --bg: #0b0f19;
  --bg-alt: #0f1524;
  --surface: #151c2e;
  --surface-2: #1b2336;
  --border: #232c42;
  --text: #e7ecf5;
  --muted: #9aa6bd;
  --accent: #3ddc84;
  --accent-2: #4f8cff;
  --accent-soft: rgba(61, 220, 132, 0.12);
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 25, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.navbar.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.brand-sub { color: var(--accent); font-weight: 600; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: 0.3s;
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 80% -10%, rgba(79, 140, 255, 0.18), transparent),
    radial-gradient(500px 400px at 10% 20%, rgba(61, 220, 132, 0.14), transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(61, 220, 132, 0.3);
  font-weight: 600;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.1; margin-top: 18px; }
.accent { color: var(--accent); }
.role {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 600; color: var(--accent-2); margin-top: 6px;
}
.lead { color: var(--muted); margin-top: 18px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: 0.85rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px; font-weight: 600;
  font-size: 0.95rem; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #06210f; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(61, 220, 132, 0.3); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; }
.avatar-card {
  position: relative;
  width: 260px; height: 260px;
  display: grid; place-items: center;
}
.avatar {
  width: 180px; height: 180px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 3rem; font-weight: 800;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 2px solid var(--border);
  color: var(--accent);
  z-index: 2;
}
.avatar-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px dashed rgba(79, 140, 255, 0.4);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.badge {
  position: absolute; z-index: 3;
  font-size: 0.72rem; font-weight: 700;
  padding: 6px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.badge-kotlin { top: 6px; right: 6px; color: var(--accent); }
.badge-compose { bottom: 30px; left: -6px; color: var(--accent-2); }
.badge-android { bottom: 6px; right: 18px; color: #ffb74d; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-tag {
  display: inline-block; color: var(--accent);
  font-weight: 600; font-size: 0.8rem; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 10px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 30px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-text { color: var(--muted); }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s;
}
.skill-card:hover { transform: translateY(-4px); border-color: var(--accent-2); }
.skill-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.skill-card p { color: var(--muted); font-size: 0.88rem; }
.skill-icon { font-size: 1.5rem; margin-bottom: 10px; }

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.project-card h4 { font-size: 1.15rem; margin-bottom: 8px; }
.project-card p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.project-tags span {
  font-size: 0.72rem; font-weight: 600; color: var(--accent-2);
  background: rgba(79, 140, 255, 0.1);
  padding: 4px 10px; border-radius: 999px;
}
.project-meta { margin-top: 16px; color: var(--muted); font-size: 0.82rem; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 22px; position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: -26px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline-item h4 { font-size: 1.05rem; }
.timeline-item .meta { color: var(--accent-2); font-size: 0.85rem; font-weight: 600; margin: 2px 0 6px; }
.timeline-item p { color: var(--muted); font-size: 0.9rem; }

/* Contact */
.contact-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.contact-text { color: var(--muted); margin-bottom: 26px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.contact-list { list-style: none; display: inline-flex; flex-direction: column; gap: 10px; text-align: left; }
.contact-list li { color: var(--text); }
.contact-list span { display: inline-block; width: 80px; color: var(--muted); font-size: 0.85rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 26px 0; }
.footer-inner { text-align: center; color: var(--muted); font-size: 0.88rem; }

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

/* Responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .hero-stats, .hero-actions { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 70px; right: 0; left: 0;
    flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height 0.3s;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 14px 24px; border-top: 1px solid var(--border); }
  .menu-toggle { display: flex; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 22px; }
}
