/* ============================================================
   Surya Teja — Portfolio
   Design tokens
   ============================================================ */
:root {
  --radius: 0.875rem;

  --font-body: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, monospace;

  --background: oklch(0 0 0);
  --foreground: oklch(1 0 0);
  --surface: oklch(1 0 0 / 3%);

  --purple: oklch(0.58 0.26 300);
  --indigo-light: oklch(0.64 0.24 297);
  --indigo-dark: oklch(0.48 0.29 292);

  --primary-foreground: oklch(1 0 0);
  --muted: oklch(0.2 0.015 300);

  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 14%);

  --gray-light-1: oklch(0.95 0 0);
  --gray-light-2: oklch(0.88 0 0);
  --gray-light-3: oklch(0.73 0 0);
  --gray-light-4: oklch(0.62 0 0);

  --gradient-primary: linear-gradient(90deg, var(--indigo-light) 0%, var(--indigo-dark) 100%);
  --gradient-text: linear-gradient(90deg, oklch(1 0 0) 0%, var(--indigo-light) 60%, var(--indigo-dark) 100%);
  --shadow-glow: 0 0 40px -8px color-mix(in oklab, var(--indigo-light) 45%, transparent);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
@media (min-width: 768px)  { html { font-size: 15px; } }
@media (min-width: 1024px) { html { font-size: 16px; } }
@media (min-width: 1536px) { html { font-size: 18px; } }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

::selection { background-color: var(--purple); color: oklch(1 0 0); }
::-webkit-scrollbar { width: 0.4rem; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--indigo-dark); border-radius: 1rem; }

/* ============================================================
   Layout helpers
   ============================================================ */
.section-container {
  margin-inline: auto;
  width: 100%;
  max-width: 90rem;
  padding-inline: 1rem;
}
@media (min-width: 768px)  { .section-container { padding-inline: 3rem; } }
@media (min-width: 1280px) { .section-container { padding-inline: 5rem; } }

.text-gradient {
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bg-gradient-primary { background-image: var(--gradient-primary); }

.glass-panel {
  background-color: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.glow-hover {
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.glow-hover:hover {
  box-shadow: var(--shadow-glow);
  border-color: color-mix(in oklab, var(--indigo-light) 45%, transparent);
  transform: translateY(-4px);
}

.select-none { user-select: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Custom cursor (desktop only) */
@media (min-width: 768px) {
  .cursor-enabled, .cursor-enabled a, .cursor-enabled button,
  .cursor-enabled input, .cursor-enabled textarea { cursor: none; }
}
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 100;
  border-radius: 9999px; transform: translate(-50%, -50%); opacity: 0;
}
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--indigo-light); }
.cursor-ring { width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 1px solid color-mix(in oklab, var(--indigo-light) 60%, transparent); }

.typed-cursor { color: var(--indigo-light); }

/* ============================================================
   Progress bar
   ============================================================ */
#progress-indicator {
  position: fixed; top: 0; left: 0; z-index: 60; height: 2px; width: 100%;
  background: transparent;
}
#progress-bar {
  height: 100%; width: 0%; background-image: var(--gradient-primary);
  transition: width 0.15s ease-out;
}

/* ============================================================
   Header
   ============================================================ */
#site-header {
  position: fixed; top: 0; z-index: 50; width: 100%; user-select: none;
  padding-block: 1.75rem;
  background: linear-gradient(to bottom, var(--background), transparent);
  transition: all 0.3s ease;
}
#site-header.scrolled {
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(20px);
  padding-block: 1.25rem;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-code); font-size: 1.125rem; font-weight: 700; }
.logo .accent { color: var(--indigo-light); }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: none; align-items: center; gap: 1.75rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-family: var(--font-code); font-size: 0.85rem; color: var(--gray-light-3);
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--indigo-light); }
.resume-btn {
  border-radius: 9999px; border: 1px solid var(--border); padding: 0.4rem 1rem;
  font-family: var(--font-code); font-size: 0.75rem; transition: all 0.3s ease;
}
.resume-btn:hover { border-color: var(--indigo-light); color: var(--indigo-light); }

