/* ===================================
   CSS VARIABLES & RESET
=================================== */
:root {
  --black: #0d0d0d;
  --dark: #111111;
  --dark2: #181818;
  --dark3: #222222;
  --white: #ffffff;
  --white-dim: rgba(255,255,255,0.08);
  --white-mid: rgba(255,255,255,0.15);
  --orange: #ff7a00;
  --yellow: #ffd000;
  --orange-dim: rgba(255,122,0,0.15);
  --yellow-dim: rgba(255,208,0,0.1);
  --gradient: linear-gradient(135deg, var(--orange), var(--yellow));
  --gradient-text: linear-gradient(90deg, var(--orange), var(--yellow));
  --glow-orange: 0 0 30px rgba(255,122,0,0.4);
  --glow-sm: 0 0 15px rgba(255,122,0,0.25);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
  --font-main: 'Poppins', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

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

body {
  font-family: var(--font-main);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.7;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ===================================
   SCROLLBAR
=================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--gradient);
  border-radius: 3px;
}

/* ===================================
   NAVBAR
=================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-bracket {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-typed {
  color: var(--white);
}

.logo-typed::after {
  content: '|';
  color: var(--orange);
  -webkit-text-fill-color: var(--orange);
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
  margin-left: 1px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span { background: var(--orange); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================
   HERO SECTION
=================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 2rem 5rem;
  width: 100%;
  max-width: 100vw;
}

/* Parallax Layers */
.parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}

.layer-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(255,122,0,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(255,208,0,0.07) 0%, transparent 50%),
    var(--black);
  z-index: 0;
}

.layer-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.layer-orbs { z-index: 2; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: floatOrb 8s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}

.orb-1 {
  width: 400px; height: 400px;
  background: rgba(255,122,0,0.15);
  top: -100px; right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px; height: 300px;
  background: rgba(255,208,0,0.1);
  bottom: -80px; left: 5%;
  animation-delay: -3s;
}

.orb-3 {
  width: 200px; height: 200px;
  background: rgba(255,122,0,0.1);
  top: 50%; left: 40%;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
  max-width: 850px;
  width: 100%;
}

/* Profile */
.profile-wrapper {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: heroFadeIn 1s ease both;
}

.profile-ring {
  position: relative;
  width: 260px; height: 260px;
  border-radius: 50%;
  padding: 4px;
  background: var(--gradient);
  box-shadow: var(--glow-orange), 0 0 60px rgba(255,122,0,0.2);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { box-shadow: var(--glow-orange), 0 0 60px rgba(255,122,0,0.2); }
  50% { box-shadow: 0 0 50px rgba(255,122,0,0.6), 0 0 100px rgba(255,122,0,0.3); }
}

.profile-img-wrap {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--dark3);
  position: relative;
}

.profile-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,122,0,0.1);
  border: 1px solid rgba(255,122,0,0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--orange);
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px; height: 8px;
  background: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e676;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* Hero Text */
.hero-text {
  flex: 1;
  width: 100%;
  animation: heroSlideIn 1s ease 0.2s both;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-greeting::before {
  content: '—';
  color: rgba(255,122,0,0.5);
}
.hero-greeting::after {
  content: '—';
  color: rgba(255,122,0,0.5);
}

.hero-name {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.name-highlight {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-roles {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.2rem;
  min-height: 2rem;
  justify-content: center;
}

.typed-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.cursor-blink {
  color: var(--orange);
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2rem;
  font-style: italic;
}

.tagline-accent {
  color: var(--yellow);
  font-style: normal;
  font-weight: 600;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn svg { width: 18px; height: 18px; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--gradient);
  color: var(--black);
  box-shadow: var(--glow-sm);
}

.btn-primary:hover {
  box-shadow: var(--glow-orange);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255,122,0,0.08);
  transform: translateY(-2px);
}

/* Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  right: 2.5rem;
  left: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  z-index: 10;
  pointer-events: none;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,122,0,0.6), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* Hero Animations */
@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===================================
   SECTION COMMON
=================================== */
section { padding: 7rem 0; overflow-x: hidden; max-width: 100vw; }
/* Hero overrides the global section padding to control its own top/bottom spacing */
section.hero { padding: 8rem 2rem 5rem; }

.section-header {
  margin-bottom: 4rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

/* Running ticker strip — full viewport width, no fade shadows */
.section-tag-ticker {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  overflow: hidden;
  height: 3rem;
  border-top: 1px solid var(--orange);
  border-bottom: 1px solid var(--orange);
  contain: layout style;
}

.section-tag-run {
  display: inline-block;
  white-space: nowrap;
  animation: tickerRun 18s linear infinite;
  color: rgba(255,122,0,0.45);
  font-size: 1.75rem;
  letter-spacing: 0.12em;
  will-change: transform;
}

@keyframes tickerRun {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0;
  width: 60px; height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Reveal Animation — Fade In + Fade Out */
.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--stagger-delay, 0s);
  will-change: opacity, transform;
}

/* Fade IN — element enters viewport from below */
.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Fade OUT upward — scrolled past (exits top of viewport) */
.reveal.fade-out-up {
  opacity: 0;
  transform: translate3d(0, -30px, 0);
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0s;
}

/* Fade OUT downward — scrolled back up (exits bottom of viewport) */
.reveal.fade-out-down {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0s;
}

.reveal.fade-out {
  opacity: 0;
  transform: translate3d(0, -30px, 0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* ===================================
   ABOUT SECTION
=================================== */
.about {
  background:
    /* Top is fully opaque #0d0d0d to match hero, fades to semi-transparent toward center */
    linear-gradient(to bottom, rgba(13,13,13,1) 0%, rgba(10,10,15,0.97) 10%, rgba(10,10,15,0.92) 55%, rgba(10,10,15,0.75) 100%),
    url('../images/backgrounds/bg-about.png') left center / 80% auto no-repeat scroll;
  position: relative;
  isolation: isolate;
}
.about::after {
  content: '';
  position: absolute; inset: 0;
  /* Top uses --black to match hero bg exactly — eliminates visible seam/band between sections */
  background:
    linear-gradient(to bottom, var(--black) 0%, transparent 18%, transparent 85%, var(--black) 100%),
    radial-gradient(ellipse 40% 70% at 95% 50%, rgba(255,106,0,0.06), transparent 70%);
  pointer-events: none; z-index: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  color: rgba(255,255,255,0.9);
}

.text-accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.about-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
  line-height: 1.9;
}

.about-body em { color: rgba(255,255,255,0.8); font-style: italic; }

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  transition: var(--transition);
  cursor: default;
}

.info-card:hover {
  border-color: rgba(255,122,0,0.3);
  background: rgba(255,122,0,0.05);
  transform: translateY(-4px);
  box-shadow: var(--glow-sm);
}

.info-icon { font-size: 1.5rem; line-height: 1; }

.info-card h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange);
  margin-bottom: 0.25rem;
}

