/* =============================================
   KERTHIKAN JEGOVARAJAH — PORTFOLIO STYLESHEET
   ============================================= */

/* ---- CSS Custom Properties ---- */
:root {
  --accent: #00b4ff;
  --accent-dim: rgba(0, 180, 255, 0.15);
  --accent-glow: rgba(0, 180, 255, 0.35);
  --bg: #080c14;
  --bg-2: #0d1220;
  --bg-3: #111827;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #e8eef8;
  --text-muted: #7c8fa8;
  --text-faint: #3d4f66;
  --nav-h: 68px;
  --radius: 14px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 0 24px rgba(0, 180, 255, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

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

/* ---- Scroll Progress ---- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---- Background Canvas ---- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

.accent {
  color: var(--accent);
}

/* ---- Container ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Sections ---- */
section {
  padding: 6rem 0;
  position: relative;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 3rem;
}

/* ---- Glass ---- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: #33c8ff;
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--accent-glow);
}

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-muted);
  border: 1.5px solid var(--glass-border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ---- Reveal Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   NAVBAR
================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s;
}

#navbar.scrolled {
  background: rgba(8, 12, 20, 0.85);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-right: auto;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links li a {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links li a:hover {
  color: var(--text);
  background: var(--glass);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ================================
   HERO
================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-h) 2rem 4rem;
  max-width: 1140px;
  margin: 0 auto;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-name {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #e8eef8 60%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-family: var(--mono);
}

.hero-summary {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.avatar-ring {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-inner {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-3), var(--accent-dim));
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
  z-index: 2;
  position: relative;
}

.avatar-initials {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--glass-border);
  animation: spin linear infinite;
}

.orbit-1 {
  width: 180px;
  height: 180px;
  animation-duration: 8s;
}

.orbit-2 {
  width: 220px;
  height: 220px;
  animation-duration: 14s;
  animation-direction: reverse;
}

.orbit-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: var(--shadow-accent);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.tech-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  font-size: 0.8rem;
  color: var(--text-muted);
  backdrop-filter: blur(6px);
}

/* ================================
   ABOUT
================================ */
#about {
  background: var(--bg-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.97rem;
}

.about-text p strong {
  color: var(--text);
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.highlight-chip {
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 180, 255, 0.2);
  font-size: 0.82rem;
  color: var(--accent);
}

.info-card {
  padding: 1.5rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--glass-border);
  gap: 1rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-key {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.info-val {
  font-size: 0.88rem;
  color: var(--text);
  text-align: right;
}

.info-val a {
  color: var(--accent);
}

.info-val a:hover {
  text-decoration: underline;
}

.status-open {
  color: #22c55e;
  font-weight: 600;
  font-size: 0.85rem;
}

/* ================================
   SKILLS
================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim), transparent);
  opacity: 0;
  transition: var(--transition);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
  border-color: rgba(0, 180, 255, 0.3);
}

.skill-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.skill-card h3 {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: var(--text);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.skill-list li span {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 100px;
}

.skill-bar {
  flex: 1;
  height: 5px;
  background: var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  border-radius: 10px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   AGRIVORA
================================ */
#agrivora {
  background: var(--bg-2);
}

.agrivora-hero {
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.agrivora-hero::after {
  content: 'AgriVora';
  position: absolute;
  right: -1rem;
  top: -1rem;
  font-size: 8rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.04;
  pointer-events: none;
  line-height: 1;
}

.agrivora-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.agrivora-badge {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 180, 255, 0.2);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
}

.agrivora-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 760px;
}

.agrivora-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.agrivora-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.agrivora-block h4 {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.agrivora-block p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Architecture */
.arch-diagram {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.arch-title {
  text-align: center;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  min-width: 110px;
  transition: var(--transition);
}

.arch-node:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-3px);
}

.arch-icon {
  font-size: 1.6rem;
}

.arch-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.arch-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.arch-arrow {
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* Features */
.features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.feature-chip {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.feature-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Challenges */
.challenges-row h4 {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.challenge-item {
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  align-items: center;
}

.challenge-tag,
.solution-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}

.challenge-tag {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.solution-tag {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.challenge-item p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ================================
   PROJECTS
================================ */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: inherit;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 180, 255, 0.3);
  box-shadow: var(--shadow-accent);
}

.project-card h3 {
  font-size: 1.05rem;
}

.project-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-lang {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.project-link {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.project-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.project-tags span {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.project-card.hidden {
  display: none;
}

/* ================================
   EDUCATION
================================ */
#education {
  background: var(--bg-2);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: var(--shadow-accent);
}

.timeline-card {
  padding: 1.5rem;
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: rgba(0, 180, 255, 0.3);
  transform: translateX(4px);
}

.timeline-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.timeline-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.timeline-inst {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.timeline-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.timeline-focus span {
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 180, 255, 0.15);
}

/* ================================
   ACTIVITIES
================================ */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.activity-card {
  padding: 1.75rem;
  transition: var(--transition);
}

.activity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 180, 255, 0.3);
  box-shadow: var(--shadow-accent);
}

.activity-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.activity-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.activity-org {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.activity-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ================================
   CONTACT
================================ */
#contact {
  background: var(--bg-2);
}

.contact-intro {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 540px;
  margin-bottom: 3rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-link:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateX(4px);
}

.contact-link-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-link-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-link-val {
  font-size: 0.88rem;
  color: var(--text);
}

/* Contact Form */
.contact-form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-muted);
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

/* ================================
   FOOTER
================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  font-size: 1.2rem;
}

.footer-socials a {
  transition: var(--transition);
  display: block;
}

.footer-socials a:hover {
  transform: translateY(-2px);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
  #hero {
    flex-direction: column;
    text-align: center;
    padding-top: calc(var(--nav-h) + 3rem);
    min-height: auto;
  }

  .hero-summary {
    margin: 0 auto 2rem;
  }

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

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

  .hero-visual {
    order: -1;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .arch-flow {
    gap: 0.5rem;
  }

  .arch-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  section {
    padding: 4rem 0;
  }

  .nav-links,
  #nav-cv-btn {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(8, 12, 20, 0.96);
    backdrop-filter: blur(16px);
    padding: 1.5rem 2rem 2rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.open li a {
    display: block;
    padding: 0.7rem 0;
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .challenge-item {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}