@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('material-icons.woff2') format('woff2');
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

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

:root {
  --primary: #3e6bf2;
  --accent: #6096f8;
  --bg-base: #0c0f18;
  --bg-card: #131828;
  --bg-elevated: #1a2035;
  --text-primary: #e8edf9;
  --text-secondary: #7d8fa8;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-mid: rgba(255, 255, 255, 0.11);
  --avatar-offset-x: 0px;
  --avatar-offset-y: 0px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-base);
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header ─────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 15, 24, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

header.scrolled {
  background: rgba(12, 15, 24, 0.88);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* ── Hero ───────────────────────────────────────── */
.hero {
  padding: 4rem 0 5rem;
  display: block;
  position: relative;
  overflow: hidden;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 5rem;
  align-items: center;
}

.hero-left {
  animation: fadeInUp 0.7s ease-out;
}

.hero h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-employer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.employer-label {
  color: var(--text-secondary);
}

.employer-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}

.employer-link:hover {
  color: var(--accent);
  border-color: rgba(96, 150, 248, 0.5);
}

.hero p:not(.hero-employer):not(.hero-location) {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.hero-location .material-icons {
  font-size: 1.6rem;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.hero-actions .aws-certification-link {
  margin-left: 2rem;
}

.cta-button-wrap {
  display: inline-block;
  padding: 1px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(96, 150, 248, 0.7), rgba(62, 107, 242, 0.2), rgba(96, 150, 248, 0.7));
  transition: background 0.3s, transform 0.2s;
}

.cta-button-wrap:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(96, 150, 248, 1), rgba(62, 107, 242, 0.5), rgba(96, 150, 248, 1));
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--bg-base);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}

.cta-button:hover {
  background: var(--bg-elevated);
}

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 0;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.social-links a:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.tech-stack {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tech-badge {
  padding: 0.3rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.2s;
}

.tech-badge:hover {
  border-color: rgba(96, 150, 248, 0.35);
  color: var(--accent);
}

/* Hero Right */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  animation: fadeInUp 0.7s ease-out 0.12s backwards;
}

.hero-avatar {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-mid);
  background: var(--bg-elevated);
  position: relative;
  flex-shrink: 0;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: calc(50% + var(--avatar-offset-x)) calc(50% + var(--avatar-offset-y));
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
}

.stat-item {
  text-align: center;
  padding: 1.25rem 0.5rem;
  border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.hero-right-bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  justify-content: center;
}

.aws-certification {
  display: flex;
  justify-content: center;
}

.aws-certification a {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.85;
}

.aws-certification a:hover {
  transform: translateY(-3px);
  opacity: 1;
}

.aws-badge {
  width: 120px;
  border-radius: 6px;
}

.hero-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.hero-email-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* ── Section Divider ───────────────────────────── */
.section-divider {
  height: 1px;
  background: var(--border-subtle);
}

/* ── Section Header ────────────────────────────── */
.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-align: left;
  margin-bottom: 0.5rem;
}

.section-title::after {
  display: none;
}

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

/* ── About ─────────────────────────────────────── */
.about {
  padding: 6rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: start;
}

.about-timeline-wrap {}

.about-timeline-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.about-timeline {
  position: relative;
  padding-left: 1.5rem;
}

.about-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border-subtle);
}

