/* ============================================
   Janik von Dühren — Personal Website
   Modern, iOS-inspired aesthetic
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #1a1a26;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  --text: #f5f5f7;
  --text-muted: #8e8e93;
  --text-subtle: #636366;

  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.15);
  --accent-glow: rgba(10, 132, 255, 0.4);
  --accent-hover: #3d9dff;

  --purple: #bf5af2;
  --purple-soft: rgba(191, 90, 242, 0.12);

  --nav-scrolled-bg: rgba(10, 10, 15, 0.8);
  --nav-mobile-bg: rgba(10, 10, 15, 0.95);
  --portrait-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --grain-opacity: 0.03;
  --success: #30d158;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --nav-height: 72px;
  --container: 1120px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --surface: rgba(0, 0, 0, 0.04);
  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 0, 0, 0.16);

  --text: #1c1c1e;
  --text-muted: #636366;
  --text-subtle: #8e8e93;

  --accent-soft: rgba(10, 132, 255, 0.12);
  --accent-glow: rgba(10, 132, 255, 0.28);

  --purple-soft: rgba(191, 90, 242, 0.1);

  --nav-scrolled-bg: rgba(245, 245, 247, 0.88);
  --nav-mobile-bg: rgba(245, 245, 247, 0.96);
  --portrait-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
  --grain-opacity: 0.018;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

/* Film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
  transition: background var(--transition), backdrop-filter var(--transition);
  animation: nav-enter 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.nav.scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-start {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-card);
  gap: 2px;
}

.lang-switch-btn {
  min-width: 32px;
  padding: 4px 8px;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.lang-switch-btn:hover {
  color: var(--text);
}

.lang-switch-btn.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-card);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.theme-toggle-track {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.theme-icon {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.theme-icon--sun {
  left: 7px;
  color: var(--accent);
}

.theme-icon--moon {
  right: 7px;
}

[data-theme="dark"] .theme-icon--moon {
  color: var(--text);
}

[data-theme="dark"] .theme-icon--sun {
  color: var(--text-muted);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 6px var(--accent-glow);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(24px);
}

[data-theme="light"] .theme-icon--sun {
  color: var(--text);
}

[data-theme="light"] .theme-icon--moon {
  color: var(--text-muted);
}

.nav-logo {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow:
    0 0 32px var(--accent-glow),
    0 8px 24px rgba(10, 132, 255, 0.35);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: 0 0 24px rgba(10, 132, 255, 0.2);
}

.btn-full {
  width: 100%;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s ease-in-out infinite;
}

.hero-orb--1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  opacity: 0.12;
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.hero-orb--2 {
  width: 400px;
  height: 400px;
  background: var(--purple);
  opacity: 0.1;
  bottom: -100px;
  left: -50px;
  animation-delay: -7s;
}

.hero-orb--3 {
  width: 300px;
  height: 300px;
  background: #30d158;
  opacity: 0.06;
  top: 50%;
  left: 40%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 24px 120px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: 48px 64px;
  align-items: center;
}

.hero-portrait {
  margin: 0;
  position: relative;
}

.hero-portrait::before {
  content: '';
  position: absolute;
  inset: -24px;
  background: linear-gradient(135deg, var(--accent-soft), var(--purple-soft));
  border-radius: calc(var(--radius-xl) + 24px);
  z-index: -1;
  filter: blur(48px);
  opacity: 0.7;
}

.hero-portrait-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--portrait-shadow);
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--text) 30%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 80px;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--text-subtle), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.3); }
}

/* ============================================
   Sections (shared)
   ============================================ */

.section {
  padding: 120px 0;
  position: relative;
}

.section-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin-top: 16px;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
}

.section-header {
  margin-bottom: 64px;
}

