/* ===== CSS Variables (Retro / Neo-brutalist palette, inspired by Watch Tower template) ===== */
:root {
  --bg-primary: #f7f3e8;
  --bg-secondary: #fffdf7;
  --bg-card: #ffffff;
  --bg-accent-panel: #fde68a;
  --text-primary: #101828;
  --text-secondary: #505a69;
  --text-muted: #6b7280;
  --accent: #b91c1c;
  --accent-strong: #7f1d1d;
  --accent-blue: #1a5fd9;
  --accent-yellow: #fde68a;
  --accent-yellow-strong: #facc15;
  --white: #ffffff;
  --border-hard: #1f2937;
  --border-soft: rgba(31, 41, 55, 0.18);
  --shadow-hard-sm: 2px 2px 0 0 #1f2937;
  --shadow-hard: 4px 4px 0 0 #1f2937;
  --shadow-hard-lg: 6px 6px 0 0 #1f2937;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.18s var(--ease-out);
  --transition-spring: all 0.24s var(--ease-spring);
  --nav-height: 70px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  color-scheme: light;
}

/* Subtle paper-grain so the cream doesn't read flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(31, 41, 55, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(31, 41, 55, 0.03) 1px, transparent 1px);
  background-size: 22px 22px, 38px 38px;
  background-position: 0 0, 11px 11px;
  pointer-events: none;
  z-index: 1;
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(250, 204, 21, 0.32) 0%, transparent 65%);
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  mix-blend-mode: multiply;
}

.cursor-glow.active {
  opacity: 1;
}

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

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 50px;
  position: relative;
  z-index: 2;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(255, 253, 247, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border-hard);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 0 0 var(--border-hard);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-strong);
  background: var(--accent-yellow);
  border: 2px solid var(--border-hard);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  transition: var(--transition-spring);
}

.nav-logo:hover {
  color: var(--accent-strong);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 var(--border-hard);
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  position: relative;
  padding: 6px 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent);
  transition: width 0.18s var(--ease-out);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--border-hard);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 2px;
  background-color: var(--border-hard);
  transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 50px;
  padding-top: var(--nav-height);
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  gap: 60px;
}

.hero-text {
  flex: 1;
  max-width: 640px;
}

.hero-greeting {
  display: inline-block;
  color: var(--accent-strong);
  background: var(--accent-yellow);
  border: 2px solid var(--border-hard);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  margin-bottom: 24px;
}

.hero-name {
  font-size: clamp(40px, 8vw, 80px);
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(28px, 5.5vw, 54px);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 22px;
}

.hero-title::after {
  content: "▋";
  color: var(--accent);
  margin-left: 6px;
  animation: blink-caret 1s steps(1) infinite;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid var(--border-hard);
  box-shadow: var(--shadow-hard);
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease-out), background-color 0.18s, color 0.18s;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--border-hard);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-strong);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-lg);
}

.btn-secondary {
  background-color: var(--accent-yellow);
  color: var(--accent-strong);
}

.btn-secondary:hover {
  color: var(--accent-strong);
  background-color: var(--accent-yellow-strong);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-lg);
}

.btn-large {
  padding: 16px 38px;
  font-size: 1rem;
}

/* ===== Hero social ===== */
.hero-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-primary);
  background: var(--white);
  border: 2px solid var(--border-hard);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  transition: var(--transition-spring);
}

.social-link:hover {
  color: var(--accent);
  background: var(--accent-yellow);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--border-hard);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-decoration {
  position: relative;
}

.code-block {
  background: var(--text-primary);
  color: #d6e3ff;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-hard);
  box-shadow: var(--shadow-hard-lg);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.85;
  position: relative;
}

.code-block::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 18px 0 0 #febc2e, 36px 0 0 #28c840;
}

.code-block {
  padding-top: 48px;
}

.code-keyword { color: #c678dd; }
.code-class   { color: #e5c07b; }
.code-function{ color: #61afef; }
.code-param   { color: #e06c75; }
.code-string  { color: #98c379; }

/* ===== Section header ===== */
section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 50px;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  padding: 0 10px;
  color: var(--accent-strong);
  background: var(--accent-yellow);
  border: 2px solid var(--border-hard);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.section-title {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 2px;
  background-color: var(--border-hard);
  max-width: 320px;
}

/* ===== About ===== */
.about-content {
  display: grid;
  gap: 50px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.highlight {
  color: var(--accent-strong);
  font-weight: 700;
  background: var(--accent-yellow);
  padding: 0 6px;
  border-radius: 3px;
  border: 1px solid var(--border-hard);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.skills-container {
  margin-top: 40px;
}

.skills-container h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.skill-category {
  background: var(--bg-card);
  border: 2px solid var(--border-hard);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: 22px 24px;
  transition: var(--transition-spring);
}

.skill-category:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 0 var(--border-hard);
}

.skill-category h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.skill-tags img {
  height: 28px;
  border-radius: 4px;
  transition: transform 0.18s var(--ease-spring);
}

.skill-tags img:hover {
  transform: translateY(-2px);
}

/* ===== Experience / Timeline ===== */
.experience-timeline {
  position: relative;
  padding-left: 32px;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--border-hard);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -38px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--accent-yellow);
  border: 2px solid var(--border-hard);
  box-shadow: var(--shadow-hard-sm);
}

.timeline-content {
  background: var(--bg-card);
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-hard);
  box-shadow: var(--shadow-hard);
  transition: var(--transition-spring);
}

.timeline-content:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 0 var(--border-hard);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-date {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.timeline-duration {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: var(--accent-yellow);
  border: 2px solid var(--border-hard);
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-hard-sm);
}

.timeline-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-company {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.timeline-description {
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  background-color: var(--white);
  color: var(--text-primary);
  border: 1.5px solid var(--border-hard);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ===== Cert button (also used by experience + publications) ===== */
.cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--white);
  color: var(--text-primary);
  border: 2px solid var(--border-hard);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
  transition: var(--transition-spring);
}

.cert-btn:hover {
  background-color: var(--accent-yellow);
  color: var(--accent-strong);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--border-hard);
}

.cert-btn-outline {
  background-color: var(--accent-yellow);
  color: var(--accent-strong);
}

.cert-btn-outline:hover {
  background-color: var(--accent);
  color: var(--white);
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-hard);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  transition: var(--transition-spring);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 0 var(--border-hard);
}

.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 2fr;
}