.about-entry {
  position: relative;
  padding-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.about-entry.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-entry:last-child { padding-bottom: 0; }

.about-entry::before {
  content: '';
  position: absolute;
  left: calc(-1.5rem - 3.5px);
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(96, 150, 248, 0.12);
}

.about-period {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.about-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.about-company {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.about-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.about-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.85;
}

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

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.stat-card {
  background: var(--bg-card);
  padding: 1.75rem 1.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, background 0.2s;
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:hover {
  background: var(--bg-elevated);
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.4rem;
  letter-spacing: -0.025em;
}

.stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* ── Skills ────────────────────────────────────── */
.skills {
  padding: 6rem 0;
}

.skills-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.skill-category {
  padding: 2rem;
  border-right: 1px solid var(--border-subtle);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.skill-category:last-child {
  border-right: none;
}

.skill-category.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-category-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.skill-category ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.skill-category li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: color 0.2s;
  line-height: 1.4;
}

.skill-category li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-mid);
  flex-shrink: 0;
  transition: background 0.2s;
}

.skill-category li:hover {
  color: var(--text-primary);
}

.skill-category li:hover::before {
  background: var(--accent);
}

/* Hide old skill bar elements (kept for JS compatibility) */
.skills-grid,
.skill-card {
  display: none;
}

/* ── Services ──────────────────────────────────── */
.services {
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.service-card {
  background: var(--bg-card);
  padding: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, background 0.2s;
  display: block;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  background: var(--bg-elevated);
}

.service-icon {
  margin-bottom: 1rem;
}

.service-icon .material-icons {
  font-size: 1.4rem;
  color: var(--accent);
  opacity: 0.8;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── CV / Lebenslauf ───────────────────────────── */
.cv {
  padding: 6rem 0;
}

.cv-timeline {
  position: relative;
  padding-left: 2rem;
  max-width: 680px;
}

.cv-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 0;
  width: 1px;
  background: var(--border-mid);
}

.cv-entry {
  position: relative;
  padding-bottom: 2.75rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.cv-entry.visible {
  opacity: 1;
  transform: translateY(0);
}

.cv-entry::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(96, 150, 248, 0.12);
  transform: translateX(-3px);
}

.cv-period {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.cv-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.cv-company {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.cv-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── CV Glitch Entry ───────────────────────────── */
.cv-glitch {
  overflow: visible;
}

.matrix-rain-canvas {
  position: absolute;
  top: 0;
  left: -10px;
  width: calc(100% + 20px);
  pointer-events: none;
  opacity: 0.22;
  z-index: 0;
}

.cv-glitch > *:not(.matrix-rain-canvas) {
  position: relative;
  z-index: 1;
}

.cv-glitch .cv-role {
  position: relative;
  display: inline-block;
  color: var(--accent);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.08em;
}


.cv-glitch .cv-company {
  font-family: 'Courier New', monospace;
  color: var(--text-secondary);
  opacity: 0.5;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.cv-glitch .cv-desc {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.6;
  letter-spacing: 0.03em;
}

@keyframes glitchTop {
  0%, 85%, 100% { transform: none; opacity: 0; }
  87% { transform: translateX(-5px) skewX(-2deg); opacity: 1; }
  89% { transform: translateX(4px) skewX(1deg); opacity: 1; }
  91% { transform: translateX(-2px); opacity: 0.8; }
  93% { transform: none; opacity: 0; }
  95% { transform: translateX(3px); opacity: 0.6; }
  97% { transform: none; opacity: 0; }
}

@keyframes glitchBottom {
  0%, 85%, 100% { transform: none; opacity: 0; }
  88% { transform: translateX(5px) skewX(2deg); opacity: 1; }
  90% { transform: translateX(-3px) skewX(-1deg); opacity: 1; }
  92% { transform: translateX(2px); opacity: 0.7; }
  94% { transform: none; opacity: 0; }
  96% { transform: translateX(-4px); opacity: 0.5; }
  98% { transform: none; opacity: 0; }
}

/* ── Contact ───────────────────────────────────── */
.contact {
  padding: 6rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}

.contact-content {
  max-width: 560px;
}

.contact-content > p {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.contact-item:hover {
  border-color: var(--border-mid);
}

.contact-item strong {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  min-width: 55px;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--accent);
}

/* ── Footer ────────────────────────────────────── */
footer {
  margin-top: auto;
  padding: 2rem 0;
  background: rgba(12, 15, 24, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.82rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-bottom p {
  grid-column: 2;
  text-align: center;
}
.footer-bottom a {
  justify-self: end;
}
.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--text-primary);
}

/* ── Back to Top ───────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, color 0.2s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--text-primary);
}

.back-to-top .material-icons {
  font-size: 1.1rem;
}

/* ── Typewriter ────────────────────────────────── */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 0.75em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  border-radius: 1px;
  animation: blink 1s step-end infinite;
}

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

/* ── Background Tile Clusters ──────────────────── */
.tile-cluster {
  position: absolute;
  width: 160px;
  height: 140px;
  pointer-events: none;
}

.tile-cluster span {
  position: absolute;
  background: rgba(96, 150, 248, 0.18);
  border: 1px solid rgba(96, 150, 248, 0.3);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(62, 107, 242, 0.1);
  opacity: 0;
  animation: tileFade 6.2s ease-in-out infinite;
}

@keyframes tileFade {
  0%, 100% { opacity: 0; }
  25%, 75% { opacity: 0.72; }
  45%, 55% { opacity: 1; }
}

@keyframes tileSnap {
  0%, 100% { opacity: 0; }
  10% { opacity: 0.1; }
  22% { opacity: 0.8; }
  35% { opacity: 0.28; }
  48% { opacity: 1; }
  64% { opacity: 0.42; }
  78% { opacity: 0.86; }
}

@keyframes tileFadeSoft {
  0%, 100% { opacity: 0; }
  22%, 78% { opacity: 0.45; }
  42%, 58% { opacity: 0.68; }
}

/* Tile Variant 1: Crisp Blueprint */
body.tile-variant-1 .tile-cluster span {
  background: rgba(109, 167, 255, 0.18);
  border: 1px solid rgba(136, 191, 255, 0.5);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(63, 121, 235, 0.18);
  animation: tileFade 6.4s ease-in-out infinite;
}

/* Tile Variant 2: Glass Blocks */
body.tile-variant-2 .tile-cluster span {
  background: linear-gradient(135deg, rgba(163, 214, 255, 0.22), rgba(82, 128, 240, 0.16));
  border: 1px solid rgba(205, 231, 255, 0.34);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px rgba(45, 86, 190, 0.16);
  animation: tileFade 7s ease-in-out infinite;
}

/* Tile Variant 3: Data Grid */
body.tile-variant-3 .tile-cluster span {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, rgba(102, 170, 255, 0.16), rgba(61, 111, 215, 0.22));
  border: 1px solid rgba(129, 187, 255, 0.42);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: tileFade 6s ease-in-out infinite;
}

/* Tile Variant 4: Neon Trace */
body.tile-variant-4 .tile-cluster span {
  background: rgba(59, 243, 255, 0.14);
  border: 1px solid rgba(75, 247, 255, 0.56);
  border-radius: 1px;
  box-shadow: 0 0 14px rgba(51, 213, 255, 0.2), 0 0 2px rgba(95, 255, 255, 0.45);
  animation: tileSnap 5.4s steps(1, end) infinite;
}

/* Tile Variant 5: Mono Operator */
body.tile-variant-5 .tile-cluster span {
  background: rgba(220, 233, 255, 0.11);
  border: 1px solid rgba(223, 233, 248, 0.35);
  border-radius: 0;
  box-shadow: none;
  animation: tileSnap 6.8s steps(1, end) infinite;
}

/* Tile Variant 6: Amber Pulse */
body.tile-variant-6 .tile-cluster span {
  background: rgba(255, 170, 89, 0.2);
  border: 1px solid rgba(255, 189, 124, 0.5);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 145, 46, 0.16);
  animation: tileFade 5.8s ease-in-out infinite;
}

/* Tile Variant 7: Aurora Chips */
body.tile-variant-7 .tile-cluster span {
  background: linear-gradient(150deg, rgba(118, 255, 222, 0.2), rgba(71, 133, 255, 0.2));
  border: 1px solid rgba(146, 255, 232, 0.44);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(219, 255, 245, 0.08), 0 8px 14px rgba(34, 114, 206, 0.16);
  animation: tileFade 7.4s ease-in-out infinite;
}

/* Tile Variant 8: Circuit Nodes */
body.tile-variant-8 .tile-cluster span {
  background:
    radial-gradient(circle at 80% 18%, rgba(183, 255, 250, 0.22) 0 14%, transparent 15%),
    linear-gradient(180deg, rgba(76, 175, 255, 0.14), rgba(38, 102, 199, 0.22));
  border: 1px solid rgba(131, 223, 255, 0.42);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(72, 160, 255, 0.18), inset 0 -10px 14px rgba(4, 24, 73, 0.2);
  animation: tileFade 6.1s ease-in-out infinite;
}

/* Tile Variant 9: Hard Pixel */
body.tile-variant-9 .tile-cluster span {
  background: rgba(101, 168, 255, 0.14);
  border: 1px solid rgba(190, 220, 255, 0.32);
  border-radius: 0;
  box-shadow: 1px 1px 0 rgba(43, 79, 154, 0.2);
  animation: tileFadeSoft 7.2s ease-in-out infinite;
}

/* Tile Variant 10: Holographic Quiet */
body.tile-variant-10 .tile-cluster span {
  background:
    linear-gradient(120deg, rgba(150, 205, 255, 0.2), rgba(112, 147, 255, 0.14), rgba(103, 234, 255, 0.18));
  border: 1px solid rgba(194, 222, 255, 0.42);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(245, 250, 255, 0.08), 0 0 16px rgba(87, 139, 255, 0.14);
  animation: tileFade 7.2s ease-in-out infinite;
}

/* ── Ambient Corner Glows ──────────────────────── */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-bg::before,
.ambient-bg::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.ambient-bg span {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  opacity: 0.42;
  filter: blur(1px);
  mix-blend-mode: screen;
  animation: glowBreathe 10s ease-in-out infinite;
}

.ambient-bg span:nth-child(1) {
  top: -170px;
  left: -170px;
}

.ambient-bg span:nth-child(2) {
  top: -170px;
  right: -170px;
  animation-delay: 1.2s;
}

@keyframes glowBreathe {
  0%, 100% { opacity: 0.3; transform: scale(0.95); }
  50% { opacity: 0.6; transform: scale(1.04); }
}

@keyframes glowSweep {
  0% { transform: translateX(-20%) rotate(-12deg); opacity: 0.08; }
  50% { transform: translateX(8%) rotate(-12deg); opacity: 0.28; }
  100% { transform: translateX(18%) rotate(-12deg); opacity: 0.1; }
}

@keyframes glowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes glowDrift {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(12px) scale(1.05); }
}

/* Glow Variant 1: Corner Cloud */
body.glow-variant-1 .ambient-bg span {
  background: radial-gradient(circle, rgba(92, 159, 255, 0.3) 0%, rgba(92, 159, 255, 0.11) 44%, transparent 74%);
  opacity: 0.5;
}

/* Glow Variant 2: Diagonal Light Bar */
body.glow-variant-2 .ambient-bg span {
  display: none;
}

body.glow-variant-2 .ambient-bg::before {
  top: -210px;
  left: -14%;
  width: 128%;
  height: 320px;
  background: linear-gradient(90deg, transparent 0%, rgba(172, 215, 255, 0.08) 22%, rgba(120, 183, 255, 0.24) 50%, rgba(172, 215, 255, 0.08) 78%, transparent 100%);
  filter: blur(10px);
  transform: rotate(-12deg);
  animation: glowSweep 8.5s ease-in-out infinite;
}

/* Glow Variant 3: Conic Sweep */
body.glow-variant-3 .ambient-bg span {
  width: 520px;
  height: 520px;
  background: conic-gradient(from 0deg, rgba(113, 146, 255, 0.22), rgba(113, 146, 255, 0.03), rgba(113, 146, 255, 0.22));
  transform-origin: 50% 50%;
  animation: glowRotate 18s linear infinite;
  opacity: 0.35;
}

/* Glow Variant 4: Polar Frost */
body.glow-variant-4 .ambient-bg span {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(201, 233, 255, 0.15) 0%, rgba(165, 208, 255, 0.07) 40%, transparent 72%);
  opacity: 0.28;
  filter: blur(3px);
}