/* ============================================
   About
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text .lead {
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  position: relative;
  isolation: isolate;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-card > * {
  position: relative;
  z-index: 1;
}

.about-card-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.about-card-fact {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.about-card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  transition: color var(--transition);
}

.about-card--dev::before {
  background: linear-gradient(160deg, rgba(10, 132, 255, 0.14) 0%, transparent 100%);
}

.about-card--politics::before {
  background: linear-gradient(
    160deg,
    rgba(255, 214, 10, 0.14) 0%,
    rgba(255, 179, 0, 0.05) 45%,
    transparent 100%
  );
}

a.about-card {
  cursor: pointer;
}

a.about-card:hover .about-card-link {
  color: var(--text);
}

a.about-card.about-card--dev:hover {
  border-color: rgba(10, 132, 255, 0.45);
  box-shadow: 0 16px 40px rgba(10, 132, 255, 0.15);
  transform: translateX(6px);
}

a.about-card.about-card--dev:hover::before {
  opacity: 1;
}

a.about-card.about-card--politics:hover {
  border-color: rgba(255, 214, 10, 0.45);
  box-shadow: 0 16px 40px rgba(255, 214, 10, 0.14);
  transform: translateX(6px);
}

a.about-card.about-card--politics:hover::before {
  opacity: 1;
}

.about-card.reveal {
  transform: translateY(32px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-card.reveal.visible {
  transform: translateY(0);
  will-change: auto;
}

a.about-card.reveal.visible:hover {
  transform: translateX(6px);
}

/* ============================================
   Development
   ============================================ */

.development {
  background: var(--bg-elevated);
  transition: background-color var(--transition);
}

.dev-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.dev-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.dev-projects {
  width: 100%;
  max-width: 320px;
}

.dev-projects-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-align: center;
}

.dev-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dev-project-item {
  cursor: pointer;
}

.dev-project-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.dev-project-item:not(:has(.dev-project-link)) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.dev-project-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.dev-project-item--petbond .dev-project-icon {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 22px rgba(232, 145, 155, 0.35);
}

.dev-project-item--refridge .dev-project-icon {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 22px rgba(48, 209, 88, 0.35);
}

.dev-project-item--minimalist .dev-project-icon {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 22px rgba(255, 255, 255, 0.12);
}

.dev-project-item:hover .dev-project-icon {
  transform: scale(1.12);
}

.dev-project-item--petbond:hover .dev-project-icon {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 32px rgba(232, 145, 155, 0.55),
    0 0 48px rgba(240, 168, 176, 0.35);
}

.dev-project-item--petbond:hover .dev-project-name {
  color: #f0a8b0;
}

.dev-project-item--refridge:hover .dev-project-icon {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 32px rgba(48, 209, 88, 0.55),
    0 0 48px rgba(102, 204, 51, 0.35);
}

.dev-project-item--minimalist:hover .dev-project-icon {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 32px rgba(255, 255, 255, 0.22),
    0 0 48px rgba(200, 200, 210, 0.2);
}

.dev-project-item--refridge:hover .dev-project-name {
  color: #6ee787;
}

.dev-project-item--minimalist:hover .dev-project-name {
  color: #e8e8ed;
}

.dev-project-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

/* Phone mockup */
.phone-frame {
  width: 280px;
  margin: 0 auto;
  background: #1c1c1e;
  border-radius: 44px;
  padding: 12px;
  border: 2px solid #3a3a3c;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px var(--accent-soft);
  position: relative;
}

.phone-notch {
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 0 0 18px 18px;
  margin: 0 auto 8px;
}

.phone-screen {
  background: #000;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
}

