/* ============================================================
   VARSHAN PORTFOLIO — styles.css
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg: #080e1c;
  --bg2: #0d1526;
  --fg: #e8edf5;
  --muted: #8496b0;
  --border: rgba(255,255,255,0.08);
  --card: rgba(255,255,255,0.04);
  --card-hover: rgba(255,255,255,0.07);
  --shadow: 0 8px 32px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 40px rgba(79, 110, 247, 0.15);
  --accent: #4f6ef7;
  --accent2: #7c3aed;
  --accent-glow: rgba(79, 110, 247, 0.25);
  --grad: linear-gradient(135deg, #4f6ef7, #7c3aed);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 68px;
}

[data-theme="light"] {
  --bg: #f5f7ff;
  --bg2: #eef1fb;
  --fg: #0d1226;
  --muted: #5a6b88;
  --border: rgba(0,0,0,0.1);
  --card: #ffffff;
  --card-hover: #f0f3ff;
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(79, 110, 247, 0.1);
  --accent-glow: rgba(79, 110, 247, 0.15);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--fg);
  background-color: var(--bg);
  line-height: 1.7;
  transition: background-color 300ms ease, color 300ms ease;
  overflow-x: hidden;
}
h1,h2,h3,h4 {
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  font-weight: 800;
  line-height: 1.15;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* ---------- Background Orbs ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.orb-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; left: -200px;
  animation: orbDrift1 18s ease-in-out infinite alternate;
}
.orb-2 {
  width: 500px; height: 500px;
  background: var(--accent2);
  top: 40%; right: -150px;
  animation: orbDrift2 22s ease-in-out infinite alternate;
}
.orb-3 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: -100px; left: 30%;
  animation: orbDrift3 15s ease-in-out infinite alternate;
}
@keyframes orbDrift1 { from { transform: translate(0,0); } to { transform: translate(80px,60px); } }
@keyframes orbDrift2 { from { transform: translate(0,0); } to { transform: translate(-60px,80px); } }
@keyframes orbDrift3 { from { transform: translate(0,0); } to { transform: translate(50px,-50px); } }

[data-theme="light"] .orb { opacity: 0.07; }

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad);
  z-index: 999;
  transition: width 80ms linear;
  border-radius: 0 2px 2px 0;
}

/* ---------- Container ---------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid transparent;
  transition: box-shadow 250ms ease, border-color 250ms ease, background 250ms ease;
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.navbar.elevated {
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  border-color: var(--border);
}
.brand {
  text-decoration: none;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 20px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.brand-dot {
  -webkit-text-fill-color: initial;
  font-size: 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 13.5px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 150ms ease, background 150ms ease;
}
.nav-links a:hover { color: var(--fg); background: var(--card); }
.nav-links a.active { color: var(--accent); background: var(--accent-glow); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 150ms ease, transform 150ms ease;
}
.theme-toggle:hover { background: var(--card-hover); transform: scale(1.05); }

@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 600px) { .nav-actions .btn-sm { display: none; } }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: background 150ms ease;
}
@media (max-width: 900px) { .menu-toggle { display: flex; } }
.menu-toggle:hover { background: var(--card-hover); }
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 20px 16px;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 11px 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
  border-radius: 10px;
  transition: background 150ms ease, color 150ms ease;
}
.mobile-nav a:hover { background: var(--card); color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
@media (max-width: 640px) { .section { padding: 60px 0; } }

.section-row {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 940px) {
  .section-row { grid-template-columns: 1fr; gap: 32px; }
  .section-media { order: -1; }
}
.section-col { min-width: 0; }
.section-media { display: flex; justify-content: center; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  margin: 0 0 20px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 3px;
  width: 40px;
  border-radius: 2px;
  background: var(--grad);
  transition: width 400ms ease;
}
.section-title:hover::after { width: 100%; }
.section-text { color: var(--muted); line-height: 1.8; margin: 10px 0; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--shadow-glow);
  background: var(--card-hover);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--accent) 40%, transparent);
}
.btn-outline {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  transform: translateY(-2px);
  background: var(--accent-glow);
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: center;
  padding: 40px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-content h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  margin-bottom: 12px;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subtitle {
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
  min-height: 1.5em;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.typing-prefix { color: var(--muted); }
.typing-text { color: var(--fg); font-weight: 700; }
.typing-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.desc { color: var(--muted); max-width: 600px; margin-bottom: 24px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 28px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }

/* ---------- Hero Visual ---------- */
.hero-visual { position: relative; }
.hero-card-stack { position: relative; padding: 30px 20px 20px; }
.hero-blob {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  animation: floatY 6s ease-in-out infinite;
}
.hero-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-card {
  position: absolute;
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  animation: floatCard 4s ease-in-out infinite;
}
.floating-card span { font-size: 16px; }
.fc-1 { top: 0; left: 0; animation-delay: 0s; }
.fc-2 { top: 50%; right: -10px; transform: translateY(-50%); animation-delay: 1.2s; }
.fc-3 { bottom: 0; left: 10px; animation-delay: 2.4s; }
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.fc-2 { animation: floatCard2 4s ease-in-out infinite 1.2s; }
@keyframes floatCard2 {
  0%,100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 8px)); }
}