/* Glow Variant 5: Grid Bloom */
body.glow-variant-5 .ambient-bg span {
  background: radial-gradient(circle, rgba(95, 171, 255, 0.2) 0%, rgba(95, 171, 255, 0.08) 44%, transparent 74%);
  opacity: 0.38;
}

body.glow-variant-5 .ambient-bg::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background:
    linear-gradient(to bottom, rgba(119, 173, 255, 0.12), transparent 75%),
    repeating-linear-gradient(90deg, rgba(170, 207, 255, 0.08) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(170, 207, 255, 0.05) 0 1px, transparent 1px 34px);
  opacity: 0.4;
}

/* Glow Variant 6: Top Spotlights */
body.glow-variant-6 .ambient-bg span {
  width: 360px;
  height: 620px;
  border-radius: 50% 50% 45% 45% / 28% 28% 72% 72%;
  background: radial-gradient(ellipse at 50% 12%, rgba(137, 238, 255, 0.26) 0%, rgba(83, 171, 255, 0.11) 42%, transparent 74%);
  opacity: 0.38;
  animation: glowDrift 9s ease-in-out infinite;
}

body.glow-variant-6 .ambient-bg span:nth-child(1) {
  top: -270px;
  left: -100px;
}

body.glow-variant-6 .ambient-bg span:nth-child(2) {
  top: -270px;
  right: -100px;
}

