/* ===== LOCAL FONTS ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter.woff2') format('woff2');
}

@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/press-start-2p.woff2') format('woff2');
}

@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/vt323.woff2') format('woff2');
}

/* ===== CSS VARIABLES ===== */
:root {
  --color-bg: #0a0a2e;
  --color-bg-alt: #0d0d30;
  --color-text: #e0e0e0;
  --color-text-muted: #aaa;
  --color-accent: #00ff00;
  --color-accent-glow: rgba(0, 255, 0, 0.4);
  --color-nav-bg: #000080;
  --color-nav-text: #fff;
  --color-card-bg: #c0c0c0;
  --color-marquee-bg: #000;
  --color-marquee-text: #ffff00;
  --font-heading: 'Press Start 2P', monospace;
  --font-body: 'VT323', monospace;
  --radius: 0px;
  --shadow-card: 1px 1px 0 #000;
}

[data-theme="modern"] {
  --color-bg: #FAFBFC;
  --color-bg-alt: #FFFFFF;
  --color-text: #1A202C;
  --color-text-muted: #64748B;
  --color-accent: #2563EB;
  --color-accent-glow: transparent;
  --color-nav-bg: rgba(255, 255, 255, 0.85);
  --color-nav-text: #1A202C;
  --color-card-bg: #FFFFFF;
  --color-marquee-bg: #F1F5F9;
  --color-marquee-text: #475569;
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body), 'Courier New', monospace;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  transition: background 0.4s, color 0.4s;
}

a {
  color: #0000ee;
  text-decoration: underline;
}
a:visited { color: #551a8b; }
a:hover { color: #ff0000; }

.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  font-family: var(--font-heading), 'Courier New', monospace;
  font-size: clamp(14px, 2vw, 18px);
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 6px var(--color-accent-glow);
  transition: color 0.4s, text-shadow 0.4s, font-family 0.4s;
}

/* ===== STICKY NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-nav-bg);
  box-shadow:
    inset 1px 1px 0 #4040c0,
    inset -1px -1px 0 #000040,
    0 2px 8px rgba(0, 0, 0, 0.5);
  font-family: var(--font-heading), 'Courier New', monospace;
  transition: background 0.4s, box-shadow 0.4s, font-family 0.4s;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
}

.nav-brand {
  color: var(--color-nav-text);
  font-size: clamp(10px, 1.5vw, 14px);
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.4s;
}

.nav-brand:visited,
.nav-brand:hover {
  color: var(--color-nav-text);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--color-nav-text);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.4s;
}

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

.nav-links a {
  color: var(--color-nav-text);
  text-decoration: none;
  font-size: clamp(8px, 1.2vw, 11px);
  padding: 0.3rem 0.5rem;
  transition: background 0.2s, color 0.4s;
  display: flex;
  align-items: center;
}
.nav-links a:visited { color: var(--color-nav-text); }
.nav-links a:hover {
  background: #1084d0;
  color: #fff;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--color-bg);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 2rem 1rem;
  transition: background 0.4s;
}

/* Decorative radials (only visible in modern) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s;
}

/* CRT scanline overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: opacity 0.4s;
}

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

.glitch {
  font-family: var(--font-heading), 'Courier New', monospace;
  font-size: clamp(18px, 4vw, 36px);
  color: #fff;
  text-shadow:
    2px 2px 0 #00ff00,
    -2px -2px 0 #ff00ff,
    3px 0 0 #00ff00,
    -3px 0 0 #ff00ff;
  animation: glitch 3s infinite;
  line-height: 1.4;
  transition: font-family 0.4s;
}

@keyframes glitch {
  0%, 90% {
    text-shadow:
      2px 2px 0 #00ff00,
      -2px -2px 0 #ff00ff;
    transform: translate(0);
  }
  91% {
    text-shadow:
      -3px 2px 0 #00ff00,
      3px -2px 0 #ff00ff;
    transform: translate(-2px, 1px);
  }
  93% {
    text-shadow:
      3px -1px 0 #00ff00,
      -2px 3px 0 #ff00ff;
    transform: translate(2px, -1px);
  }
  95% {
    text-shadow:
      -2px 3px 0 #00ff00,
      2px -3px 0 #ff00ff;
    transform: translate(-1px, 2px);
  }
  97% {
    text-shadow:
      2px 2px 0 #00ff00,
      -2px -2px 0 #ff00ff;
    transform: translate(1px, -1px);
  }
  100% {
    text-shadow:
      2px 2px 0 #00ff00,
      -2px -2px 0 #ff00ff;
    transform: translate(0);
  }
}

.hero-name {
  font-family: var(--font-body), 'Courier New', monospace;
  font-size: clamp(28px, 5vw, 52px);
  color: var(--color-accent);
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.6), 0 0 20px rgba(0, 255, 0, 0.3);
  margin-top: 1rem;
  transition: color 0.4s, text-shadow 0.4s, font-family 0.4s;
}

/* ===== MARQUEE ===== */
.marquee-bar {
  background: var(--color-marquee-bg);
  border-top: 3px solid var(--color-marquee-text);
  border-bottom: 3px solid var(--color-marquee-text);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.6rem 0;
  transition: background 0.4s, border-color 0.4s;
}

.marquee-track {
  display: inline-flex;
  animation: marquee-scroll 20s linear infinite;
}

.marquee-set {
  display: inline-flex;
  flex-shrink: 0;
}

.marquee-item {
  font-family: var(--font-body), 'Courier New', monospace;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--color-marquee-text);
  flex-shrink: 0;
  transition: color 0.4s, font-family 0.4s;
}