.info-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.info-card em { color: rgba(255,255,255,0.4); font-size: 0.78rem; }

/* ===================================
   SKILLS SECTION
=================================== */
.skills {
  background:
    linear-gradient(180deg,
      var(--black) 0%,
      rgba(5,5,5,0.78) 20%,
      rgba(5,5,5,0.65) 50%,
      rgba(5,5,5,0.78) 80%,
      var(--black) 100%),
    url('../images/backgrounds/bg-skills.png') center center / cover no-repeat fixed;
  position: relative;
  isolation: isolate;
}
.skills::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(255,122,0,0.06), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255,208,0,0.04), transparent 60%);
  pointer-events: none; z-index: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.skills-col-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.skill-bars { display: flex; flex-direction: column; gap: 1.25rem; }

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.skill-pct {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.skill-track {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 8px; height: 100%;
  background: rgba(255,255,255,0.5);
  border-radius: 3px;
}

.skills-grid-row2 {
  margin-top: 3rem;
}

.skills-grid-single {
  margin-top: 3rem;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  transition: border-color var(--transition);
}

.skills-grid-single:hover {
  border-color: rgba(255,122,0,0.2);
}

.col-icon {
  margin-right: 0.4rem;
  font-size: 1.1rem;
}

.hosting-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 3rem;
}

.tools-section { margin-top: 3rem; }

/* ── Categorized Tool Cards ── */
.toolCards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.toolCard {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

/* subtle top-left gradient accent */
.toolCard::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius) var(--radius) 0 0;
}

.toolCard:hover {
  border-color: rgba(255,122,0,0.3);
  box-shadow: 0 8px 32px rgba(255,122,0,0.08);
  transform: translate3d(0, -3px, 0);
}

.toolCard:hover::before {
  opacity: 1;
}

.toolCard-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.toolCard-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.toolCard-title {
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.toolCard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.toolCard-tag {
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.7);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  cursor: default;
}

.toolCard:hover .toolCard-tag {
  background: rgba(255,122,0,0.07);
  border-color: rgba(255,122,0,0.2);
  color: rgba(255,255,255,0.88);
}

/* ===================================
   HOW I BUILD & DEPLOY — Section Wrapper
=================================== */
.ai-configs-section {
  padding: 6rem 0;
  position: relative;
}

/* Space between the three info cards */
.ai-configs-section .ai-flow-section,
.ai-configs-section .ai-config-section {
  margin-top: 0;
  margin-bottom: 2rem;
  width: 100%;
}

.ai-configs-section .ai-flow-section:last-of-type,
.ai-configs-section .ai-config-section:last-of-type {
  margin-bottom: 0;
}

/* Override old margin-top on ai-flow-section when inside this section */
.ai-configs-section .ai-flow-section {
  margin-top: 0;
}

/* ===================================
   AI CONFIG & CI/CD SECTIONS
=================================== */

/* Shared wrapper — reuses ai-flow-section visual style */
.ai-config-section {
  margin-top: 0;
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, rgba(255,122,0,0.04) 0%, rgba(10,10,15,0.6) 50%, rgba(255,122,0,0.03) 100%);
  border: 1px solid rgba(255,122,0,0.15);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.ai-config-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,122,0,0.07), transparent 70%);
  pointer-events: none;
}

/* ── n8n Compare Cards ── */
.aiCfg-block { margin-bottom: 2rem; }
.aiCfg-block-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.aiCfg-icon { font-size: 1.3rem; }
.aiCfg-block-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.aiCfg-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  background: rgba(255,122,0,0.12);
  border: 1px solid rgba(255,122,0,0.3);
  color: var(--orange);
}
.aiCfg-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.aiCfg-compare {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 1rem;
}
.aiCfg-compare-card {
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(255,255,255,0.07);
  background: var(--dark2);
}
.aiCfg-compare-card--warn {
  border-color: rgba(255,208,0,0.15);
  background: rgba(255,208,0,0.03);
}
.aiCfg-compare-card--preferred {
  border-color: rgba(255,122,0,0.3);
  background: rgba(255,122,0,0.06);
  box-shadow: 0 0 20px rgba(255,122,0,0.06);
}
.aiCfg-compare-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.85);
}
.aiCfg-compare-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.aiCfg-compare-list li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}
.aiCfg-compare-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: rgba(255,122,0,0.5);
}
.aiCfg-compare-card--preferred .aiCfg-compare-list li {
  color: rgba(255,255,255,0.75);
}

/* ── Free API Row ── */
.aiCfg-api-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.aiCfg-api-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  transition: border-color var(--transition), transform var(--transition);
}
.aiCfg-api-item:hover {
  border-color: rgba(255,122,0,0.3);
  transform: translate3d(0,-2px,0);
}
.aiCfg-api-icon { font-size: 1.2rem; line-height: 1; }
.aiCfg-api-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
}
.aiCfg-api-note {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.1rem;
}

