/* ============================================================
   Anudeep S — Portfolio
   Theme: Deep dark + cyan accent
============================================================ */

:root {
  --bg: #0b0b0e;
  --bg-elev: #111114;
  --bg-card: #14141a;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e7e7ea;
  --text-dim: #a1a1aa;
  --text-mute: #71717a;
  --accent: #0891b2;
  --accent-2: #22d3ee;
  --accent-soft: rgba(8, 145, 178, 0.15);
  --danger: #ef4444;
  --ring: 0 0 0 1px var(--border-strong), 0 8px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --maxw: 1180px;
  --shadow-glow: 0 10px 40px -10px rgba(8, 145, 178, 0.5);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

.center { text-align: center; }

/* ============== Background ============== */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 { background: var(--accent); top: -200px; left: -200px; }
.bg-glow-2 { background: #7c3aed; bottom: -200px; right: -200px; opacity: 0.18; }

main, .nav, .footer { position: relative; z-index: 1; }

/* ============== Navbar ============== */
.nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 11, 14, 0.6);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.nav.scrolled {
  background: rgba(11, 11, 14, 0.85);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-bracket { color: var(--accent); }
.logo-slash { color: var(--text-mute); }

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

.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  margin-left: 8px;
  box-shadow: 0 0 0 1px transparent;
}
.nav-cta:hover { background: #0e9eb9 !important; box-shadow: var(--shadow-glow) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============== Hero ============== */
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  padding: 64px 0 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 24px;
}
.accent { color: var(--accent-2); }

.typed-wrap {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
}
.typed { color: var(--accent-2); }
.caret {
  color: var(--accent-2);
  font-weight: 300;
  animation: blink 1.05s steps(2) infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: 1.075rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #0e9eb9;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  color: var(--text-dim);
  font-size: 14px;
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }

/* avatar */
.hero-right { display: flex; justify-content: center; align-items: center; }

.avatar-wrap {
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 1 / 1;
}
.avatar {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  position: relative;
  z-index: 2;
}
.avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), #7c3aed, var(--accent));
  animation: spin 12s linear infinite;
  filter: blur(2px);
  opacity: 0.85;
  z-index: 1;
}
@keyframes spin { to { transform: rotate(360deg); } }

.floater {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  box-shadow: var(--ring);
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}
.f1 { top: 8%;   left: -8%;  animation-delay: 0s;   }
.f2 { top: 22%;  right: -12%;animation-delay: 1.2s; }
.f3 { bottom: 16%; left: -14%; animation-delay: 2.4s; }
.f4 { bottom: 4%;  right: -4%; animation-delay: 3.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-mute);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-cue span {
  width: 3px; height: 8px;
  background: var(--text-mute);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ============== Section header ============== */
.section {
  padding: 96px 0;
  position: relative;
}

.section-head {
  margin-bottom: 56px;
  max-width: 760px;
}
.kicker {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-2);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-sub {
  color: var(--text-dim);
  margin-top: 8px;
  font-size: 0.95rem;
}

/* ============== About ============== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.about-text p { color: var(--text-dim); margin-bottom: 16px; }
.about-text strong { color: var(--text); font-weight: 600; }

.quick-facts {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.fact {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.fact:hover { transform: translateY(-3px); border-color: var(--accent); }
.fact-num {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent-2);
  font-family: 'JetBrains Mono', monospace;
}
.fact-label { color: var(--text-mute); font-size: 12px; }

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ring);
}
.card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.card-dots { display: flex; gap: 6px; }
.card-dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: #3f3f46;
}
.card-dots i:nth-child(1) { background: #ef4444; }
.card-dots i:nth-child(2) { background: #f59e0b; }
.card-dots i:nth-child(3) { background: #10b981; }
.card-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-mute);
}
.card-body {
  padding: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-dim);
  overflow-x: auto;
}
.tk-k { color: #7dd3fc; }
.tk-s { color: #fbbf24; }
.tk-p { color: var(--text); }

/* ============== Timeline ============== */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--border);
}

.t-item {
  position: relative;
  padding: 0 0 36px 28px;
}
.t-item:last-child { padding-bottom: 0; }

.t-dot {
  position: absolute;
  left: -38px;
  top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.15);
}

.t-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.t-date { color: var(--accent-2); }
.t-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.t-content h3 .at { color: var(--text-mute); margin: 0 4px; }
.t-content h3 a { color: var(--text); border-bottom: 1px dashed var(--border-strong); }
.t-content h3 a:hover { color: var(--accent-2); border-color: var(--accent-2); }
.t-content p { color: var(--text-dim); max-width: 720px; }

.t-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  list-style: none;
  margin-top: 14px;
}
.t-tags li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent-2);
  border-radius: 999px;
}

/* ============== Projects ============== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.proj-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.proj-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(8, 145, 178, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.proj-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
}
.proj-card:hover::before { opacity: 1; }

.proj-card .proj-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.proj-card .proj-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-2);
  border-radius: 8px;
}
.proj-card .proj-actions { display: flex; gap: 6px; }
.proj-card .proj-actions a {
  color: var(--text-mute);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
}
.proj-card .proj-actions a:hover { color: var(--accent-2); background: rgba(255, 255, 255, 0.04); }

.proj-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  word-break: break-word;
}
.proj-card h3 a { color: var(--text); }
.proj-card h3 a:hover { color: var(--accent-2); }

.proj-card p {
  color: var(--text-dim);
  font-size: 13.5px;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proj-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-mute);
  font-family: 'JetBrains Mono', monospace;
  align-items: center;
  flex-wrap: wrap;
}
.proj-meta .lang-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.proj-meta span svg {
  vertical-align: middle;
  margin-right: 4px;
}

.proj-error, .proj-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-mute);
  padding: 40px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 0%, #1a1a22 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  border: 1px solid var(--border);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============== Skills ============== */