/* ---------- About ---------- */
.about-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.tag {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.media-frame {
  position: relative;
  max-width: 380px;
  width: 100%;
}
.media { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.media-round { border-radius: 999px; }
.media-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.media-badge span { font-size: 22px; }
.media-badge strong { display: block; }
.media-badge small { color: var(--muted); }

/* ---------- Skills ---------- */
.skills-subtitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.skill-card:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 8px 24px var(--accent-glow);
}
.skill-icon { font-size: 18px; line-height: 1; }

.skills-visual { position: relative; max-width: 420px; width: 100%; }
.skills-visual .media { border-radius: 20px; }
.skills-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  pointer-events: none;
  border-radius: 999px;
  z-index: -1;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transform-style: preserve-3d;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow), 0 16px 48px var(--accent-glow);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.project-img-wrap {
  position: relative;
  overflow: hidden;
}
.project-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}
.project-card:hover .project-image { transform: scale(1.06); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,14,28,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 250ms ease;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay span {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  background: var(--grad);
  padding: 6px 14px;
  border-radius: 999px;
}
.project-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ptag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid;
}
.ptag-py  { color: #fbbf24; border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.08); }
.ptag-ml  { color: #a78bfa; border-color: rgba(167,139,250,0.3); background: rgba(167,139,250,0.08); }
.ptag-ai  { color: #34d399; border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.08); }
.ptag-html{ color: #fb923c; border-color: rgba(251,146,60,0.3); background: rgba(251,146,60,0.08); }
.ptag-css { color: #60a5fa; border-color: rgba(96,165,250,0.3); background: rgba(96,165,250,0.08); }
.ptag-js  { color: #facc15; border-color: rgba(250,204,21,0.3); background: rgba(250,204,21,0.08); }
.ptag-hw  { color: #f87171; border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.08); }
.project-title { font-size: 16px; font-weight: 700; color: var(--fg); }
.project-desc { font-size: 13px; color: var(--muted); line-height: 1.65; flex: 1; }

/* ---------- Resume ---------- */
.resume-section { position: relative; }
.resume-inner {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--card)), color-mix(in srgb, var(--accent2) 8%, var(--card)));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: 20px;
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.resume-content { flex: 1; min-width: 280px; }
.resume-visual { display: flex; align-items: center; justify-content: center; }
.resume-doc-icon { font-size: 72px; line-height: 1; filter: drop-shadow(0 8px 24px var(--accent-glow)); }

/* ---------- Experience ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 20px;
  padding-left: 24px;
  margin-top: 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
  border-radius: 2px;
}
.timeline-item { position: relative; }
.timeline-dot {
  position: absolute;
  left: -20px;
  top: 20px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 3px var(--bg), 0 0 12px var(--accent-glow);
  z-index: 1;
}
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.item-title { font-weight: 700; font-size: 15px; }
.item-company { color: var(--accent); font-size: 13px; font-weight: 600; margin-top: 3px; }
.exp-badge {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.bullets { padding-left: 16px; margin-top: 6px; list-style: disc; }
.bullets li {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 4px;
}

/* ---------- Education ---------- */
.edu-list { display: grid; gap: 14px; margin-top: 8px; }
.edu-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.edu-icon { font-size: 24px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.edu-school { font-size: 13px; color: var(--muted); margin-top: 3px; }
.edu-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.edu-grade {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.grade-good { background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.grade-ok   { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }

/* ---------- Certifications ---------- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--accent-glow);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: var(--card-hover);
}
.cert-icon { font-size: 28px; line-height: 1; }
.cert-name { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.cert-year { font-size: 11.5px; color: var(--accent); font-weight: 700; }

/* ---------- Contact ---------- */
.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(8px);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}
.contact-link:not(.no-link):hover {
  transform: translateX(4px);
  background: var(--card-hover);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}
.contact-link-icon { font-size: 22px; line-height: 1; }
.contact-link-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.contact-link-value { font-size: 13.5px; font-weight: 600; margin-top: 2px; }

/* Contact Form */
.contact-form { display: grid; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--muted); }
.form-group input,
.form-group textarea {
  background: color-mix(in srgb, var(--bg) 60%, var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--fg);
  outline: none;
  resize: vertical;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); opacity: 0.7; }
.form-submit { width: 100%; justify-content: center; }
.form-note {
  font-size: 13px;
  text-align: center;
  padding: 6px;
  border-radius: 8px;
  display: none;
}
.form-note.success { color: #22c55e; background: rgba(34,197,94,0.1); display: block; }
.form-note.error { color: #f87171; background: rgba(248,113,113,0.1); display: block; }

/* ---------- Icon Buttons ---------- */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  background: var(--card);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.icon-btn:hover {
  background: var(--accent-glow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 36px 16px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 8px;
}
.footer-inner .brand { justify-content: center; font-size: 18px; }
.footer-inner p { color: var(--muted); font-size: 14px; }
.footer-small { font-size: 12px !important; opacity: 0.7; }

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: transform 200ms ease, opacity 200ms ease, background 200ms ease, box-shadow 200ms ease;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.fade-up { transform: translateY(30px); }
.reveal.visible { opacity: 1; transform: translateY(0) !important; }

.stagger > * {
  --i: 0;
  transition-delay: calc(var(--i) * 65ms);
}

.hover-bounce { will-change: transform; }

.tilt { transform-style: preserve-3d; will-change: transform; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-blob, .floating-card { animation: none; }
  .orb { animation: none; }
}