/* Glow Variant 7: Grain Mist */
body.glow-variant-7 .ambient-bg span {
  background: radial-gradient(circle, rgba(116, 157, 255, 0.2) 0%, rgba(56, 103, 205, 0.11) 42%, transparent 76%);
  opacity: 0.4;
}

body.glow-variant-7 .ambient-bg::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px);
  opacity: 0.24;
  mix-blend-mode: soft-light;
}

/* Glow Variant 8: Top Vignette */
body.glow-variant-8 .ambient-bg span {
  display: none;
}

body.glow-variant-8 .ambient-bg::before {
  inset: 0;
  box-shadow: inset 0 180px 220px -120px rgba(140, 189, 255, 0.32);
  opacity: 0.62;
}

body.glow-variant-8 .ambient-bg::after {
  top: -180px;
  left: 50%;
  width: 70%;
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 20%, rgba(167, 213, 255, 0.24) 0%, transparent 74%);
  opacity: 0.6;
}

/* Glow Variant 9: Halo Rings */
body.glow-variant-9 .ambient-bg span {
  width: 540px;
  height: 540px;
  background:
    repeating-radial-gradient(circle, rgba(168, 203, 255, 0.16) 0 2px, rgba(168, 203, 255, 0.03) 2px 26px, transparent 26px 44px),
    radial-gradient(circle, rgba(82, 130, 238, 0.15) 0%, transparent 72%);
  opacity: 0.36;
  animation: glowBreathe 12s ease-in-out infinite;
}

