/* ============================================================
   JAKOB FIRUS – BEWERBUNGSSEITE
   Farbpalette aus Lebenslauf-PDF:
   Primary:      #489BC9
   Primary Dark: #367D9F
   Light BG:     #EEF7FC
   Dark Text:    #4D4D4D
   Near Black:   #1A1A1A
   ============================================================ */

:root {
  --primary:       #489BC9;
  --primary-dark:  #367D9F;
  --primary-light: #6DB5DA;
  --primary-xlight:#EEF7FC;
  --accent:        #2A6E91;
  --dark:          #1A1A1A;
  --text:          #4D4D4D;
  --text-light:    #7A8898;
  --white:         #FFFFFF;
  --bg:            #F8FAFB;
  --border:        #D8EAF4;
  --card-bg:       #FFFFFF;
  --shadow-sm:     0 2px 8px rgba(72, 155, 201, 0.10);
  --shadow-md:     0 8px 32px rgba(54, 125, 159, 0.15);
  --shadow-lg:     0 20px 60px rgba(54, 125, 159, 0.18);
  --radius:        14px;
  --radius-lg:     22px;
  --transition:    0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main:     'Inter';
}

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

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

body {
  font-family: var(--font-main), system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── SCROLL PROGRESS ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { color: var(--dark); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary); }

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.section {
  padding: 100px 0;
}

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-xlight);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-header h2 { margin: 0; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  background: var(--primary-xlight);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--primary);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.25s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary-dark);
  background: var(--primary-xlight);
}
.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1A3C4E 0%, #1e5272 40%, #2a7aa0 75%, #489BC9 100%);
  z-index: 0;
}
/* Subtle geometric pattern */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 50%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(26,60,78,0.6) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 64px;
  max-width: 1100px;
  width: 100%;
}

/* Photo */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
}
.hero-photo {
  width: 280px;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,0.2);
  display: block;
}
.hero-photo-ring {
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  animation: ring-pulse 3s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.02); }
}

/* Text */
.hero-text { flex: 1; color: var(--white); }
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.hero-name {
  color: var(--white);
  font-size: clamp(2.8rem, 5vw, 4rem);
  margin-bottom: 12px;
}
.hero-title-wrap {
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-title-prefix { color: rgba(255,255,255,0.55); }
.hero-typed { color: var(--primary-light); font-weight: 600; }
.typed-cursor {
  display: inline-block;
  animation: blink 0.8s steps(1) infinite;
  color: var(--primary-light);
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-contact-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  transition: background 0.25s;
}
.hero-contact-pill:hover { background: rgba(255,255,255,0.22); color: white; }
.hero-contact-pill svg { width: 16px; height: 16px; stroke: var(--primary-light); }

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

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-hint-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: scroll-bounce 1.6s ease-in-out infinite;
}
@keyframes scroll-bounce { 0%,100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(6px); } }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 10px;
  border: 2px solid var(--primary);
  transition: all 0.25s;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(72, 155, 201, 0.35);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.25s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}
.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.25s;
  text-decoration: none;
}
.btn-pdf:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}
.btn-pdf-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: 10px;
  border: 2px solid var(--primary-dark);
  transition: all 0.25s;
  text-decoration: none;
}
.btn-pdf-dark:hover {
  background: var(--dark);
  border-color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.nav-pdf {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-dark);
  color: var(--white) !important;
  padding: 6px 14px !important;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.84rem;
  transition: background 0.2s;
}
.nav-pdf:hover { background: var(--dark) !important; }
.btn-large { padding: 16px 36px; font-size: 1.05rem; }

/* ── ABOUT ── */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.lead {
  font-size: 1.12rem;
  color: var(--dark);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.about-quote {
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  background: var(--primary-xlight);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--primary-dark);
  font-size: 1rem;
  margin: 28px 0;
}
.notice-line {
  background: #EAF7ED;
  border: 1px solid #4CAF50;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #2E7D32;
}
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: all 0.3s;
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.about-card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.about-card h4 { margin-bottom: 6px; color: var(--primary-dark); }
.about-card p { font-size: 0.88rem; color: var(--text-light); margin: 0; }