.project-image {
  background: var(--accent-yellow);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border-right: 2px solid var(--border-hard);
}

.project-icon {
  color: var(--accent-strong);
}

.project-content {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-label {
  display: inline-block;
  align-self: flex-start;
  color: var(--accent-strong);
  background: var(--accent-yellow);
  border: 1.5px solid var(--border-hard);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.project-title {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  transition: var(--transition);
}

.project-card:hover .project-title {
  color: var(--accent);
}

.project-description {
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.project-link:hover {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
  transform: translateX(4px);
}

/* ===== Publications ===== */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.publication-card {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-hard);
  box-shadow: var(--shadow-hard);
  transition: var(--transition-spring);
}

.publication-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 0 var(--border-hard);
}

.publication-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-yellow);
  border: 2px solid var(--border-hard);
  border-radius: var(--radius-sm);
  color: var(--accent-strong);
  box-shadow: var(--shadow-hard-sm);
}

.publication-content h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.45;
}

.publication-venue {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.publication-content .cert-btn {
  margin-top: 14px;
}

/* ===== Certifications ===== */
.cert-group {
  margin-bottom: 50px;
}

.cert-group:last-child {
  margin-bottom: 0;
}

.cert-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.cert-group-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background-color: var(--border-hard);
}

.cert-group-tag {
  display: inline-block;
  padding: 5px 12px;
  background-color: var(--accent-yellow);
  color: var(--accent-strong);
  border: 2px solid var(--border-hard);
  border-radius: 999px;
  box-shadow: var(--shadow-hard-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.cert-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-hard);
  box-shadow: var(--shadow-hard);
  transition: var(--transition-spring);
  position: relative;
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 0 var(--border-hard);
}

.cert-card-spec h3 {
  padding-right: 110px;
}

.cert-tier-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-block;
  padding: 3px 10px;
  background-color: var(--accent);
  color: var(--white);
  border: 2px solid var(--border-hard);
  border-radius: 999px;
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cert-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  color: var(--accent-strong);
  border: 2px solid var(--border-hard);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  margin-bottom: 16px;
}

.cert-card h3 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}

.cert-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.cert-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.cert-btns .cert-btn {
  margin-top: 0;
  padding: 6px 12px;
  font-size: 0.75rem;
}

/* ===== Education (kept in case section returns) ===== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.edu-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-hard);
  box-shadow: var(--shadow-hard);
  position: relative;
  transition: var(--transition-spring);
}

.edu-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 0 var(--border-hard);
}

.edu-card-wide {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 36px 44px;
}

.edu-year-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  min-width: 110px;
}

.edu-year-large {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.edu-year-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-top: 8px;
}

.edu-divider {
  width: 2px;
  align-self: stretch;
  background-color: var(--border-hard);
}

.edu-details {
  flex: 1;
}

.edu-details h3 {
  padding-right: 0;
}

.edu-year {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  background-color: var(--accent-yellow);
  border: 2px solid var(--border-hard);
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-hard-sm);
}

.edu-card h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  padding-right: 80px;
}

.edu-card h4 {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.edu-grade {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== Contact ===== */
.contact {
  text-align: center;
}

.contact-content {
  max-width: 640px;
  margin: 0 auto;
}

.contact-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 2px solid var(--border-hard);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  padding: 10px 16px;
  transition: var(--transition-spring);
}

.contact-item:hover {
  color: var(--accent-strong);
  background: var(--accent-yellow);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--border-hard);
}

.contact-item span {
  font-size: 0.92rem;
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  padding: 30px 0;
  text-align: center;
  border-top: 2px solid var(--border-hard);
  background: var(--bg-secondary);
  position: relative;
  z-index: 2;
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-copyright {
  margin-top: 8px;
  font-size: 0.78rem !important;
}

/* ===== Animations ===== */
@keyframes blink-caret {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

[data-aos] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-spring);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-greeting,
  .project-label {
    align-self: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-description {
    margin: 0 auto 30px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
  }

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

  .project-image {
    border-right: none;
    border-bottom: 2px solid var(--border-hard);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 25px;
  }

  .nav-container {
    padding: 0 25px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 2px solid var(--border-hard);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    transition: right 0.25s var(--ease-out);
    box-shadow: -6px 0 0 0 rgba(31, 41, 55, 0.06);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-toggle.active .hamburger {
    background-color: transparent;
  }

  .nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }

  .nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
  }

  .hero {
    padding: 0 25px;
    padding-top: var(--nav-height);
  }

  section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 1.55rem;
  }

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

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 900px) {
  .cursor-glow {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.5rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
  }

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

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

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

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

  .edu-card-wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 28px;
  }

  .edu-divider {
    display: none;
  }

  .edu-year-large {
    font-size: 2.2rem;
  }
}
