/* ==========================================================================
   Giovanni Trofino — Portfolio Design System
   Style: Futuristic Developer / Pure Dark Mode / Slate & Amber Gold
   Zero external font or CDN dependencies (100% DSGVO-friendly)
   ========================================================================== */

:root {
  /* Palette */
  --bg-primary: #090b10;
  --bg-secondary: #0f131c;
  --bg-elevated: #141925;
  --surface-glass: rgba(17, 22, 33, 0.72);
  --surface-glass-hover: rgba(24, 30, 44, 0.86);
  --surface-terminal: rgba(11, 14, 22, 0.9);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(245, 158, 11, 0.42);

  /* Accent: Amber / Gold */
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-deep: #d97706;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --accent-glow: rgba(245, 158, 11, 0.22);

  /* Status */
  --status-online: #10b981;
  --status-online-glow: rgba(16, 185, 129, 0.28);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-on-accent: #090b10;

  /* Typography */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout & Radius */
  --container-max: 1120px;
  --nav-height: 74px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadows & Motion */
  --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 0 38px rgba(245, 158, 11, 0.14);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  color-scheme: dark;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* Skip Link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Ambient Futuristic Background Grid & Subtle Amber Orbs */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 15%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 15%, #000 40%, transparent 100%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.45;
}

.bg-orb--primary {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.24) 0%, transparent 70%);
}

.bg-orb--secondary {
  width: 440px;
  height: 440px;
  bottom: 10%;
  left: -160px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.14) 0%, transparent 72%);
}

/* Container & Section Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section--compact {
  padding: 68px 0;
}

.section-header {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-lead {
  font-size: 1.03rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Glass Card Base
   ========================================================================== */

.glass-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.32s var(--ease-smooth),
    border-color 0.32s var(--ease-smooth),
    background-color 0.32s var(--ease-smooth),
    box-shadow 0.32s var(--ease-smooth);
}

.glass-card--interactive:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  background: var(--surface-glass-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(9, 11, 16, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.06));
  border: 1px solid var(--border-accent);
  color: var(--accent-light);
  font-size: 0.88rem;
}

.brand-cursor {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.is-active {
  color: var(--accent-light);
}

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

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.lang-btn {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.is-active {
  background: var(--accent);
  color: var(--text-on-accent);
}

/* Mobile Toggle Button */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.menu-toggle:hover {
  border-color: var(--border-accent);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 95;
  padding: 18px 24px 24px;
  background: rgba(9, 11, 16, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--accent-light);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    transform 0.22s var(--ease-smooth),
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: var(--text-on-accent);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.26);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.36);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent-light);
}

.btn--sm {
  padding: 9px 15px;
  font-size: 0.86rem;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.88fr);
  gap: 48px;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #a7f3d0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 22px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-online);
  box-shadow: 0 0 0 4px var(--status-online-glow);
  animation: pulseDot 2.4s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.72;
  }
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero-title-accent {
  background: linear-gradient(120deg, #fef3c7 0%, #fbbf24 45%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.04rem, 1.8vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 28px;
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.pillar-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
}

.pillar-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero Right Column: Profile Card + Terminal Card */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.14), transparent 58%);
  pointer-events: none;
}

.avatar-frame {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-light), rgba(245, 158, 11, 0.18));
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.2);
  flex-shrink: 0;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 33%;
}

.avatar-fallback {
  display: none;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: -0.04em;
}

.avatar-inner.is-fallback .avatar-img {
  display: none;
}

.avatar-inner.is-fallback .avatar-fallback {
  display: flex;
}

.profile-meta {
  position: relative;
  min-width: 0;
}

