/* ====================================
   VALLABHANENI KARTHIK PORTFOLIO — STYLESHEET
   ==================================== */

/* — CSS VARIABLES — */
:root {
  /* Dark theme (default) */
  --bg: #0a0a0f;
  --bg-alt: #0f0f17;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);
  --text: #f0f0f4;
  --text-muted: #8b8b9a;
  --text-faint: #525260;
  --accent: #6c63ff;
  --accent-glow: rgba(108,99,255,0.25);
  --accent-2: #00d4aa;
  --red: #ff5757;
  --yellow: #ffbe57;
  --green-dot: #57ff9a;
  --nav-bg: rgba(10,10,15,0.85);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="light"] {
  --bg: #f8f8fc;
  --bg-alt: #f0f0f8;
  --surface: rgba(0,0,0,0.04);
  --surface-hover: rgba(0,0,0,0.07);
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);
  --text: #0a0a1a;
  --text-muted: #555570;
  --text-faint: #9999aa;
  --accent: #5a52e8;
  --accent-glow: rgba(90,82,232,0.15);
  --nav-bg: rgba(248,248,252,0.9);
  --shadow: 0 4px 24px rgba(0,0,0,0.1);
}

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

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* — TYPOGRAPHY — */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

/* — LAYOUT — */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(108,99,255,0.3);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header h2 {
  color: var(--text);
}

.section-desc {
  color: var(--text-muted);
  max-width: 540px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}

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

/* — BUTTONS — */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-family: var(--sans);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  background: #7c74ff;
  border-color: #7c74ff;
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