/* ── EXPERIENCE ── */
.experience-section { background: var(--bg); }

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark), var(--border));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  margin-bottom: 40px;
  position: relative;
}
.timeline-item[data-side="right"] {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border: 3px solid var(--primary);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
  transition: all 0.3s;
}
.timeline-marker.current {
  background: var(--primary);
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 6px rgba(72, 155, 201, 0.2);
  width: 18px;
  height: 18px;
  top: 22px;
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 420px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  position: relative;
}
.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.timeline-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--primary);
  color: white;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.timeline-period {
  font-size: 0.82rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 6px;
}
.timeline-role { font-size: 1.05rem; margin-bottom: 4px; }
.timeline-company {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 14px;
}
.timeline-tasks {
  list-style: none;
  padding: 0;
}
.timeline-tasks li {
  position: relative;
  padding-left: 18px;
  font-size: 0.87rem;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.5;
}
.timeline-tasks li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ── EDUCATION ── */
.education-section { background: var(--white); }
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.edu-card {
  display: flex;
  gap: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s;
}
.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  background: var(--white);
}
.edu-icon { font-size: 2rem; flex-shrink: 0; }
.edu-period {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.edu-school {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 8px;
}
.edu-content p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* ── SKILLS ── */
.skills-section { background: var(--bg); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.skills-cat {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.skill-bar-wrap { margin-bottom: 18px; }
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 7px;
  color: var(--text);
}
.skill-bar {
  height: 7px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
  border-radius: 50px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tag {
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--primary-xlight);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 50px;
  transition: all 0.25s;
}
.tag:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ── CONTACT ── */
.contact-section {
  background: linear-gradient(135deg, #1A3C4E, #2a7aa0);
  color: var(--white);
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 860px;
  margin: 0 auto;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 56px 52px;
}
.contact-photo {
  flex-shrink: 0;
}
.contact-photo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid rgba(255,255,255,0.3);
}
.contact-content h2 { color: var(--white); margin-bottom: 12px; font-size: 1.9rem; }
.contact-content p { color: rgba(255,255,255,0.8); margin-bottom: 0; }
.contact-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0 16px;
}
.contact-notice {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  margin: 0 !important;
}

/* ── FOOTER ── */
.footer {
  background: #0F2533;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.85rem;
}

/* ── ADMIN PAGE ── */
.admin-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #EEF7FC 0%, #C8E8F5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.admin-logo { margin-bottom: 24px; }
.logo-circle {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-card h1 { font-size: 1.7rem; margin-bottom: 10px; }
.admin-subtitle { color: var(--text-light); margin-bottom: 36px; }
.qr-container {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: inline-block;
  margin-bottom: 32px;
}
.qr-image { display: block; max-width: 220px; }
.access-url-box { text-align: left; margin-bottom: 24px; }
.access-url-box label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}
.url-row { display: flex; gap: 8px; }
.url-row input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg);
  font-family: monospace;
}
.copy-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.copy-btn:hover { background: var(--primary-dark); }
.stats-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
}
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--primary-dark); }
.stat-label { display: block; font-size: 0.82rem; color: var(--text-light); font-weight: 500; }
.regen-form { margin-top: 16px; }
.btn-outline-danger {
  background: transparent;
  color: #C0392B;
  border: 1.5px solid #C0392B;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline-danger:hover { background: #C0392B; color: white; }

/* ── GATE ERROR PAGE ── */
.gate-error-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1A3C4E, #367D9F);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.gate-error-content {
  text-align: center;
  color: white;
  max-width: 420px;
}
.lock-icon {
  width: 80px; height: 80px;
  margin: 0 auto 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.2);
}
.lock-icon svg { width: 36px; height: 36px; color: rgba(255,255,255,0.8); }
.gate-error-content h1 { color: white; font-size: 1.8rem; margin-bottom: 12px; }
.gate-error-content p { color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.hint { font-size: 0.9rem; background: rgba(255,255,255,0.08); border-radius: 10px; padding: 14px 18px; }

/* ── ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.30s; }
.reveal.delay-3 { transition-delay: 0.45s; }
.reveal.delay-4 { transition-delay: 0.60s; }

.animate-fade-in {
  animation: fadeInUp 0.7s ease forwards;
}
.animate-slide-up {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.60s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-content { flex-direction: column; text-align: center; gap: 36px; }
  .hero-contacts { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-photo { width: 200px; height: 200px; }
  .contact-card { flex-direction: column; text-align: center; padding: 40px 28px; gap: 28px; }
  .contact-actions { justify-content: center; }
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item[data-side="right"] {
    justify-content: flex-start;
    padding-left: 52px;
    padding-right: 0;
  }
  .timeline-marker { left: 20px; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; background: white; padding: 16px 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .nav-toggle { display: flex; }
  .about-cards { grid-template-columns: 1fr; }
  .admin-card { padding: 36px 24px; }
  .edu-grid { grid-template-columns: 1fr; }
}

/* ── MODERNE ICONS ── */
.about-card-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
  margin-bottom: 8px;
}
.edu-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--primary);
  fill: none;
}

