/* ═══════════════════════════════════════════════════════
   Lambo Code — Experience Page
   Uses the shared --home-* variable system from home.css.
   ═══════════════════════════════════════════════════════ */

/* ─── SHARED ───────────────────────────────────────── */
.ex-container {
  width: min(100%, var(--home-max));
  margin-inline: auto;
}
.ex-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--home-accent);
  margin-bottom: 14px;
}
.ex-kicker i { font-size: .68rem; }
section > .ex-container > h2,
section > .ex-container > .ex-kicker + h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--home-text);
  margin-bottom: 16px;
  text-wrap: balance;
}
.ex-sub {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--home-muted);
  max-width: 600px;
  margin-bottom: 48px;
}
.or { color: var(--home-accent); }

/* ─── BUTTONS ──────────────────────────────────────── */
.ex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: var(--home-radius);
  font-family: "Outfit", sans-serif;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.ex-btn--fill {
  background: var(--home-accent);
  color: #fff;
}
.ex-btn--fill:hover { background: #f09a58; }
.ex-btn--outline {
  background: transparent;
  color: var(--home-text);
  border: 1px solid var(--home-line);
}
.ex-btn--outline:hover {
  background: var(--home-surface);
  border-color: var(--home-text);
}

/* ═══════════════════════════════════════════════════════
   1. HERO
   ═══════════════════════════════════════════════════════ */
.ex-hero {
  padding-top: clamp(120px, 14vw, 180px);
  padding-bottom: clamp(60px, 8vw, 100px);
  background: var(--home-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ex-hero h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--home-text);
  margin-bottom: 20px;
  text-wrap: balance;
}
.ex-hero-sub {
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
  line-height: 1.75;
  color: var(--home-muted);
  max-width: 640px;
  text-wrap: pretty;
  margin-bottom: 12px;
}
.ex-hero-sub:last-of-type {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════
   2. DEVELOPMENT JOURNEY (TIMELINE)
   ═══════════════════════════════════════════════════════ */
.ex-journey {
  background: var(--home-bg);
}
.ex-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
}
.ex-timeline-item {
  display: flex;
  gap: 28px;
  position: relative;
}
.ex-timeline-marker {
  flex: 0 0 auto;
  width: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}
.ex-timeline-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--home-accent);
  opacity: .7;
  line-height: 1;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.ex-timeline-line {
  width: 1px;
  flex: 1 1 0%;
  min-height: 20px;
  background: var(--home-line);
}
.ex-timeline-item:last-child .ex-timeline-line {
  display: none;
}
.ex-timeline-content {
  flex: 1 1 0%;
  min-width: 0;
  padding-bottom: 36px;
}
.ex-timeline-content h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--home-text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.ex-timeline-content p {
  font-size: .95rem;
  color: var(--home-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.ex-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ex-tags span {
  padding: 5px 12px;
  background: var(--home-surface-2);
  border: 1px solid var(--home-line);
  border-radius: 3px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--home-muted);
  transition: border-color .2s ease, color .2s ease;
}
.ex-tags span:hover {
  border-color: var(--home-accent);
  color: var(--home-text);
}

/* ─── DIVIDER ───────────────────────────────────────── */
.ex-divider {
  height: 1px;
  background: var(--home-line);
  margin-block: 0;
  margin-inline: max(20px, 5vw);
}

/* ═══════════════════════════════════════════════════════
   3. PROJECT EXPERIENCE
   ═══════════════════════════════════════════════════════ */
.ex-projects {
  background: var(--home-bg);
  padding-block: 0;
}
.ex-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ex-project-card {
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s ease, transform .2s ease;
}
.ex-project-card:hover {
  border-color: var(--home-accent);
  transform: translateY(-3px);
}
.ex-project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.ex-project-card h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--home-text);
  line-height: 1.3;
}
.ex-project-card h3 a {
  text-decoration: none;
  color: inherit;
  transition: color .2s ease;
}
.ex-project-card h3 a:hover {
  color: var(--home-accent);
}
.ex-project-role {
  font-size: .78rem;
  font-weight: 600;
  color: var(--home-accent);
  letter-spacing: .02em;
  white-space: nowrap;
}
.ex-project-card > p {
  font-size: .92rem;
  color: var(--home-muted);
  line-height: 1.7;
  margin: 0;
}
.ex-project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 4px;
}
.ex-project-tech span {
  padding: 5px 12px;
  background: var(--home-surface-2);
  border: 1px solid var(--home-line);
  border-radius: 3px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--home-muted);
}
.ex-project-learned {
  font-size: .88rem;
  color: var(--home-muted);
  line-height: 1.65;
  padding-top: 14px;
  border-top: 1px solid var(--home-line);
  margin-top: auto;
}
.ex-project-learned strong {
  color: var(--home-text);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   4. TECHNICAL EXPERIENCE
   ═══════════════════════════════════════════════════════ */
.ex-technical {
  background: var(--home-surface);
}
.ex-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ex-tech-card {
  background: var(--home-bg);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s ease, transform .2s ease;
}
.ex-tech-card:hover {
  border-color: var(--home-accent);
  transform: translateY(-3px);
}
.ex-tech-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--home-surface-2);
  border: 1px solid var(--home-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--home-accent);
  transition: background .2s ease, border-color .2s ease;
}
.ex-tech-card:hover .ex-tech-icon {
  background: var(--home-accent);
  border-color: var(--home-accent);
  color: #fff;
}
.ex-tech-card h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--home-text);
  margin: 0;
}
.ex-tech-card p {
  font-size: .88rem;
  color: var(--home-muted);
  line-height: 1.7;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════
   5. CURRENT FOCUS
   ═══════════════════════════════════════════════════════ */
.ex-focus {
  background: var(--home-bg);
}
.ex-focus-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
}
.ex-focus-item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--home-line);
  align-items: flex-start;
}
.ex-focus-item:last-child {
  border-bottom: none;
}
.ex-focus-item i {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--home-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  margin-top: 3px;
}
.ex-focus-item h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--home-text);
  margin-bottom: 6px;
}
.ex-focus-item p {
  font-size: .92rem;
  color: var(--home-muted);
  line-height: 1.65;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════
   6. CTA
   ═══════════════════════════════════════════════════════ */
.ex-cta {
  background: var(--home-bg);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.ex-cta-inner {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}
.ex-cta-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}
.ex-cta-inner > p {
  font-size: 1.02rem;
  color: var(--home-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.ex-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.ex-foot-inner {
  width: min(100%, var(--home-max));
  margin-inline: auto;
  padding-block: 66px 30px;
  padding-inline: max(20px, 5vw);
}
.ex-foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 48px;
}
.ex-foot-brand p {
  font-size: .84rem;
  color: var(--home-muted);
  line-height: 1.72;
  margin-top: 16px;
  max-width: 100%;
}
.ex-foot-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.ex-foot-social a {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--home-muted);
  font-size: .9rem;
  transition: all .2s ease;
}
.ex-foot-social a:hover {
  background: var(--home-accent);
  border-color: var(--home-accent);
  color: #fff;
  transform: translateY(-3px);
}
.ex-foot-col h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--home-muted);
  margin-bottom: 18px;
}
.ex-foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ex-foot-col ul li a {
  font-size: .84rem;
  color: var(--home-muted);
  text-decoration: none;
  transition: color .2s ease;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.5;
}
.ex-foot-col ul li a i {
  font-size: .72rem;
  color: var(--home-accent);
  width: 12px;
}
.ex-foot-col ul li a:hover {
  color: var(--home-accent);
}
.ex-foot-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--home-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.ex-foot-bottom p {
  font-size: .78rem;
  color: var(--home-muted);
}
.ex-foot-avail {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .76rem;
  color: var(--home-accent);
  font-weight: 600;
}
.ex-foot-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: orPulse 2s infinite;
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
#nav {
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(10, 15, 20, .88);
  border-bottom: none;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  transition: background .3s, box-shadow .3s, height .3s;
}
html[data-theme="light"] #nav {
  background: rgba(244, 243, 239, .88);
}
#nav.is-compact {
  height: 56px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
}
html[data-theme="light"] #nav.is-compact {
  box-shadow: 0 4px 24px rgba(23, 32, 39, .06);
}
.ex-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.ex-nav-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.ex-nav-brand {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--home-text);
}
.ex-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ex-nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--home-muted);
  text-decoration: none;
  border-radius: var(--home-radius);
  transition: color .2s, background .2s;
  position: relative;
}
.ex-nav-links a:hover {
  color: var(--home-text);
  background: var(--home-line);
}
.ex-nav-links a.active {
  color: var(--home-text);
}
.ex-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--home-accent);
  border-radius: 1px;
}
.ex-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ex-theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--home-line);
  background: transparent;
  color: var(--home-muted);
  font-size: .92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, border-color .2s, background .2s;
}
.ex-theme-btn:hover {
  color: var(--home-text);
  border-color: var(--home-text);
  background: var(--home-line);
}
.ex-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--home-accent);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  border-radius: var(--home-radius);
  transition: background .2s, box-shadow .2s;
}
.ex-nav-cta:hover {
  background: #f09a58;
  box-shadow: 0 4px 16px rgba(240, 122, 26, .25);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--home-text);
  border-radius: 2px;
  transition: all .3s;
  display: block;
}
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.ex-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .3s;
}
.ex-mobile-overlay.open {
  display: block;
  opacity: 1;
}
.ex-mobile-menu {
  display: none;
}
.ex-mobile-menu.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  right: 0;
  background: rgba(10, 15, 20, .97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--home-line);
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom,0px));
  z-index: 999;
  max-height: calc(100svh - 68px);
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
html[data-theme="light"] .ex-mobile-menu {
  background: rgba(244, 243, 239, .98);
}
.ex-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.ex-mobile-close {
  background: none;
  border: none;
  color: var(--home-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ex-mobile-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ex-mobile-links li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 2px;
  color: var(--home-muted);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 500;
  border-bottom: 1px solid var(--home-line);
  transition: color .2s, padding-left .2s;
}
.ex-mobile-links li a:last-child {
  border-bottom: none;
}
.ex-mobile-links li a:hover {
  color: var(--home-text);
  padding-left: 6px;
}
.ex-mobile-links li a.active {
  color: var(--home-text);
}
.ex-mobile-links li a.active i {
  color: var(--home-accent);
}
.ex-mobile-links li a i {
  width: 22px;
  text-align: center;
  color: var(--home-muted);
}
.ex-mobile-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--home-line);
}
.ex-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--home-accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--home-radius);
  font-weight: 700;
  font-size: .9rem;
  margin-top: 10px;
  transition: background .2s;
}
.ex-mobile-cta:hover {
  background: #f09a58;
}
.ex-theme-btn--full {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 2px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--home-line);
  color: var(--home-muted);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.ex-theme-btn--full i {
  width: 22px;
  text-align: center;
}
.ex-theme-btn--full:hover {
  color: var(--home-text);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .ex-nav-links { display: none; }
  .ex-nav-cta { display: none; }
  .hamburger { display: flex; }
  .ex-project-grid { grid-template-columns: 1fr; }
  .ex-tech-grid { grid-template-columns: 1fr; }
  .ex-foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  #nav { padding: 14px 20px; gap: 12px; }
  #nav.is-compact { padding: 10px 20px; }
  .ex-hero h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .ex-project-card { padding: 22px; }
  .ex-tech-card { padding: 22px; }
  .ex-timeline-item { gap: 16px; }
  .ex-timeline-marker { width: 20px; }
  .ex-timeline-num { font-size: 1.1rem; }
  .ex-foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .ex-foot-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .ex-foot-inner { padding-block: 48px 28px; padding-inline: 4%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
