/* ====================================================================================================
   ONLINE CV — FINAL CLEAN CSS (single file, no duplicate overrides)
   Structure:
   0) Reset + Base + Background + Theme base
   1) Header / Nav / Language / Theme Toggle
   2) Intro — Photo Glow (shared)
   3) Common Container + Typography
   4) Education Timeline + Modal
   5) Experience (work timeline)
   6) Skills
   7) Intro Page Section Styles (hero + sections + pizza + looking)
   8) Theme Unification (single-page; sections adapt in dark)
   9) Footer (4 quadrants)
   10) Small safety rules
==================================================================================================== */

/* ====================================================================================================
   0) RESET + BASE + LAYOUT TOKENS (SINGLE SOURCE OF TRUTH)
   - Fixes broken :root + duplicate width rules
   - 60% centered content for header / body / footer
==================================================================================================== */

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

html{ background-color: #020617; }
html, body{ overflow-x: hidden; }
body{ margin: 0; }

/* ---------- GLOBAL TOKENS ---------- */
:root{
  /* 60% layout system (single truth) */
  --page-cap: 1100px;                 /* max width on huge screens */
  --page-width: min(var(--page-cap), 100%);
  --page-side: clamp(14px, 3vw, 28px);/* side breathing room on small screens */

  /* if you still reference these anywhere in old CSS */
  --page-max-width: var(--page-cap);
  --page-gutter: var(--page-side);

  /* theme toggle geometry */
  --lang-btn-h: 30px;
  --toggle-h: 30px;
  --toggle-w: 64px;
  --toggle-pad: 4px;
  --toggle-thumb: calc(var(--toggle-h) - (var(--toggle-pad) * 2));
  --toggle-shift: calc(var(--toggle-w) - var(--toggle-thumb) - (var(--toggle-pad) * 2));

  /* theme unification tokens */
  --cv-text-dark: #111827;
  --cv-text-light: #e5e7eb;
  --cv-muted-dark: #374151;
  --cv-muted-light: #9ca3af;
  --cv-surface-light: rgba(255,255,255,0.92);
  --cv-surface-dark: rgba(15, 23, 42, 0.80);
  --cv-border-light: rgba(17, 24, 39, 0.12);
  --cv-border-dark: rgba(148, 163, 184, 0.22);
  --cv-shadow-light: 0 18px 40px rgba(15, 23, 42, 0.08);
  --cv-shadow-dark: 0 24px 60px rgba(0, 0, 0, 0.40);
}

/* ---------- ONE WIDTH RULE FOR EVERYTHING THAT MUST ALIGN ---------- */
.page-width,
.container,
.intro-wrapper,
.work-wrapper,
.skills-wrapper,
.footer-inner,
.main-header-inner,
.footer-top,
.footer-bottom{
  width: min(var(--page-width), calc(100% - (var(--page-side) * 2)));
  margin-left: auto;
  margin-right: auto;
}

/* ---------- BASE BACKGROUND ---------- */
body{
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #e6edf3;
  background: radial-gradient(circle at 0% 0%, #111827, #020617 55%, #020617 100%);
}

/* Fixed header spacing */
main{ padding-top: 64px; }

/* animated background (GPU-friendly: only transform) */
body::before{
  content:'';
  position: fixed;
  inset: -20%;
  background: conic-gradient(
    from 200deg,
    rgba(248, 113, 113, 0.08),
    rgba(59, 130, 246, 0.12),
    rgba(56, 189, 248, 0.10),
    rgba(129, 140, 248, 0.10),
    rgba(248, 113, 113, 0.08)
  );
  opacity: 0.6;
  filter: blur(40px);
  z-index: -1;
  will-change: transform;
  animation: bgDrift 40s linear infinite;
}

@keyframes bgDrift{
  0%{ transform: translate3d(0, 0, 0) rotate(0deg); }
  50%{ transform: translate3d(-40px, 40px, 0) rotate(180deg); }
  100%{ transform: translate3d(0, 0, 0) rotate(360deg); }
}

/* Light theme base */
body.theme-light{
  color: #111827;
  background: radial-gradient(circle at 0% 0%, #f9fafb, #e5e7eb, #f3f4f6);
}
body.theme-light::before{
  opacity: 0.45;
  filter: blur(60px);
}

html{ background-color: #f9fafb; }

/* optional: if light cards bleed “moving blue” (because card is transparent) */
body.theme-light .intro-section,
body.theme-light #education,
body.theme-light #experience,
body.theme-light .looking-section{
  background: #ffffff; /* opaque so the drifting body::before doesn't show through */
}


/* ====================================================================================================
   1) HEADER / NAV / LANGUAGE / THEME TOGGLE
==================================================================================================== */

.main-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2500;

  /* Stable fallback (prevents “white flash” + reduces scroll jank on some browsers) */
  background: rgba(10, 14, 24, 0.92);
  backdrop-filter: none;

  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
}

/* Use blur only when supported */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
  .main-header{
    backdrop-filter: blur(14px);
    background: linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.96),
      rgba(15, 23, 42, 0.90),
      rgba(15, 23, 42, 0.96)
    );
  }
}

.main-header-inner{
  padding: 8px 0; /* left/right идва от --page-side */
  display: flex;
  align-items: center;
  gap: 18px;
}

/* BRAND */
.brand{
  display: flex;
  align-items: center;
  gap: 8px;
}

/* DV badge (header) — ALWAYS round + glow, supports text or <img> */
.brand-mark{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  font-weight: 800;
  font-size: 14px;
  color: #f9fafb;

  background: radial-gradient(circle at 0% 0%, #f97373, #6366f1);
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.70),
    0 0 18px rgba(129, 140, 248, 0.80);
}

.brand-mark img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-text{
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
  opacity: 0.85;
}