/* ── Lean Philosophy Statement ── */
.lean-philosophy {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, rgba(255,208,0,0.06) 0%, rgba(255,122,0,0.05) 100%);
  border: 1px solid rgba(255,208,0,0.2);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.lean-philosophy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 0% 50%, rgba(255,208,0,0.05), transparent 70%);
  pointer-events: none;
}
.lean-philosophy-bar {
  flex-shrink: 0;
  width: 3px;
  height: 52px;
  border-radius: 3px;
  background: var(--gradient);
}
.lean-philosophy-body {
  flex: 1;
}
.lean-philosophy-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.35rem;
  opacity: 0.85;
}
.lean-philosophy-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin: 0;
}
.lean-philosophy-text strong { color: var(--white); }
.lean-philosophy-text em {
  color: var(--orange);
  font-style: normal;
  font-weight: 600;
}
.lean-philosophy-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ── CI/CD Pipeline ── */
.cicd-pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.cicd-step {
  flex: 1;
  min-width: 160px;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem;
  position: relative;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.cicd-step:hover {
  border-color: rgba(255,122,0,0.3);
  transform: translate3d(0,-3px,0);
  box-shadow: 0 8px 24px rgba(255,122,0,0.07);
}
.cicd-step-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}
.cicd-step-icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.cicd-step-body h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.cicd-step-body p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.cicd-step-body code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255,122,0,0.1);
  color: var(--orange);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.cicd-arrow {
  font-size: 1.2rem;
  color: rgba(255,122,0,0.5);
  align-self: center;
  flex-shrink: 0;
  padding-top: 0.5rem;
}

/* ── CI/CD Stack Row ── */
.cicd-stack-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
}
.cicd-stack-item {
  flex: 1;
  min-width: 140px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cicd-stack-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0.7;
}
.cicd-stack-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.cicd-stack-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.07);
  flex-shrink: 0;
}

/* ===================================
   FILTER TABS
=================================== */
.filter-tabs {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  background: var(--dark2);
  border: 1.5px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: rgba(255,122,0,0.4);
  color: rgba(255,255,255,0.85);
}

.filter-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: var(--black);
  box-shadow: var(--glow-sm);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0,0,0,0.2);
  transition: var(--transition);
}

.filter-btn.active .filter-count {
  background: rgba(0,0,0,0.25);
  color: var(--black);
}

/* Card hide/show animation */
.project-card.hidden {
  display: none;
}

.project-card.fade-in {
  animation: cardFadeIn 0.4s ease both;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===================================
   AI FLOW SECTION
=================================== */
.ai-flow-section {
  margin-top: 0;
  margin-bottom: 2rem;
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, rgba(255,122,0,0.04) 0%, rgba(10,10,15,0.6) 50%, rgba(255,122,0,0.03) 100%);
  border: 1px solid rgba(255,122,0,0.15);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.ai-flow-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,122,0,0.08), transparent 70%);
  pointer-events: none;
}

/* Label */
.ai-flow-label { margin-bottom: 2.5rem; }
.ai-flow-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--orange);
  border: 1px solid rgba(255,122,0,0.4);
  border-radius: 4px;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.75rem;
}
.ai-flow-heading {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.ai-flow-sub {
  text-align: justify;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  width: 100%;
}
.ai-flow-sub strong { color: rgba(255,255,255,0.8); }
.ai-flow-sub em { color: rgba(255,255,255,0.7); font-style: italic; }

/* How I Integrate LLMs intro block */
.ai-llm-intro {
  margin-bottom: 1.75rem;
  padding: 1.1rem 1.4rem;
  background: rgba(255,122,0,0.04);
  border-left: 3px solid rgba(255,122,0,0.4);
  border-radius: 0 10px 10px 0;
}
.ai-llm-intro-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.4rem;
}
.ai-llm-intro-body {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0;
}

/* Centered pipeline track */
.pipeline-track--centered {
  justify-content: center;
}

/* Principles */
.ai-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.ai-principle-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  transition: border-color 0.3s, background 0.3s;
}
.ai-principle-item:hover {
  border-color: rgba(255,122,0,0.3);
  background: rgba(255,122,0,0.04);
}
.ai-principle-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  background: rgba(255,122,0,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
}
.ai-principle-icon svg { width: 18px; height: 18px; }
.ai-principle-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
}
.ai-principle-item p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 0;
}

/* Pipeline */
.pipeline-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}
.pipeline-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,122,0,0.3) transparent;
}
.pipeline-track::-webkit-scrollbar { height: 3px; }
.pipeline-track::-webkit-scrollbar-thumb { background: rgba(255,122,0,0.3); border-radius: 3px; }

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-width: 170px;
  max-width: 190px;
  flex-shrink: 0;
}
.pipeline-step--featured .pipeline-card {
  border-color: rgba(255,122,0,0.45);
  background: rgba(255,122,0,0.06);
}
.pipeline-node {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.node-gpt    { background: rgba(16,163,127,0.15); border-color: rgba(16,163,127,0.4); color: #10a37f; }
.node-gemini { background: rgba(66,133,244,0.15); border-color: rgba(66,133,244,0.4); color: #4285f4; }
.node-claude { background: rgba(255,122,0,0.15);  border-color: rgba(255,122,0,0.5);  color: var(--orange); box-shadow: 0 0 20px rgba(255,122,0,0.2); }
.node-output { background: rgba(0,230,118,0.12);  border-color: rgba(0,230,118,0.4);  color: #00e676; }

.pipeline-step-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.badge-featured { color: var(--orange); }
.badge-output   { color: #00e676; }

.pipeline-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  width: 100%;
}
.card-featured {
  border-color: rgba(255,122,0,0.4);
  background: rgba(255,122,0,0.05);
}
.pipeline-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.6rem;
}
.pipeline-model {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.gpt-label    { color: #10a37f; }
.gemini-label { color: #4285f4; }
.claude-label { color: var(--orange); }
.output-label { color: #00e676; }

.pipeline-role {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pipeline-card p {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0;
}
.pipeline-card p strong { color: rgba(255,255,255,0.8); }

.pipeline-arrow {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  margin-top: 14px; /* align with node center */
  color: rgba(255,122,0,0.35);
  flex-shrink: 0;
}
.pipeline-arrow svg { width: 32px; height: 20px; }

/* ===================================
   PROJECTS SECTION
=================================== */
.projects {
  background:
    linear-gradient(180deg, rgba(10,10,15,0.97) 0%, rgba(10,10,15,0.87) 40%, rgba(10,10,15,0.87) 60%, rgba(10,10,15,0.97) 100%),
    url('../images/backgrounds/bg-projects.png') center center / 80% auto no-repeat scroll;
  position: relative;
  isolation: isolate;
  overflow: hidden !important;
}
.projects::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 20%, rgba(255,106,0,0.05), transparent 65%),
    radial-gradient(ellipse 100% 30% at 50% 0%, rgba(5,5,5,0.6), transparent 100%);
  pointer-events: none; z-index: 0;
}

.projects-subtitle {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.45);
  max-width: 680px;
  line-height: 1.8;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,122,0,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--glow-sm);
}

/* Image area */
.project-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  /* Match card's top corners so the image doesn't create a double-radius */
  border-radius: var(--radius) var(--radius) 0 0;
}

.project-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--card-color, #ff7a00) 20%, transparent), var(--dark3));
  background-color: var(--dark3);
}

.project-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 20px rgba(255,122,0,0.3));
  animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* NDA hover overlay on image */
.project-nda-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-nda-overlay { opacity: 1; }

.nda-lock-icon { font-size: 2rem; }

.nda-overlay-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* Card body */
.project-body {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ptag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: rgba(255,122,0,0.1);
  color: var(--orange);
  border: 1px solid rgba(255,122,0,0.2);
  font-family: var(--font-mono);
}

/* NDA Badge */
.nda-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  background: rgba(255,208,0,0.08);
  border: 1px solid rgba(255,208,0,0.3);
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nda-lock { font-size: 0.7rem; }

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

/* Project meta (date + client type) */
.project-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.meta-item {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
}

.project-desc {
  font-size: 0.865rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: 1rem;
  flex: 1;
}

/* Outcome result pill */
.project-result {
  background: rgba(255,122,0,0.06);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.result-label {
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-right: 0.3rem;
}

/* Request Access Button */
.btn-request-access {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: transparent;
  border: 1.5px solid rgba(255,122,0,0.4);
  color: var(--orange);
  border-radius: 50px;
  font-size: 0.83rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

.btn-request-access::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-request-access:hover {
  border-color: var(--orange);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: var(--glow-sm);
}

.btn-request-access:hover::before { opacity: 1; }

.btn-request-access span,
.btn-request-access svg {
  position: relative;
  z-index: 1;
}

.btn-request-access svg {
  width: 15px; height: 15px;
  transition: transform var(--transition);
}

.btn-request-access:hover svg { transform: translateX(4px); }

.lock-icon { font-size: 0.8rem; position: relative; z-index: 1; }

/* Trust note at bottom */
.projects-trust-note {
  margin-top: 3rem;
  text-align: center;
  padding: 1.25rem 2rem;
  background: rgba(255,208,0,0.04);
  border: 1px solid rgba(255,208,0,0.15);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}

.trust-link {
  color: var(--orange);
  font-weight: 600;
  position: relative;
}

.trust-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gradient);
  transition: width var(--transition);
}

.trust-link:hover::after { width: 100%; }

/* Ongoing badge */
.ongoing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  background: rgba(0, 200, 130, 0.08);
  border: 1px solid rgba(0, 200, 130, 0.3);
  color: #00c882;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  white-space: nowrap;
  animation: ongoingPulse 2.5s ease-in-out infinite;
}

