/* ═══════════════════════════════════════════════════════════
   PERSONAL SITE — Applied AI Engineer
   Design: Dark slate / cyan · Inter + JetBrains Mono
   ═══════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* ─── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Background layers */
  --bg:            #020617;   /* slate-950 */
  --bg-surface:    #0f172a;   /* slate-900 */
  --bg-elevated:   #1e293b;   /* slate-800 */
  --bg-hover:      #334155;   /* slate-700 */

  /* Borders */
  --border:        #1e293b;
  --border-subtle: #0f172a;
  --border-accent: rgba(34, 211, 238, 0.3);

  /* Text */
  --text:          #f1f5f9;   /* slate-100 */
  --text-2:        #94a3b8;   /* slate-400 */
  --text-3:        #475569;   /* slate-600 */

  /* Accent — cyan */
  --accent:        #22d3ee;   /* cyan-400 */
  --accent-dim:    #0891b2;   /* cyan-600 */
  --accent-glow:   rgba(34, 211, 238, 0.12);
  --accent-glow-strong: rgba(34, 211, 238, 0.25);

  /* Secondary accent — violet */
  --violet:        #a78bfa;
  --violet-glow:   rgba(167, 139, 250, 0.12);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing scale */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;
  --space-5xl:  8rem;

  /* Layout */
  --container:  1200px;
  --container-narrow: 760px;
  --radius:     0.5rem;
  --radius-lg:  0.75rem;

  /* Animation */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);

  /* Header */
  --header-h:   64px;
}

/* ─── BASE ───────────────────────────────────────────────── */
html {
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-glow-strong);
  color: var(--text);
}

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-hover); }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.125rem; font-weight: 600; }

p { color: var(--text-2); }
p strong { color: var(--text); font-weight: 600; }
p em { color: var(--text); font-style: italic; }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

/* ─── FOCUS ──────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─── SKIP LINK ──────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus { top: 0; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: #67e8f9; /* cyan-300 */
  border-color: #67e8f9;
  box-shadow: 0 0 24px var(--accent-glow-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-lg { padding: 0.8rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.825rem; }

/* ─── TAGS ───────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.2em 0.6em;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: border-color 0.2s, background 0.2s;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: var(--space-md);
}

/* ─── SECTION LAYOUT ─────────────────────────────────────── */
.section {
  padding: var(--space-5xl) var(--space-xl);
}

.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-inner--narrow {
  max-width: var(--container-narrow);
  text-align: center;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section-title {
  margin-bottom: var(--space-3xl);
}

.section-footer {
  margin-top: var(--space-2xl);
  text-align: center;
}

/* ─── SCROLL REVEAL ANIMATIONS ───────────────────────────── */
.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js-enabled .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .js-enabled .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  padding: 0.25em 0.6em;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  transition: background 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.nav-logo:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 12px var(--accent-glow);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  margin-left: auto;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 12px var(--accent-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 90;
  padding: var(--space-xl);
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + var(--space-3xl)) var(--space-xl) var(--space-5xl);
  overflow: hidden;
}

/* Dot grid background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(34, 211, 238, 0.18) 1px,
    transparent 1px
  );
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, black 30%, transparent 100%);
  pointer-events: none;
}

/* Ambient glow */
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.hero-content {
  position: relative;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  animation: fade-up 0.6s var(--ease) both;
}

.hero-name {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fade-up 0.6s 0.1s var(--ease) both;
}

.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: var(--space-xl);
  animation: fade-up 0.6s 0.2s var(--ease) both;
  min-height: 1.7em;
}

.typewriter {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.95em;
}
.typewriter::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--accent);
  margin-left: 1px;
}

.hero-bio {
  max-width: 540px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: var(--space-2xl);
  animation: fade-up 0.6s 0.3s var(--ease) both;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
  animation: fade-up 0.6s 0.4s var(--ease) both;
}

.hero-socials {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  animation: fade-up 0.6s 0.5s var(--ease) both;
}
.hero-socials a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-3);
  transition: color 0.2s;
}
.hero-socials a:hover { color: var(--accent); }
.hero-socials a span { display: none; }