.menu-toggle {
  display: flex; height: 1.5rem; width: 1.5rem; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.375rem;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block; height: 2px; width: 1.5rem; background: var(--foreground);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#mobile-menu {
  display: none; flex-direction: column; gap: 1rem;
  border-top: 1px solid var(--border); margin-top: 1.5rem; padding-top: 1.5rem;
}
#mobile-menu.open { display: flex; }
@media (min-width: 768px) { #mobile-menu { display: none !important; } }
#mobile-menu a { font-family: var(--font-code); font-size: 1rem; color: var(--gray-light-2); }
#mobile-menu a:hover { color: var(--indigo-light); }

/* ============================================================
   Hero
   ============================================================ */
#home {
  position: relative; margin-bottom: 6rem; display: flex; min-height: 100vh;
  width: 100%; flex-direction: column; justify-content: center; padding-block: 2rem;
  opacity: 0;
}
.hero-glow-1 {
  pointer-events: none; position: absolute; right: 0; top: 25%; z-index: -1;
  height: 28rem; width: 28rem; border-radius: 9999px;
  background: color-mix(in oklab, var(--indigo-dark) 25%, transparent);
  filter: blur(140px);
}
.hero-glow-2 {
  pointer-events: none; position: absolute; left: -5rem; bottom: 2.5rem; z-index: -1;
  height: 18rem; width: 18rem; border-radius: 9999px;
  background: color-mix(in oklab, var(--purple) 15%, transparent);
  filter: blur(120px);
}
.hero-robot-wrap {
  pointer-events: none; position: absolute; right: 1rem; top: 50%;
  display: none; height: 80%; width: 50%; transform: translateY(-50%);
}
@media (min-width: 1024px) { .hero-robot-wrap { display: block; right: 3rem; } }
@media (min-width: 1536px) { .hero-robot-wrap { right: 4rem; } }
.hero-robot-inner { pointer-events: auto; height: 100%; width: 100%; position: relative; }
.hero-robot-inner spline-viewer { width: 100%; height: 100%; display: block; }
/* Hide the "Built with Spline" watermark/logo */
.hero-robot-inner spline-viewer::part(logo) { display: none !important; }
.hero-loader {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.hero-loader span {
  height: 2rem; width: 2rem; border-radius: 9999px;
  border: 2px solid var(--indigo-light); border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-content { position: relative; z-index: 10; display: flex; flex-direction: column; padding-top: 8rem; }
@media (min-width: 768px) { .hero-content { padding-top: 0; } }
.hero-eyebrow { font-family: var(--font-code); font-size: 1rem; font-weight: 500; letter-spacing: 0.15em; color: var(--indigo-light); }
.hero-title { margin-top: 0.75rem; font-size: 3rem; font-weight: 600; line-height: 1.05; }
@media (min-width: 640px)  { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }
.hero-typed-wrap { margin-top: 1.25rem; max-width: 48rem; }
.hero-typed {
  font-family: var(--font-code); font-size: 1.25rem; line-height: 1.6; color: var(--gray-light-3);
}
@media (min-width: 640px) { .hero-typed { font-size: 1.5rem; } }
@media (min-width: 768px) { .hero-typed { font-size: 1.875rem; } }
.hero-desc { margin-top: 1.5rem; max-width: 42rem; line-height: 1.7; color: var(--gray-light-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: 0.5rem; }

.staggered-reveal { opacity: 1; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; padding: 0.875rem 2rem;
  font-family: var(--font-code); font-size: 0.875rem; font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary { background-image: var(--gradient-primary); color: var(--primary-foreground); }
.btn-primary:hover { box-shadow: var(--shadow-glow); }
.btn-outline { border: 1px solid var(--border); color: var(--foreground); }
.btn-outline:hover { border-color: var(--indigo-light); color: var(--indigo-light); }
.btn-secondary { border: 1px solid color-mix(in oklab, var(--primary-foreground) 50%, transparent); background: transparent; color: var(--primary-foreground); }
.btn-secondary:hover { background: var(--primary-foreground); color: var(--indigo-dark); }

/* Profiles (social icon row) */
.profiles-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding-block: 1.5rem; }
.profile-btn {
  display: flex; height: 2.75rem; width: 2.75rem; align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid var(--border); color: var(--gray-light-3);
  transition: all 0.3s ease;
}
.profile-btn:hover { border-color: var(--indigo-light); color: var(--indigo-light); }
.profile-btn svg { height: 18px; width: 18px; }
.profile-btn.inverted { border-color: color-mix(in oklab, var(--primary-foreground) 40%, transparent); color: var(--primary-foreground); }
.profile-btn.inverted:hover { background: var(--primary-foreground); color: var(--indigo-dark); }

/* ============================================================
   About
   ============================================================ */
#about { position: relative; width: 100%; }
.about-glow { pointer-events: none; position: absolute; right: 0; top: 33%; z-index: -1; height: 24rem; width: 24rem; border-radius: 9999px; background: color-mix(in oklab, var(--purple) 10%, transparent); filter: blur(150px); }
.about-inner { padding-block: 7rem; }
.about-quote {
  user-select: none; text-align: center; font-size: 2.1rem; font-weight: 500; line-height: 1.25;
}
@media (min-width: 768px)  { .about-quote { font-size: 2.9rem; } }
@media (min-width: 1024px) { .about-quote { font-size: 3.3rem; } }
.about-1, .about-2 { line-height: 1.25; opacity: 0.2; }

.about-body { margin-top: 6rem; perspective: 1200px; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1.4fr 1fr; } }
.about-text { display: flex; flex-direction: column; gap: 1.25rem; }
.about-label { font-family: var(--font-code); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--gray-light-4); }
.about-text p:not(.about-label) { font-size: 0.98rem; line-height: 1.85; color: var(--gray-light-3); }
.about-values { display: flex; flex-direction: column; gap: 1rem; }
.value-card { border-radius: 1rem; padding: 1.5rem; }
.value-card h3 { font-family: var(--font-code); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--indigo-light); }
.value-card p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: var(--gray-light-4); }