@keyframes ongoingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,130,0); }
  50% { box-shadow: 0 0 8px 2px rgba(0,200,130,0.2); }
}

/* Personal project card variant */
.project-card--personal {
  border-color: rgba(255,208,0,0.15);
}

.project-card--personal:hover {
  border-color: rgba(255,208,0,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 15px rgba(255,208,0,0.2);
}

.personal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  background: rgba(255,208,0,0.1);
  border: 1px solid rgba(255,208,0,0.35);
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.project-personal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-personal-overlay { opacity: 1; }

.project-link-btn {
  padding: 0.7rem 1.75rem;
  background: var(--gradient);
  color: var(--black);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  transition: var(--transition);
  transform: translateY(10px);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover .project-link-btn {
  transform: translateY(0);
  box-shadow: var(--glow-sm);
}

.personal-project-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}

.plink-live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--yellow);
  position: relative;
  transition: color var(--transition);
}

.plink-live::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gradient);
  transition: width var(--transition);
}

.plink-live:hover::after { width: 100%; }

/* ===================================
   EXPERIENCE / TIMELINE SECTION
=================================== */
.experience {
  background:
    linear-gradient(90deg, rgba(5,5,5,0.97) 0%, rgba(5,5,5,0.90) 50%, rgba(5,5,5,0.72) 100%),
    url('../images/backgrounds/bg-experience.jpg') center center / cover no-repeat scroll;
  position: relative;
  isolation: isolate;
}
.experience::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--dark) 0%, transparent 12%, transparent 88%, var(--dark) 100%),
    radial-gradient(ellipse 50% 60% at 100% 50%, rgba(255,190,0,0.04), transparent 70%);
  pointer-events: none; z-index: 0;
}

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Each timeline row */
.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 1.5rem;
  position: relative;
}

/* Left marker column: dot + vertical line */
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.35rem;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient);
  border: 3px solid var(--dark);
  box-shadow: var(--glow-sm);
  flex-shrink: 0;
  z-index: 2;
  transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.35);
  box-shadow: var(--glow-orange);
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, rgba(255,122,0,0.4), rgba(255,122,0,0.05));
  margin-top: 6px;
  min-height: 40px;
}

/* Card */
.timeline-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
  margin-bottom: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--gradient);
  transition: width 0.5s ease;
  border-radius: 3px 3px 0 0;
}

.timeline-item:hover .timeline-card {
  border-color: rgba(255,122,0,0.25);
  transform: translateX(6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), var(--glow-sm);
}

.timeline-item:hover .timeline-card::before { width: 100%; }

/* Card header: company + date side by side */
.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.timeline-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.timeline-company {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  font-family: var(--font-mono);
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.role-tech {
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.timeline-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.timeline-date {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.date-icon { font-size: 0.75rem; }

.timeline-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.timeline-badge.fulltime {
  background: rgba(255,122,0,0.1);
  border: 1px solid rgba(255,122,0,0.25);
  color: var(--orange);
}

.timeline-badge.freelance {
  background: rgba(255,208,0,0.08);
  border: 1px solid rgba(255,208,0,0.25);
  color: var(--yellow);
}

/* Description */
.timeline-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Bullet highlights */
.timeline-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  padding-left: 0;
}

.timeline-highlights li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.6;
}

.timeline-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gradient);
}

/* Tech tags */
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tl-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: rgba(255,122,0,0.08);
  color: var(--orange);
  border: 1px solid rgba(255,122,0,0.18);
  font-family: var(--font-mono);
  transition: var(--transition);
}

.tl-tag:hover {
  background: rgba(255,122,0,0.15);
  border-color: rgba(255,122,0,0.4);
}