/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4xl);
  align-items: start;
}

.about-text {
  max-width: 600px;
}
.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}
.about-text p:last-of-type { margin-bottom: var(--space-xl); }

.about-links {
  display: flex;
  gap: var(--space-md);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  min-width: 260px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   EXPERIENCE / TIMELINE
   ═══════════════════════════════════════════════════════════ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Left bar */
.timeline::before {
  content: '';
  position: absolute;
  left: 200px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  position: relative;
}

/* Dot on timeline */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 194px;
  top: calc(var(--space-2xl) + 0.35em);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px var(--accent-glow-strong);
  transition: transform 0.2s;
}
.timeline-item:hover::before {
  transform: scale(1.3);
}

.timeline-meta {
  text-align: right;
  padding-right: var(--space-xl);
  padding-top: 0.2em;
}

.timeline-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.4;
}

.timeline-company {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.3rem;
  line-height: 1.4;
}

.timeline-body {
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}
.timeline-item:last-child .timeline-body { border-bottom: none; }

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.timeline-achievements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.timeline-achievements li {
  font-size: 0.975rem;
  color: var(--text-2);
  padding-left: 1.25em;
  position: relative;
  line-height: 1.7;
}
.timeline-achievements li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-dim);
  font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.project-featured {
  grid-column: 1 / -1;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s var(--ease);
  overflow: hidden;
}
.project-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 40px var(--accent-glow);
  transform: translateY(-3px);
}

.project-card-inner {
  padding: var(--space-xl);
}

.project-featured .project-card-inner {
  display: grid;
  grid-template-columns: 1fr;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  padding: 0.2em 0.6em;
  border-radius: 4px;
}

.project-links {
  display: flex;
  gap: var(--space-md);
  margin-left: auto;
}
.project-links a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 500;
  transition: color 0.2s;
}
.project-links a:hover { color: var(--accent); }

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.project-card:hover .project-title { color: var(--accent); }

.project-description {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.skill-group {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.skill-group:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.skill-group-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-group-icon {
  color: var(--accent);
  font-size: 0.75rem;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.skill-list li {
  font-size: 0.925rem;
  color: var(--text-2);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.6;
}
.skill-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════
   EDUCATION & CREDENTIALS
   ═══════════════════════════════════════════════════════════ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.edu-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.edu-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 25px var(--accent-glow);
  transform: translateY(-3px);
}

.edu-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.edu-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  padding: 0.2em 0.6em;
  border-radius: 4px;
}
.edu-badge--degree {
  color: var(--violet);
  background: var(--violet-glow);
  border-color: rgba(167, 139, 250, 0.3);
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.edu-degree {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.edu-institution {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.edu-details {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-top: auto;
}

.subsection-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.achievement-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: start;
  gap: var(--space-xl);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.achievement-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 25px var(--accent-glow);
  transform: translateY(-3px);
}

.achievement-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  padding: var(--space-sm);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.achievement-content {
  display: flex;
  flex-direction: column;
}

.achievement-tag {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.achievement-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.achievement-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
}

.contact-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 520px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-style: normal;
  align-items: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-2);
  font-family: var(--font-mono);
  transition: color 0.2s;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
}
.contact-link:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xl);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer-nav {
  display: flex;
  gap: var(--space-lg);
}
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }
  .about-stats {
    grid-template-columns: repeat(4, 1fr);
    min-width: unset;
  }

  .timeline::before { left: 0; }
  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: var(--space-xl);
  }
  .timeline-item::before { left: -7px; top: calc(var(--space-2xl) + 0.35em); }
  .timeline-meta { text-align: left; padding-right: 0; }

  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-grid { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --space-5xl: 5rem;
    --space-4xl: 4rem;
    --space-3xl: 3rem;
  }

  .section { padding: var(--space-4xl) var(--space-lg); }

  .hero-socials a span { display: inline; }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-featured { grid-column: unset; }

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

  .hero-cta { flex-direction: column; align-items: flex-start; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