/* Retro pipe separators */
.marquee-item::after {
  content: '\00a0\00a0|\00a0\00a0';
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== BIO ===== */
.bio-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.bio-photo-wrap {
  display: flex;
  justify-content: center;
}

.bio-photo {
  width: 100%;
  max-width: 280px;
  display: block;
  border: 4px solid #c0c0c0;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #808080,
    2px 2px 0 #404040;
  border-radius: var(--radius);
  transition: border-radius 0.4s, box-shadow 0.4s, border-color 0.4s;
}

.bio-text p {
  margin-bottom: 1rem;
  font-size: clamp(18px, 2.2vw, 24px);
}

/* ===== WIN95 WINDOW ===== */
.win-window {
  background: var(--color-card-bg);
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  box-shadow: var(--shadow-card);
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, border-radius 0.4s;
  overflow: hidden;
}

.win-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-family: var(--font-body), 'Courier New', monospace;
  font-size: clamp(14px, 2vw, 18px);
  padding: 0.4rem 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, font-family 0.4s;
}

.win-buttons {
  display: flex;
  gap: 3px;
}

.win-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  font-family: var(--font-heading), 'Courier New', monospace;
  font-size: 8px;
  color: #000;
  cursor: default;
}

.win-body {
  padding: 1.5rem;
  background: #fff;
  color: #000;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  transition: background 0.4s, border-color 0.4s;
}

/* ===== SERVICE LIST ===== */
.service-list {
  list-style: none;
  padding-left: 0;
}

.service-list li {
  font-size: clamp(18px, 2vw, 24px);
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.service-list li::before {
  content: '\25B6';
  position: absolute;
  left: 0;
  color: #000080;
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-box {
  background: var(--color-card-bg);
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #000;
  border-radius: var(--radius);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, border-radius 0.4s, transform 0.2s;
}

.stat-number {
  font-family: var(--font-heading), 'Courier New', monospace;
  font-size: clamp(24px, 4vw, 40px);
  color: #000080;
  display: block;
  transition: font-family 0.4s;
}

.stat-plus {
  font-family: var(--font-heading), 'Courier New', monospace;
  font-size: clamp(16px, 2.5vw, 28px);
  color: #000080;
  transition: font-family 0.4s;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(14px, 1.5vw, 18px);
  color: #333;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-accent);
  box-shadow: 0 0 6px var(--color-accent-glow);
  transition: background 0.4s, box-shadow 0.4s;
}

.timeline-entry {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.4rem;
  width: 16px;
  height: 16px;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
  border-radius: var(--radius);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, border-radius 0.4s;
}

.timeline-entry:first-child .timeline-dot {
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent-glow);
}

.timeline-card {
  background: var(--color-bg-alt);
  border: 1px solid #1a1a4a;
  border-left: 3px solid var(--color-accent);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, border-radius 0.4s, transform 0.2s;
}

.timeline-date {
  font-family: var(--font-body), 'Courier New', monospace;
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--color-text-muted);
  transition: color 0.4s, font-family 0.4s;
}