/* Glow Variant 10: Aurora Curtains */
body.glow-variant-10 .ambient-bg span {
  display: none;
}

body.glow-variant-10 .ambient-bg::before,
body.glow-variant-10 .ambient-bg::after {
  top: -220px;
  width: 52%;
  height: 430px;
  filter: blur(10px);
  animation: glowDrift 11s ease-in-out infinite;
}

body.glow-variant-10 .ambient-bg::before {
  left: -8%;
  background:
    linear-gradient(135deg, rgba(138, 214, 255, 0.22), rgba(104, 139, 255, 0.14), transparent 78%),
    radial-gradient(circle at 20% 20%, rgba(171, 253, 255, 0.12), transparent 70%);
  transform: rotate(-8deg);
}

body.glow-variant-10 .ambient-bg::after {
  right: -8%;
  background:
    linear-gradient(225deg, rgba(138, 214, 255, 0.22), rgba(104, 139, 255, 0.14), transparent 78%),
    radial-gradient(circle at 80% 20%, rgba(171, 253, 255, 0.12), transparent 70%);
  transform: rotate(8deg);
  animation-delay: 1.5s;
}

/* ── Animations ────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive: ~900px ────────────────────────── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-right {
    order: -1;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
  }

  .hero-avatar {
    width: 150px;
    height: 150px;
  }

  .hero-stats {
    max-width: 300px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }


  .skills-categories {
    grid-template-columns: 1fr;
  }

  .skill-category {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .skill-category:last-child {
    border-bottom: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tile-cluster {
    display: none;
  }

  nav {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
  }

  .logo {
    font-size: 0.85rem;
  }

  .nav-links {
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.72rem;
  }

  .hero {
    padding: 4rem 0 3rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .about, .skills, .services, .contact {
    padding: 4.5rem 0;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-bottom p {
    grid-column: 1;
  }

  .footer-bottom a {
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 0.85rem;
  }

  .hero-avatar {
    width: 120px;
    height: 120px;
  }

  .hero-right {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    width: 100%;
    max-width: none;
  }

  .hero-stats {
    max-width: 260px;
  }

  .stat-item {
    padding: 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .stat-number {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.55rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .aws-certification-link {
    margin-left: 0;
  }

  .hero p:not(.hero-employer):not(.hero-location) {
    font-size: 0.95rem;
  }

  .hero-employer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .about, .skills, .services, .contact {
    padding: 3.5rem 0;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .aws-badge {
    max-width: 80px;
  }

  .contact-item {
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
  }
}