/* NAV LINKS */
.main-nav{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.nav-link{
  position: relative;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #e5e7eb;
  text-decoration: none;
  opacity: 0.85;
  transition:
    color 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.nav-link::after{
  content:'';
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb7185, #a855f7);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav-link:hover{ opacity: 1; transform: translateY(-1px); }
.nav-link:hover::after{ transform: scaleX(1); }

.nav-link.is-active{ opacity: 1; color: #f9fafb; }
.nav-link.is-active::after{ transform: scaleX(1); }

/* RIGHT SIDE */
.header-right{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* LANGUAGE NAV */
.lang-nav{
  display: flex;
  gap: 10px;
}

.lang-btn{
  height: var(--lang-btn-h);
  background: #161b22;
  border: 1px solid #3b3f46;
  padding: 0 10px;
  border-radius: 10px;
  color: #e6edf3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lang-btn:hover{ background: #1f2329; }

.lang-btn--active{
  border-color: #1f6feb;
  background: #1f2329;
}

.flag{
  width: 18px;
  height: 12px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

/* THEME TOGGLE (locked geometry; no drift in light) */
.theme-toggle{
  position: relative;
  width: var(--toggle-w);
  height: var(--toggle-h);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at 0% 0%, #020617, #111827);
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  font-size: 14px;
  color: #e5e7eb;
  padding: 0;
}

.theme-icon{
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.theme-toggle-thumb{
  position: absolute;
  top: var(--toggle-pad);
  left: var(--toggle-pad);
  width: var(--toggle-thumb);
  height: var(--toggle-thumb);
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #f97373, #6366f1);
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.6),
    0 0 18px rgba(129, 140, 248, 0.8);
  transform: translateX(0);
  transition: transform 0.22s ease;
}

/* light mode визия */
body.theme-light .theme-toggle{
  background: radial-gradient(circle at 100% 100%, #fefce8, #f3f4f6);
}
body.theme-light .theme-toggle-thumb{
  transform: translateX(var(--toggle-shift));
}
body.theme-light .theme-icon-sun{ opacity: 1; }
body:not(.theme-light) .theme-icon-moon{ opacity: 1; }

/* HEADER responsive */
@media (max-width: 640px){
  .main-header-inner{
    gap: 10px;
  }
  .brand-text{ display: none; }
  .main-nav{ gap: 6px; }
  .nav-link{ padding-inline: 8px; }
}

/* ====================================================================================================
   2) INTRO – PHOTO GLOW (shared)
==================================================================================================== */

.intro-photo-wrap{
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}

/* основен glow (леко пулсиране) */
.intro-photo-glow{
  position: absolute;
  inset: -4%;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, #f97373, #6366f1);
  filter: blur(18px);
  opacity: 0.65;
  z-index: 0;
  animation: introCorePulse 5s ease-in-out infinite;
}

/* допълнителна „мъглявина“ */
.intro-photo-wrap::before,
.intro-photo-wrap::after{
  content:'';
  position: absolute;
  inset: -18%;
  border-radius: 999px;
  z-index: 0;
  mix-blend-mode: screen;
  opacity: 0.45;
  filter: blur(26px);
  background: conic-gradient(
    from 160deg,
    rgba(248,113,113,0.0),
    rgba(248,113,113,0.75),
    rgba(56,189,248,0.0),
    rgba(129,140,248,0.85),
    rgba(248,113,113,0.0)
  );
}
.intro-photo-wrap::before{ animation: introNebulaSpin 36s linear infinite; }
.intro-photo-wrap::after{
  inset: -26%;
  opacity: 0.35;
  filter: blur(40px);
  animation: introNebulaSpinReverse 52s linear infinite;
}

/* снимката */
.intro-photo{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #e5e7eb;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.45),
    0 0 0 4px rgba(148, 163, 184, 0.8);
}

@keyframes introCorePulse{
  0%,100%{ transform: scale(1); opacity: 0.55; }
  50%{ transform: scale(1.06); opacity: 0.8; }
}
@keyframes introNebulaSpin{ from{ transform: rotate(0deg);} to{ transform: rotate(360deg);} }
@keyframes introNebulaSpinReverse{ from{ transform: rotate(0deg);} to{ transform: rotate(-360deg);} }

/* =====================================================================
   3) COMMON CONTAINER + TYPOGRAPHY
===================================================================== */

h1{
  font-size: 26px;
  text-align: center;
  margin: 0 0 10px 0;
}
h2{
  font-size: 22px;
  text-align: center;
  margin: 40px 0 20px 0;
}

.page-desc{
  text-align: center;
  color: #9da5b4;
  font-size: 15px;
  margin: 0 0 30px 0;
}

/* ====================================================================================================
   4) EDUCATION TIMELINE + MODAL
==================================================================================================== */

.timeline{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding: 10px 0 40px 0;
}

.timeline::before{
  content:'';
  position: absolute;
  width: 2px;
  background-color: #3b3f46;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item{
  width: 45%;
  background-color: #161b22;
  padding: 15px 20px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover{
  transform: scale(1.02);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.timeline-item.left{
  align-self: flex-start;
  border-left: 3px solid #1f6feb;
}
.timeline-item.left::after{
  content:'';
  position: absolute;
  top: 20px;
  right: -8px;
  width: 12px;
  height: 12px;
  background-color: #1f6feb;
  border-radius: 50%;
}

.timeline-item.right{
  align-self: flex-end;
  border-right: 3px solid #f85149;
}
.timeline-item.right::after{
  content:'';
  position: absolute;
  top: 20px;
  left: -8px;
  width: 12px;
  height: 12px;
  background-color: #f85149;
  border-radius: 50%;
}

.timeline-item h3{
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.timeline-item.left h3{ color: #58a6ff; }
.timeline-item.right h3{ color: #ff7b72; }

.institution{
  font-size: 14px;
  color: #9da5b4;
  margin-top: 5px;
}

/* MODAL */
.modal-overlay{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 5000;
  padding: 20px;
}

.modal-box{
  background: #161b22;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  border-radius: 10px;
  border: 1px solid #3b3f46;
  padding: 20px;
  position: relative;
  text-align: center;

  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#modalContent{
  flex: 1;
  min-height: 0;
  display: flex;
}

.modal-close{
  position: absolute;
  top: 10px;
  right: 10px;
  background: #1f6feb;
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover{ background: #388bfd; }

.modal-inner{
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.modal-title{
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-carousel{
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 10px 0 15px 0;
  height: 380px;
  background: #0b1016;
  border-radius: 6px;

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.modal-carousel-track{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-slide{
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}
.modal-slide.is-active{ display: block; }

.modal-carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-carousel-btn:hover{ background: rgba(0, 0, 0, 0.8); }

.modal-carousel-prev{ left: 10px; }
.modal-carousel-next{ right: 10px; }

.modal-carousel-dots{
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.modal-carousel-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
  padding: 0;
}
.modal-carousel-dot.is-active{ background: #ffffff; }

.modal-text{
  margin-top: 8px;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;

  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
}
.modal-paragraph{
  margin: 0 0 10px 0;
  color: #cbd2db;
}

// Fix relative image paths inside modal
modal.content.querySelectorAll('img').forEach(img => {
  const src = img.getAttribute('src');
  if (!src) return;

  // ако започва с ../images
  if (src.startsWith('../images')) {
    img.setAttribute('src', src.replace('../', '/'));
  }
});

/* scrollbar */
.modal-text::-webkit-scrollbar{ width: 6px; }
.modal-text::-webkit-scrollbar-track{ background: transparent; }
.modal-text::-webkit-scrollbar-thumb{
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}
.modal-text::-webkit-scrollbar-thumb:hover{ background: rgba(255, 255, 255, 0.45); }

/* Firefox */
.modal-text{
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

/* modal color themes */
.modal-box.blue{
  box-shadow:
    0 0 0 1px rgba(31, 111, 235, 0.4),
    0 0 24px rgba(31, 111, 235, 0.25);
}
.modal-box.red{
  box-shadow:
    0 0 0 1px rgba(248, 81, 73, 0.4),
    0 0 24px rgba(248, 81, 73, 0.25);
}
.modal-box.red .modal-close{ background: #f85149; }
.modal-box.red .modal-close:hover{ background: #ff7b72; }

.modal-close:focus-visible{
  outline: 2px solid #e6edf3;
  outline-offset: 2px;
}

body.no-scroll{ overflow: hidden; }

/* Responsive */
@media (max-width: 768px){
  .timeline::before{ left: 20px; }
  .timeline-item{
    width: 100%;
    text-align: left;
    padding-left: 40px;
  }
  .timeline-item.left,
  .timeline-item.right{
    align-self: flex-start;
    border-left: 3px solid #3b3f46;
    border-right: none;
  }
  .timeline-item.left::after,
  .timeline-item.right::after{
    left: 10px;
    right: auto;
  }
  .modal-box{ padding: 16px; }
  .modal-carousel{ height: 320px; }
}

/* ====================================================================================================
   5) EXPERIENCE (work timeline)
==================================================================================================== */

body.page-experience{
  background: radial-gradient(circle at 0% 0%, #f9fafb, #e5e7eb, #f3f4f6);
  background-size: 180% 180%;
  animation: lightFloat 16s ease-in-out infinite;
  color: #111827;
}

@keyframes lightFloat{
  0%{ background-position: 0% 0%; }
  50%{ background-position: 100% 100%; }
  100%{ background-position: 0% 0%; }
}

body.page-experience .work-wrapper{
  margin: 60px auto 80px auto;
  color: #111827;
}

body.page-experience .work-wrapper h1{
  text-align: center;
  font-size: 28px;
  margin: 0 0 8px 0;
}

body.page-experience .work-sub{
  text-align: center;
  font-size: 15px;
  color: #4b5563;
  margin: 0 0 40px 0;
}

body.page-experience .work-timeline{
  position: relative;
  margin-top: 20px;
  padding-left: 140px;
}

body.page-experience .work-timeline::before{
  content:'';
  position: absolute;
  left: 70px;
  top: 0; bottom: 0;
  width: 2px;
  background: #d4d4d8;
}

body.page-experience .time-scale{
  position: absolute;
  left: 10px;
  top: 0; bottom: 0;
  width: 45px;
  font-size: 11px;
  color: #6b7280;
  z-index: 1;
}

body.page-experience .time-tick{
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  text-align: right;
}
body.page-experience .time-year{ font-size: 13px; font-weight: 600; }
body.page-experience .time-month{ font-size: 10px; opacity: 0.85; }

body.page-experience .time-segment{
  position: absolute;
  left: 70px;
  width: 4px;
  border-radius: 999px;
  transform: translateX(-50%);
  z-index: 1;
  transition: width 0.2s ease, box-shadow 0.2s ease;
}

body.page-experience .work-item{
  position: relative;
  margin-bottom: 70px;
  min-height: 80px;
  transition: transform 0.2s ease;
  --job-color: #0ea5e9;
}

body.page-experience .work-year{ display: none; }

body.page-experience .work-marker{
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f9fafb;
  border: 2px solid #d4d4d8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  z-index: 2;
}
body.page-experience .work-marker img{
  width: 80%;
  height: 80%;
  object-fit: contain;
}

body.page-experience .work-card{
  margin-left: 140px;
  max-width: calc(100% - 140px);
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.page-experience .job-position{
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

body.page-experience .job-company{
  font-size: 15px;
  color: #1f2937;
  margin-bottom: 4px;
}

body.page-experience .job-period{
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}

body.page-experience .job-desc{
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  margin: 0 0 8px 0;
}

body.page-experience .work-item:hover .work-card,
body.page-experience .work-item--active .work-card{
  border-color: var(--job-color);
  box-shadow:
    0 0 0 1px var(--job-color),
    0 0 26px var(--job-color),
    0 22px 48px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}

body.page-experience .work-item:hover .work-marker,
body.page-experience .work-item--active .work-marker{
  border-color: var(--job-color);
  box-shadow: 0 0 22px var(--job-color);
}

@media (max-width: 768px){
  body.page-experience .work-wrapper{ margin: 40px auto 60px auto; }
  body.page-experience .work-timeline{ padding-left: 100px; }
  body.page-experience .work-timeline::before{ left: 50px; }
  body.page-experience .time-scale{ left: 8px; width: 34px; }
  body.page-experience .work-marker{ left: 50px; width: 64px; height: 64px; }
  body.page-experience .work-card{
    margin-left: 0;
    max-width: 100%;
    padding: 16px 18px;
  }
  body.page-experience .work-timeline{
  padding-left: 0;
  }
  body.page-experience .work-marker,
  body.page-experience .work-timeline::before,
  body.page-experience .time-scale{
    display: none;
  }

}

/* ====================================================================================================
   6) SKILLS
==================================================================================================== */

body.page-skills{
  background: radial-gradient(circle at 0% 0%, #111827, #020617 40%, #020617 100%);
  color: #e5e7eb;
}

body.page-skills .skills-wrapper{
  margin: 70px auto 80px auto;
}

body.page-skills .skills-header h1{
  text-align: center;
  font-size: 30px;
  margin: 0 0 8px 0;
}

body.page-skills .skills-sub{
  text-align: center;
  font-size: 15px;
  color: #9ca3af;
  margin: 0 0 40px 0;
}

body.page-skills .skills-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

body.page-skills .skill-card{
  position: relative;
  border-radius: 18px;
  background: radial-gradient(circle at 0 0, #111827, #020617);
  border: 1px solid #1f2937;
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.12),
    0 24px 60px rgba(15, 23, 42, 0.8);
  overflow: hidden;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    opacity 0.45s ease,
    translate 0.45s ease;

  opacity: 0;
  translate: 0 18px;
}

body.page-skills .skill-card.is-visible{
  opacity: 1;
  translate: 0 0;
}

body.page-skills .skill-card:hover{
  transform: translateY(-4px);
  border-color: rgba(248, 113, 113, 0.8);
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.45),
    0 28px 70px rgba(15, 23, 42, 0.95);
}

body.page-skills .skill-card-inner{
  padding: 20px 22px 22px 22px;
}

body.page-skills .skill-header-row{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

body.page-skills .skill-icon-badge{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: radial-gradient(circle at 0% 0%, #f97373, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.7);
}

body.page-skills .skill-icon-badge img{
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* CV card – DV icon fixes */
body.page-skills .skill-card-download .skill-icon-badge img{
  width: 34px;
  height: 34px;
}
body.page-skills .skill-card-download .skill-icon-badge .skill-icon-dv img{
  width: 35px;
  height: 35px;
  object-fit: contain;
  display: block;
}

body.page-skills .skill-card-download .skill-icon-badge-accent{
  background: radial-gradient(circle at 0% 0%, #ef4444, #7c3aed);
  animation: dvPulseGlow 3.2s ease-in-out infinite;
}

@keyframes dvPulseGlow{
  0%,100%{
    box-shadow:
      0 0 16px rgba(248, 113, 113, 0.55),
      0 0 18px rgba(124, 58, 237, 0.45);
  }
  50%{
    box-shadow:
      0 0 30px rgba(248, 113, 113, 0.85),
      0 0 34px rgba(124, 58, 237, 0.70);
  }
}

body.page-skills .skill-text-head{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.page-skills .skill-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(248, 113, 113, 0.65);
  color: #fca5a5;
}

body.page-skills .skill-title{
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #f9fafb;
}

body.page-skills .skill-lead{
  margin: 10px 0 12px 0;
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.5;
}

body.page-skills .skill-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

body.page-skills .skill-list li{
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: #e5e7eb;
  line-height: 1.55;
  margin-bottom: 6px;
}

body.page-skills .skill-list li::before{
  content:'';
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f97373;
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.9);
}

body.page-skills .skill-card-download{ grid-column: 1 / -1; }
body.page-skills .skill-card-download .skill-title{ font-size: 20px; }

body.page-skills .skill-card-download .skill-lead,
body.page-skills .skill-card-download .cv-note{
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

body.page-skills .skill-card-download .skill-lead{ font-size: 15px; }

body.page-skills .cv-download-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 10px 0;
  justify-content: center;
}

body.page-skills .cv-btn{
  --cv-bg: rgba(24, 24, 37, 0.95);
  --cv-text: #fee2e2;

  position: relative;
  z-index: 0;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 18px;
  font-size: 13px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--cv-text);
  text-decoration: none;
  cursor: pointer;

  box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.8);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

body.page-skills .cv-btn.cv-btn-outline{
  --cv-bg: rgba(15, 23, 42, 0.96);
  --cv-text: #e5e7eb;
}

body.page-skills .cv-btn::before{
  content:'';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, #fb7185, #f97316, #a855f7, #fb7185);
  z-index: -2;
  animation: cvBorderRotate 6s linear infinite;
  opacity: 0.95;
}

body.page-skills .cv-btn::after{
  content:'';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--cv-bg);
  z-index: -1;
  animation: cvInnerPulse 5s ease-in-out infinite;
}

body.page-skills .cv-btn:hover{
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(251, 113, 133, 0.95),
    0 0 26px rgba(251, 113, 133, 0.85),
    0 0 40px rgba(147, 51, 234, 0.65);
}

body.page-skills .cv-btn:hover::after{
  box-shadow:
    inset 0 0 14px 2px rgba(251, 113, 133, 0.55),
    inset 0 0 24px 4px rgba(147, 51, 234, 0.45);
}

@keyframes cvBorderRotate{
  0%{ transform: rotate(0deg); }
  100%{ transform: rotate(360deg); }
}

@keyframes cvInnerPulse{
  0%,70%,100%{ box-shadow: inset 0 0 0 0 rgba(251, 113, 133, 0); }
  80%{ box-shadow: inset 0 0 8px 1px rgba(251, 113, 133, 0.30); }
  86%{
    box-shadow:
      inset 0 0 14px 2px rgba(251, 113, 133, 0.38),
      inset 0 0 26px 5px rgba(147, 51, 234, 0.35);
  }
  92%{ box-shadow: inset 0 0 10px 1px rgba(251, 113, 133, 0.22); }
}

@media (max-width: 768px){
  body.page-skills .skills-wrapper{ margin: 70px auto 60px auto; }
  body.page-skills .skills-grid{ grid-template-columns: 1fr; }
  body.page-skills .skill-card-download{ grid-column: 1 / -1; }
}

/* ====================================================================================================
   7) INTRO PAGE SECTION STYLES
==================================================================================================== */

body.page-intro.theme-light{
  background: radial-gradient(circle at 0% 0%, #f9fafb, #e5e7eb, #f3f4f6);
  color: #111827;

  --efbet-color:  #ffcb05;
  --ou25-color:   #1ec0e0;
  --tu-color:     #3e4095;
  --self-color:   #f97373;
}

body.page-intro .intro-wrapper{
  margin: 56px auto 80px auto;
}

body.page-intro .intro-hero{
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 40px;
  justify-content: flex-start;
  padding-top: 8px;
}

body.page-intro .intro-hero-text{
  flex: 1;
  margin-left: 0;
  max-width: 640px;
}

body.page-intro .intro-name{
  font-size: 28px;
  margin: 0 0 4px 0;
  text-align: left;
}

body.page-intro .intro-role{
  font-size: 15px;
  color: #4b5563;
  margin: 0 0 10px 0;
  text-align: left;
}

body.page-intro .intro-tagline{
  font-size: 14px;
  color: #111827;
  max-width: 520px;
  margin: 0;
  text-align: left;
}

body.page-intro .intro-section{
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 24px 22px 26px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

body.page-intro .intro-section-title{
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

body.page-intro .intro-two-cols{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  font-size: 14px;
  color: #374151;
  line-height: 1.55;
}

/* EMBEDDED SECTIONS (Education + Experience INSIDE intro-wrapper) */
body.page-intro #education,
body.page-intro #experience{
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 24px 22px 26px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

body.page-intro #education h2,
body.page-intro #experience h2{
  margin: 0 0 18px 0;
  text-align: center;
}

body.page-intro #education .timeline{
  padding: 6px 0 10px 0;
}
body.page-intro #education .timeline-item{
  box-shadow: none;
}
body.page-intro #education .timeline-item:hover{
  box-shadow: 0 0 10px rgba(15, 23, 42, 0.10);
}

/* embedded experience – same structure, scoped */
body.page-intro #experience .work-wrapper{
  width: 100%;
  margin: 0;
  color: inherit;
}
body.page-intro #experience .work-wrapper h1{ display: none; }
body.page-intro #experience .work-sub{
  margin: 0 0 18px 0;
  text-align: center;
  font-size: 14px;
  color: #4b5563;
}
body.page-intro #experience .work-timeline{
  position: relative;
  margin-top: 12px;
  padding-left: 140px;
}
body.page-intro #experience .work-timeline::before{
  content:'';
  position: absolute;
  left: 70px;
  top: 0; bottom: 0;
  width: 2px;
  background: #d4d4d8;
}
body.page-intro #experience .time-scale{
  position: absolute;
  left: 10px;
  top: 0; bottom: 0;
  width: 45px;
  font-size: 11px;
  color: #6b7280;
  z-index: 1;
}
body.page-intro #experience .time-tick{
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  text-align: right;
}
body.page-intro #experience .time-year{ font-size: 13px; font-weight: 600; }
body.page-intro #experience .time-month{ font-size: 10px; opacity: 0.85; }
body.page-intro #experience .time-segment{
  position: absolute;
  left: 70px;
  width: 4px;
  border-radius: 999px;
  transform: translateX(-50%);
  z-index: 1;
  transition: width 0.2s ease, box-shadow 0.2s ease;
}
body.page-intro #experience .work-item{
  position: relative;
  margin-bottom: 56px;
  min-height: 80px;
  transition: transform 0.2s ease;
  --job-color: #0ea5e9;
}
body.page-intro #experience .work-year{ display: none; }
body.page-intro #experience .work-marker{
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f9fafb;
  border: 2px solid #d4d4d8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  z-index: 2;
}
body.page-intro #experience .work-marker img{
  width: 80%;
  height: 80%;
  object-fit: contain;
}
body.page-intro #experience .work-card{
  margin-left: 140px;
  max-width: calc(100% - 140px);
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
body.page-intro #experience .job-position{
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}
body.page-intro #experience .job-company{
  font-size: 15px;
  color: #1f2937;
  margin-bottom: 4px;
}
body.page-intro #experience .job-period{
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}
body.page-intro #experience .job-desc{
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  margin: 0 0 8px 0;
}

body.page-intro #experience .work-item:hover .work-card,
body.page-intro #experience .work-item--active .work-card{
  border-color: var(--job-color);
  box-shadow:
    0 0 0 1px var(--job-color),
    0 0 26px var(--job-color),
    0 22px 48px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}
body.page-intro #experience .work-item:hover .work-marker,
body.page-intro #experience .work-item--active .work-marker{
  border-color: var(--job-color);
  box-shadow: 0 0 22px var(--job-color);
}

@media (max-width: 768px){
  body.page-intro #experience .work-timeline{ padding-left: 100px; }
  body.page-intro #experience .work-timeline::before{ left: 50px; }
  body.page-intro #experience .time-scale{ left: 8px; width: 34px; }
  body.page-intro #experience .work-marker{ left: 50px; width: 64px; height: 64px; }
  body.page-intro #experience .work-card{ margin-left: 110px; max-width: calc(100% - 110px); padding: 16px 18px; }
}

/* Languages grid */
body.page-intro .intro-languages-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 18px;
}

body.page-intro .intro-languages-grid > .intro-lang-card:nth-child(1){ grid-column: 1; grid-row: 1; }
body.page-intro .intro-languages-grid > .intro-lang-card:nth-child(2){ grid-column: 1; grid-row: 2; }
body.page-intro .intro-languages-grid > .intro-lang-card:nth-child(3){ grid-column: 1; grid-row: 3; }
body.page-intro .intro-languages-grid > .intro-soft-card{ grid-column: 2; grid-row: 1 / span 3; }

body.page-intro .intro-lang-card{
  padding: 14px 16px 16px 16px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  font-size: 14px;
  color: #374151;
}

body.page-intro .intro-lang-card h3{
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 600;
}

body.page-intro .intro-soft-list{
  list-style: none;
  margin: 0;
  padding: 0;
}
body.page-intro .intro-soft-list li{
  position: relative;
  padding-left: 14px;
  margin-bottom: 5px;
}
body.page-intro .intro-soft-list li::before{
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: #ef4444;
}

/* Pizza */
body.page-intro .intro-pizza-layout{
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: center;
}

body.page-intro .intro-pizza{
  position: relative;
  width: 260px;
  max-width: 42vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    var(--efbet-color) 0deg 110deg,
    var(--ou25-color) 110deg 210deg,
    var(--tu-color)   210deg 290deg,
    var(--self-color) 290deg 360deg
  );
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.45),
    0 0 0 1px rgba(15, 23, 42, 0.6);
  overflow: visible;
  transform-origin: 50% 50%;
  animation: introPizzaSpin 36s linear infinite;
}

body.page-intro .intro-pizza-inner{
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow:
    0 10px 26px rgba(15, 23, 42, 0.30),
    0 0 0 3px rgba(15, 23, 42, 0.12);
  animation: introPizzaSpinReverse 36s linear infinite;
}

body.page-intro .intro-pizza-inner span{
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #111827;
  text-align: center;
  display: block;
  max-width: 80%;
}

body.page-intro .intro-pizza::after{
  content:'';
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 25% 15%, rgba(255,255,255,0.18), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes introPizzaSpin{ from{ transform: rotate(0deg);} to{ transform: rotate(360deg);} }
@keyframes introPizzaSpinReverse{ from{ transform: rotate(0deg);} to{ transform: rotate(-360deg);} }

body.page-intro .intro-pizza:hover,
body.page-intro .intro-pizza:hover .intro-pizza-inner{
  animation-play-state: paused;
}

body.page-intro .intro-pizza::before{
  content:'';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(0,0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

body.page-intro .intro-pizza-legend{
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.page-intro .intro-pizza-row{
  position: relative;
  z-index: 5;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  background: #ffffff;
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

body.page-intro .intro-pizza-box h3{
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
body.page-intro .intro-pizza-box p{
  margin: 0;
  font-size: 13px;
  color: #374151;
  line-height: 1.45;
}

body.page-intro .legend-dot{
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  flex-shrink: 0;
}

body.page-intro .legend-efbet{ background: var(--efbet-color); box-shadow: 0 0 12px rgba(255, 203, 5, 0.75); }
body.page-intro .legend-25ou{ background: var(--ou25-color); box-shadow: 0 0 12px rgba(30, 192, 224, 0.75); }
body.page-intro .legend-tu{ background: var(--tu-color); box-shadow: 0 0 12px rgba(62, 64, 149, 0.75); }
body.page-intro .legend-self{ background: var(--self-color); box-shadow: 0 0 12px rgba(249, 115, 129, 0.75); }

body.page-intro .intro-pizza-row[data-slice="efbet"]{ border-left: 3px solid var(--efbet-color); }
body.page-intro .intro-pizza-row[data-slice="25ou"]{ border-left: 3px solid var(--ou25-color); }
body.page-intro .intro-pizza-row[data-slice="tu"]{ border-left: 3px solid var(--tu-color); }
body.page-intro .intro-pizza-row[data-slice="self"]{ border-left: 3px solid var(--self-color); }

body.page-intro .intro-pizza-row:hover{
  transform: translateX(6px);
  filter: brightness(1.05);
}

/* Auto-highlight active slice (JS adds pizza-active-*) — so it “moves” even without hover */
body.page-intro .pizza-active-efbet .intro-pizza-row[data-slice="efbet"],
body.page-intro .pizza-active-25ou  .intro-pizza-row[data-slice="25ou"],
body.page-intro .pizza-active-tu    .intro-pizza-row[data-slice="tu"],
body.page-intro .pizza-active-self  .intro-pizza-row[data-slice="self"]{
  transform: translateX(6px);
  filter: brightness(1.05);
}

body.page-intro .pizza-active-efbet .intro-pizza-row[data-slice="efbet"]{ box-shadow: 0 0 24px 8px rgba(255, 203, 5, 0.55); }
body.page-intro .pizza-active-25ou  .intro-pizza-row[data-slice="25ou"] { box-shadow: 0 0 24px 8px rgba(30, 192, 224, 0.55); }
body.page-intro .pizza-active-tu    .intro-pizza-row[data-slice="tu"]   { box-shadow: 0 0 24px 8px rgba(62, 64, 149, 0.55); }
body.page-intro .pizza-active-self  .intro-pizza-row[data-slice="self"] { box-shadow: 0 0 24px 8px rgba(249, 115, 115, 0.55); }
body.page-intro .intro-pizza-row[data-slice="efbet"]:hover{ box-shadow: 0 0 24px 8px rgba(255, 203, 5, 0.55); }
body.page-intro .intro-pizza-row[data-slice="25ou"]:hover{ box-shadow: 0 0 24px 8px rgba(30, 192, 224, 0.55); }
body.page-intro .intro-pizza-row[data-slice="tu"]:hover{ box-shadow: 0 0 24px 8px rgba(62, 64, 149, 0.55); }
body.page-intro .intro-pizza-row[data-slice="self"]:hover{ box-shadow: 0 0 24px 8px rgba(249, 115, 115, 0.55); }

body.page-intro .pizza-active-efbet .intro-pizza::before{
  opacity: 1;
  transform: translate(6px, -6px);
  background: conic-gradient(rgba(255, 203, 5, 0.6) 0deg 110deg, transparent 110deg 360deg);
}
body.page-intro .pizza-active-25ou .intro-pizza::before{
  opacity: 1;
  transform: translate(-6px, -4px);
  background: conic-gradient(transparent 0deg 110deg, rgba(30, 192, 224, 0.6) 110deg 210deg, transparent 210deg 360deg);
}
body.page-intro .pizza-active-tu .intro-pizza::before{
  opacity: 1;
  transform: translate(-6px, 6px);
  background: conic-gradient(transparent 0deg 210deg, rgba(62, 64, 149, 0.6) 210deg 290deg, transparent 290deg 360deg);
}
body.page-intro .pizza-active-self .intro-pizza::before{
  opacity: 1;
  transform: translate(6px, 6px);
  background: conic-gradient(transparent 0deg 290deg, rgba(249,115,115,0.6) 290deg 360deg);
}

@media (max-width: 768px){
  body.page-intro .intro-pizza-layout{ flex-direction: column; align-items: center; }
  body.page-intro .intro-pizza-legend{ width: 100%; }
  body.page-intro .intro-pizza{ width: 220px; }
}

/* LOOKING SECTION */
body.page-intro .looking-section{
  background: radial-gradient(circle at 0% 0%, #f9fafb, #e5edf8 50%, #f3f4f6 100%);
  padding: 50px 24px 60px 24px;
  border-radius: 22px;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.10),
    0 0 0 1px rgba(148, 163, 184, 0.18);
  margin-bottom: 40px;
}

body.page-intro .looking-title{
  text-align: center;
  margin: 0 0 28px 0;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

@keyframes corePulse{
  0%{ transform: scale(1); box-shadow: 0 0 25px rgba(248, 113, 113, 0.35); }
  50%{ transform: scale(1.06); box-shadow: 0 0 55px rgba(248, 113, 113, 0.55); }
  100%{ transform: scale(1); box-shadow: 0 0 25px rgba(248, 113, 113, 0.35); }
}

body.page-intro .looking-orbit{
  position: relative;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

body.page-intro .looking-orbit-outer{
  position: absolute;
  inset: 10%;
  border-radius: 999px;
  border: 2px dashed rgba(248, 113, 113, 0.8);
}

body.page-intro .looking-orbit-inner{
  position: absolute;
  inset: 28%;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fee2e2, #fecaca, #fef2f2);
  box-shadow:
    0 25px 45px rgba(248, 113, 113, 0.45),
    0 0 0 1px rgba(248, 113, 113, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: corePulse 3.6s ease-in-out infinite;
}

body.page-intro .looking-core span{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #b91c1c;
}

body.page-intro .looking-pill{
  position: absolute;
  top: 48%;
  left: 26%;
  --start-angle: 0deg;
  --radius: 100%;

  padding: 10px 16px;
  max-width: 240px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow:
    0 14px 35px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(248, 113, 113, 0.25);
  font-size: 13px;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: left;

  transform:
    rotate(var(--start-angle))
    translate(var(--radius))
    rotate(calc(-1 * var(--start-angle)));

  animation: lookingOrbit 40s linear infinite;
}

@keyframes lookingOrbit{
  from{
    transform:
      rotate(var(--start-angle))
      translate(var(--radius))
      rotate(calc(-1 * var(--start-angle)));
  }
  to{
    transform:
      rotate(calc(var(--start-angle) + 360deg))
      translate(var(--radius))
      rotate(calc(-1 * (var(--start-angle) + 360deg)));
  }
}

body.page-intro .pill-1{ --start-angle: -90deg; }
body.page-intro .pill-2{ --start-angle: -18deg; }
body.page-intro .pill-3{ --start-angle:  54deg; }
body.page-intro .pill-4{ --start-angle: 126deg; }
body.page-intro .pill-5{ --start-angle: 198deg; }

@media (max-width: 640px){
  body.page-intro .looking-section{  overflow: hidden;}
  body.page-intro .looking-orbit{ max-width: 360px; }
  body.page-intro .looking-pill{
    max-width: 220px;
    font-size: 12px;
    padding: 8px 12px;
  }
}
/* =========================================================
   FIX – PIZZA STABILITY
========================================================= */

/* 1. Намаляваме текста адаптивно */
body.page-intro .intro-pizza-inner span{
  font-size: clamp(13px, 2.2vw, 18px);
}

/* 2. Правим вътрешния кръг малко по-голям за баланс */
body.page-intro .intro-pizza-inner{
  inset: 20%;
}

/* 3. На мобилен – спираме въртенето (става професионално) */
@media (max-width: 768px){

  body.page-intro .intro-pizza{
    animation: none;
  }

  body.page-intro .intro-pizza-inner{
    animation: none;
  }
}


/* ====================================================================================================
   8) THEME UNIFICATION
==================================================================================================== */

body:not(.theme-light) .intro-section,
body:not(.theme-light) .looking-section,
body.page-intro:not(.theme-light) #education,
body.page-intro:not(.theme-light) #experience{
  background: var(--cv-surface-dark);
  border-color: var(--cv-border-dark);
  box-shadow: var(--cv-shadow-dark);
}

body:not(.theme-light) .intro-section-title,
body:not(.theme-light) .looking-title,
body.page-intro:not(.theme-light) #education h2,
body.page-intro:not(.theme-light) #experience h2{
  color: var(--cv-text-light);
}

body:not(.theme-light) .intro-lang-card,
body:not(.theme-light) .intro-pizza-row,
body:not(.theme-light) .looking-pill{
  background: rgba(2, 6, 23, 0.55);
  border-color: rgba(148, 163, 184, 0.22);
  color: rgba(229, 231, 235, 0.90);
}

body:not(.theme-light) .intro-role,
body:not(.theme-light) .intro-tagline,
body:not(.theme-light) .intro-two-cols,
body:not(.theme-light) .intro-pizza-box p{
  color: rgba(229, 231, 235, 0.90);
}

body:not(.theme-light) .intro-lang-card h3,
body:not(.theme-light) .intro-pizza-box h3{
  color: var(--cv-text-light);
}

body:not(.theme-light) .intro-soft-list li::before{ color: #fb7185; }

/* Embedded Experience — dark adaptation */
body.page-intro:not(.theme-light) #experience .work-sub{ color: rgba(229,231,235,0.72); }
body.page-intro:not(.theme-light) #experience .work-timeline::before{ background: rgba(148, 163, 184, 0.28); }
body.page-intro:not(.theme-light) #experience .time-scale{ color: rgba(229,231,235,0.55); }
body.page-intro:not(.theme-light) #experience .work-marker{
  background: rgba(2, 6, 23, 0.65);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}
body.page-intro:not(.theme-light) #experience .work-card{
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 60px rgba(0,0,0,0.40);
}
body.page-intro:not(.theme-light) #experience .job-position,
body.page-intro:not(.theme-light) #experience .job-company{ color: var(--cv-text-light); }
body.page-intro:not(.theme-light) #experience .job-period,
body.page-intro:not(.theme-light) #experience .job-desc{ color: rgba(229,231,235,0.82); }

/* Experience becomes dark when theme is dark (separate page) */
body.page-experience:not(.theme-light){
  background: radial-gradient(circle at 0% 0%, #111827, #020617 55%, #020617 100%);
  color: var(--cv-text-light);
}

body.page-experience:not(.theme-light) .work-wrapper,
body.page-experience:not(.theme-light) .job-position,
body.page-experience:not(.theme-light) .job-company{
  color: var(--cv-text-light);
}

body.page-experience:not(.theme-light) .work-sub,
body.page-experience:not(.theme-light) .job-period,
body.page-experience:not(.theme-light) .job-desc{
  color: rgba(229,231,235,0.82);
}

body.page-experience:not(.theme-light) .work-timeline::before{
  background: rgba(148, 163, 184, 0.28);
}

body.page-experience:not(.theme-light) .time-scale{
  color: rgba(229,231,235,0.55);
}

body.page-experience:not(.theme-light) .work-marker{
  background: rgba(2, 6, 23, 0.65);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

body.page-experience:not(.theme-light) .work-card{
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 60px rgba(0,0,0,0.40);
}

/* Education cards on dark theme */
body:not(.theme-light) .timeline-item{
  background-color: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.24);
  color: var(--cv-text-light);
}

/* LIGHT theme refinements */
body.theme-light .skills-sub{ color: #111827; opacity: 1; }
body.theme-light .skill-pill{
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--cv-text-dark);
}

/* LIGHT THEME — card unification */
body.theme-light.page-skills .skill-card{
  background: var(--cv-surface-light);
  border: 1px solid var(--cv-border-light);
  box-shadow: var(--cv-shadow-light);
}

body.theme-light.page-skills .skill-title,
body.theme-light.page-skills .skill-lead,
body.theme-light.page-skills .skill-list li{
  color: var(--cv-text-dark);
}

body.theme-light.page-skills .skill-lead{
  color: var(--cv-muted-dark);
}

body.theme-light.page-skills .skill-list li::before{
  box-shadow: none;
}

body.theme-light .timeline-item{
  background: var(--cv-surface-light);
  border: 1px solid var(--cv-border-light);
  box-shadow: var(--cv-shadow-light);
  color: var(--cv-text-dark);
}

body.theme-light .timeline-item.left h3{ color: #1d4ed8; }
body.theme-light .timeline-item.right h3{ color: #b91c1c; }

body.theme-light .institution{
  color: var(--cv-muted-dark);
}

body.theme-light .timeline::before{
  background-color: rgba(17, 24, 39, 0.12);
}

/* ====================================================================================================
   9) FOOTER – CLEAN (aligned top, DV centered in its cell, button centered)
==================================================================================================== */

.site-footer{
  margin-top: 64px;
  padding: 26px 18px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 14, 24, 0.55);
  backdrop-filter: blur(10px);
}

body.theme-light .site-footer{
  background: rgba(255,255,255,0.72);
  border-top: 1px solid rgba(0,0,0,0.08);
}

.footer-top{
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.2fr 0.7fr;
  align-items: stretch;
  gap: 0;
}

.footer-q{
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 14px 18px;
  min-width: 0;
}

/* Brand колоната: центрирана в клетката */
.footer-q--brand{
  justify-content: center;
  align-items: center;
}

.footer-q--contacts,
.footer-q--nav,
.footer-q--top{
  border-left: 1px solid rgba(255,255,255,0.14);
}

body.theme-light .footer-q--contacts,
body.theme-light .footer-q--nav,
body.theme-light .footer-q--top{
  border-left: 1px solid rgba(0,0,0,0.14);
}

/* BRAND */
.footer-brand{
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;

  background: radial-gradient(circle at 0% 0%, #ff5c5c, #7c3aed);
  box-shadow: 0 0 18px rgba(248,113,113,0.35);
  overflow: hidden;
}

.footer-brand-mark img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.footer-brand-text{
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.footer-name{
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  line-height: 1.15;
}
body.theme-light .footer-name{ color: rgba(0,0,0,0.86); }

.footer-role{
  font-size: 13px;
  margin-top: 2px;
  color: rgba(255,255,255,0.62);
  line-height: 1.25;
}
body.theme-light .footer-role{ color: rgba(0,0,0,0.58); }

/* TITLES */
.footer-col-title{
  font-weight: 700;
  margin: 0 0 10px 0;
  color: rgba(255,255,255,0.92);
}
body.theme-light .footer-col-title{ color: rgba(0,0,0,0.86); }

/* CONTACTS */
.footer-q--contacts{
  justify-content: flex-start;
  align-items: flex-start;
}
.footer-q--contacts .footer-row{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
  white-space: nowrap;
  color: rgba(255,255,255,0.72);
  border: 0;
  background: none;
}
body.theme-light .footer-q--contacts .footer-row{ color: rgba(0,0,0,0.72); }

.footer-label{
  min-width: 72px;
  opacity: 0.85;
  flex: 0 0 auto;
}

.footer-q--contacts .footer-a{ white-space: normal; }

.footer-a{
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  border-bottom: 0;
}
.footer-a:hover{ color: rgba(255,255,255,0.95); }
body.theme-light .footer-a{ color: rgba(0,0,0,0.72); }
body.theme-light .footer-a:hover{ color: rgba(0,0,0,0.92); }

.footer-social{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
  transform: translateY(0);
  transition: transform 160ms ease, background 160ms ease;
}
.footer-social:hover{
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}
body.theme-light .footer-social{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.05);
}
body.theme-light .footer-social:hover{ background: rgba(0,0,0,0.07); }

.footer-social-text{ color: rgba(255,255,255,0.85); }
body.theme-light .footer-social-text{ color: rgba(0,0,0,0.78); }

/* NAV LIST */
.footer-q--nav{
  justify-content: flex-start;
  align-items: flex-start;
}
.footer-nav-list{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.footer-nav-list li{ list-style: "- "; }

/* TOP BUTTON */
.footer-q--top{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.footer-btn{
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.footer-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(124,58,237,0.22);
  background: rgba(255,255,255,0.12);
}
body.theme-light .footer-btn{
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.85);
}
body.theme-light .footer-btn:hover{
  box-shadow: 0 0 16px rgba(124,58,237,0.18);
  background: rgba(0,0,0,0.07);
}

.footer-bottom{
  margin: 16px auto 0;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-align: center;
}
body.theme-light .footer-bottom{
  border-top: 1px solid rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.55);
}

@media (max-width: 900px){
  .footer-top{ grid-template-columns: 1fr; }
  .footer-q{ padding: 14px 16px; }

  .footer-q--contacts,
  .footer-q--nav,
  .footer-q--top{
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  body.theme-light .footer-q--contacts,
  body.theme-light .footer-q--nav,
  body.theme-light .footer-q--top{
    border-top: 1px solid rgba(0,0,0,0.12);
  }

  .footer-q--brand{
    justify-content: flex-start;
    align-items: flex-start;
  }

  .footer-q--top{
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 10px;
  }
}

/* =========================================================
   FIX – ORBIT STABILITY ON MOBILE
========================================================= */

@media (max-width: 768px){

  body.page-intro .looking-orbit{
    max-width: 300px;
  }

  body.page-intro .looking-pill{
    --radius: 75%;
    max-width: 160px;
    font-size: 11px;
    text-align: center;
  }
}

/* ====================================================================================================
   10) SMALL SAFETY RULES
==================================================================================================== */

.footer-q--contacts .footer-a,
.footer-q--contacts .footer-social{
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* =========================
   HOTFIX PATCH (paste at very end)
   Fixes:
   1) light theme buttons not black
   2) "looking" section not showing animated blue background bleed
   3) fallback for --page-gutter (so width calc stops breaking)
========================= */

/* 0) Fallback: if you still reference --page-gutter anywhere, map it to --page-side */
:root{
  --page-gutter: var(--page-side);
}

/* 1) CV download buttons: make them light in light theme */
body.theme-light .cv-btn{
  --cv-bg: #ffffff;
  --cv-text: #111827;
  box-shadow: 0 0 0 1px rgba(17,24,39,0.16);
}

body.theme-light .cv-btn.cv-btn-outline{
  --cv-bg: #ffffff;
  --cv-text: #111827;
}

/* (optional) a bit calmer hover glow in light */
body.theme-light .cv-btn:hover{
  box-shadow:
    0 0 0 1px rgba(251,113,133,0.55),
    0 0 18px rgba(251,113,133,0.25),
    0 0 28px rgba(147,51,234,0.18);
}

/* 2) STOP the animated "blue moving" bleed inside that section in LIGHT
   Reason: your global body::before is animated and your cards are semi-transparent. */
body.theme-light .looking-section{
  background: #ffffff !important; /* force opaque */
}

/* If you also see bleed in other light cards, uncomment these too:
body.theme-light .intro-section,
body.theme-light #education,
body.theme-light #experience{
  background: #ffffff !important;
}
*/

/* 3) If you want zero moving background in LIGHT (strongest fix), uncomment:
body.theme-light::before{ content: none !important; }
*/
/* =========================
   UNIFY MAIN SECTION GUTTERS (Education / Experience / other big blocks)
   Paste at the VERY END
========================= */

/* 1) Single source of truth for section padding (≈ +20% vs 22px) */
:root{
  --section-pad-x: 26px;  /* 22px -> 26px (≈18%); ако искаш точно 20%: 27px */
  --section-pad-y: 26px;
  --section-pad-bottom: 28px;
}

/* 2) Apply to the big “chapter” blocks inside Intro page */
body.page-intro .intro-section,
body.page-intro #education,
body.page-intro #experience{
  padding: var(--section-pad-y) var(--section-pad-x) var(--section-pad-bottom) var(--section-pad-x);
}

/* 3) Optional: make “Looking” match the same gutter */
body.page-intro .looking-section{
  padding: calc(var(--section-pad-y) + 20px) var(--section-pad-x) calc(var(--section-pad-bottom) + 26px) var(--section-pad-x);
}

/* 4) Mobile – keep it slightly tighter */
@media (max-width: 640px){
  :root{
    --section-pad-x: 18px;
    --section-pad-y: 20px;
    --section-pad-bottom: 22px;
  }
}


/* =========================
   WIDTH FIX — Education + Experience blocks (keep aligned with Intro wrapper)
   Reason: .container / .work-wrapper have global page-width rule, which inside intro-wrapper
   makes these blocks narrower (because of --page-side subtraction). Here we make them fill
   the parent wrapper width on the single-page CV, without touching other pages.
   Paste at VERY END (this file already is "final", so we only append).
========================= */

body.page-intro #education,
body.page-intro #experience{
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}



/* ====================================================================================================
   MOBILE HEADER / BURGER MENU (stable)
   Goal: on small screens show: [Brand left] [Burger] .... [BG/EN + Theme right]
   Nav becomes dropdown under header; controlled by .main-header.is-open (set in main.js)
==================================================================================================== */

/* Desktop: hide burger */
.burger-btn{
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.35);
  color: inherit;
  width: 42px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2601;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}

.burger-btn:focus-visible{
  outline: 2px solid rgba(251, 113, 133, 0.9);
  outline-offset: 2px;
}

/* 3 lines */
.burger-lines{
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(229, 231, 235, 0.92);
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.burger-lines::before,
.burger-lines::after{
  content:'';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: rgba(229, 231, 235, 0.92);
  border-radius: 999px;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}
.burger-lines::before{ top: -6px; }
.burger-lines::after{ top: 6px; }

/* Turn into X when open */
.main-header.is-open .burger-lines{
  background: transparent;
}
.main-header.is-open .burger-lines::before{
  top: 0;
  transform: rotate(45deg);
}
.main-header.is-open .burger-lines::after{
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile layout + dropdown nav */
@media (max-width: 760px){

  /* Keep header row tight */
  .main-header-inner{
    padding: 8px 0;
    gap: 10px;
  }

  /* Show burger */
  .burger-btn{ display: inline-flex; }

  /* Main nav becomes dropdown and is hidden by default */
  .main-nav{
    position: fixed;
    left: 0;
    right: 0;
    top: 56px; /* header height area (main has padding-top:64px) */
    z-index: 2400;

    display: none;
    flex-direction: column;
    gap: 6px;

    padding: 12px var(--page-side) 14px;
    margin: 0;

    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.98),
      rgba(15, 23, 42, 0.92)
    );
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  }

  @media (max-width: 760px){

  .main-nav{
    position: absolute;
    top: 60px;
    right: 20px;
    background: #0f172a;
    padding: 15px;
    border-radius: 12px;
    flex-direction: column;
    gap: 10px;
    display: none;
  }

  .main-header.is-open .main-nav{
    display: flex;
  }
}


  .main-header.is-open .main-nav{ display: flex; }

  /* Links full width */
  .main-nav .nav-link{
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
  }
  .main-nav .nav-link::after{ left: 10px; right: 10px; }

  /* Brand stays visible left; keep text (Online CV) */
  .brand-text{ display: inline; }

  /* Right controls compact and pinned right */
  .header-right{
    margin-left: auto;
    gap: 8px;
  }

  .lang-nav{ gap: 8px; }
  .lang-btn{
    height: 28px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 13px;
  }

  .theme-toggle{
    width: 58px;
    height: 28px;
    border-radius: 10px;
  }
  .theme-toggle-thumb{
    /* keep geometry synced with new height */
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
  }
  body.theme-light .theme-toggle-thumb{
    transform: translateX(30px);
  }
}

/* Ultra small: hide "Online CV" text to fit, keep DV + controls */
@media (max-width: 380px){
  .brand-text{ display: none; }
}

/* ================================================================================================
   MOBILE — Languages & Communication (force 1 card per row)
   Works regardless of section id (no dependency on #languages)
================================================================================================ */
@media (max-width: 768px){
  body.page-intro .intro-languages-grid{
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 14px !important;
  }
  body.page-intro .intro-languages-grid > *{
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 768px){

  body.page-experience .work-timeline{
    padding-left: 0;
  }

  body.page-experience .work-card{
    margin-left: 0;
    max-width: 100%;
  }

  body.page-experience .work-marker{
    display: none;
  }

  body.page-experience .work-timeline::before{
    display: none;
  }
}

/* =========================================================
   MOBILE-FIRST PATCH (SAFE – НЕ ЧУПИ DESKTOP)
========================================================= */

@media (max-width: 1024px){
  .page-width,
  .container,
  .intro-wrapper,
  .work-wrapper,
  .skills-wrapper,
  .footer-inner,
  .main-header-inner,
  .footer-top,
  .footer-bottom{
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* -------------------- INTRO -------------------- */

@media (max-width: 900px){

  .intro-hero{
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .intro-photo-wrap{
    width: 180px;
    height: 180px;
  }

  .intro-two-cols{
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .intro-languages-grid{
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

/* -------------------- EDUCATION -------------------- */

@media (max-width: 900px){

  .timeline::before{
    display: none;
  }

  .timeline-item{
    width: 100%;
    align-self: stretch !important;
    border-left: 3px solid #3b3f46 !important;
    border-right: none !important;
    text-align: left;
  }

  .timeline-item::after{
    display: none;
  }
}

/* -------------------- EXPERIENCE -------------------- */

@media (max-width: 900px){

  body.page-experience .work-timeline{
    padding-left: 0;
  }

  body.page-experience .work-timeline::before{
    display: none;
  }

  body.page-experience .work-marker{
    display: none;
  }

  body.page-experience .work-card{
    margin-left: 0;
    max-width: 100%;
  }
}

/* -------------------- SKILLS -------------------- */

@media (max-width: 900px){

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

/* -------------------- HEADER MOBILE -------------------- */

@media (max-width: 760px){

  .main-nav{
    position: absolute;
    top: 60px;
    right: 18px;
    background: #0f172a;
    padding: 16px;
    border-radius: 14px;
    flex-direction: column;
    gap: 12px;
    display: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }

  .main-header.is-open .main-nav{
    display: flex;
  }

  .header-right{
    gap: 8px;
  }
}

/* =========================================
   MOBILE HERO CENTER FIX
========================================= */

@media (max-width: 900px){

  body.page-intro .intro-hero{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body.page-intro .intro-hero-text{
    max-width: 100%;
    margin-left: 0;
    text-align: center;
  }

  body.page-intro .intro-name{
    text-align: center;
  }

  body.page-intro .intro-role{
    text-align: center;
  }

  body.page-intro .intro-tagline{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================================
   ABOUT ME – Mobile Single Column
========================================= */

@media (max-width: 900px){

  body.page-intro .intro-two-cols{
    grid-template-columns: 1fr;
    gap: 16px;
  }

}

/* =========================================
   MOBILE MODAL FIX
========================================= */

@media (max-width: 768px){

  .modal-overlay{
    align-items: flex-start;
    overflow-y: auto;
  }

  .modal-box{
    max-height: none;
    height: auto;
    margin-top: 40px;
    margin-bottom: 40px;
    overflow: visible;
  }

  .modal-inner{
    max-height: none;
  }

  .modal-text{
    overflow: visible;
    padding-right: 0;
  }

}

/* =========================================
   EXPERIENCE — MOBILE FULL REBUILD
========================================= */

@media (max-width: 900px){

  body.page-experience .work-timeline{
    padding-left: 0 !important;
  }

  body.page-experience .work-timeline::before,
  body.page-experience .time-scale,
  body.page-experience .time-segment{
    display: none !important;
  }

  body.page-experience .work-item{
    margin-bottom: 40px;
  }

  body.page-experience .work-marker{
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 auto 16px auto;
    width: 80px;
    height: 80px;
  }

  body.page-experience .work-card{
    margin-left: 0 !important;
    max-width: 100% !important;
    text-align: center;
  }

}
