/* ============ RESET & BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #060a16;
  --bg-alt: #080d1c;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 197, 255, 0.14);
  --border-strong: rgba(96, 165, 250, 0.4);
  --text: #eef2ff;
  --text-dim: #94a3b8;
  --text-faint: #64748b;
  --blue: #38bdf8;
  --cyan: #22d3ee;
  --purple: #8b5cf6;
  --gradient: linear-gradient(90deg, var(--blue), var(--purple));
  --radius: 16px;
  --container: 1180px;
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.15);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; line-height: 1.2; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

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

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

.tiny-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2px;
}

/* ============ BACKGROUND DECOR ============ */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(148, 197, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 197, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.bg-glow {
  position: fixed;
  z-index: -3;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
}
.bg-glow--one { top: -200px; left: -150px; background: var(--purple); animation: drift-one 22s ease-in-out infinite; }
.bg-glow--two { top: 20%; right: -200px; background: var(--blue); animation: drift-two 26s ease-in-out infinite; }

@keyframes drift-one {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.15); }
}
@keyframes drift-two {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -40px) scale(1.1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 22, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.brand__logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient);
  font-size: 0.75rem;
  color: #04101f;
  font-weight: 800;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
  white-space: nowrap;
  padding-bottom: 4px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__link:hover, .nav__link.active { color: var(--text); }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }

.navbar__cta { flex-shrink: 0; }
.navbar__burger { display: none; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 22px;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn--pill { border-radius: 999px; }
.btn--primary {
  position: relative;
  background: var(--gradient);
  color: #04101f;
  overflow: hidden;
}
.btn--primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn--primary:hover::before { left: 130%; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35); }
.btn--full { width: 100%; }
.arrow { transition: transform 0.2s ease; }
.btn--primary:hover .arrow { transform: translateX(3px); }

/* ============ HERO ============ */
.hero { padding: 64px 0 40px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid var(--border-strong);
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.06);
  margin-bottom: 28px;
}

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.dot--pulse { animation: pulse 1.8s infinite; }
.dot--live { background: #22c55e; animation: pulse 1.8s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
}

.hero__title { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 20px; }

.hero__role {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  min-height: 1.6em;
}
.typewriter { color: var(--cyan); font-weight: 600; }
.cursor { color: var(--cyan); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__desc { color: var(--text-dim); max-width: 560px; margin-bottom: 32px; }

.hero__actions { display: flex; gap: 28px; margin-bottom: 40px; flex-wrap: wrap; }
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  transition: color 0.2s ease;
}
.action-btn__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1.3rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.action-btn:hover { color: var(--text); }
.action-btn:hover .action-btn__icon {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.hero__stats { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 14px 22px;
  text-align: center;
  min-width: 110px;
}
.stat-card__value { display: block; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--blue); }
.stat-card__label { display: block; font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); margin-top: 2px; }

/* Hero visual / photo */
.hero__visual { display: flex; flex-direction: column; align-items: center; }
.find-me { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.social-row { display: flex; gap: 12px; margin-bottom: 40px; }
.social-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s ease;
}
.social-icon:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.photo-ring { position: relative; width: 320px; height: 320px; animation: float 6s ease-in-out infinite; }
.photo-frame {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-glow);
  background: radial-gradient(circle at 40% 30%, rgba(56, 189, 248, 0.15), rgba(139, 92, 246, 0.1));
}
.photo-frame__img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame--placeholder::before {
  content: "HS";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 4rem;
  color: var(--blue);
  opacity: 0.5;
}

.photo-ring__badge {
  position: absolute;
  background: rgba(10, 16, 32, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.8rem;
  z-index: 2;
}
.photo-ring__badge--current { top: -14px; left: -30px; }
.photo-ring__badge--focus { bottom: 30px; right: -60px; }
.photo-ring__badge--focus ul { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; }
.photo-ring__badge--focus li::before { content: "• "; color: var(--blue); }

.photo-ring__tag {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 16, 32, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 2;
}

/* ============ SECTION SHARED ============ */
.section { padding: 96px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
  background: rgba(56, 189, 248, 0.05);
}
.section__title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; position: relative; }
.section__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
  margin: 18px auto 0;
}
.section__subtitle { color: var(--text-dim); font-size: 0.98rem; }

