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

:root {
  /* Light palette */
  --bg:          #FFFFFF;
  --surface:     #F3F4F6;
  --surface-2:   #E5E7EB;
  --border:      #E5E7EB;
  --border-soft: #F3F4F6;

  /* Text */
  --text:        #1F2937;
  --text-muted:  #6B7280;
  --text-dim:    #9CA3AF;

  /* Accent — vivid blue from the image */
  --accent:      #4361EE;
  --accent-mid:  #7B96F8;
  --accent-glow: rgba(67, 97, 238, 0.1);
  --accent-soft: rgba(67, 97, 238, 0.05);

  /* Status */
  --green:       #22C55E;

  /* Type */
  --sans:  'Sora', sans-serif;
  --mono:  'JetBrains Mono', monospace;

  /* Space */
  --radius:  14px;
  --radius-sm: 8px;
  --gap:     16px;
  --max-w:   860px;

  /* Font scale */
  --fs-xs:   10px;
  --fs-sm:   11px;
  --fs-base: 13px;
  --fs-md:   15px;
  --fs-lg:   17px;
  --fs-xl:   24px;
  --fs-2xl:  36px;
  --fs-hero: clamp(40px, 6vw, 62px);
}

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(135deg, #FFFFFF 0%, #E0EAFF 100%);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ═══ NAVBAR ═══ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  max-width: var(--max-w);
  margin: 0px auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-bottom: 3.5px solid rgba(67, 97, 238, 0.2);
  border-left: 1.5px solid var(--border-soft);
  border-right: 1.5px solid var(--border-soft);
}

.nav-logo {
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin-left: auto;
}

.nav-link {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-cta {
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ═══ HERO ═══ */
.hero {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 32px 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 72px);
}

.hero-eyebrow {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero-heading {
  font-size: clamp(24px, 3vw, 22px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.hero-heading .accent {
  color: var(--accent); 
  font-size: 2.5em;
}

.hero-sub {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 550px;
  line-height: 1.75;
  margin-bottom: 32px;
}
.hero-sub strong { color: var(--accent); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 28px var(--accent-glow); }
.btn-primary.btn-large { font-size: var(--fs-md); padding: 14px 36px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Social icons row */
.hero-socials {
  display: flex;
  gap: 14px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
}
.social-icon:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ─ Hero visual (blob + avatar) ─ */
.scroll-arrow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
}
.scroll-arrow svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.hero-visual {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blob-wrap {
  position: relative;
  width: 320px;
  height: 320px;
}

.blob {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
}

.avatar-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  margin: 10px;
}
.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ═══ MAIN CONTENT ═══ */
.main-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* Reveal animation */
.reveal {
  animation: revealIn 0.6s ease forwards;
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─ Section base ─ */
.section-label {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
  font-family: Georgia, serif;
}
.section-body {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 32px;
}
.section-body strong { color: var(--accent); font-weight: 600; }

/* ─ Skills grid ─ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-bottom: 24px;
}
.skill-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px var(--accent-glow);
}
.skill-icon { font-size: 22px; display: block; margin-bottom: 10px; }
.skill-name {
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--text);
  margin-bottom: 4px;
}
.skill-desc {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  line-height: 1.6;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  padding: 5px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  color: var(--accent);
  background: var(--accent-soft);
  transition: border-color 0.2s, background 0.2s;
}
.tag:hover { border-color: var(--accent); background: var(--accent-glow); }

/* ─ Status row ─ */
.status-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.status-card, .time-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%       { transform: translateY(8px); opacity: 1; }
}
.status-text {
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--green);
}
.status-sub {
  font-family: var(--mono);
  color: var(--text);
  margin-top: 25px;
  letter-spacing: 0.04em;
}

.time-label {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.time-val {
  font-family: var(--mono);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.time-tz {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

/* ─ Projects ─ */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.project-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 32px var(--accent-glow);
}
.project-card--empty {
  background: var(--bg);
  border-style: dashed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: default;
}
.project-card--empty:hover { transform: none; box-shadow: none; border-color: var(--border); }

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-year {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
}
.project-arrow {
  font-size: 18px;
  color: var(--text-dim);
  transition: color 0.2s, transform 0.2s;
}
.project-card:hover .project-arrow { color: var(--accent); transform: translate(2px, -2px); }

.project-name {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.project-desc {
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.p-tag {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--accent);
  background: var(--accent-soft);
}
.empty-label {
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--text-dim);
}
.empty-sub {
  font-size: var(--fs-base);
  color: var(--text-dim);
  margin-top: 6px;
}

/* ─ Contact ─ */
.section--contact {
  text-align: left;
}
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.contact-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.c-key {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-width: 72px;
}
.c-val {
  font-size: var(--fs-md);
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
a.c-val:hover { color: var(--accent); }

/* ═══ FOOTER ═══ */
.footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 32px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 720px) {
  .navbar { padding: 16px 20px; }
  .nav-links { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding: 40px 20px 60px;
    min-height: auto;
  }
  .hero-visual { display: none; }

  .main-content { padding: 0 20px 60px; }

  .skills-grid { grid-template-columns: 1fr 1fr; }
  .status-row { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }

  .footer { flex-direction: column; gap: 8px; padding: 20px; text-align: center; }
}