.profile-name {
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.profile-role {
  font-size: 0.9rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 8px;
}

.profile-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.profile-location svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* Terminal Card */
.terminal-card {
  background: var(--surface-terminal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot--red { background: #ef4444; opacity: 0.8; }
.terminal-dot--amber { background: #f59e0b; opacity: 0.9; }
.terminal-dot--green { background: #10b981; opacity: 0.8; }

.terminal-filename {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.75;
  overflow-x: auto;
}

.code-line {
  display: flex;
  gap: 14px;
}

.code-num {
  color: var(--text-muted);
  user-select: none;
  min-width: 18px;
  text-align: right;
  opacity: 0.65;
}

.code-key { color: #cbd5e1; }
.code-punct { color: #64748b; }
.code-string { color: #fbbf24; }
.code-bool { color: #34d399; }

/* ==========================================================================
   About Section
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
}

.about-text-card {
  padding: 32px;
}

.about-text-card p + p {
  margin-top: 16px;
}

.about-text-card p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.about-text-card strong {
  color: var(--text-primary);
  font-weight: 600;
}

.highlights-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-card {
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent-light);
  flex-shrink: 0;
}

.icon-box svg {
  width: 21px;
  height: 21px;
}

.highlight-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.highlight-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.48), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::after {
  opacity: 1;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.service-list li::before {
  content: "›";
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.4;
}

.services-note {
  margin-top: 26px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.services-note-text {
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.services-note-text strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Skills Section
   ========================================================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.skill-group-card {
  padding: 26px;
}

.skill-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.skill-group-title {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.83rem;
  color: var(--text-primary);
  transition: border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.skill-tag:hover {
  border-color: var(--border-accent);
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent-light);
}

/* ==========================================================================
   Subtle Showcase / In Progress Section
   ========================================================================== */

.showcase-section[hidden] {
  display: none;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.showcase-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(15, 19, 28, 0.52);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.showcase-card:hover {
  border-style: solid;
}

.showcase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.showcase-category {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.showcase-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-light);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.showcase-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
}

.showcase-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.showcase-stack {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.showcase-pill {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-light);
}

.showcase-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.contact-email-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  position: relative;
  overflow: hidden;
}

.contact-email-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.14), transparent 55%);
  pointer-events: none;
}

.contact-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.contact-heading {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-copy {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(9, 11, 16, 0.72);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  word-break: break-all;
}

.contact-email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.copy-feedback {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #34d399;
  min-height: 1.2em;
}

.contact-socials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.social-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.social-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.social-arrow {
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.social-card:hover .social-arrow {
  transform: translate(3px, -3px);
  color: var(--accent-light);
}

.social-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.social-handle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  word-break: break-word;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0 42px;
  background: rgba(9, 11, 16, 0.7);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-light);
}

/* ==========================================================================
   Legal Subpages (Impressum & Datenschutz)
   ========================================================================== */

.legal-main {
  padding: 64px 0 96px;
}

.legal-container {
  max-width: 820px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--accent-light);
  margin-bottom: 28px;
}

.back-link:hover {
  text-decoration: underline;
}

.legal-card {
  padding: 40px;
}

.legal-card h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-card h2 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.72;
}

.legal-card p + p {
  margin-top: 10px;
}

.legal-card ul {
  margin: 10px 0 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-card a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-address {
  font-style: normal;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(9, 11, 16, 0.65);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  margin: 12px 0 16px;
  line-height: 1.75;
}

/* ==========================================================================
   Subtle Scroll Reveal
   ========================================================================== */

.js-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.62s var(--ease-smooth),
    transform 0.62s var(--ease-smooth);
}

.js-reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding: 52px 0 72px;
  }

  .section {
    padding: 76px 0;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .services-grid,
  .skills-grid,
  .showcase-grid,
  .contact-socials-grid {
    grid-template-columns: 1fr;
  }

  .about-text-card,
  .contact-email-card,
  .legal-card {
    padding: 24px;
  }

  .profile-card {
    flex-direction: row;
  }

  .avatar-frame {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 440px) {
  .container {
    padding: 0 18px;
  }

  .profile-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn,
  .contact-email-actions .btn {
    width: 100%;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