/* ── TIMELINE EXPANDER ── */
.d-none { display: none !important; }
.timeline-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}
.timeline-hidden.visible {
  opacity: 1;
  transform: translateY(0);
}
.timeline-more-wrapper {
  text-align: center;
  margin-top: 40px;
  position: relative;
  z-index: 10;
}
.timeline-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}
.timeline-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.timeline-more-btn svg {
  transition: transform 0.4s ease;
}
.timeline-more-btn.expanded svg {
  transform: rotate(180deg);
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 60, 78, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 24px;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-container {
  background: var(--white);
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.2s;
}
.modal-close:hover {
  background: rgba(0,0,0,0.1);
  color: var(--dark);
}
.modal-close svg { width: 16px; height: 16px; }
.modal-header { margin-bottom: 24px; }
.modal-header h3 { font-size: 1.5rem; margin-bottom: 8px; color: var(--primary-dark); }
.modal-header p { font-size: 0.9rem; color: var(--text-light); margin: 0; line-height: 1.5; }
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--dark); margin-bottom: 6px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  transition: border 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); background: var(--white);
}
.w-100 { width: 100%; justify-content: center; }

/* ── TEMPLATES ── */

/* CASUAL (Default settings but explicitly set here) */
body.tpl-casual {
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(72, 155, 201, 0.10);
  --shadow-md: 0 8px 32px rgba(54, 125, 159, 0.15);
}
body.tpl-casual .card {
  border-radius: var(--radius);
}

/* BUSINESS */
body.tpl-business {
  --radius: 0px;
  --radius-lg: 0px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
  --border: #222;
}
body.tpl-business .section-title {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}
body.tpl-business .card {
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  box-shadow: none;
}
body.tpl-business .btn-primary {
  border-radius: 0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

/* CRAZY – Artistic Editorial (Ink & Paper) */
body.tpl-crazy {
  --radius: 2px;
  --radius-lg: 4px;
  --primary: #2C1810;
  --primary-dark: #1a0e0a;
  --primary-light: #7a4030;
  --primary-xlight: #f5ede8;
  --accent: #8B4513;
  --bg: #f7f0e6;
  --bg-card: #fdf8f2;
  --text: #1a1008;
  --text-light: #6b5040;
  --border: #c8a882;
  --shadow-sm: 3px 3px 0px rgba(44,24,16,0.2);
  --shadow-md: 5px 5px 0px rgba(44,24,16,0.18);
  --shadow-lg: 8px 8px 0px rgba(44,24,16,0.15);
  --font-main: 'Georgia', 'Times New Roman', serif;
}

/* Ink-texture feel on the body */
body.tpl-crazy::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Navbar: cream paper bar with ink underline */
body.tpl-crazy .navbar {
  background: var(--bg) !important;
  border-bottom: 3px double var(--primary) !important;
  box-shadow: 0 2px 8px rgba(44,24,16,0.12) !important;
}
body.tpl-crazy .nav-logo {
  font-family: var(--font-main);
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  padding: 4px 10px;
  background: transparent;
}
body.tpl-crazy .nav-links a {
  font-family: var(--font-main);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  font-style: italic;
  color: var(--text) !important;
}
body.tpl-crazy .nav-links a:hover,
body.tpl-crazy .nav-links a.active {
  color: var(--accent) !important;
  border-bottom: 2px solid var(--accent);
}
body.tpl-crazy .nav-cta {
  background: var(--primary) !important;
  color: var(--bg) !important;
  border: none !important;
  border-radius: 0 !important;
  font-style: italic !important;
}
body.tpl-crazy .nav-cta:hover {
  background: var(--accent) !important;
}

/* Hero: dark ink background, editorial headline */
body.tpl-crazy .hero {
  background: var(--primary) !important;
}
body.tpl-crazy .hero-bg {
  background: linear-gradient(135deg, #1a0e0a 0%, #2C1810 50%, #4a2418 100%) !important;
}
body.tpl-crazy .hero-name {
  font-family: var(--font-main);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--bg) !important;
}
body.tpl-crazy .hero-eyebrow {
  font-family: var(--font-main);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--border) !important;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  display: inline-block;
}
body.tpl-crazy .hero-title-wrap,
body.tpl-crazy .hero-title-typed {
  color: #c8a882 !important;
  font-style: italic;
  font-family: var(--font-main);
}