.link-text { color: var(--blue); font-weight: 600; }

/* ============ ABOUT ============ */
.about__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about__text p { color: var(--text-dim); margin-bottom: 16px; }

.about__points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.point-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.point-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.point-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  font-size: 1.2rem;
}

.about__info { display: flex; flex-direction: column; gap: 14px; }
.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.info-row__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--gradient);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ============ EDUCATION / TIMELINE ============ */
.timeline { position: relative; padding: 20px 0; }
.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--border-strong), var(--border));
  transform: translateX(-50%);
}
.timeline__item {
  position: relative;
  width: 46%;
  margin-bottom: 40px;
}
.timeline__item--left { margin-right: auto; text-align: right; }
.timeline__item--right { margin-left: auto; }

.timeline__dot {
  position: absolute;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.15);
}
.timeline__item--left .timeline__dot { right: -35px; }
.timeline__item--right .timeline__dot { left: -35px; }

.timeline-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.timeline-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.timeline-card h3 { font-size: 1.1rem; margin: 10px 0 6px; }
.timeline-card__field { color: var(--blue); font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; }
.timeline-card__place { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
}
.pill--muted { background: rgba(255,255,255,0.05); color: var(--text-dim); border: 1px solid var(--border); }
.pill--accent { background: rgba(56, 189, 248, 0.1); color: var(--blue); border: 1px solid var(--border-strong); }

/* ============ SKILLS ============ */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.skill-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.skill-card:hover, .skill-card--highlight { border-color: var(--border-strong); }
.skill-card:hover { transform: translateY(-4px); }
.skill-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; position: relative; }
.skill-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.skill-card__head h3 { font-size: 1rem; }
.skill-card__num { position: absolute; right: 0; top: 0; font-size: 0.7rem; color: var(--text-faint); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.78rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.tag:hover { border-color: var(--border-strong); color: var(--text); }

/* ============ PROJECTS ============ */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: start; }
.project-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.project-card:hover { border-color: var(--border-strong); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(2, 8, 20, 0.4); }

.project-card__media {
  position: relative;
  height: 200px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.project-card__media--alarm { background: radial-gradient(circle at 30% 30%, rgba(56,189,248,0.28), transparent 60%), linear-gradient(135deg, rgba(56,189,248,0.14), rgba(139,92,246,0.14)); }
.project-card__media--echoguard { background: radial-gradient(circle at 70% 30%, rgba(139,92,246,0.28), transparent 60%), linear-gradient(135deg, rgba(139,92,246,0.14), rgba(56,189,248,0.14)); }
.project-card__media-icon { font-size: 3.4rem; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35)); animation: float 5s ease-in-out infinite; }

.status-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.status-badge--done { background: rgba(34, 197, 94, 0.14); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.35); }
.status-badge--dev { background: rgba(251, 191, 36, 0.14); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.35); }

.project-card__body { padding: 26px; }
.project-card__body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.project-card__tagline { color: var(--blue); font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; }
.project-card__desc { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 18px; }

.micro-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  margin-bottom: 20px;
}
.feature-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.project-card .tag-cloud { margin-bottom: 22px; }
.project-card__links { display: flex; gap: 12px; }

.link-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--gradient);
  color: #04101f;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.link-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.link-btn:hover::before { left: 130%; }
.link-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(56, 189, 248, 0.3); }
.link-btn--ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text); }
.link-btn--ghost:hover { box-shadow: none; border-color: var(--blue); }
.link-btn--full { width: 100%; margin-top: 18px; }