/* Experience section stack tags */
.tc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tc-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: rgba(255, 122, 0, 0.08);
  color: var(--orange);
  border: 1px solid rgba(255, 122, 0, 0.3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.tc-tag:hover {
  background: rgba(255, 122, 0, 0.15);
  border-color: rgba(255, 122, 0, 0.5);
}

/* Experience bullet list */
.tc-desc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tc-desc-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.tc-desc-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Responsive */
/* Responsive styles moved to css/media-queries.css */

/* ===================================
   CERTIFICATIONS — FLIP CARDS + SMOKE
=================================== */
.certifications {
  background:
    linear-gradient(160deg, rgba(5,5,5,0.97) 0%, rgba(5,5,5,0.88) 50%, rgba(5,5,5,0.97) 100%),
    url('../images/backgrounds/bg-certifications.png') center 70% / 100% auto no-repeat scroll;
  position: relative;
  isolation: isolate;
}
.certifications::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--black) 0%, transparent 12%, transparent 88%, var(--black) 100%),
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(255,106,0,0.04), transparent 70%);
  pointer-events: none; z-index: 0;
}

.cert-subtitle {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
}

.cert-flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

/* ── Flip wrapper ── */
.cert-flip-wrap {
  perspective: 1000px;
  height: 320px;
}

.cert-flip-card {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: var(--radius);
}

.cert-flip-wrap:hover .cert-flip-card {
  transform: rotateY(180deg);
}

/* ── Smoke animation ── */
.smoke-container {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-flip-wrap:hover .smoke-container { opacity: 1; }

.smoke {
  position: absolute;
  bottom: -20px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,0,0.5), transparent 70%);
  animation: smokeRise 2s ease-in infinite;
  filter: blur(6px);
}

.smoke.s1 { left: 15%; animation-delay: 0s;    width: 18px; height: 18px; }
.smoke.s2 { left: 30%; animation-delay: 0.3s;  width: 14px; height: 14px; background: radial-gradient(circle, rgba(255,208,0,0.4), transparent 70%); }
.smoke.s3 { left: 50%; animation-delay: 0.6s;  width: 20px; height: 20px; }
.smoke.s4 { left: 68%; animation-delay: 0.15s; width: 12px; height: 12px; background: radial-gradient(circle, rgba(255,208,0,0.3), transparent 70%); }
.smoke.s5 { left: 82%; animation-delay: 0.45s; width: 16px; height: 16px; }

@keyframes smokeRise {
  0%   { transform: translateY(0) scale(1); opacity: 0.8; }
  50%  { transform: translateY(-60px) scale(2.5) translateX(8px); opacity: 0.4; }
  100% { transform: translateY(-120px) scale(4) translateX(-5px); opacity: 0; }
}

/* ── Shared face styles ── */
.cert-front,
.cert-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.5rem;
  overflow: hidden;
}

/* ── FRONT ── */
.cert-front {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  justify-content: center;
  gap: 0.5rem;
  transition: border-color 0.3s;
}

.cert-flip-wrap:hover .cert-front {
  border-color: rgba(255,122,0,0.3);
}

.cert-front-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(255,122,0,0.12), transparent 60%);
  pointer-events: none;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cert-flip-wrap:hover .cert-front-glow { opacity: 1; }

.cert-front-icon { font-size: 2rem; line-height: 1; }

.cert-front-issuer {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  font-family: var(--font-mono);
}

.cert-front-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
  flex: 1;
}

.cert-front-author {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

.cert-front-date {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-mono);
}

.cert-front-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.cert-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  background: rgba(255,208,0,0.08);
  color: var(--yellow);
  border: 1px solid rgba(255,208,0,0.2);
  font-family: var(--font-mono);
}

.cert-flip-hint {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  font-family: var(--font-mono);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

/* ── BACK ── */
.cert-back {
  background: var(--dark3);
  border: 1px solid rgba(255,122,0,0.25);
  transform: rotateY(180deg);
  justify-content: space-between;
  gap: 0.6rem;
  box-shadow: inset 0 0 40px rgba(255,122,0,0.05);
}

.cert-back-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  font-family: var(--font-mono);
}

/* PDF preview image */
.cert-back-preview {
  flex: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #fff;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.cert-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: var(--radius-sm);
}

.pdf-loading {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono);
  text-align: center;
  padding: 1rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.pdf-error {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
  text-align: center;
  padding: 1rem;
  line-height: 1.6;
}

/* View Certificate button */
.cert-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  background: var(--gradient);
  color: var(--black);
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 50px;
  transition: var(--transition);
  align-self: center;
  box-shadow: var(--glow-sm);
}

.cert-view-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-orange);
}

.cert-back-id {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.2);
  font-family: var(--font-mono);
  text-align: center;
  word-break: break-all;
  line-height: 1.4;
}

/* ── VA Training (no PDF) back ── */
.cert-back-training {
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

.cert-training-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.5rem;
}

.cert-training-icon { font-size: 2.5rem; }

.cert-training-note p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.cert-training-note-sub {
  font-size: 0.72rem !important;
  color: rgba(255,255,255,0.3) !important;
  font-style: italic;
}

/* Education highlight card */
.cert-education {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--dark2);
  border: 1px solid rgba(255,122,0,0.2);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.cert-education::after {
  content: '🏛️';
  position: absolute;
  right: 2rem; top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
  opacity: 0.04;
  pointer-events: none;
}

.cert-education:hover {
  border-color: rgba(255,122,0,0.4);
  box-shadow: var(--glow-sm);
}

.edu-icon { font-size: 2.5rem; flex-shrink: 0; margin-top: 0.2rem; }
.edu-body { flex: 1; }

.edu-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.edu-title {
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.edu-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

/* Responsive styles moved to css/media-queries.css */

/* ===================================
   COMMENTS SECTION
=================================== */
.comments-section {
  background: var(--black);
  isolation: isolate;
}
.comments-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,122,0,0.3), transparent);
}

/* ── Carousel ───────────────────── */
.comments-carousel-wrap {
  position: relative;
  margin-bottom: 5rem;
}

.comments-carousel {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius);
}

.comments-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-align: center;
  background: var(--dark2);
  border-radius: var(--radius);
  border: 1px solid rgba(255,122,0,0.08);
  width: 100%;
}
.comments-empty-icon { font-size: 2.5rem; }

