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

:root {
  /* Africa Modern Palette */
  --primary:      #2e1503;          /* Deep baobab bark */
  --primary-mid:  #5c2d0a;          /* Rich warm brown */
  --accent:       #e07b39;          /* Kalahari sunset orange */
  --accent-glow:  rgba(224,123,57,.18);
  --accent-dark:  #c4601e;          /* Deeper terracotta */
  --accent2:      #c8972b;          /* Savanna gold */
  --surface:      #fdf6ec;          /* Desert sand */
  --surface2:     #f5e8d0;          /* Warm dune */
  --card:         #fffdf8;          /* Warm white */
  --text:         #2e1503;
  --text-light:   #8a6040;
  --white:        #ffffff;
  --radius:       14px;
  --shadow-sm:    0 2px 8px rgba(100,50,10,.07);
  --shadow-md:    0 8px 30px rgba(100,50,10,.10);
  --shadow-lg:    0 16px 48px rgba(100,50,10,.14);
  --transition:   .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  background: rgba(26, 11, 2, .85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  z-index: 1000;
  transition: all var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 1px 0 rgba(224,123,57,.1), 0 8px 30px rgba(0,0,0,.3);
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--white);
}
.logo span { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: rgba(255,255,255,.75);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 4px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 2rem 8rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1a0b02 0%, #2e1503 30%, #5c2d0a 65%, #8b4a18 100%);
}

/* Animated background orbs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(224,123,57,.18) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: float 10s ease-in-out infinite;
  transform: translateY(var(--scroll-y, 0));
}
.hero::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,151,43,.1) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
  animation: heroFadeIn 1.2s cubic-bezier(.16,1,.3,1) both;
}

@keyframes heroFadeIn {
  0% { opacity: 0; transform: translateY(40px) scale(.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-badge {
  display: inline-block;
  padding: .5rem 1.4rem;
  background: rgba(224, 123, 57, .12);
  border: 1px solid rgba(224, 123, 57, .25);
  border-radius: 50px;
  color: #f0a96e;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: .8px;
  text-transform: uppercase;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224,123,57,.2); }
  50% { box-shadow: 0 0 0 8px rgba(224,123,57,0); }
}
.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -.5px;
}
.hero h1 span {
  color: var(--accent);
  background: linear-gradient(135deg, #e07b39, #c8972b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.55);
  margin-bottom: 3rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: translateX(-100%);
  transition: transform .5s ease;
}
.btn-primary:hover::after {
  transform: translateX(100%);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(224,123,57,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.2);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(224,123,57,.15);
}

/* ============================================
   SHARED SECTION STYLES
   ============================================ */
section { padding: 7rem 2rem; }

.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .8rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .8rem;
  letter-spacing: -.3px;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--surface); }

.about-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}
.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  z-index: 0;
}
.about-img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #5c2d0a, #8b4a18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-img svg { width: 50%; height: 50%; opacity: .5; }

.about-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}
.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e8d5bc;
}
.stat .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat .label {
  font-size: .82rem;
  color: var(--text-light);
  margin-top: .25rem;
}

/* ============================================
   SERVICES
   ============================================ */
.services { background: var(--card); }

.services-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 3rem 2.2rem;
  text-align: center;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(100,50,10,.12);
  border-color: rgba(224, 123, 57, .2);
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 8px 20px rgba(224,123,57,.25);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.service-icon svg { width: 30px; height: 30px; }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .6rem;
}
.service-card p {
  color: var(--text-light);
  font-size: .92rem;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects { background: var(--surface); }

.projects-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid #e8d5bc;
  transition: all var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(100,50,10,.14);
}

.project-img-wrapper {
  position: relative;
  overflow: hidden;
}
.project-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .project-img { transform: scale(1.05); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,26,43,.6) 0%, transparent 60%);
}

.project-body { padding: 1.8rem; }
.project-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .4rem;
}
.project-body p {
  color: var(--text-light);
  font-size: .9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-dark);
  padding: .3rem .8rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
}

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--card); }