.skills-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color var(--transition);
}
.skill-group:hover { border-color: var(--border-strong); }

.skill-group h4 {
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-2);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  transition: all var(--transition);
}
.chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}
.chip img { width: 18px; height: 18px; }

.gh-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.stat-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}
.stat-panel:hover { border-color: var(--border-strong); }
.stat-panel-wide { grid-column: 1 / -1; }

.stat-panel-title {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-2);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  flex: 1;
}
.stat-num-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color var(--transition), transform var(--transition);
  min-height: 76px;
}
.stat-num-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.stat-num-card .stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent-2);
  line-height: 1.1;
}
.stat-num-card .stat-label {
  font-size: 12px;
  color: var(--text-mute);
}

.stat-streak-wrap { padding: 22px; align-items: stretch; }
.stat-streak {
  width: 100%;
  height: auto;
  flex: 1;
  object-fit: contain;
  border-radius: 10px;
}

.lang-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lang-bar-placeholder {
  color: var(--text-mute);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  padding: 8px 0;
}
.lang-bar {
  display: grid;
  grid-template-columns: 140px 1fr 56px;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}
.lang-bar-name {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lang-bar-name .lang-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
}
.lang-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
}
.lang-bar-fill {
  height: 100%;
  width: 0;
  background: var(--c, var(--accent));
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.lang-bar.in .lang-bar-fill { width: var(--w, 0%); }
.lang-bar-pct {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-mute);
  text-align: right;
  font-size: 12px;
}

.skeleton-mini {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

/* ============== Contact ============== */
.contact-card {
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.12), rgba(124, 58, 237, 0.08)),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 56px;
  position: relative;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: var(--accent);
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
}

.contact-header { position: relative; z-index: 1; }

.contact-sub {
  color: var(--text-dim);
  margin: 12px 0 36px;
  max-width: 560px;
}

/* ----- Form ----- */
.contact-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  outline: none;
  resize: none;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
  font-family: inherit;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-mute);
}
.contact-form input:hover,
.contact-form textarea:hover {
  border-color: var(--border-strong);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.18);
}
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(239, 68, 68, 0.55);
}

/* Submit button — keep .btn-primary look, just sit nicely at the bottom */
.contact-form .pageclip-form__submit {
  align-self: flex-start;
  margin-top: 6px;
  min-width: 180px;
}
.contact-form .pageclip-form__submit > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Pageclip submit-button loading state */
.pageclip-form__submit.pageclip-form__submit--loading {
  pointer-events: none;
  opacity: 0.9;
}

/* Pageclip success overlay — themed dark panel that replaces the form on submit */
.pageclip-form__success {
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.10), rgba(124, 58, 237, 0.06)),
    var(--bg-card);
  border-radius: 14px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 24px;
  text-align: center;
  animation: fadeInSuccess 0.4s ease both;
}

.pageclip-form__success::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.14);
  border: 2px solid #10b981;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px 32px;
  animation: popIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.pageclip-form__success__message {
  font-family: 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}

.pageclip-form__success::after {
  content: "Your message just landed in my inbox. I'll get back to you soon — promise.";
  display: block;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 380px;
  animation: fadeInSuccess 0.5s ease 0.2s both;
}

@keyframes fadeInSuccess {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* ----- Alt contact row (below the form) ----- */
.contact-alt {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px 0 24px;
}
.contact-alt-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.contact-alt-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-alt-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition);
}
.contact-email:hover {
  color: var(--accent-2);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}
.contact-email svg { flex-shrink: 0; }

.socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.socials a {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dim);
  transition: all var(--transition);
}
.socials a:hover {
  color: var(--accent-2);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* ============== Footer ============== */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-mute);
  font-size: 14px;
}
.footer .heart { color: #ef4444; }

/* ============== Reveal animation ============== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============== Responsive ============== */
@media (max-width: 960px) {
  .hero { padding: 40px 0 80px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .hero-meta { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-card { padding: 40px; }
  .scroll-cue { display: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11, 11, 14, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .quick-facts { grid-template-columns: 1fr 1fr; }
  .gh-stats { grid-template-columns: 1fr; }
  .lang-bar { grid-template-columns: 100px 1fr 48px; gap: 10px; }
  .floater { font-size: 11px; padding: 5px 10px; }
  .f1, .f3 { left: -4%; }
  .f2, .f4 { right: -4%; }

  .form-row { grid-template-columns: 1fr; gap: 18px; }
  .contact-alt-row {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-email { justify-content: center; }
  .socials { justify-content: center; }
  .contact-form .pageclip-form__submit {
    align-self: stretch;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .contact-card { padding: 28px 20px; }
  .timeline { padding-left: 22px; }
  .t-item { padding-left: 22px; }
  .t-dot { left: -32px; }
}

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