.timeline-role {
  font-family: var(--font-body), 'Courier New', monospace;
  font-size: clamp(22px, 3vw, 30px);
  color: #fff;
  margin: 0.3rem 0 0.1rem;
  transition: color 0.4s, font-family 0.4s;
}

.timeline-company {
  font-family: var(--font-body), 'Courier New', monospace;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--color-accent);
  text-shadow: 0 0 4px var(--color-accent-glow);
  text-decoration: none;
  transition: color 0.4s, text-shadow 0.4s, font-family 0.4s;
}

a.timeline-company:visited,
a.timeline-company:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.timeline-desc {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
  transition: color 0.4s;
}

/* ===== CONTACT INFO ===== */
.contact-info {
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.contact-info a {
  font-family: var(--font-body), 'Courier New', monospace;
  font-size: clamp(18px, 2vw, 24px);
  color: #000080;
  text-decoration: none;
  border-bottom: 1px dashed #000080;
  transition: font-family 0.4s;
}

.contact-info a:hover {
  color: #1084d0;
  border-bottom-color: #1084d0;
}

.contact-info a:visited {
  color: #000080;
}

/* ===== FORM SUCCESS ===== */
.form-success {
  font-family: var(--font-body), 'Courier New', monospace;
  font-size: clamp(18px, 2vw, 24px);
  color: #008000;
  text-align: center;
  margin-top: 1rem;
  padding: 0.8rem;
  border: 2px solid #008000;
  background: #e0ffe0;
  border-radius: var(--radius);
  transition: font-family 0.4s, border-radius 0.4s;
}

/* ===== GUESTBOOK ===== */
.guestbook-heading {
  font-family: 'Comic Sans MS', var(--font-body), cursive;
  font-size: clamp(20px, 3vw, 30px);
  color: #000080;
  margin-bottom: 1.5rem;
  text-align: center;
  transition: font-family 0.4s;
}

.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 500px;
  margin: 0 auto;
}

.guestbook-form label {
  font-family: var(--font-body), 'Courier New', monospace;
  font-size: clamp(16px, 1.8vw, 20px);
  color: #000;
  transition: font-family 0.4s;
}

.guestbook-form input,
.guestbook-form textarea {
  font-family: var(--font-body), 'Courier New', monospace;
  font-size: clamp(16px, 1.8vw, 20px);
  padding: 0.5rem;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  background: #fff;
  color: #000;
  outline: none;
  border-radius: var(--radius);
  transition: font-family 0.4s, border-color 0.4s, border-radius 0.4s;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  border-color: #000080;
}

.btn-submit {
  font-family: var(--font-body), 'Courier New', monospace;
  font-size: clamp(16px, 2vw, 22px);
  padding: 0.7rem 1.5rem;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  color: #000;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 0.5rem;
  border-radius: var(--radius);
  transition: background 0.4s, color 0.4s, border-color 0.4s, border-radius 0.4s, font-family 0.4s;
}

.btn-submit:hover {
  background: #d0d0d0;
}

.btn-submit:active {
  border-color: #808080 #fff #fff #808080;
}

/* ===== FOOTER ===== */
.footer {
  background: #000;
  border-top: 3px solid #000080;
  text-align: center;
  padding: 2rem 1rem;
  transition: background 0.4s, border-color 0.4s;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  font-family: var(--font-body), 'Courier New', monospace;
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.4s, font-family 0.4s;
}

.footer-links a:visited {
  color: var(--color-accent);
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: clamp(12px, 1.5vw, 16px);
  color: #666;
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
  flex-shrink: 0;
}