/* ── Comment Card ───────────────── */
.comment-card {
  position: absolute;
  width: 100%;
  max-width: 700px;
  background: var(--dark2);
  border: 1px solid rgba(255,122,0,0.1);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  opacity: 0;
  transform: translateX(60px) scale(0.95);
  transition: all 0.55s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.comment-card.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,122,0,0.15);
}
.comment-card.prev  { transform: translateX(-80px) scale(0.92); opacity: 0; }
.comment-card.next  { transform: translateX(80px) scale(0.92); opacity: 0; }

/* Card internals */
.cc-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.cc-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(255,122,0,0.3);
}

.cc-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}
.cc-name  { font-weight: 700; font-size: 1rem; color: var(--white); }
.cc-email { font-family: var(--font-mono); font-size: 0.68rem; color: rgba(255,255,255,0.35); }
.cc-date  { font-family: var(--font-mono); font-size: 0.65rem; color: rgba(255,255,255,0.25); }

.cc-rating-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
  background: rgba(255,122,0,0.05);
  flex-shrink: 0;
}
.cc-rating-num   { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; line-height: 1; }
.cc-rating-label { font-size: 0.65rem; opacity: 0.8; }

.cc-project {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.cc-project-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cc-project-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--orange);
  font-weight: 500;
}

.cc-rating-track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.cc-rating-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
  box-shadow: 0 0 8px rgba(255,122,0,0.4);
}

.cc-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  font-style: italic;
}

/* ── Carousel Controls ──────────── */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.carousel-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--dark2);
  border: 1px solid rgba(255,122,0,0.2);
  color: var(--orange);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.carousel-btn:hover {
  background: rgba(255,122,0,0.1);
  border-color: var(--orange);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255,122,0,0.2);
}

.carousel-dots { display: flex; gap: 0.5rem; align-items: center; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.carousel-dot.active {
  background: var(--orange);
  width: 22px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(255,122,0,0.4);
}
.carousel-dot:hover { background: rgba(255,122,0,0.5); }

/* ── Comment Form ───────────────── */
.comment-form-wrap {
  background: var(--dark2);
  border: 1px solid rgba(255,122,0,0.12);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  max-width: 780px;
  margin: 0 auto;
}

.comment-form-header { margin-bottom: 2rem; }
.comment-form-title  {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}
.comment-form-sub { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.req-star { color: var(--orange); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }

.form-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-value-display {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  -webkit-text-fill-color: var(--orange);
  text-transform: none;
  letter-spacing: 0;
}

.form-input, .form-textarea {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-input:focus, .form-textarea:focus {
  border-color: rgba(255,122,0,0.5);
  box-shadow: 0 0 0 3px rgba(255,122,0,0.08);
}
.form-input.input-error  { border-color: #ff4444; }
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.7; }

.form-char-count {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
}

/* Rating slider */
.rating-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.rating-min, .rating-max {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}
.rating-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.rating-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 8px rgba(255,122,0,0.5);
  cursor: pointer;
  border: 2px solid var(--dark3);
}
.rating-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 8px rgba(255,122,0,0.5);
  cursor: pointer;
  border: 2px solid var(--dark3);
}

.rating-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.rating-bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.15s ease;
  box-shadow: 0 0 8px rgba(255,122,0,0.3);
}

/* Form footer */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
.form-privacy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  font-style: italic;
}
.comment-submit-btn { min-width: 180px; justify-content: center; }

.form-error { font-size: 0.72rem; color: #ff6b6b; }
.form-error-global { font-size: 0.82rem; color: #ff6b6b; margin-top: 0.75rem; text-align: center; }

.form-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 1rem 1.5rem;
  background: rgba(0,200,130,0.08);
  border: 1px solid rgba(0,200,130,0.25);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: #00c882;
}
.form-success span { font-size: 1.2rem; }

/* ===================================
   RESUME SECTION
=================================== */
.resume-section { background: var(--dark); }

.resume-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

/* Resume Tabs */
.resume-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(255,122,0,0.1);
  padding-bottom: 0;
}

.resume-tab-btn {
  padding: 0.85rem 1.5rem;
  background: transparent;
  border: 2px solid transparent;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 6px 6px 0 0;
  border-bottom: none;
}

.resume-tab-btn:hover {
  color: var(--orange);
  border-color: rgba(255,122,0,0.3);
}

.resume-tab-btn.active {
  color: var(--orange);
  border-color: var(--orange);
  border-bottom: 3px solid var(--orange);
  background: rgba(255,122,0,0.05);
}

.resume-tab-content {
  display: none;
}

.resume-tab-content.active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  gap: 0.75rem;
}

/* Top bar */
.resume-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--dark2);
  border: 1px solid rgba(255,122,0,0.15);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.25rem 1.75rem;
}

.resume-topbar-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.resume-icon { font-size: 2rem; line-height: 1; }

.resume-filename {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.resume-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

.resume-actions {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.3rem;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.resume-btn-view {
  background: transparent;
  border: 1.5px solid rgba(255,122,0,0.4);
  color: var(--orange);
}
.resume-btn-view:hover {
  background: rgba(255,122,0,0.1);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.resume-btn-download {
  background: var(--gradient);
  color: var(--black);
  box-shadow: var(--glow-sm);
}
.resume-btn-download:hover {
  box-shadow: var(--glow-orange);
  transform: translateY(-2px);
}

/* Viewer */
.resume-viewer-wrap {
  background: var(--dark3);
  border: 1px solid rgba(255,122,0,0.1);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.resume-viewer-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #2a2a2a;
}

.resume-page-img {
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  border-radius: 4px;
  animation: fadeInPage 0.3s ease;
}

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

/* Page controls */
.resume-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.resume-page-btn {
  padding: 0.45rem 1.2rem;
  background: transparent;
  border: 1px solid rgba(255,122,0,0.3);
  color: var(--orange);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}
.resume-page-btn:hover:not(:disabled) {
  background: rgba(255,122,0,0.1);
  border-color: var(--orange);
}
.resume-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.resume-page-info {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  min-width: 100px;
  text-align: center;
}

/* ===================================
   CONTACT SECTION
=================================== */
.contact {
  background:
    linear-gradient(170deg, rgba(5,5,5,0.97) 0%, rgba(5,5,5,0.90) 45%, rgba(5,5,5,0.75) 100%),
    url('../images/backgrounds/bg-contact.jpg') right bottom / 480px auto no-repeat scroll;
  position: relative;
  isolation: isolate;
}
.contact::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--black) 0%, transparent 12%, transparent 88%, var(--black) 100%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(255,106,0,0.05), transparent 65%);
  pointer-events: none; z-index: 0;
}