.contact-grid {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.icon-circle {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle svg { width: 22px; height: 22px; }

.contact-item-text .ci-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}
.contact-item-text .ci-value {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input,
.contact-form textarea {
  padding: .9rem 1.1rem;
  border: 2px solid #e8d5bc;
  border-radius: 12px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  background: var(--surface);
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224,123,57,.15);
}
.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}
.contact-form button {
  padding: .95rem;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.contact-form button:hover {
  background: var(--accent-dark);
  box-shadow: 0 12px 30px rgba(224,123,57,.3);
  transform: translateY(-3px);
}

/* ============================================
   PHOTO CREDIT WATERMARK
   ============================================ */
.photo-credit {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(0,0,0,.52);
  color: rgba(255,255,255,.75);
  font-size: .68rem;
  padding: .22rem .55rem;
  border-radius: 4px;
  letter-spacing: .3px;
  pointer-events: none;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.photo-credit a {
  color: rgba(255,255,255,.85);
  text-decoration: underline;
  text-underline-offset: 2px;
  pointer-events: auto;
}

/* ============================================
   PERSONAL
   ============================================ */
.personal { background: linear-gradient(160deg, #2e1503 0%, #5c2d0a 60%, #7a3d10 100%); }
.personal .section-label { color: #f0a96e; }
.personal .section-title { color: var(--white); }
.personal .section-subtitle { color: rgba(255,230,200,.65); }

.hobby-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .hobby-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hobby-grid { grid-template-columns: 1fr; }
}

.hobby-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
  border: 1px solid rgba(255,255,255,.06);
}
.hobby-card:hover .hobby-img { transform: scale(1.08); }
.hobby-card:hover .hobby-overlay { background: linear-gradient(to top, rgba(11,26,43,.92) 0%, rgba(11,26,43,.3) 60%); }

.hobby-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.hobby-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,26,43,.88) 0%, rgba(11,26,43,.1) 60%);
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.hobby-icon {
  font-size: 2.2rem;
  margin-bottom: .6rem;
  line-height: 1;
}
.hobby-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .3rem;
}
.hobby-title span { color: var(--accent); }
.hobby-desc {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}
.hobby-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: var(--primary);
  padding: .3rem .8rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
}

/* ============================================
   CV / RESUME SECTION
   ============================================ */
.cv { background: var(--card); }

.cv-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.cv-col h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.cv-col h3 .col-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cv-col h3 .col-icon svg { width: 16px; height: 16px; }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.tl-item {
  position: relative;
  margin-bottom: 2rem;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--card);
  box-shadow: 0 0 0 2px var(--accent);
}
.tl-date {
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: .25rem;
}
.tl-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
.tl-company {
  font-size: .88rem;
  color: var(--text-light);
  margin-bottom: .4rem;
}
.tl-desc {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* Skill Bars */
.skill-bars { display: flex; flex-direction: column; gap: 1.2rem; }
.skill-item { }
.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: .4rem;
}
.skill-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
}
.skill-pct {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
}
.skill-bar-bg {
  width: 100%;
  height: 8px;
  background: #e8d5bc;
  border-radius: 99px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent2));
  width: 0;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.skill-bar-fill.animate { width: var(--w); }

/* Cert dots */
.cert-list { display: flex; flex-direction: column; gap: 1rem; }
.cert-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.cert-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 5px;
  flex-shrink: 0;
}
.cert-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
}
.cert-org {
  font-size: .8rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .cv-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--primary);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .8rem;
}
.footer-logo span { color: var(--accent); }
.footer-text {
  color: rgba(255,255,255,.4);
  font-size: .85rem;
}
.footer-links {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.footer-links a {
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: .3rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px;
  padding: .25rem .35rem;
  margin-left: 1.2rem;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.55);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  padding: .2rem .55rem;
  border-radius: 50px;
  transition: all var(--transition);
  letter-spacing: .5px;
  font-family: inherit;
}
.lang-btn.active {
  background: var(--accent);
  color: var(--primary);
}
.lang-btn:hover:not(.active) { color: var(--white); }

