/* =========================================================
   KUNAL MANE — DEVOPS PORTFOLIO
   style.css — design tokens, layout, components
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Backgrounds */
  --bg-0: #020617;
  --bg-1: #071126;
  --bg-2: #111827;
  --bg-glass: rgba(17, 24, 39, 0.55);
  --border-glass: rgba(148, 163, 184, 0.12);

  /* Accents */
  --accent-1: #38bdf8;
  --accent-2: #0ea5e9;
  --accent-3: #22d3ee;
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2) 50%, var(--accent-3));

  /* Text */
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Status */
  --success: #34d399;
  --error: #f87171;

  /* Type */
  --font-display: 'Poppins', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii / shadows */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.18);
  --shadow-card: 0 20px 50px -20px rgba(0, 0, 0, 0.6);

  /* Layout */
  --container-w: 1180px;
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  background: var(--bg-0);
  color: var(--text-primary);
  font-family: var(--font-display);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea { font-family: inherit; }

::selection { background: var(--accent-2); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 10px; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 120px 0; position: relative; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 720px;
}
.section-sub {
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
  font-size: 1.02rem;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--accent-gradient);
  color: #02101f;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(56, 189, 248, 0.5); }

.btn-outline {
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--accent-1); color: var(--accent-1); transform: translateY(-3px); }

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

.btn-icon {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.02);
  font-size: 1.05rem;
  transition: all 0.25s ease;
}
.btn-icon:hover { color: var(--accent-1); border-color: var(--accent-1); transform: translateY(-3px); }

/* shine sweep */
.btn::after {
  content: '';
  position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn:hover::after { left: 130%; }

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-0);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.loaded { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; font-family: var(--font-mono); }
.loader-bracket { color: var(--accent-1); font-size: 1.6rem; }
.loader-text { font-size: 1.4rem; margin: 0 6px; color: var(--text-primary); }
.loader-bar { width: 220px; height: 3px; background: rgba(255,255,255,0.08); border-radius: 4px; margin-top: 22px; overflow: hidden; }
.loader-bar-fill { width: 0%; height: 100%; background: var(--accent-gradient); }

/* ---------- Cursor Glow ---------- */
.cursor-glow {
  position: fixed; width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.10), transparent 70%);
  pointer-events: none; z-index: 5;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}
.nav-container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: var(--font-mono); font-weight: 600; font-size: 1.1rem; }
.logo-bracket { color: var(--accent-1); }

.nav-links { display: flex; gap: 30px; }
.nav-link {
  font-size: 0.92rem; color: var(--text-secondary);
  position: relative; padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--accent-gradient);
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active-link { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active-link::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; width: 26px;
}
.hamburger span { width: 100%; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, var(--bg-1), var(--bg-0) 60%);
  padding-top: var(--nav-h);
}
#particleCanvas { position: absolute; inset: 0; z-index: 1; }

.hero-spotlight {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.14), transparent 65%);
  pointer-events: none; z-index: 2;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
}

.hero-gradient-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; opacity: 0.35;
}
.blob-1 { width: 480px; height: 480px; background: var(--accent-2); top: -120px; left: -100px; }
.blob-2 { width: 420px; height: 420px; background: var(--accent-3); bottom: -140px; right: -80px; }

.floating-icons { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.floating-icon {
  position: absolute; font-size: 2.2rem; color: var(--accent-1); opacity: 0.18;
  animation: floatIcon 8s ease-in-out infinite;
}
.ic-1 { top: 18%; left: 8%; animation-delay: 0s; }
.ic-2 { top: 70%; left: 12%; animation-delay: 1s; }
.ic-3 { top: 25%; right: 10%; animation-delay: 2s; }
.ic-4 { top: 65%; right: 8%; animation-delay: 3s; }
.ic-5 { top: 45%; left: 4%; animation-delay: 1.5s; }
.ic-6 { top: 12%; right: 22%; animation-delay: 2.5s; }
.ic-7 { bottom: 10%; left: 30%; animation-delay: 0.6s; }
.ic-8 { bottom: 14%; right: 28%; animation-delay: 3.4s; }

.hero-content { position: relative; z-index: 3; max-width: 820px; margin: 0 auto; padding: 0 24px; text-align: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--accent-1);
  border: 1px solid var(--border-glass);
  padding: 8px 16px; border-radius: 999px;
  background: var(--bg-glass); backdrop-filter: blur(10px);
  margin-bottom: 26px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); animation: pulseDot 2s infinite; }

.hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.hero-subtitle { font-size: clamp(1.2rem, 2.6vw, 1.7rem); color: var(--text-secondary); font-weight: 500; margin-bottom: 22px; min-height: 2.4rem; }
.typed-wrap { color: var(--accent-1); font-weight: 600; }
.typed-cursor { color: var(--accent-1); animation: blinkCursor 0.8s infinite; }