.contact-content { max-width: 750px; }

.contact-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.contact-item:hover {
  border-color: rgba(255,122,0,0.4);
  transform: translateY(-4px);
  box-shadow: var(--glow-sm);
}

.contact-item:hover::before { opacity: 0.04; }

.contact-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,122,0,0.1);
  border: 1px solid rgba(255,122,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--orange);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.contact-details {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}

.contact-item:hover .contact-value { color: var(--white); }

.contact-cta { margin-top: 1rem; }

/* ===================================
   COMMENTS SECTION
=================================== */
.comments-section {
  background: var(--dark2);
  position: relative;
  isolation: isolate;
}
.comments-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,122,0,0.3), transparent);
}

/* ── Carousel ─────────────────────────── */
.comments-carousel-wrap {
  position: relative;
  margin-bottom: 4rem;
}

.comments-carousel {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}

/* Empty State */
.comments-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 2rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  text-align: center;
}
.comments-empty-icon { font-size: 2.5rem; }

/* Comment Cards */
.comment-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.comment-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.comment-card-inner {
  background: var(--dark3);
  border: 1px solid rgba(255,122,0,0.1);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.comment-card-inner:hover {
  border-color: rgba(255,122,0,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.comment-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.commenter-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,122,0,0.3);
  background: rgba(255,122,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--orange);
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.commenter-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.commenter-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.commenter-project {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comment-rating-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
  flex-shrink: 0;
  min-width: 65px;
}
.rating-num {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}
.rating-label {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.comment-rating-bar-wrap {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.comment-rating-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.8s ease;
  box-shadow: 0 0 8px currentColor;
}

.comment-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 1.2rem;
  border-left: 3px solid rgba(255,122,0,0.4);
  padding-left: 1rem;
}

.comment-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.comment-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.28);
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--dark3);
  border: 1px solid rgba(255,122,0,0.2);
  color: var(--orange);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover:not(:disabled) {
  background: rgba(255,122,0,0.12);
  border-color: var(--orange);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255,122,0,0.2);
}
.carousel-btn:disabled { opacity: 0.25; cursor: not-allowed; }

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.carousel-dot.active {
  background: var(--orange);
  width: 22px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(255,122,0,0.4);
}
.carousel-dot:hover { background: rgba(255,122,0,0.5); }

/* ── Comment Form ────────────────────── */
.comment-form-wrap {
  background: var(--dark3);
  border: 1px solid rgba(255,122,0,0.12);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  max-width: 780px;
  margin: 0 auto;
  transition: border-color var(--transition);
}
.comment-form-wrap:hover { border-color: rgba(255,122,0,0.25); }

.comment-form-header { margin-bottom: 2rem; }
.comment-form-title {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--white);
}
.comment-form-sub {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.4);
}
.req-star { color: var(--orange); font-weight: 700; }

/* Form grid */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.25rem; }

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-input, .form-textarea {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.22); }
.form-input:focus, .form-textarea:focus {
  border-color: rgba(255,122,0,0.5);
  box-shadow: 0 0 0 3px rgba(255,122,0,0.1);
}
.form-input.input-error, .form-textarea.input-error {
  border-color: #ff4444;
  box-shadow: 0 0 0 3px rgba(255,68,68,0.1);
}
.form-textarea { resize: vertical; min-height: 110px; }

.form-error {
  font-size: 0.75rem;
  color: #ff6b6b;
  font-family: var(--font-mono);
  min-height: 1em;
}

.form-char-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.28);
  text-align: right;
  margin-top: 0.2rem;
}

/* Rating Slider */
.rating-value-display {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
  margin-left: auto;
}

.rating-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.rating-min, .rating-max {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.rating-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  outline: none;
  cursor: pointer;
}
.rating-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gradient);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255,122,0,0.4);
  border: 2px solid var(--black);
  transition: transform 0.15s ease;
}
.rating-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.rating-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gradient);
  cursor: pointer;
  border: 2px solid var(--black);
  box-shadow: 0 0 8px rgba(255,122,0,0.4);
}

.rating-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.rating-bar-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
  transition: width 0.3s ease, background 0.3s ease;
  box-shadow: 0 0 6px currentColor;
}

/* Form Footer */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.form-privacy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
}

.comment-submit-btn {
  min-width: 160px;
  justify-content: center;
}

/* Success / Error */
.form-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0,200,130,0.08);
  border: 1px solid rgba(0,200,130,0.25);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: #00c882;
  animation: fadeInUp 0.4s ease;
}
.form-error-global {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #ff6b6b;
  font-family: var(--font-mono);
  min-height: 1em;
}

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