/* Google Maps */
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid #e2e8f0;
  height: 280px;
  margin-top: 2rem;
}
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Premium staggered reveal for cards */
.service-card.fade-up,
.project-card.fade-up,
.hobby-card.fade-up {
  transition-duration: .9s;
}

/* Smooth focus outlines for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Premium link hover in nav */
.nav-links a {
  transition: color var(--transition), transform var(--transition);
}
.nav-links a:hover {
  transform: translateY(-1px);
}

/* Smooth image reveal */
.about-img,
.hobby-card {
  transition: transform .6s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
}

/* Premium stat counter style */
.stat .num {
  transition: color .3s ease;
}
.stat:hover .num {
  color: var(--accent-dark);
}

/* Subtle scroll indicator for hero */
.hero::before {
  transition: opacity 1s ease;
}

/* Smooth section transitions */
.section-header {
  transition: opacity .3s ease;
}

/* Premium contact form focus */
.contact-form input,
.contact-form textarea {
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  transform: translateY(-1px);
}

/* Footer link micro-interaction */
.footer-links a {
  transition: color var(--transition), transform var(--transition);
}
.footer-links a:hover {
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(46, 21, 3, .97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    transform: translateY(-120%);
    transition: transform .35s ease;
  }
  .nav-links.open { transform: translateY(0); }

  #mission > div { grid-template-columns: 1fr !important; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-image-wrapper { max-width: 320px; margin: 0 auto; }
  .about-image-wrapper::before { display: none; }

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

  .about-stats { gap: 1.5rem; }

  section { padding: 4rem 1.5rem; }
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,.08);
}
.theme-toggle-icon {
  font-size: .82rem;
  font-weight: 800;
  color: rgba(255,255,255,.7);
  line-height: 1;
  transition: color var(--transition);
}
.theme-toggle:hover .theme-toggle-icon {
  color: var(--accent);
}
.theme-toggle.active {
  background: var(--accent);
  border-color: var(--accent);
}
.theme-toggle.active .theme-toggle-icon {
  color: var(--primary);
}

/* ============================================
   BOOTSTRAP THEME OVERRIDE
   When html.bootstrap-theme is active, swap
   colors, fonts, radius and shadows to match
   a classic Bootstrap 5 look.
   ============================================ */
.bootstrap-theme {
  --primary:      #212529;
  --primary-mid:  #343a40;
  --accent:       #0d6efd;
  --accent-glow:  rgba(13,110,253,.15);
  --accent-dark:  #0b5ed7;
  --accent2:      #0dcaf0;
  --surface:      #f8f9fa;
  --surface2:     #e9ecef;
  --card:         #ffffff;
  --text:         #212529;
  --text-light:   #6c757d;
  --white:        #ffffff;
  --radius:       6px;
  --shadow-sm:    0 1px 2px rgba(0,0,0,.075);
  --shadow-md:    0 .5rem 1rem rgba(0,0,0,.15);
  --shadow-lg:    0 1rem 3rem rgba(0,0,0,.175);
}

.bootstrap-theme body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
}

/* Navbar */
.bootstrap-theme .navbar {
  background: rgba(33, 37, 41, .97);
  height: 56px;
}
.bootstrap-theme .navbar.scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Nav links */
.bootstrap-theme .nav-links a {
  font-size: 1rem;
  font-weight: 400;
}
.bootstrap-theme .nav-links a::after {
  background: var(--accent);
  border-radius: 0;
}