/* ============ SERVICES ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.service-card__icon { font-size: 2rem; display: inline-block; margin-bottom: 16px; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.service-card p { color: var(--text-dim); font-size: 0.9rem; }

/* ============ ACHIEVEMENTS ============ */
.achievements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.achievement-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.achievement-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.achievement-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.achievement-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient);
  font-size: 1rem;
}
.achievement-card__year { font-size: 0.78rem; color: var(--text-faint); }
.achievement-card h3 { font-size: 1rem; margin-bottom: 6px; }
.achievement-card__issuer { color: var(--blue); font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; }
.achievement-card .tag-cloud { margin-bottom: auto; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.contact-info__intro { color: var(--text-dim); margin-bottom: 28px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-row:hover { border-color: var(--border-strong); transform: translateX(4px); }
.contact-row__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--gradient);
  font-size: 1rem;
  flex-shrink: 0;
  color: #04101f;
  font-weight: 700;
}

.contact-form {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  resize: vertical;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--border-strong); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.form-status { font-size: 0.85rem; color: var(--cyan); min-height: 1.2em; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.back-to-top { color: var(--blue); font-weight: 600; }

/* ============ LINK TOAST (missing project link notice) ============ */
.link-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: rgba(10, 16, 32, 0.95);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(2, 8, 20, 0.4);
}
.link-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Staggered reveal for grid/list items */
.skills-grid .skill-card.reveal:nth-child(1) { transition-delay: 0s; }
.skills-grid .skill-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.skills-grid .skill-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.skills-grid .skill-card.reveal:nth-child(4) { transition-delay: 0.24s; }

.projects-grid .project-card.reveal:nth-child(1) { transition-delay: 0s; }
.projects-grid .project-card.reveal:nth-child(2) { transition-delay: 0.12s; }

.services-grid .service-card.reveal:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.services-grid .service-card.reveal:nth-child(3) { transition-delay: 0.16s; }

.achievements-grid .achievement-card.reveal:nth-child(1) { transition-delay: 0s; }
.achievements-grid .achievement-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.achievements-grid .achievement-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.achievements-grid .achievement-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.achievements-grid .achievement-card.reveal:nth-child(5) { transition-delay: 0.32s; }

.about__points .point-card.reveal:nth-child(1) { transition-delay: 0s; }
.about__points .point-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.about__points .point-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.about__points .point-card.reveal:nth-child(4) { transition-delay: 0.24s; }

/* Section title underline grows in on reveal */
.section__title::after { width: 0; transition: width 0.7s ease 0.25s; }
.section__head.is-visible .section__title::after { width: 60px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 40px; }
  .about__grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }

  .nav { display: none; }
  .navbar__cta { display: none; }
  .navbar__burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
  }
  .navbar__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  .navbar.nav-open .navbar__inner { flex-wrap: wrap; height: auto; padding-bottom: 20px; }
  .navbar.nav-open .nav {
    display: flex;
    flex-direction: column;
    order: 3;
    flex-basis: 100%;
    background: #0a0f1f;
    border-top: 1px solid var(--border);
    padding: 20px 4px 4px;
    gap: 16px;
  }
  .navbar.nav-open .navbar__cta {
    display: inline-flex;
    order: 4;
    flex-basis: 100%;
    justify-content: center;
    margin-top: 16px;
  }

  .timeline__line { left: 20px; }
  .timeline__item { width: 100%; padding-left: 50px; text-align: left !important; margin-right: 0 !important; margin-left: 0 !important; }
  .timeline__item--left .timeline__dot, .timeline__item--right .timeline__dot { left: 13px; right: auto; }

  .photo-ring__badge--current { left: 0; }
  .photo-ring__badge--focus { right: 0; }
}

@media (max-width: 640px) {
  .skills-grid, .projects-grid, .services-grid, .achievements-grid { grid-template-columns: 1fr; }
  .about__points { grid-template-columns: 1fr; }
  .hero__stats { justify-content: center; }
  .photo-ring { width: 260px; height: 260px; }
  .section { padding: 64px 0; }
}