/* ===================================
   FOOTER
=================================== */
.footer {
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-copy, .footer-quote {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-quote { font-style: italic; color: rgba(255,122,0,0.5); }

/* ===================================
   ANIMATION DELAYS (stagger)
=================================== */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.project-card:nth-child(1) { transition-delay: 0s; }
.project-card:nth-child(2) { transition-delay: 0.1s; }
.project-card:nth-child(3) { transition-delay: 0.2s; }
.project-card:nth-child(4) { transition-delay: 0.3s; }

/* ===================================
   RESPONSIVE
   All media queries moved to:
   css/media-queries.css
=================================== */
/* ===== GAMES SECTION ===== */
.games {
  padding: 6rem 0;
  background:
    linear-gradient(180deg, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.82) 40%, rgba(10,10,15,0.82) 60%, rgba(10,10,15,0.95) 100%),
    url('../images/backgrounds/bg-games.jpg') center center / cover no-repeat scroll;
  position: relative;
  isolation: isolate;
}
.games .projects-grid { margin-top: 2rem; }

/* ─────────────────────────────────────────
   CLIENT WORK — STACKED CARD DECK CAROUSEL
   Center = active card, full size, full opacity.
   Top-left peek = previous card (behind, dimmed).
   Bottom-right peek = next card (in front, dimmed).
   Left arrow disabled when no prev; right when no next.
   GPU-accelerated via top/left/transform/opacity transitions.
───────────────────────────────────────── */

.clientSlider {
  display: none;
  position: relative;
  width: 100%;
  margin-bottom: 4rem;
}

.clientSlider.clientSlider--active {
  display: block;
}

/* Stage: overflow visible so peek cards render at corners outside the active card area.
   Top/left padding gives room for prev peek at top-left corner. */
.sliderViewport {
  position: relative;
  width: 100%;
  padding: 50px 60px 60px 50px;
  box-sizing: border-box;
  overflow: visible;
}

/* Track: height driven by JS --stageH (active card scrollHeight) */
.sliderTrack {
  position: relative;
  width: 100%;
  height: var(--stageH, 700px);
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── All cards ── */
.sliderTrack .project-card {
  position: absolute;
  top:     var(--cTop,  0px);
  left:    var(--cLeft, 0px);
  width:   min(700px, 92vw);
  display: flex !important;
  flex-direction: column;

  transform-origin: top center;
  transform:  scale(var(--cScale, 1));
  opacity:    var(--cOpacity, 1);
  z-index:    var(--cZ, 1);

  transition:
    top       0.45s cubic-bezier(0.4, 0, 0.2, 1),
    left      0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity   0.35s ease;

  will-change: top, left, transform, opacity;
  pointer-events: none;
  border-radius: var(--radius);
}

/* Active card: fully interactive, full height */
.sliderTrack .project-card.sliderCard--active {
  pointer-events: auto;
  overflow: visible;
}

/* Peek cards: clipped — only the 20% nearest to the active card shows */
.sliderTrack .project-card.sliderCard--prev,
.sliderTrack .project-card.sliderCard--next {
  overflow: hidden;
  max-height: var(--peekH, 120px);
}

/* Dark overlay on all non-active cards */
.sliderTrack .project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
  border-radius: var(--radius);
  pointer-events: none;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}

.sliderTrack .project-card.sliderCard--active::after {
  opacity: 0;
}

/* ── Arrow Buttons ── */
.sliderArrow {
  position: absolute;
  z-index: 30;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.92);
  border: 1.5px solid rgba(255, 122, 0, 0.45);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s, box-shadow 0.22s, opacity 0.3s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.sliderArrow svg { width: 18px; height: 18px; }

.sliderArrow:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
  box-shadow: var(--glow-sm);
}

/* Disabled = ghosted, not clickable */
.sliderArrow:disabled {
  opacity: 0.18;
  pointer-events: none;
}

/* Prev arrow: left side, vertically centered in the sliderViewport */
.sliderArrowPrev {
  top:  50%;
  left: 0px;
  transform: translateY(-50%);
}

/* Next arrow: right side, vertically centered in the sliderViewport */
.sliderArrowNext {
  top:   50%;
  right: 0px;
  transform: translateY(-50%);
}

/* ── Dot Indicators ── */
.sliderDots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.sliderDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.28s, transform 0.28s, box-shadow 0.28s;
}

.sliderDot.sliderDot--active {
  background: var(--orange);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(255, 122, 0, 0.6);
}


/* ─────────────────────────────────────────
   GAMES — STACKED CARD DECK CAROUSEL
   Identical layout to client work slider.
   Center card is horizontally centered.
   Left/right arrows sit on the sides, vertically centered.
   Prev peeks top-left, next peeks bottom-right.
───────────────────────────────────────── */

.gamesSlider {
  position: relative;
  width: 100%;
  margin-bottom: 4rem;
}

/* Stage: matches .sliderViewport exactly */
.gSliderViewport {
  position: relative;
  width: 100%;
  padding: 50px 60px 60px 50px;
  box-sizing: border-box;
  overflow: visible;
}

/* Track: height driven by JS --gStageH */
.gSliderTrack {
  position: relative;
  width: 100%;
  height: var(--gStageH, 700px);
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* All game cards inside slider */
.gSliderTrack .project-card {
  position: absolute;
  top:     var(--cTop,  0px);
  left:    var(--cLeft, 0px);
  width:   min(700px, 92vw);
  display: flex !important;
  flex-direction: column;

  transform-origin: top center;
  transform:  scale(var(--cScale, 1));
  opacity:    var(--cOpacity, 1);
  z-index:    var(--cZ, 1);

  transition:
    top       0.45s cubic-bezier(0.4, 0, 0.2, 1),
    left      0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity   0.35s ease;

  will-change: top, left, transform, opacity;
  pointer-events: none;
  border-radius: var(--radius);
}

/* Active center game card */
.gSliderTrack .project-card.gCard--active {
  pointer-events: auto;
  overflow: visible;
}

/* Peek cards: clipped to image area */
.gSliderTrack .project-card.gCard--prev,
.gSliderTrack .project-card.gCard--next {
  overflow: hidden;
  max-height: var(--peekH, 120px);
}

/* Dark overlay on non-active cards */
.gSliderTrack .project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
  border-radius: var(--radius);
  pointer-events: none;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}

.gSliderTrack .project-card.gCard--active::after {
  opacity: 0;
}

/* ── Arrow Buttons — matches .sliderArrow exactly ── */
.gSliderArrow {
  position: absolute;
  z-index: 30;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.92);
  border: 1.5px solid rgba(255, 122, 0, 0.45);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s, box-shadow 0.22s, opacity 0.3s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.gSliderArrow svg { width: 18px; height: 18px; }

.gSliderArrow:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
  box-shadow: var(--glow-sm);
}

.gSliderArrow:disabled {
  opacity: 0.18;
  pointer-events: none;
}

/* Left side, vertically centered — mirrors .sliderArrowPrev */
.gSliderArrowPrev {
  top:  50%;
  left: 0px;
  transform: translateY(-50%);
}

/* Right side, vertically centered — mirrors .sliderArrowNext */
.gSliderArrowNext {
  top:   50%;
  right: 0px;
  transform: translateY(-50%);
}

/* ── Dot Indicators ── */
.gSliderDots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.gSliderDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.28s, transform 0.28s, box-shadow 0.28s;
}

.gSliderDot.gSliderDot--active {
  background: var(--orange);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(255, 122, 0, 0.6);
}