/* ============================================
   Marvin Schneider – Portfolio
   Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500&display=swap');

/* ── Variables ─────────────────────────────── */
:root {
  --bg:           #060b14;
  --surface:      #0b1220;
  --card:         #0f1929;
  --card-hover:   #152035;
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(14, 165, 233, 0.4);

  --primary:        #0ea5e9;
  --primary-light:  #38bdf8;
  --accent:         #10b981;
  --accent-light:   #34d399;
  --fire:           #f59e0b;

  --text:    #e2e8f0;
  --muted:   #8892a4;
  --heading: #f8fafc;

  --gradient:      linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-text: linear-gradient(135deg, var(--primary-light), var(--accent-light));

  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg:  0 8px 48px rgba(0, 0, 0, 0.6);

  --nav-h:      132px;
  --transition: 0.25s ease;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── Typography ────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--heading);
  line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { color: var(--muted); max-width: 65ch; }

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

/* ── Layout ────────────────────────────────── */
.container {
  width: min(1100px, 100% - 3rem);
  margin-inline: auto;
}

section { padding-block: 5rem; }

/* ── Navigation ────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(6, 11, 20, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

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

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.06);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.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); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 99;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover { color: var(--heading); background: rgba(255,255,255,0.05); }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(14, 165, 233, 0.35); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-hover);
}
.btn-outline:hover { background: rgba(14, 165, 233, 0.1); border-color: var(--primary-light); transform: translateY(-2px); }

/* ── Cards ─────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  background: var(--card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.12), 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Icon in card */
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.icon-purple { background: rgba(124, 58, 237, 0.18); color: #a78bfa; }
.icon-cyan   { background: rgba(14, 165, 233, 0.18); color: var(--primary-light); }
.icon-orange { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.icon-green  { background: rgba(16, 185, 129, 0.18); color: var(--accent-light); }
.icon-red    { background: rgba(239, 68, 68, 0.18);  color: #f87171; }
.icon-blue   { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }

/* ── Tags / Badges ─────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(14, 165, 233, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}

/* ── Page Hero (inner pages) ───────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 3rem;
  text-align: center;
}
.page-hero p { margin-inline: auto; font-size: 1.1rem; }

/* ── Section Heading ───────────────────────── */
.section-label {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.section-heading {
  margin-bottom: 1rem;
}
.section-heading p {
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

/* ── Divider ───────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin-block: 0;
}

/* ── Grid Layouts ──────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Footer ────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  text-align: center;
}
footer p { margin-inline: auto; font-size: 0.88rem; }
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
footer .footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
footer .footer-links a:hover { color: var(--primary-light); }

/* ── Scroll padding ────────────────────────── */
:target { scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* ── Utility ───────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-row { display: flex; flex-direction: column; gap: 1rem; }

/* ── Homepage – Hero ───────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: rgba(14, 165, 233, 0.15);
  top: -100px; right: -100px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: rgba(16, 185, 129, 0.10);
  bottom: 0; left: -80px;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title { margin-bottom: 1rem; }

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.hero-desc {
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.hero-stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat span { font-size: 0.82rem; color: var(--muted); }

/* ── Profile Image ─────────────────────────── */
.profile-img-wrap {
  margin-bottom: 2rem;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  box-shadow:
    0 0 0 3px var(--primary),
    0 0 0 6px rgba(14, 165, 233, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.5);
}

.profile-img-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--card);
  box-shadow:
    0 0 0 3px var(--primary),
    0 0 0 6px rgba(14, 165, 233, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.profile-img-placeholder::after {
  content: "MS";
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── About page ────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}

.info-list { display: flex; flex-direction: column; gap: 0.6rem; }
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.info-item:hover { border-color: var(--border-hover); }
.info-item i {
  margin-top: 2px;
  min-width: 18px;
  color: var(--primary-light);
}
.info-item .info-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.info-item .info-value { font-weight: 500; color: var(--heading); font-size: 0.95rem; }

/* Quick Facts pills */
.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.quick-fact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text);
}
.quick-fact i { color: var(--primary-light); font-size: 0.75rem; }

/* Skills */
.skills-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill-chip {
  padding: 0.4rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.skill-chip:hover { border-color: var(--primary-light); color: var(--primary-light); box-shadow: 0 0 14px rgba(56, 189, 248, 0.2); }

/* Skills Category */
.skills-category {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}
.skills-category:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.skills-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.skills-cat-header h4 { font-size: 0.95rem; font-weight: 600; }
.skills-cat-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Werdegang Cards */
.werdegang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 860px) {
  .werdegang-grid { grid-template-columns: 1fr; }
}
.werdegang-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-top: 3px solid var(--primary);
  transition: all var(--transition);
}
.werdegang-card:hover {
  border-color: var(--border-hover);
  border-top-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.werdegang-card .wc-period {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.4rem;
}
.werdegang-card h4 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.werdegang-card .wc-org {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.werdegang-card p { font-size: 0.87rem; max-width: 100%; }

/* ── Hobby Feature Cards ───────────────────── */
.hobby-feature {
  display: flex;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.hobby-feature:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.hobby-feature-side {
  width: 88px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.hobby-feature-body {
  flex: 1;
  padding: 1.75rem 2rem;
  border-left: 1px solid var(--border);
}
.hobby-feature-body h3 { margin-bottom: 0.5rem; }
.hobby-feature-body p { font-size: 0.93rem; max-width: 100%; margin-bottom: 1rem; }
.hobby-feature-body .hobby-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Values cards */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 860px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
}
.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.value-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.value-card .value-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}
.value-card h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.value-card p { font-size: 0.82rem; max-width: 100%; }

/* ── Hobbies page (legacy grid cards) ─────── */
.hobby-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2.25rem;
  transition: all var(--transition);
}
.hobby-card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.hobby-card h3 { margin-bottom: 0.6rem; }
.hobby-card p { font-size: 0.93rem; max-width: 100%; }
.hobby-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 1.4rem;
}

/* ── Responsive / Mobile ───────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 96px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-logo-img { height: 76px; }
  .hero-stat-row { gap: 1.25rem; }
  section { padding-block: 3.5rem; }
  .about-grid { gap: 2rem; }
  .hobby-feature { flex-direction: column; }
  .hobby-feature-side { width: 100%; height: 72px; }
  .hobby-feature-body { border-left: none; border-top: 1px solid var(--border); }
  .profile-hero-img { max-width: 300px; }
  .profile-hero { padding-top: calc(var(--nav-h) + 2rem); }
  .contact-grid { grid-template-columns: 1fr; }
  .werdegang-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .profile-hero-img { max-width: 240px; }
}

/* ══════════════════════════════════════════════
   TECH DESIGN LAYER
   ══════════════════════════════════════════════ */

/* Subtle global grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -1;
}

/* Gradient line at bottom of navbar */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 40%, var(--accent) 60%, transparent 100%);
  opacity: 0.4;
}
.navbar { border-bottom: none; }

/* Hero: stronger ambient glow */
.hero-glow-1 {
  background: radial-gradient(ellipse, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
  filter: blur(80px);
}
.hero-glow-2 {
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  filter: blur(80px);
}

/* Eyebrow blinking cursor */
.hero-eyebrow::after {
  content: '_';
  color: var(--primary-light);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Terminal-style hover on fact items */
.fact-item:hover .fact-item-icon {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-light);
}

/* Glow on hobby feature hover */
.hobby-feature:hover {
  box-shadow: 0 12px 48px rgba(14, 165, 233, 0.14), 0 4px 16px rgba(0,0,0,0.4);
}

/* Skills category glow on hover */
.skills-category:hover {
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.1);
}

/* Werdegang card top border animates on hover */
.werdegang-card:hover {
  border-top-color: var(--accent-light);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.12), 0 4px 16px rgba(0,0,0,0.35);
}