.stats-grid { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { border-radius: 1rem; padding: 2.25rem 1.5rem; text-align: center; }
.stat-value { font-size: 2.25rem; font-weight: 600; }
@media (min-width: 768px) { .stat-value { font-size: 3rem; } }
.stat-label { margin-top: 0.5rem; font-family: var(--font-code); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gray-light-4); }

.about-reveal { opacity: 1; }

/* ============================================================
   Obsession (quote strip)
   ============================================================ */
#obsession { position: relative; width: 100%; user-select: none; }
.obsession-inner { padding-block: 10rem; }
.obsession-quote { text-align: center; font-size: 2.4rem; font-weight: 500; line-height: 1.25; }
@media (min-width: 768px)  { .obsession-quote { font-size: 3rem; } }
@media (min-width: 1024px) { .obsession-quote { font-size: 3.75rem; } }
.about-3 {
  font-weight: 700;
  background: linear-gradient(90deg, var(--foreground) 0%, var(--foreground) 50%, var(--purple) 51%, var(--indigo-dark) 102%);
  background-size: 200% 100%;
  background-position-x: 0%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ============================================================
   Skills
   ============================================================ */
#skills { position: relative; margin-top: 5rem; width: 100%; user-select: none; }
.skills-glow { pointer-events: none; position: absolute; right: 0; top: 33%; z-index: -1; height: 20rem; width: 20rem; border-radius: 9999px; background: color-mix(in oklab, var(--indigo-dark) 15%, transparent); filter: blur(130px); }
.skills-inner { display: flex; flex-direction: column; justify-content: center; padding-block: 4rem; }
.section-eyebrow { font-family: var(--font-code); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--gray-light-4); }
.section-title { margin-top: 0.5rem; width: fit-content; font-size: 3rem; font-weight: 500; }
@media (min-width: 768px) { .section-title { font-size: 3.75rem; } }
.section-sub { margin-top: 0.75rem; width: 100%; max-width: 42rem; font-size: 1.4rem; font-weight: 500; line-height: 1.35; color: var(--gray-light-2); }

.skill-group { margin-top: 3rem; }
.skill-group h3 { margin-bottom: 1.25rem; font-family: var(--font-code); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--gray-light-3); }
.skill-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.skill-chip { display: flex; align-items: center; gap: 0.75rem; border-radius: 0.75rem; padding: 0.75rem 1rem; }
.skill-chip img { height: 1.75rem; width: 1.75rem; object-fit: contain; }
.skill-chip span { font-family: var(--font-code); font-size: 0.75rem; color: var(--gray-light-2); }

.tags-grid { margin-top: 4rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .tags-grid { grid-template-columns: repeat(3, 1fr); } }
.tags-card { border-radius: 1rem; padding: 1.5rem; }
.tags-card h3 { font-family: var(--font-code); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--indigo-light); }
.tags-list { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-pill { border-radius: 9999px; border: 1px solid var(--border); background: var(--muted); padding: 0.25rem 0.75rem; font-size: 0.75rem; color: var(--gray-light-3); }

/* ============================================================
   Projects
   ============================================================ */
#projects { position: relative; width: 100%; padding-block: 6rem; }
.projects-glow { pointer-events: none; position: absolute; left: 50%; top: 10rem; z-index: -1; height: 30rem; width: 30rem; transform: translateX(-50%); border-radius: 9999px; background: color-mix(in oklab, var(--indigo-dark) 15%, transparent); filter: blur(160px); }

.filter-row { margin-top: 2.5rem; display: flex; justify-content: center; }
.filter-pills { display: flex; align-items: center; gap: 0.375rem; border-radius: 9999px; padding: 0.375rem; }
.filter-pill {
  height: 2.5rem; width: 7rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-light-4); transition: all 0.3s ease;
}
.filter-pill:hover { color: var(--gray-light-2); }
.filter-pill.active { background-image: var(--gradient-primary); color: var(--primary-foreground); }

