/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Variables ───────────────────────────────────────────── */
:root {
  --blue:     #1B4B8A;
  --surface:  #EEF2F8;
  --border:   #DDE6F0;
  --text:     #111111;
  --muted:    #6B6B6B;
  --spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

/* ── Base ────────────────────────────────────────────────── */
html, body {
  background: #ffffff;
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout ──────────────────────────────────────────────── */
main {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 24px 0;
}

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes dot-ping {
  0%   { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(2.8); opacity: 0; }
}

@keyframes iconBounceIn {
  0%   { opacity: 0; transform: scale(0.7) translateY(12px); }
  65%  { opacity: 1; transform: scale(1.04) translateY(-3px); }
  85%  { transform: scale(0.99) translateY(1px); }
  100% { transform: scale(1) translateY(0); }
}

/* ── Hero — staggered fade-up ───────────────────────────── */
.hero > * {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) both;
}
.hero > *:nth-child(1) { animation-delay: 0.05s; }
.hero > *:nth-child(2) { animation-delay: 0.14s; }
.hero > *:nth-child(3) { animation-delay: 0.23s; }
.hero > *:nth-child(4) { animation-delay: 0.32s; }

.name    { font-size: 18px; color: var(--text); font-weight: 500; }
.tagline { font-size: 18px; color: var(--muted); margin-top: 8px; }
.bio     { font-size: 18px; color: var(--muted); margin-top: 12px; }

/* ── Availability badge ──────────────────────────────────── */
#availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--blue);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 100px;
  user-select: none;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  position: relative;
  flex-shrink: 0;
}

#availability-badge.active .dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  opacity: 0;
  animation: dot-ping 2s ease-out infinite;
}

/* ── Projects ────────────────────────────────────────────── */
.projects {
  margin-top: 48px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.40s both;
}

/* ── Icon row ────────────────────────────────────────────── */
.icon-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: rotate(-6deg);
  transition: transform 0.4s var(--ease-out);
}

.icon-wrap:hover {
  transform: rotate(0deg) translateY(-6px);
}

.icon-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── App icon shell ──────────────────────────────────────── */
.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: box-shadow 0.4s ease;
  animation: iconBounceIn 0.7s var(--spring) 0.58s both;
}

.icon-wrap:hover .app-icon {
  box-shadow: 0 10px 24px rgba(27,75,138,0.15);
}

/* Image variant */
.app-icon--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── App list ────────────────────────────────────────────── */
.app-list {
  list-style: none;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 2.4;
}

.app-list li { transition: color 0.15s ease; }
.app-list li:hover { color: #444; }

.app-name { font-weight: 500; color: var(--text); }

.app-link {
  color: var(--blue);
  font-weight: 500;
}
.app-link:hover { text-decoration: underline; }

.tech-inline { color: var(--muted); font-size: 13px; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-bottom: 56px;
  font-size: 14px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.50s both;
}

footer a { color: var(--blue); }
footer a:hover { text-decoration: underline; }
footer .social-link:hover { text-decoration: none; }

.footer-sep { color: var(--border); }

.social-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}
.social-link:hover { opacity: 1; }

.social-icon {
  width: 17px;
  height: 17px;
  color: var(--text);
  filter: brightness(0);
}

.copyright {
  width: 100%;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  main { padding: 60px 20px 0; }
  .app-icon { width: 66px; height: 66px; }
}