/* Photo: square portrait, ink-drop shadow */
body.tpl-crazy .hero-photo {
  border-radius: 0 !important;
  border: 4px solid var(--border);
  box-shadow: 8px 8px 0px rgba(0,0,0,0.35) !important;
}
body.tpl-crazy .hero-photo-ring { display: none; }
body.tpl-crazy .hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 6px -6px -6px 6px;
  border: 2px solid rgba(200,168,130,0.4);
  z-index: -1;
}

/* Buttons: offset ink blocks */
body.tpl-crazy .btn-primary {
  background: var(--primary) !important;
  border: 2px solid var(--primary) !important;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0px rgba(44,24,16,0.4) !important;
  font-family: var(--font-main);
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--bg) !important;
  transition: transform 0.1s, box-shadow 0.1s !important;
}
body.tpl-crazy .btn-primary:hover {
  transform: translate(2px, 2px) !important;
  box-shadow: 2px 2px 0px rgba(44,24,16,0.4) !important;
}
body.tpl-crazy .btn-outline,
body.tpl-crazy .btn-secondary {
  border: 2px solid var(--primary) !important;
  border-radius: 0 !important;
  color: var(--primary) !important;
  background: transparent !important;
  box-shadow: 3px 3px 0px rgba(44,24,16,0.2) !important;
  font-family: var(--font-main);
  font-style: italic;
}
body.tpl-crazy .btn-outline:hover,
body.tpl-crazy .btn-secondary:hover {
  transform: translate(2px, 2px) !important;
  box-shadow: 1px 1px 0px rgba(44,24,16,0.2) !important;
}

/* Section labels: stamped look */
body.tpl-crazy .section-label {
  font-family: var(--font-main);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 2px 10px;
  display: inline-block;
}

/* Section headers: editorial overline + serif heading */
body.tpl-crazy .section-header h2 {
  font-family: var(--font-main);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--primary) !important;
}

/* Cards: square, slight shadow offset */
body.tpl-crazy .card,
body.tpl-crazy .experience-card,
body.tpl-crazy .skill-tag {
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0px rgba(44,24,16,0.1) !important;
  background: var(--bg-card) !important;
}
body.tpl-crazy .card:hover,
body.tpl-crazy .experience-card:hover {
  transform: translate(-2px, -2px) !important;
  box-shadow: 6px 6px 0px rgba(44,24,16,0.18) !important;
}

/* Timeline dots */
body.tpl-crazy .timeline-dot { background: var(--primary) !important; border-radius: 0 !important; transform: rotate(45deg); }
body.tpl-crazy .timeline-line { background: var(--border) !important; }

/* Chips/Contact */
body.tpl-crazy .chip {
  border-radius: 0 !important;
  border: 1px solid var(--border) !important;
  background: transparent !important;
  color: var(--text) !important;
  font-family: var(--font-main);
  font-style: italic;
}

/* Quote / blockquote styling */
body.tpl-crazy blockquote,
body.tpl-crazy .quote-text {
  border-left: 4px solid var(--primary) !important;
  font-family: var(--font-main);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-light) !important;
}

/* Footer */
body.tpl-crazy .footer {
  background: var(--primary) !important;
  border-top: 3px double var(--border);
  color: var(--bg) !important;
  font-family: var(--font-main);
  font-style: italic;
}
body.tpl-crazy .footer a { color: var(--border) !important; }
body.tpl-crazy .footer a:hover { color: #fff !important; }

/* Scroll progress bar */
body.tpl-crazy .scroll-progress { background: var(--accent) !important; height: 3px; }

/* Decorative rule between sections */
body.tpl-crazy section + section::before {
  content: '— ✦ —';
  display: block;
  text-align: center;
  color: var(--border);
  font-family: var(--font-main);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5em;
}