.projects-grid { margin-top: 3.5rem; display: grid; grid-template-columns: 1fr; gap: 1.75rem; perspective: 1400px; }
@media (min-width: 768px)  { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  position: relative; display: flex; height: 100%; flex-direction: column; overflow: hidden;
  border-radius: 1.5rem; border: 1px solid var(--border); background-color: oklch(0.13 0.012 300 / 60%);
  backdrop-filter: blur(20px); transition: box-shadow 0.5s ease, border-color 0.5s ease;
  transform-style: preserve-3d; will-change: transform;
}
.project-card:hover { border-color: color-mix(in oklab, var(--indigo-light) 50%, transparent); box-shadow: var(--shadow-glow); }
.project-glow-spot {
  pointer-events: none; position: absolute; inset: 0; z-index: 20; opacity: 0; transition: opacity 0.5s ease;
  background: radial-gradient(320px circle at var(--mx,50%) var(--my,50%), color-mix(in oklab, var(--indigo-light) 16%, transparent), transparent 70%);
}
.project-card:hover .project-glow-spot { opacity: 1; }

.project-media { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; }
.project-media img { height: 100%; width: 100%; object-fit: cover; transition: transform 0.7s ease; }
.project-card:hover .project-media img { transform: scale(1.1); }
.project-media-fade { position: absolute; inset: 0; background: linear-gradient(to top, var(--background), color-mix(in oklab, var(--background) 25%, transparent), transparent); }
.project-badge {
  position: absolute; top: 1rem; border-radius: 9999px; border: 1px solid var(--border);
  background-color: color-mix(in oklab, var(--background) 70%, transparent); padding: 0.25rem 0.75rem;
  font-family: var(--font-code); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.18em;
  backdrop-filter: blur(6px);
}
.project-badge.left { left: 1rem; color: var(--indigo-light); }
.project-badge.right { right: 1rem; color: var(--gray-light-3); display: flex; align-items: center; gap: 0.375rem; }
.status-dot { height: 0.375rem; width: 0.375rem; border-radius: 9999px; background: var(--indigo-light); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.project-body { position: relative; z-index: 10; display: flex; flex: 1; flex-direction: column; padding: 1.5rem; transform: translateZ(28px); }
.project-body h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.project-body p { margin-top: 0.75rem; flex: 1; font-size: 0.875rem; line-height: 1.6; color: var(--gray-light-4); }
.project-tech { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tech-pill { border-radius: 9999px; border: 1px solid var(--border); background: var(--muted); padding: 0.25rem 0.65rem; font-family: var(--font-code); font-size: 0.62rem; color: var(--gray-light-3); }
.project-links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.625rem; }
.project-links a {
  display: flex; flex: 1; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.75rem; padding: 0.625rem 1rem; font-family: var(--font-code); font-size: 0.68rem;
  font-weight: 700; transition: all 0.3s ease; min-width: 8rem;
}
.link-live { background-image: var(--gradient-primary); color: var(--primary-foreground); }
.link-live:hover { box-shadow: var(--shadow-glow); }
.link-github { border: 1px solid var(--border); background: var(--muted); color: var(--foreground); }
.link-github:hover { border-color: var(--indigo-light); color: var(--indigo-light); }
.project-links svg { height: 14px; width: 14px; }

/* ============================================================
   Education
   ============================================================ */
#education { position: relative; width: 100%; user-select: none; padding-block: 6rem; }
.education-glow { pointer-events: none; position: absolute; left: 0; top: 25%; z-index: -1; height: 20rem; width: 20rem; border-radius: 9999px; background: color-mix(in oklab, var(--purple) 10%, transparent); filter: blur(130px); }
.timeline { margin-top: 3.5rem; border-left: 1px solid var(--border); padding-left: 2rem; }
.timeline-item { position: relative; padding-bottom: 3.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -2.3rem; top: 0.375rem; height: 0.75rem; width: 0.75rem; border-radius: 9999px; background-image: var(--gradient-primary); }
.timeline-period { font-family: var(--font-code); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--indigo-light); }
.timeline-title { margin-top: 0.5rem; font-size: 1.5rem; font-weight: 600; }
@media (min-width: 768px) { .timeline-title { font-size: 1.875rem; } }
.timeline-subtitle { margin-top: 0.25rem; color: var(--gray-light-3); }
.timeline-highlight { margin-top: 0.75rem; display: inline-block; border-radius: 9999px; border: 1px solid var(--border); background: var(--muted); padding: 0.25rem 0.75rem; font-family: var(--font-code); font-size: 0.75rem; color: var(--gray-light-2); }
.timeline-desc { margin-top: 1rem; max-width: 42rem; line-height: 1.7; color: var(--gray-light-4); }

