/* ===========================================================
   akaamil.com — dark developer theme
   =========================================================== */
:root {
  --bg:        #0a0c10;
  --bg-soft:   #0d1117;
  --bg-card:   #11161d;
  --border:    #1e2530;
  --border-hi: #2a3340;
  --text:      #c9d1d9;
  --text-dim:  #7d8792;
  --text-mute: #56606b;
  --accent:    #64ffda;
  --accent-dim:#3dd7b8;
  --accent-glow: rgba(100, 255, 218, 0.14);
  --white:     #e6edf3;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1080px;
  --radius: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.15;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }

.prompt { color: var(--accent); font-family: var(--mono); }
.hl { color: var(--accent); }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 12, 16, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(10, 12, 16, 0.9); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--white); }
.nav__logo .cursor { color: var(--accent); animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  color: var(--text-dim); font-size: 0.9rem; font-weight: 500;
  font-family: var(--mono); position: relative;
}
.nav__links a::before { content: ""; }
.nav__links a:hover { color: var(--accent); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--accent); border-radius: 2px; transition: 0.3s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; z-index: 1; }
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center;
}
.hero__content { min-width: 0; }

/* ---- Avatar ---- */
.hero__avatar { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.avatar {
  position: relative; width: 260px; height: 260px; border-radius: 50%;
  background: linear-gradient(150deg, var(--bg-card), var(--bg-soft));
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(100,255,218,0.06), 0 22px 60px rgba(0,0,0,0.5), 0 0 60px var(--accent-glow);
  display: grid; place-items: center; overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
.avatar::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  background: conic-gradient(from 180deg, transparent, var(--accent-glow), transparent 60%);
  pointer-events: none; mix-blend-mode: screen;
}
.avatar__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.avatar__mono {
  font-family: var(--mono); font-size: 5.5rem; font-weight: 700; color: var(--accent);
  letter-spacing: -0.03em; z-index: 1; text-shadow: 0 0 30px var(--accent-glow);
}
.avatar__badge {
  font-family: var(--mono); font-size: 0.78rem; color: var(--text-dim);
  border: 1px solid var(--border); background: var(--bg-soft);
  padding: 6px 14px; border-radius: 100px; display: inline-flex; align-items: center; gap: 8px;
}
.avatar__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero__glow {
  position: absolute; top: 10%; right: -5%; width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(30px); z-index: 0; pointer-events: none;
}
.hero__eyebrow { font-family: var(--mono); color: var(--accent); font-size: 0.95rem; margin-bottom: 18px; }
.hero__name {
  font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--white); margin-bottom: 8px;
}
.hero__role {
  font-size: clamp(1.3rem, 3.4vw, 2.2rem); font-weight: 700; color: var(--text-dim);
  margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
}
.hero__role-static { color: var(--text-dim); }
.hero__role-dyn { font-family: var(--mono); color: var(--accent); font-size: 0.72em; font-weight: 600; }
.hero__role-dyn::after { content: "▋"; animation: blink 1.1s step-end infinite; margin-left: 2px; }
.hero__tagline { max-width: 620px; font-size: 1.1rem; color: var(--text-dim); margin-bottom: 28px; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim);
  border: 1px solid var(--border); background: var(--bg-soft);
  padding: 6px 14px; border-radius: 100px; display: inline-flex; align-items: center; gap: 8px;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.btn {
  font-family: var(--mono); font-size: 0.9rem; font-weight: 600;
  padding: 13px 24px; border-radius: 8px; cursor: pointer;
  transition: all 0.22s var(--ease); border: 1px solid transparent; display: inline-block;
}
.btn--primary { background: var(--accent); color: #04231c; }
.btn--primary:hover { background: var(--accent-dim); transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn--ghost { border-color: var(--border-hi); color: var(--accent); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-glow); transform: translateY(-2px); }

.hero__stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 640px; }
.hero__stats li { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--border-hi); padding-left: 16px; }
.hero__stats strong { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--accent); font-weight: 800; font-family: var(--mono); }
.hero__stats span { font-size: 0.82rem; color: var(--text-mute); }

/* ===== Sections ===== */
.section { position: relative; z-index: 1; padding: 90px 0; }
.section__title {
  font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; color: var(--white);
  margin-bottom: 48px; display: flex; align-items: center; gap: 14px;
}
.section__title--center { justify-content: center; }
.section__idx { font-family: var(--mono); color: var(--accent); font-size: 0.7em; font-weight: 600; }
.section__title::after {
  content: ""; flex: 1; height: 1px; max-width: 240px;
  background: linear-gradient(90deg, var(--border-hi), transparent);
}
.section__title--center::after { display: none; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 46px; align-items: start; }
.about__text p { color: var(--text-dim); margin-bottom: 18px; }
.about__text strong { color: var(--white); }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.card__label { font-family: var(--mono); color: var(--accent); font-size: 0.82rem; margin: 0 0 12px; }
.card__list { list-style: none; margin-bottom: 22px; }
.card__list li { font-size: 0.92rem; color: var(--text-dim); padding-left: 20px; position: relative; margin-bottom: 8px; }
.card__list li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }
.langs { display: flex; flex-direction: column; gap: 8px; }
.langs span { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--text-dim); font-family: var(--mono); }
.langs em { color: var(--text-mute); font-style: normal; font-size: 0.82rem; }