.hero-desc { color: var(--text-secondary); max-width: 600px; margin: 0 auto 38px; font-size: 1.02rem; }

.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-bottom: 56px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card {
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: 20px 12px; backdrop-filter: blur(10px);
}
.stat-number { font-size: 1.9rem; font-weight: 700; color: var(--accent-1); font-family: var(--font-mono); }
.stat-suffix { font-size: 1.4rem; font-weight: 700; color: var(--accent-1); }
.stat-card p { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }

.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--border-glass); border-radius: 14px; z-index: 3;
}
.scroll-indicator span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 9px; border-radius: 3px; background: var(--accent-1);
  animation: scrollDot 1.6s infinite;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: start; }
.about-text p { color: var(--text-secondary); margin-bottom: 18px; }
.about-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; padding: 9px 14px; border-radius: 999px;
  background: var(--bg-glass); border: 1px solid var(--border-glass); color: var(--text-secondary);
}
.badge i { color: var(--accent-1); }

.about-timeline-mini {
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg); padding: 32px 26px; backdrop-filter: blur(14px);
}
.mini-step { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--text-secondary); font-size: 0.92rem; }
.mini-step i { color: var(--accent-1); width: 22px; text-align: center; }
.mini-arrow { text-align: center; color: var(--text-muted); }
.glow-step { color: var(--accent-1); font-weight: 600; }
.glow-step i { animation: pulseDot 2s infinite; }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.skill-card {
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: 26px 12px; text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.skill-card i { font-size: 2.1rem; color: var(--accent-1); display: block; margin-bottom: 12px; }
.skill-card span { font-size: 0.86rem; color: var(--text-secondary); font-weight: 500; }
.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-2);
  box-shadow: var(--shadow-glow);
}

/* ---------- Projects ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 18px; border-radius: 999px; font-size: 0.85rem;
  border: 1px solid var(--border-glass); color: var(--text-secondary);
  background: var(--bg-glass); transition: all 0.25s ease;
}
.filter-btn:hover { color: var(--accent-1); border-color: var(--accent-1); }
.filter-btn.active { background: var(--accent-gradient); color: #02101f; border-color: transparent; font-weight: 600; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-card {
  position: relative;
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.project-card.hide { display: none; }

.project-shimmer {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; border-radius: inherit;
  background: linear-gradient(120deg, transparent 40%, rgba(56,189,248,0.18) 50%, transparent 60%);
  background-size: 220% 220%; background-position: -150% -150%;
  opacity: 0; transition: opacity 0.3s ease;
}
.project-card:hover .project-shimmer { opacity: 1; animation: shimmerSweep 1.4s ease forwards; }

.project-image {
  height: 170px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border-bottom: 1px solid var(--border-glass);
}
.project-placeholder-icon { font-size: 2.6rem; color: var(--accent-1); opacity: 0.6; }

.project-body { padding: 22px; }
.project-body h3 { font-size: 1.1rem; margin-bottom: 10px; }
.project-body p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 16px; min-height: 64px; }

.project-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.project-stack span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.76rem; color: var(--text-secondary);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-glass);
  padding: 5px 10px; border-radius: 999px;
}
.project-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* GitHub repos */
.github-section { margin-top: 70px; }
.github-section h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font-size: 1.2rem; }
.github-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.github-loading { color: var(--text-secondary); font-family: var(--font-mono); font-size: 0.9rem; grid-column: 1 / -1; }
.github-card {
  background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-md);
  padding: 20px; transition: transform 0.3s ease, border-color 0.3s ease;
}
.github-card:hover { transform: translateY(-5px); border-color: var(--accent-2); }
.github-card h4 { font-size: 0.98rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.github-card p { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 14px; min-height: 38px; }
.github-meta { display: flex; gap: 16px; font-size: 0.78rem; color: var(--text-muted); }
.github-meta span { display: flex; align-items: center; gap: 5px; }
.github-error { color: var(--error); font-family: var(--font-mono); font-size: 0.85rem; grid-column: 1/-1; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(2, 6, 23, 0.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--bg-1); border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg); max-width: 560px; width: 100%;
  padding: 36px; position: relative; max-height: 84vh; overflow-y: auto;
  transform: translateY(20px); transition: transform 0.3s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close { position: absolute; top: 18px; right: 18px; font-size: 1.2rem; color: var(--text-secondary); }
.modal-close:hover { color: var(--accent-1); }
.modal-box h3 { margin-bottom: 14px; font-size: 1.3rem; }
.modal-box p { color: var(--text-secondary); margin-bottom: 18px; }
.modal-diagram { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-1); background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 18px; white-space: pre-wrap; }
.modal-features { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-features span { font-size: 0.78rem; background: rgba(56,189,248,0.1); color: var(--accent-1); padding: 6px 12px; border-radius: 999px; }

/* ---------- Architecture / Pipeline ---------- */
.pipeline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0; padding: 30px 0;
}
.pipeline-node {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: 18px 16px; min-width: 110px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pipeline-node i { font-size: 1.6rem; color: var(--accent-1); }
.pipeline-node span { font-size: 0.76rem; color: var(--text-secondary); text-align: center; }
.pipeline-node.active { border-color: var(--accent-1); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.pipeline-arrow {
  width: 36px; height: 2px; background: linear-gradient(90deg, var(--accent-2), transparent);
  position: relative;
}
.pipeline-arrow::after {
  content: '›'; position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  color: var(--accent-2); font-size: 1.1rem;
}

/* ---------- Timeline ---------- */
.vtimeline { position: relative; max-width: 760px; margin: 0 auto; }
.vtimeline-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--accent-2), transparent);
  transform: translateX(-50%);
}
.vtimeline-item { position: relative; width: 50%; padding: 0 40px 60px; }
.vtimeline-item:nth-child(odd) { left: 0; text-align: right; }
.vtimeline-item:nth-child(even) { left: 50%; text-align: left; }
.vtimeline-dot {
  position: absolute; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-0); border: 2px solid var(--accent-1);
}
.vtimeline-item:nth-child(odd) .vtimeline-dot { right: -8px; }
.vtimeline-item:nth-child(even) .vtimeline-dot { left: -8px; }
.glow-dot { box-shadow: 0 0 14px var(--accent-1); animation: pulseDot 2s infinite; }
.vtimeline-content {
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: 20px 22px; backdrop-filter: blur(10px);
}
.vtimeline-content i { color: var(--accent-1); font-size: 1.3rem; margin-bottom: 8px; }
.vtimeline-content h3 { font-size: 1rem; margin-bottom: 6px; }
.vtimeline-content p { font-size: 0.85rem; color: var(--text-secondary); }
.highlight-content { border-color: var(--accent-1); box-shadow: var(--shadow-glow); }