.certs-title { margin-top: 6rem; width: fit-content; font-size: 2.25rem; font-weight: 500; }
@media (min-width: 768px) { .certs-title { font-size: 3rem; } }
.certs-grid { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .certs-grid { grid-template-columns: repeat(2, 1fr); } }
.cert-card { border-radius: 1rem; padding: 1.75rem; }
.cert-card h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.cert-card p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: var(--gray-light-4); }

/* ============================================================
   Contact
   ============================================================ */
#contact { position: relative; width: 100%; user-select: none; padding-block: 6rem; }
.contact-grid { margin-top: 3.5rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-row { display: flex; align-items: center; gap: 1rem; border-radius: 1rem; padding: 1.25rem; }
.contact-row svg { height: 1.25rem; width: 1.25rem; color: var(--indigo-light); flex-shrink: 0; }
.contact-row span { font-family: var(--font-code); font-size: 0.875rem; color: var(--gray-light-2); }

.social-profiles { display: flex; flex-direction: column; gap: 1rem; padding-top: 0.5rem; }
.social-row { display: flex; align-items: center; gap: 1rem; border-radius: 1rem; padding: 1.25rem; }
.social-icon-wrap {
  display: flex; height: 2.75rem; width: 2.75rem; flex-shrink: 0; align-items: center; justify-content: center;
  border-radius: 0.75rem; border: 1px solid var(--border); background: var(--muted); transition: border-color 0.3s ease;
}
.social-row:hover .social-icon-wrap { border-color: var(--indigo-light); }
.social-icon-wrap svg { height: 1.25rem; width: 1.25rem; color: var(--indigo-light); }
.social-meta { min-width: 0; flex: 1; }
.social-meta .name { display: block; font-size: 0.875rem; font-weight: 600; color: var(--foreground); }
.social-meta .handle { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-code); font-size: 0.75rem; color: var(--gray-light-4); }
.social-row svg.arrow { flex-shrink: 0; height: 1rem; width: 1rem; color: var(--indigo-light); }

.contact-form { border-radius: 1rem; padding: 1.75rem; }
.contact-form h3 { font-size: 1.25rem; font-weight: 600; }
.form-fields { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.form-field label { font-family: var(--font-code); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-light-4); }
.form-field input, .form-field textarea {
  margin-top: 0.5rem; width: 100%; resize: none; border-radius: 0.75rem; border: 1px solid var(--input);
  background: var(--muted); padding: 0.75rem 1rem; font-size: 0.875rem; font-family: inherit; color: var(--foreground);
  outline: none; transition: border-color 0.3s ease;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--indigo-light); }
.form-submit {
  width: 100%; border-radius: 9999px; background-image: var(--gradient-primary); padding: 0.875rem 2rem;
  font-family: var(--font-code); font-size: 0.875rem; font-weight: 600; color: var(--primary-foreground);
  transition: box-shadow 0.3s ease;
}
.form-submit:hover { box-shadow: var(--shadow-glow); }

/* Toast */
#toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(1rem);
  z-index: 200; border-radius: 0.75rem; padding: 0.875rem 1.5rem; font-size: 0.875rem;
  background: var(--muted); border: 1px solid var(--border); color: var(--foreground);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
#toast.error { border-color: color-mix(in oklab, oklch(0.58 0.24 27) 60%, transparent); }
#toast.success { border-color: color-mix(in oklab, var(--indigo-light) 60%, transparent); }

/* ============================================================
   Footer
   ============================================================ */
#site-footer { position: relative; width: 100%; user-select: none; overflow: hidden; background-image: var(--gradient-primary); }
.footer-glow {
  pointer-events: none; position: absolute; inset: 0; opacity: 0.3;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.35), transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.25), transparent 40%);
}
.footer-inner { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; padding-block: 6rem; text-align: center; }
.footer-inner h2 { font-size: 1.875rem; font-weight: 500; color: var(--primary-foreground); }
@media (min-width: 768px) { .footer-inner h2 { font-size: 2.25rem; } }
.footer-note { margin-top: 2.5rem; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; color: var(--primary-foreground); }