/* ===== Timeline ===== */
.timeline { list-style: none; position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl { position: relative; padding-bottom: 42px; }
.tl:last-child { padding-bottom: 0; }
.tl::before {
  content: ""; position: absolute; left: -26px; top: 6px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); transform: translateX(-1px);
}
.tl__head { margin-bottom: 14px; }
.tl__head h3 { font-size: 1.2rem; color: var(--white); font-weight: 700; }
.tl__co { display: block; color: var(--accent-dim); font-family: var(--mono); font-size: 0.88rem; margin-top: 2px; }
.tl__date { display: inline-block; color: var(--text-mute); font-family: var(--mono); font-size: 0.8rem; margin-top: 4px; }
.tl__points { list-style: none; }
.tl__points li { color: var(--text-dim); font-size: 0.95rem; padding-left: 22px; position: relative; margin-bottom: 8px; }
.tl__points li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }
.tl__points strong { color: var(--white); }

/* ===== Projects ===== */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.proj {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); position: relative; overflow: hidden;
}
.proj::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(circle at 100% 0%, var(--accent-glow), transparent 55%);
  opacity: 0; transition: opacity 0.3s var(--ease); pointer-events: none;
}
.proj:hover { transform: translateY(-6px); border-color: var(--border-hi); }
.proj:hover::after { opacity: 1; }
.proj--feature { border-color: var(--border-hi); }
.proj__year--live {
  color: var(--accent); border: 1px solid var(--accent);
  padding: 3px 11px 3px 9px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 7px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s infinite; }
.proj__title a { color: var(--white); transition: color 0.2s var(--ease); }
.proj__title a:hover { color: var(--accent); }
.proj__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.proj__folder { color: var(--accent); font-size: 1.4rem; }
.proj__year { font-family: var(--mono); font-size: 0.78rem; color: var(--text-mute); }
.proj__title { font-size: 1.3rem; color: var(--white); font-weight: 700; margin-bottom: 4px; }
.proj__sub { font-family: var(--mono); font-size: 0.82rem; color: var(--accent-dim); margin-bottom: 14px; }
.proj__desc { font-size: 0.92rem; color: var(--text-dim); margin-bottom: 20px; }
.proj__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.proj__tags li { font-family: var(--mono); font-size: 0.74rem; color: var(--text-dim); background: var(--bg-soft); border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px; }

/* ===== Skills ===== */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.skills__group { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.skills__label { font-family: var(--mono); color: var(--accent); font-size: 0.85rem; margin-bottom: 16px; }
.skills__group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.skills__group li { font-family: var(--mono); font-size: 0.82rem; color: var(--text-dim); padding: 5px 11px; border: 1px solid var(--border); border-radius: 6px; transition: 0.2s var(--ease); }
.skills__group li:hover { color: var(--accent); border-color: var(--accent); }

/* ===== Contact ===== */
.contact { max-width: 680px; text-align: center; }
.contact__lead { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 36px; }
.form { text-align: left; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field span { font-family: var(--mono); font-size: 0.82rem; color: var(--text-dim); }
.field input, .field textarea {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; color: var(--text); font-family: var(--sans); font-size: 0.95rem;
  transition: border-color 0.2s var(--ease); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form__submit { width: 100%; margin-top: 8px; border: 0; }
.form__status { font-family: var(--mono); font-size: 0.85rem; margin-top: 14px; text-align: center; min-height: 20px; }
.form__status.ok { color: var(--accent); }
.form__status.err { color: #ff6b6b; }

.contact__links { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; font-family: var(--mono); font-size: 0.9rem; }
.contact__links a { color: var(--text-dim); }
.contact__links a:hover { color: var(--accent); }
.contact__links span { color: var(--text-mute); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 34px 0; position: relative; z-index: 1; }
.footer__inner { text-align: center; }
.footer p { font-family: var(--mono); font-size: 0.85rem; color: var(--text-dim); }
.footer__note { color: var(--text-mute); font-size: 0.78rem; margin-top: 6px; }

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

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__avatar { order: -1; }
  .avatar { width: 180px; height: 180px; }
  .avatar__mono { font-size: 3.8rem; }
}
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 28px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}
@media (max-width: 680px) {
  .nav__links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 8px 0; transform: translateY(-130%); transition: transform 0.3s var(--ease); pointer-events: none;
  }
  .nav__links.open { transform: translateY(0); pointer-events: auto; }
  .nav__links a { padding: 14px 24px; width: 100%; }
  .nav__toggle { display: flex; }
  .form__row { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; text-align: center; }
}

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