/* Hero */
.bootstrap-theme .hero {
  background: linear-gradient(160deg, #212529 0%, #343a40 45%, #495057 100%);
}
.bootstrap-theme .hero::before {
  background: radial-gradient(circle, rgba(13,110,253,.15) 0%, transparent 70%);
}
.bootstrap-theme .hero::after {
  background: radial-gradient(circle, rgba(13,202,240,.08) 0%, transparent 70%);
}
.bootstrap-theme .hero-badge {
  background: rgba(13,110,253,.15);
  border-color: rgba(13,110,253,.35);
  color: #6ea8fe;
  border-radius: var(--radius);
}
.bootstrap-theme .hero h1 span { color: var(--accent); }

/* Buttons */
.bootstrap-theme .btn {
  border-radius: var(--radius);
  font-weight: 500;
}
.bootstrap-theme .btn-primary {
  background: var(--accent);
  color: var(--white);
}
.bootstrap-theme .btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(13,110,253,.35);
}
.bootstrap-theme .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Section labels */
.bootstrap-theme .section-label {
  color: var(--accent);
}

/* About */
.bootstrap-theme .about-image-wrapper::before {
  border-color: var(--accent);
}
.bootstrap-theme .about-img {
  background: linear-gradient(135deg, #343a40, #495057);
}
.bootstrap-theme .about-stats {
  border-top-color: var(--surface2);
}

/* Service cards */
.bootstrap-theme .service-card {
  border-radius: var(--radius);
  border: 1px solid #dee2e6;
}
.bootstrap-theme .service-card:hover {
  border-color: rgba(13,110,253,.25);
}
.bootstrap-theme .service-icon {
  background: var(--accent);
  border-radius: var(--radius);
}
.bootstrap-theme .service-icon svg {
  stroke: var(--white);
}

/* Project cards */
.bootstrap-theme .project-card {
  border-color: #dee2e6;
  border-radius: var(--radius);
}
.bootstrap-theme .tag {
  background: rgba(13,110,253,.1);
  color: var(--accent);
  border-radius: var(--radius);
}

/* Contact form */
.bootstrap-theme .contact-form input,
.bootstrap-theme .contact-form textarea {
  border-color: #ced4da;
  border-radius: var(--radius);
  background: var(--white);
}
.bootstrap-theme .contact-form input:focus,
.bootstrap-theme .contact-form textarea:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}
.bootstrap-theme .contact-form button {
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--white);
}
.bootstrap-theme .contact-form button:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(13,110,253,.3);
}

/* Icon circles */
.bootstrap-theme .icon-circle {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius);
}

/* Personal section */
.bootstrap-theme .personal {
  background: linear-gradient(160deg, #212529 0%, #343a40 60%, #495057 100%);
}
.bootstrap-theme .personal .section-label { color: #6ea8fe; }
.bootstrap-theme .personal .section-subtitle { color: rgba(255,255,255,.6); }

.bootstrap-theme .hobby-card {
  border-radius: var(--radius);
}
.bootstrap-theme .hobby-badge {
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
}
.bootstrap-theme .hobby-title span { color: var(--accent2); }

/* CV section */
.bootstrap-theme .cv-col h3 .col-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: var(--radius);
}
.bootstrap-theme .tl-item::before {
  background: var(--accent);
  border-color: var(--card);
  box-shadow: 0 0 0 2px var(--accent);
}
.bootstrap-theme .timeline::before {
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.bootstrap-theme .skill-bar-fill {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent2));
}
.bootstrap-theme .skill-bar-bg {
  background: #dee2e6;
}
.bootstrap-theme .cert-dot {
  background: var(--accent);
}

/* Footer */
.bootstrap-theme footer {
  background: #212529;
}
.bootstrap-theme .footer-logo span { color: var(--accent); }
.bootstrap-theme .footer-links a:hover { color: var(--accent); }

/* Lang switcher in bootstrap theme */
.bootstrap-theme .lang-btn.active {
  background: var(--accent);
  color: var(--white);
}

/* Map wrapper */
.bootstrap-theme .map-wrapper {
  border-color: #dee2e6;
  border-radius: var(--radius);
}

/* Mobile nav */
@media (max-width: 768px) {
  .bootstrap-theme .nav-links {
    background: rgba(33, 37, 41, .98);
  }
}