.phone-app {
  padding: 20px 16px;
  height: 100%;
  background: linear-gradient(180deg, #1c1c1e 0%, #000 100%);
}

.phone-app-header {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.phone-app-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.phone-app-dot:nth-child(2) { background: var(--purple); }
.phone-app-dot:nth-child(3) { background: #30d158; }

.phone-app-bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin-bottom: 12px;
  width: 70%;
}

.phone-app-bar--short {
  width: 45%;
}

.phone-app-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.phone-app-card {
  height: 64px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dev-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.dev-content p {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.skill-list {
  list-style: none;
  margin-bottom: 40px;
}

.skill-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.skill-list li:last-child {
  border-bottom: none;
}

.skill-icon {
  color: var(--accent);
  font-size: 0.625rem;
}

.dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   Politics
   ============================================ */

.politics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.politics-card {
  position: relative;
  isolation: isolate;
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid rgba(255, 214, 10, 0.18);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transform-origin: center center;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.politics-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(255, 214, 10, 0.12) 0%,
    rgba(255, 179, 0, 0.04) 40%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.politics-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(255, 214, 10, 0.16) 0%,
    rgba(255, 179, 0, 0.08) 50%,
    transparent 100%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.politics-card > * {
  position: relative;
  z-index: 1;
}

a.politics-card {
  cursor: pointer;
}

.politics-card.reveal {
  transform: translateY(32px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.politics-card.reveal.visible {
  transform: translateY(0);
  will-change: auto;
}

.politics-card.reveal.visible:hover {
  transform: scale(1.04);
  border-color: rgba(255, 214, 10, 0.5);
  box-shadow:
    0 20px 48px rgba(255, 214, 10, 0.2),
    0 0 0 1px rgba(255, 214, 10, 0.12);
  z-index: 1;
}

.politics-card.reveal.visible:hover::after {
  opacity: 1;
}

.politics-card.reveal.visible:hover .politics-card-icon {
  background: rgba(255, 214, 10, 0.22);
  color: #ffe566;
}

.politics-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 214, 10, 0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  color: #ffd60a;
  transition:
    background 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.politics-card-icon svg {
  width: 24px;
  height: 24px;
}

.politics-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.politics-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================
   Contact
   ============================================ */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px;
}

.contact-text p {
  color: var(--text-muted);
  margin-top: 24px;
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-required {
  color: var(--accent);
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-subtle);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-submit {
  background: var(--bg-card);
  color: var(--text-subtle);
  border: 1px solid var(--border);
  box-shadow: none;
  cursor: not-allowed;
}

.contact-submit:hover {
  transform: none;
  background: var(--bg-card);
  box-shadow: none;
}

.contact-submit.is-ready {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  cursor: pointer;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.contact-submit.is-ready:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow:
    0 0 32px var(--accent-glow),
    0 8px 24px rgba(10, 132, 255, 0.35);
}

.contact-submit.is-sent {
  background: var(--success);
  color: #fff;
  border-color: transparent;
  cursor: default;
  box-shadow: 0 0 24px rgba(48, 209, 88, 0.35);
}

.contact-submit.is-sent:hover {
  transform: none;
  background: #30d158;
  box-shadow: 0 0 24px rgba(48, 209, 88, 0.35);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-copy {
  justify-self: start;
  font-size: 0.875rem;
  color: var(--text-subtle);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.footer-legal-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.footer-legal-link:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.footer-links {
  justify-self: end;
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

/* ============================================
   Reveal animations
   ============================================ */

@keyframes nav-enter {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:not(.visible) {
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-left.visible,
.reveal-right.visible {
  transform: translateX(0);
}

.reveal-left:not(.visible) {
  transform: translateX(-24px);
}

.reveal-right:not(.visible) {
  transform: translateX(24px);
}

/* Stagger children */
.hero-text .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-text .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero-text .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero-text .reveal:nth-child(4) { transition-delay: 0.35s; }
.hero-text .reveal:nth-child(5) { transition-delay: 0.45s; }
.hero-portrait.reveal { transition-delay: 0.2s; }

.about-cards .about-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.about-cards .about-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.about-cards .about-card.reveal:nth-child(3) { transition-delay: 0.25s; }

.politics-grid .politics-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.politics-grid .politics-card.reveal:nth-child(2) { transition-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  .nav {
    animation: none;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .politics-card.reveal.visible:hover {
    transform: none;
  }

  .politics-card.reveal.visible:hover::after {
    opacity: 0;
  }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .about-grid,
  .dev-showcase,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .politics-grid {
    grid-template-columns: 1fr;
  }

  .dev-mockup {
    order: -1;
  }

  .contact-wrapper {
    padding: 40px 28px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-portrait {
    max-width: 300px;
    margin: 0 auto;
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 80px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .about-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .about-card {
    flex: 1;
    min-width: 140px;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0 20px;
  }

  .hero-content {
    padding: 60px 20px 100px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    text-align: center;
  }

  .footer-copy,
  .footer-links {
    justify-self: center;
  }
}