/* ---------- Certificates ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert-card {
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: 30px 22px; text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.cert-card i { font-size: 2.4rem; color: var(--accent-1); margin-bottom: 16px; }
.cert-card h3 { font-size: 1rem; margin-bottom: 6px; }
.cert-card span { font-size: 0.8rem; color: var(--text-muted); }
.cert-card:hover { transform: translateY(-6px); border-color: var(--accent-2); box-shadow: var(--shadow-glow); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info { margin: 28px 0; display: flex; flex-direction: column; gap: 14px; }
.contact-info-item { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); transition: color 0.25s ease; }
.contact-info-item i { color: var(--accent-1); width: 20px; }
.contact-info-item:hover { color: var(--accent-1); }

.map-placeholder {
  height: 160px; border-radius: var(--radius-md); border: 1px dashed var(--border-glass);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-muted); background: var(--bg-glass);
}
.map-placeholder i { font-size: 1.8rem; color: var(--accent-1); }

.contact-form {
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg); padding: 36px; backdrop-filter: blur(14px);
}
.form-row { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.85rem; color: var(--text-secondary); }
.form-row input, .form-row textarea {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm); padding: 13px 16px; color: var(--text-primary);
  font-size: 0.92rem; transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(56,189,248,0.15); }
.form-row.invalid input, .form-row.invalid textarea { border-color: var(--error); }
.form-error { font-size: 0.76rem; color: var(--error); min-height: 14px; }
.form-success {
  display: none; align-items: center; gap: 10px; margin-top: 16px;
  color: var(--success); font-size: 0.9rem;
}
.form-success.show { display: flex; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-glass); padding: 70px 0 0; background: var(--bg-1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-grid p { color: var(--text-secondary); margin-top: 14px; font-size: 0.9rem; max-width: 320px; }
.footer-links h4, .footer-social h4 { font-size: 0.92rem; margin-bottom: 16px; color: var(--text-primary); }
.footer-links a { display: block; color: var(--text-secondary); margin-bottom: 10px; font-size: 0.88rem; transition: color 0.25s ease; }
.footer-links a:hover { color: var(--accent-1); }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center; transition: all 0.25s ease;
}
.social-icons a:hover { border-color: var(--accent-1); color: var(--accent-1); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container-w); margin: 0 auto;
  color: var(--text-muted); font-size: 0.82rem;
}
.back-to-top {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-glass); background: var(--bg-glass);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
}
.back-to-top:hover { border-color: var(--accent-1); color: var(--accent-1); transform: translateY(-4px); }