/* — TAGS — */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.tag-primary { background: rgba(108,99,255,0.15); color: #a09aff; border: 1px solid rgba(108,99,255,0.25); }
.tag-blue { background: rgba(59,130,246,0.15); color: #7ab8ff; border: 1px solid rgba(59,130,246,0.25); }
.tag-green { background: rgba(34,197,94,0.12); color: #5cde8a; border: 1px solid rgba(34,197,94,0.25); }
.tag-purple { background: rgba(168,85,247,0.15); color: #c084fc; border: 1px solid rgba(168,85,247,0.25); }
.tag-orange { background: rgba(249,115,22,0.15); color: #fb923c; border: 1px solid rgba(249,115,22,0.25); }
.tag-teal { background: rgba(20,184,166,0.15); color: #2dd4bf; border: 1px solid rgba(20,184,166,0.25); }
.tag-sm { padding: 2px 8px; font-size: 0.68rem; }

[data-theme="light"] .tag-primary { color: #4a3fa0; background: rgba(108,99,255,0.1); }
[data-theme="light"] .tag-blue { color: #2563eb; background: rgba(59,130,246,0.1); }
[data-theme="light"] .tag-green { color: #16a34a; background: rgba(34,197,94,0.1); }
[data-theme="light"] .tag-purple { color: #7c3aed; background: rgba(168,85,247,0.1); }
[data-theme="light"] .tag-orange { color: #ea580c; background: rgba(249,115,22,0.1); }
[data-theme="light"] .tag-teal { color: #0d9488; background: rgba(20,184,166,0.1); }

/* ====================================
   NAVIGATION
   ==================================== */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-wrapper.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all 0.15s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--surface);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.nav-cta {
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.2s;
}

.nav-cta:hover {
  background: #7c74ff;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 7px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ====================================
   HERO
   ==================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
  max-width: 1140px;
  margin: 0 auto;
  gap: 80px;
}

.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  opacity: 0.4;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-2);
  bottom: -100px;
  left: -50px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--accent-2);
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  font-family: var(--mono);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-name {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 2em;
  font-family: var(--mono);
}

.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

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

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

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

.hero-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  transition: all 0.2s;
  background: var(--surface);
}

.social-link:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface-hover);
}

.hero-visual {
  flex: 0 0 auto;
  width: 360px;
}

/* Code card */
.code-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-filename {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-left: 8px;
}

.code-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
}

code { font-family: inherit; }
.kw { color: #c792ea; }
.cls { color: #ffcb6b; }
.fn { color: #82aaff; }
.str { color: #c3e88d; }
.cmt { color: #546e7a; font-style: italic; }

[data-theme="light"] .kw { color: #a626a4; }
[data-theme="light"] .cls { color: #c18401; }
[data-theme="light"] .fn { color: #4078f2; }
[data-theme="light"] .str { color: #2e7d32; }
[data-theme="light"] .cmt { color: #718096; font-style: italic; }

/* ====================================
   ABOUT
   ==================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.about-strengths h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 24px;
  font-weight: 500;
}

.strength-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.strength-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.strength-icon {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.strength-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.strength-item p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

.skill-category {
  padding: 24px;
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.skill-category:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.cat-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.skill-cat-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

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

/* ====================================
   EXPERIENCE / TIMELINE
   ==================================== */
.timeline {
  max-width: 860px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  padding-left: 32px;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 24px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.timeline-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

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

.timeline-header h3 {
  font-size: 1.15rem;
}

.timeline-org {
  font-size: 0.9rem;
  color: var(--accent);
  margin-top: 3px;
}

.timeline-date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.timeline-location {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.timeline-points {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.timeline-points li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}

.timeline-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ====================================
   PROJECTS
   ==================================== */
.filter-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 18px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.83rem;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.2s;
}

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

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

.project-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.project-card[data-featured="true"] {
  border-color: rgba(108,99,255,0.3);
}

.project-icon-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-featured-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(108,99,255,0.3);
  padding: 3px 8px;
  border-radius: 100px;
}

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

.project-icon {
  font-size: 1.8rem;
}

.project-links {
  display: flex;
  gap: 8px;
}

.icon-link {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.icon-link:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

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

.project-card > p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.project-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-highlights span {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-family: var(--mono);
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.projects-footer {
  text-align: center;
  margin-top: 40px;
}

/* ====================================
   EDUCATION
   ==================================== */
.education-timeline {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edu-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  align-items: flex-start;
}

.edu-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.edu-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.edu-line {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin-top: 12px;
}

.edu-content { flex: 1; }

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

.edu-institution {
  font-size: 0.9rem;
  color: var(--accent);
  margin-top: 4px;
}

.edu-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.edu-year {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.edu-cgpa {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 600;
}

.edu-courses {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ====================================
   CERTIFICATIONS
   ==================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.2s;
}

.cert-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.cert-logo {
  flex-shrink: 0;
}

.cert-content { flex: 1; }

.cert-content h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.cert-issuer {
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.cert-details {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: var(--mono);
  line-height: 1.5;
}

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

.cert-badge {
  font-size: 0.65rem;
  font-family: var(--mono);
  color: var(--accent-2);
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.25);
  padding: 2px 8px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
}

/* ====================================
   CONTACT
   ==================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  transition: all 0.2s;
}

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

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  border: 1px solid rgba(108,99,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

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

.contact-value {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  font-family: var(--mono);
}

.contact-arrow {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 1rem;
  transition: transform 0.2s;
}

.contact-item:hover .contact-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* Contact Form */
.contact-form {
  padding: 32px;
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  transition: all 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-submit {
  width: 100%;
  justify-content: center;
}

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 12px;
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--text); }

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.footer-social a:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ====================================
   BACK TO TOP
   ==================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0;
  pointer-events: none;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

/* ====================================
   REVEAL ANIMATIONS
   ==================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 24px 80px;
    gap: 60px;
  }

  .hero-visual { width: 100%; max-width: 420px; margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-social { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    z-index: 99;
  }

  .nav-links.open a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .edu-header { flex-direction: column; }
  .edu-meta { align-items: flex-start; }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }
  .about-stats { flex-wrap: wrap; gap: 24px; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .timeline-header { flex-direction: column; }
  .back-to-top { bottom: 20px; right: 20px; }
}