/* Value card glow */
.value-card:hover {
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.12), 0 4px 16px rgba(0,0,0,0.3);
}

/* Contact info item hover arrow */
.contact-info-item {
  position: relative;
  overflow: hidden;
}
.contact-info-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gradient);
  transform: scaleY(0);
  transition: transform var(--transition);
  border-radius: 0 2px 2px 0;
}
.contact-info-item:hover::before { transform: scaleY(1); }

/* Form input tech glow on focus */
.form-input:focus,
.form-textarea:focus {
  background: rgba(14, 165, 233, 0.04);
}

/* Active nav link underline */
.nav-links a.active {
  color: var(--primary-light);
  background: rgba(14, 165, 233, 0.08);
}

/* Section divider with gradient pulse */
.divider {
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
}

/* Profile hero scanning line */
.profile-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(14,165,233,0.4) 40%, rgba(16,185,129,0.4) 60%, transparent 100%);
  top: 60%;
  animation: scan 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan {
  0%   { top: 30%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 80%; opacity: 0; }
}

/* Info items tech left border */
.info-item {
  border-left: 2px solid transparent;
  transition: border-color var(--transition), border-left-color var(--transition);
}
.info-item:hover { border-left-color: var(--primary); }

/* Btn primary: subtle glow always visible */
.btn-primary {
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}
.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.4), 0 0 40px rgba(14, 165, 233, 0.15);
}

/* ── Nav Logo Image ─────────────────────────── */
.nav-logo-img {
  height: 120px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── Profile Hero (About page) ─────────────── */
.profile-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 3.5rem;
  text-align: center;
  overflow: hidden;
}
.profile-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 165, 233, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.profile-hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(14, 165, 233, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.profile-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.profile-hero-img {
  max-width: 480px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  margin: 0 auto 0.6rem;
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.35),
    0 0 50px rgba(14, 165, 233, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.55);
}

.img-credit {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.75rem;
}
.img-credit a {
  color: var(--primary-light);
  opacity: 0.6;
  transition: opacity var(--transition);
}
.img-credit a:hover { opacity: 1; }
.profile-hero-name { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 0.4rem; }
.profile-hero-role { font-size: 1rem; color: var(--muted); margin-bottom: 1.5rem; }

/* ── Fun Facts ─────────────────────────────── */
.fact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.fact-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color var(--transition), border-left-color var(--transition), transform var(--transition);
}
.fact-item:hover {
  border-color: var(--border-hover);
  border-left-color: var(--accent);
  transform: translateX(4px);
}
.fact-item-icon {
  width: 36px; height: 36px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.fact-item p { font-size: 0.91rem; max-width: 100%; line-height: 1.65; }

/* ── Contact Form ──────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form-stack { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}
.form-input,
.form-textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  color: var(--heading);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  outline: none;
  appearance: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted); opacity: 0.7; }
.form-textarea { resize: vertical; min-height: 150px; line-height: 1.6; }

.contact-info-list { display: flex; flex-direction: column; gap: 0.65rem; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition);
}
.contact-info-item:hover { border-color: var(--border-hover); }
.contact-info-item i { color: var(--primary-light); min-width: 18px; }

/* Form success/error state */
.form-status {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.form-status.success { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--accent-light); display: block; }
.form-status.error   { background: rgba(239, 68, 68, 0.12);  border: 1px solid rgba(239, 68, 68, 0.3);  color: #f87171; display: block; }