.toggle-track {
  position: relative;
  width: 40px;
  height: 22px;
  background: #1a1a4a;
  border-radius: 11px;
  transition: background 0.4s;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #00ff00;
  border-radius: 50%;
  transition: transform 0.4s, background 0.4s;
}

.toggle-label-retro,
.toggle-label-modern {
  font-family: var(--font-heading), monospace;
  font-size: 9px;
  font-weight: 700;
  transition: color 0.4s, opacity 0.4s, font-size 0.4s;
}

[data-theme="modern"] .toggle-label-retro,
[data-theme="modern"] .toggle-label-modern {
  font-size: 13px;
}

.toggle-label-retro {
  color: #00ff00;
  opacity: 1;
}

.toggle-label-modern {
  color: var(--color-text-muted);
  opacity: 0.4;
}

/* Toggle in modern state */
[data-theme="modern"] .toggle-track {
  background: #2563EB;
}

[data-theme="modern"] .toggle-thumb {
  transform: translateX(18px);
  background: #fff;
}

[data-theme="modern"] .toggle-label-retro {
  color: #94a3b8;
  opacity: 0.4;
}

[data-theme="modern"] .toggle-label-modern {
  color: #2563EB;
  opacity: 1;
}

/* ===== MODERN THEME OVERRIDES ===== */

/* --- Typography size fixes for Inter (renders smaller than pixel fonts) --- */
[data-theme="modern"] .nav-brand {
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

[data-theme="modern"] .nav-links a {
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
}

[data-theme="modern"] .section-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

[data-theme="modern"] .glitch {
  animation: none;
  text-shadow: none;
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 50%, #EC4899 100%);
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

[data-theme="modern"] .hero-name {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

[data-theme="modern"] .bio-text p {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.75;
  color: #475569;
}

[data-theme="modern"] .service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

[data-theme="modern"] .service-list li {
  font-size: clamp(15px, 1.6vw, 18px);
  padding: 1.2rem 1.2rem 1.2rem 1.2rem;
  font-weight: 500;
  background: #F8FAFC;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

[data-theme="modern"] .service-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
}

[data-theme="modern"] .service-list li::before {
  content: '';
  position: static;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

[data-theme="modern"] .service-list li::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(124, 58, 237, 0.03));
  pointer-events: none;
}

[data-theme="modern"] .stat-number {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: #2563EB;
}

[data-theme="modern"] .stat-plus {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
  color: #2563EB;
}

[data-theme="modern"] .stat-label {
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="modern"] .timeline-role {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: #1A202C;
  letter-spacing: -0.01em;
}

[data-theme="modern"] .timeline-company {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
}

[data-theme="modern"] .timeline-date {
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-theme="modern"] .timeline-desc {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.7;
}

/* Contact info: animated underline links */
[data-theme="modern"] .contact-info a {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 500;
  color: #2563EB;
  border-bottom: none;
  position: relative;
  text-decoration: none;
  padding-bottom: 2px;
}

[data-theme="modern"] .contact-info a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563EB, #7C3AED);
  border-radius: 1px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="modern"] .contact-info a:hover::after {
  width: 100%;
}

[data-theme="modern"] .contact-info a:visited {
  color: #2563EB;
}

[data-theme="modern"] .contact-info a:hover {
  color: #1D4ED8;
  border-bottom: none;
}


[data-theme="modern"] .guestbook-form {
  gap: 0;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  margin-top: 1.5rem;
}

[data-theme="modern"] .guestbook-form label {
  display: none;
}

[data-theme="modern"] .guestbook-form input,
[data-theme="modern"] .guestbook-form textarea {
  font-size: clamp(15px, 1.6vw, 17px);
  padding: 0.75rem 1rem;
  border: none;
  border-bottom: 1px solid #E2E8F0;
  border-radius: 0;
  background: #fff;
}

[data-theme="modern"] .guestbook-form textarea {
  border-bottom: none;
}

[data-theme="modern"] .guestbook-form input:focus,
[data-theme="modern"] .guestbook-form textarea:focus {
  border-color: #E2E8F0;
  box-shadow: inset 3px 0 0 #2563EB;
  outline: none;
}

/* Footer links: animated underline */
[data-theme="modern"] .footer-links a {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 500;
  position: relative;
  text-decoration: none;
  padding-bottom: 2px;
}

[data-theme="modern"] .footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563EB, #7C3AED);
  border-radius: 1px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="modern"] .footer-links a:hover::after {
  width: 100%;
}

[data-theme="modern"] .footer-links a:hover {
  text-decoration: none;
}

[data-theme="modern"] .copyright {
  font-size: clamp(13px, 1.3vw, 15px);
}

/* --- Hero: rich layered background with animated blobs --- */
[data-theme="modern"] .hero {
  background: linear-gradient(160deg, #EFF6FF 0%, #F0F9FF 25%, #FAF5FF 55%, #FDF2F8 75%, #FFF7ED 100%);
  min-height: 70vh;
}

/* Dot grid pattern + animated color blobs */
[data-theme="modern"] .hero::before {
  opacity: 1;
  background:
    radial-gradient(circle at 15% 40%, rgba(37, 99, 235, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(124, 58, 237, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(236, 72, 153, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 35%),
    radial-gradient(circle 1px at center, rgba(37, 99, 235, 0.12) 0%, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 24px 24px;
  animation: blob-drift 12s ease-in-out infinite alternate;
}

@keyframes blob-drift {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 70% 60%, 0 0;
  }
  33% {
    background-position: 5% 10%, 90% 5%, 45% 85%, 65% 55%, 0 0;
  }
  66% {
    background-position: 10% 5%, 95% 15%, 55% 90%, 75% 50%, 0 0;
  }
  100% {
    background-position: 3% 15%, 85% 10%, 50% 80%, 60% 65%, 0 0;
  }
}

[data-theme="modern"] .hero::after {
  opacity: 0;
}

[data-theme="modern"] #heroCanvas {
  opacity: 0;
  pointer-events: none;
}

/* Text glow behind hero heading */
[data-theme="modern"] .hero-content {
  position: relative;
}

[data-theme="modern"] .hero-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(20px);
}

/* Gradient bottom edge on hero */
[data-theme="modern"] .hero-content::after {
  content: '';
  position: absolute;
  bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 300px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #2563EB, #7C3AED, #EC4899, transparent);
  border-radius: 2px;
  opacity: 0.5;
}

/* --- Nav: frosted glass with depth --- */
[data-theme="modern"] .nav {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="modern"] .nav-brand {
  flex: 1;
}

[data-theme="modern"] .nav-links {
  flex: 0;
  justify-content: center;
}

[data-theme="modern"] .theme-toggle {
  flex: 1;
  justify-content: flex-end;
}

[data-theme="modern"] .nav-links a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
}

/* --- Marquee: scrolling pills in modern --- */
[data-theme="modern"] .marquee-bar {
  border-top: none;
  border-bottom: none;
  padding: 0.8rem 0;
  background: linear-gradient(135deg, #EFF6FF, #F8FAFC);
  overflow: hidden;
  white-space: nowrap;
}

[data-theme="modern"] .marquee-track {
  animation: marquee-scroll 20s linear infinite;
}

[data-theme="modern"] .marquee-item {
  margin-right: 0.4rem;
}

[data-theme="modern"] .marquee-set {
  gap: 0.6rem;
  padding-right: 2rem;
  min-width: 100vw;
  justify-content: space-around;
}

[data-theme="modern"] .marquee-item {
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: rgba(37, 99, 235, 0.06);
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

[data-theme="modern"] .marquee-item::after {
  content: none;
}

/* --- Win95 windows: elevated cards with accent top border --- */
[data-theme="modern"] .win-titlebar {
  display: none;
}

[data-theme="modern"] .win-window {
  border: none;
  border-color: transparent;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, #2563EB, #7C3AED) 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.06);
  border-radius: 0 0 var(--radius) var(--radius);
}

[data-theme="modern"] .win-body {
  border: none;
  padding: 2.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* --- Stat boxes: gradient accent + hover lift --- */
[data-theme="modern"] .stat-box {
  border: none;
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  padding: 2rem 1rem;
}

[data-theme="modern"] .stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563EB, #7C3AED);
}

[data-theme="modern"] .stat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(0,0,0,0.06);
}

/* --- Timeline: polished cards with hover --- */
[data-theme="modern"] .timeline::before {
  background: linear-gradient(180deg, #2563EB, #7C3AED);
  box-shadow: none;
  width: 3px;
  border-radius: 2px;
}

[data-theme="modern"] .timeline-card {
  background: #FFFFFF;
  border: none;
  border-left: 3px solid #2563EB;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  padding: 1.5rem 1.8rem;
}

[data-theme="modern"] .timeline-card:hover {
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.1), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateX(4px);
}

[data-theme="modern"] .timeline-dot {
  border-radius: 50%;
  border-width: 3px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

[data-theme="modern"] .timeline-entry:first-child .timeline-dot {
  background: #2563EB;
  border-color: #2563EB;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

/* --- Bio photo: polished with gradient border --- */
[data-theme="modern"] .bio-photo {
  border: 3px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #2563EB, #7C3AED);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* --- Guestbook heading --- */
[data-theme="modern"] .guestbook-heading {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: #1A202C;
  letter-spacing: -0.02em;
}

/* --- Submit button: gradient with hover --- */
[data-theme="modern"] .btn-submit {
  background: linear-gradient(135deg, #2563EB, #4F46E5);
  color: #fff;
  border: none;
  border-radius: 0;
  font-weight: 600;
  font-size: clamp(15px, 1.6vw, 18px);
  padding: 0.8rem 2rem;
  box-shadow: none;
  align-self: stretch;
  text-align: center;
  margin-top: 0;
}

[data-theme="modern"] .btn-submit:hover {
  background: linear-gradient(135deg, #1D4ED8, #4338CA);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

[data-theme="modern"] .btn-submit:active {
  background: linear-gradient(135deg, #1E40AF, #3730A3);
  border: none;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* --- Footer: clean with gradient top line --- */
[data-theme="modern"] .footer {
  background: #F8FAFC;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, #2563EB, #7C3AED, #EC4899) 1;
  padding: 2.5rem 1rem;
}

[data-theme="modern"] .footer-links a {
  color: #2563EB;
  font-weight: 500;
}

[data-theme="modern"] .footer-links a:visited {
  color: #2563EB;
}

[data-theme="modern"] .footer-links a:hover {
  color: #7C3AED;
}

[data-theme="modern"] .copyright {
  color: #94A3B8;
}

/* --- Section backgrounds for visual rhythm --- */
[data-theme="modern"] #apie {
  background: #FFFFFF;
  border-radius: 0;
  margin: 0 auto;
  max-width: 100%;
  padding: 4rem 1.5rem;
}

[data-theme="modern"] #apie > * {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="modern"] #paslaugos {
  padding: 4rem 1.5rem;
}

[data-theme="modern"] #patirtis {
  background: #FFFFFF;
  max-width: 100%;
  padding: 4rem 1.5rem;
}

[data-theme="modern"] #patirtis > * {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="modern"] #kontaktai {
  padding: 4rem 1.5rem;
}

/* --- Links --- */
[data-theme="modern"] a {
  color: #2563EB;
}

[data-theme="modern"] a:visited {
  color: #6D28D9;
}

[data-theme="modern"] a:hover {
  color: #1D4ED8;
}


/* ===== RESPONSIVE ===== */

/* Tablet & below */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    order: 3;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--color-nav-bg);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 0.6rem 1rem;
  }

  .nav-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .nav-brand {
    order: 1;
  }

  .theme-toggle {
    order: 2;
    margin-left: auto;
    margin-right: 0.8rem;
  }

  .bio-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bio-photo {
    max-width: 240px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  [data-theme="modern"] .nav-links {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }

  [data-theme="modern"] .nav-links a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #2563EB;
  }

  .contact-info p:last-child {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2rem 1rem;
  }

  .hero {
    min-height: 45vh;
  }

  .marquee-item {
    font-size: 14px;
  }
}
