/* Data Engineering & Pipelines — v1 */

:root {
  --de-green: #00FF88;
  --de-cyan: #00D4FF;
  --de-teal: #0EA5E9;
  --de-emerald: #10B981;
  --de-bg: #020D0A;
  --de-bg2: #030F0C;
}

.de-accent { background: linear-gradient(135deg, var(--de-green) 0%, var(--de-cyan) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── SHARED ── */
.de-section-header { text-align: center; max-width: 800px; margin: 0 auto 64px; }
.de-section-header h2 { font-size: 44px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 14px; }
.de-section-header p { font-size: 17px; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* ── BUTTONS ── */
.de-cta-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; background: linear-gradient(135deg, var(--de-emerald), var(--de-cyan)); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 8px 30px rgba(0,255,136,0.25); }
.de-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,212,255,0.4); }
.de-cta-btn i { color: #fff !important; -webkit-text-fill-color: #fff !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; transition: transform 0.2s; }
.de-cta-btn:hover i { transform: translateX(4px); }
.de-cta-large { font-size: 17px; padding: 20px 44px; }

/* ── HERO ── */
.de-hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; background: var(--de-bg); padding: 130px 60px 80px; overflow: hidden; text-align: center; }
.de-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.de-hero-inner { position: relative; z-index: 10; max-width: 900px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.de-hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: 1px solid rgba(0,255,136,0.35); border-radius: 50px; font-size: 12px; font-weight: 600; color: var(--de-green); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 28px; }
.de-hero-badge i { color: var(--de-green) !important; -webkit-text-fill-color: var(--de-green) !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; }
.de-hero-title { font-size: 62px; font-weight: 900; color: #fff; line-height: 1.08; margin-bottom: 24px; letter-spacing: -2px; }
.de-hero-sub { font-size: 18px; color: rgba(255,255,255,0.62); line-height: 1.8; max-width: 740px; margin-bottom: 48px; }

/* ── MANDATES GRID ── */
.de-mandates { background: var(--de-bg2); padding: 100px 60px; }
.de-mandates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }

.de-mandate-card { position: relative; background: rgba(2,20,14,0.6); backdrop-filter: blur(20px); border: 1px solid rgba(0,255,136,0.08); border-radius: 20px; padding: 36px 28px; transition: transform 0.35s ease, box-shadow 0.35s ease; overflow: hidden; }
.de-mandate-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,255,136,0.12); }

/* circuit-trace border */
.de-trace-border { position: absolute; inset: -1px; border-radius: 21px; pointer-events: none; background: conic-gradient(from 0deg, var(--de-green) 0%, transparent 0%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1.5px; transition: none; }
.de-mandate-card:hover .de-trace-border { background: conic-gradient(from 0deg, var(--de-green) 100%, transparent 100%); transition: background 1s ease; }

.de-mandate-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--de-emerald), var(--de-cyan)); border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; position: relative; z-index: 1; }
.de-mandate-icon i { font-size: 20px; color: #fff !important; -webkit-text-fill-color: #fff !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; }
.de-mandate-card h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.35; position: relative; z-index: 1; }
.de-mandate-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.8; margin: 0 0 18px; position: relative; z-index: 1; }
.de-card-tags { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.de-card-tags span { padding: 3px 10px; background: rgba(0,255,136,0.07); border: 1px solid rgba(0,255,136,0.18); border-radius: 50px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.45); }

/* ── LIFECYCLE TIMELINE ── */
.de-lifecycle { background: var(--de-bg); padding: 100px 60px; }
.de-timeline-layout { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 56px 1fr; gap: 0 40px; }
.de-timeline-track { position: relative; display: flex; justify-content: center; }
.de-track-line { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2px; height: 100%; background: rgba(0,255,136,0.1); border-radius: 2px; }
.de-track-glow { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2px; height: 0%; background: linear-gradient(180deg, var(--de-green), var(--de-cyan)); border-radius: 2px; box-shadow: 0 0 12px var(--de-green); transition: height 0.05s linear; }

.de-phases { display: flex; flex-direction: column; }
.de-phase { display: flex; gap: 28px; align-items: flex-start; padding: 48px 0; border-bottom: 1px solid rgba(0,255,136,0.06); opacity: 0.3; transition: opacity 0.4s ease, transform 0.5s ease; transform: translateX(20px); }
.de-phase:last-child { border-bottom: none; }
.de-phase.active { opacity: 1; transform: translateX(0); }
.de-phase-node { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(0,255,136,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.4s ease; background: rgba(2,20,14,0.6); }
.de-phase.active .de-phase-node { border-color: var(--de-green); box-shadow: 0 0 24px rgba(0,255,136,0.4); background: rgba(0,255,136,0.06); }
.de-phase-node span { font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.3); letter-spacing: 1px; font-family: 'Courier New', monospace; }
.de-phase.active .de-phase-node span { color: var(--de-green); }
.de-phase-body h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.3; }
.de-phase-body p { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.8; margin: 0 0 14px; }
.de-code-tag { display: inline-block; font-family: 'Courier New', monospace; font-size: 12px; color: var(--de-green); background: rgba(0,255,136,0.07); border: 1px solid rgba(0,255,136,0.2); padding: 5px 12px; border-radius: 6px; letter-spacing: 0.3px; }

/* ── DATA STACK ── */
.de-stack { background: var(--de-bg2); padding: 100px 60px; }
.de-stack-groups { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.de-stack-group { display: flex; align-items: center; gap: 32px; padding: 24px 32px; background: rgba(2,20,14,0.5); border: 1px solid rgba(0,255,136,0.08); border-radius: 16px; transition: border-color 0.3s ease; }
.de-stack-group:hover { border-color: rgba(0,255,136,0.22); }
.de-group-label { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--de-green); min-width: 220px; flex-shrink: 0; font-family: 'Courier New', monospace; }
.de-group-label i { color: var(--de-green) !important; -webkit-text-fill-color: var(--de-green) !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; font-size: 13px; }
.de-stack-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.de-chip { padding: 7px 16px; background: rgba(0,255,136,0.05); border: 1px solid rgba(0,255,136,0.14); border-radius: 50px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.45); letter-spacing: 0.3px; cursor: default; transition: all 0.25s ease; }
.de-chip:hover { background: rgba(0,255,136,0.12); border-color: rgba(0,255,136,0.4); color: rgba(255,255,255,0.85); }

/* ── CASE STUDIES CAROUSEL ── */
.de-casestudies { background: var(--de-bg); padding: 100px 60px; }
.de-carousel-wrapper { max-width: 900px; margin: 0 auto; }
.de-carousel-track { overflow: hidden; border-radius: 20px; }
.de-slide { display: none; background: rgba(2,20,14,0.65); backdrop-filter: blur(20px); border: 1px solid rgba(0,255,136,0.12); border-radius: 20px; padding: 52px 52px 44px; }
.de-slide.active { display: block; animation: deSlideIn 0.45s ease; }
@keyframes deSlideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }

.de-slide-metric { font-size: 96px; font-weight: 900; line-height: 1; letter-spacing: -4px; background: linear-gradient(135deg, var(--de-green), var(--de-cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 4px; }
.de-slide-label { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.35); margin-bottom: 28px; font-family: 'Courier New', monospace; }
.de-slide h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 14px; line-height: 1.3; }
.de-slide p { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 28px; }
.de-slide-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.de-slide-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: rgba(0,255,136,0.07); border: 1px solid rgba(0,255,136,0.18); border-radius: 50px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); }
.de-slide-chips span i { color: var(--de-green) !important; -webkit-text-fill-color: var(--de-green) !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; font-size: 11px; }

.de-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.de-carousel-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(0,255,136,0.07); border: 1px solid rgba(0,255,136,0.18); color: rgba(255,255,255,0.5); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.25s ease; font-size: 14px; }
.de-carousel-btn:hover { background: rgba(0,255,136,0.15); border-color: var(--de-green); color: #fff; }
.de-carousel-btn i { color: inherit !important; -webkit-text-fill-color: inherit !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; }
.de-carousel-dots { display: flex; gap: 8px; }
.de-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); cursor: pointer; transition: all 0.25s ease; border: none; padding: 0; }
.de-dot.active { background: var(--de-green); box-shadow: 0 0 10px rgba(0,255,136,0.5); width: 24px; border-radius: 4px; }

/* ── FINAL CTA ── */
.de-final-cta { position: relative; padding: 130px 60px; text-align: center; overflow: hidden; background: #010A06; border-top: 1px solid rgba(0,255,136,0.08); }
.de-cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.de-final-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 50%, rgba(0,255,136,0.1) 0%, transparent 55%), radial-gradient(circle at 75% 50%, rgba(0,212,255,0.08) 0%, transparent 55%); pointer-events: none; }
.de-final-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.de-final-cta h2 { font-size: 52px; font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1.5px; }
.de-final-cta p { font-size: 17px; color: rgba(255,255,255,0.6); line-height: 1.75; margin-bottom: 44px; }

/* ── LIGHT THEME ── */
body.light-theme section.de-hero { background: #ffffff !important; }
body.light-theme section.de-mandates { background: #f4fdf8 !important; }
body.light-theme section.de-lifecycle { background: #ffffff !important; }
body.light-theme section.de-stack { background: #f4fdf8 !important; }
body.light-theme section.de-casestudies { background: #ffffff !important; }
body.light-theme section.de-final-cta { background: #ffffff !important; border-top-color: rgba(0,0,0,0.06) !important; }
body.light-theme section.de-final-cta::before { background: radial-gradient(circle at 25% 50%, rgba(255,123,0,0.07) 0%, transparent 55%), radial-gradient(circle at 75% 50%, rgba(255,123,0,0.05) 0%, transparent 55%) !important; }

body.light-theme .de-accent { background: linear-gradient(135deg, var(--original-orange), var(--original-orange-hover)) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; }
body.light-theme .de-hero-title { color: #1a1f3a !important; }
body.light-theme .de-hero-sub { color: rgba(26,31,58,0.65) !important; }
body.light-theme .de-hero-badge { border-color: rgba(255,123,0,0.4) !important; color: var(--original-orange) !important; }
body.light-theme .de-hero-badge i { color: var(--original-orange) !important; -webkit-text-fill-color: var(--original-orange) !important; }
body.light-theme .de-section-header h2 { color: #1a1f3a !important; }
body.light-theme .de-section-header p { color: rgba(26,31,58,0.6) !important; }

body.light-theme .de-mandate-card { background: #ffffff !important; border-color: rgba(0,0,0,0.08) !important; box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important; }
body.light-theme .de-mandate-card:hover { box-shadow: 0 24px 60px rgba(255,123,0,0.12) !important; }
body.light-theme .de-mandate-card:hover .de-trace-border { background: conic-gradient(from 0deg, var(--original-orange) 100%, transparent 100%) !important; }
body.light-theme .de-mandate-icon { background: linear-gradient(135deg, var(--original-orange), var(--original-orange-hover)) !important; }
body.light-theme .de-mandate-icon i { color: #fff !important; -webkit-text-fill-color: #fff !important; }
body.light-theme .de-mandate-card h3 { color: #1a1f3a !important; }
body.light-theme .de-mandate-card p { color: rgba(26,31,58,0.6) !important; }
body.light-theme .de-card-tags span { background: rgba(255,123,0,0.06) !important; border-color: rgba(255,123,0,0.18) !important; color: rgba(26,31,58,0.5) !important; }

body.light-theme .de-track-line { background: rgba(255,123,0,0.1) !important; }
body.light-theme .de-track-glow { background: linear-gradient(180deg, var(--original-orange), var(--original-orange-hover)) !important; box-shadow: 0 0 12px var(--original-orange) !important; }
body.light-theme .de-phase { border-bottom-color: rgba(0,0,0,0.06) !important; }
body.light-theme .de-phase-node { border-color: rgba(255,123,0,0.2) !important; background: #fff !important; }
body.light-theme .de-phase.active .de-phase-node { border-color: var(--original-orange) !important; box-shadow: 0 0 24px rgba(255,123,0,0.3) !important; background: rgba(255,123,0,0.06) !important; }
body.light-theme .de-phase-node span { color: rgba(26,31,58,0.3) !important; }
body.light-theme .de-phase.active .de-phase-node span { color: var(--original-orange) !important; }
body.light-theme .de-phase-body h3 { color: #1a1f3a !important; }
body.light-theme .de-phase-body p { color: rgba(26,31,58,0.6) !important; }
body.light-theme .de-code-tag { color: #1a6b3a !important; background: rgba(0,100,50,0.06) !important; border-color: rgba(0,100,50,0.2) !important; }

body.light-theme .de-stack-group { background: #ffffff !important; border-color: rgba(0,0,0,0.08) !important; }
body.light-theme .de-stack-group:hover { border-color: rgba(255,123,0,0.25) !important; }
body.light-theme .de-group-label { color: var(--original-orange) !important; }
body.light-theme .de-group-label i { color: var(--original-orange) !important; -webkit-text-fill-color: var(--original-orange) !important; }
body.light-theme .de-chip { background: rgba(255,123,0,0.05) !important; border-color: rgba(255,123,0,0.15) !important; color: rgba(26,31,58,0.5) !important; }
body.light-theme .de-chip:hover { background: rgba(255,123,0,0.1) !important; border-color: rgba(255,123,0,0.35) !important; color: rgba(26,31,58,0.85) !important; }

body.light-theme .de-slide { background: #ffffff !important; border-color: rgba(0,0,0,0.08) !important; box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important; }
body.light-theme .de-slide-metric { background: linear-gradient(135deg, var(--original-orange), var(--original-orange-hover)) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; }
body.light-theme .de-slide-label { color: rgba(26,31,58,0.35) !important; }
body.light-theme .de-slide h3 { color: #1a1f3a !important; }
body.light-theme .de-slide p { color: rgba(26,31,58,0.6) !important; }
body.light-theme .de-slide-chips span { background: rgba(255,123,0,0.06) !important; border-color: rgba(255,123,0,0.18) !important; color: rgba(26,31,58,0.55) !important; }
body.light-theme .de-slide-chips span i { color: var(--original-orange) !important; -webkit-text-fill-color: var(--original-orange) !important; }
body.light-theme .de-carousel-btn { background: rgba(255,123,0,0.06) !important; border-color: rgba(255,123,0,0.2) !important; color: rgba(26,31,58,0.6) !important; }
body.light-theme .de-carousel-btn:hover { background: rgba(255,123,0,0.12) !important; border-color: var(--original-orange) !important; color: #1a1f3a !important; }
body.light-theme .de-dot { background: rgba(26,31,58,0.15) !important; }
body.light-theme .de-dot.active { background: var(--original-orange) !important; box-shadow: 0 0 10px rgba(255,123,0,0.4) !important; }

body.light-theme .de-final-cta h2 { color: #1a1f3a !important; }
body.light-theme .de-final-cta p { color: rgba(26,31,58,0.65) !important; }
body.light-theme .de-cta-btn { background: linear-gradient(135deg, var(--original-orange), var(--original-orange-hover)) !important; box-shadow: 0 8px 30px rgba(255,123,0,0.3) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .de-mandates-grid { grid-template-columns: repeat(2, 1fr); }
  .de-stack-group { flex-direction: column; align-items: flex-start; gap: 16px; }
  .de-group-label { min-width: unset; }
}
@media (max-width: 700px) {
  .de-mandates-grid { grid-template-columns: 1fr; }
  .de-hero-title { font-size: 38px; }
  .de-section-header h2 { font-size: 32px; }
  .de-final-cta h2 { font-size: 32px; }
  .de-hero, .de-mandates, .de-lifecycle, .de-stack, .de-casestudies, .de-final-cta { padding: 80px 24px; }
  .de-timeline-layout { grid-template-columns: 1fr; }
  .de-timeline-track { display: none; }
  .de-slide { padding: 36px 28px; }
  .de-slide-metric { font-size: 64px; }
}
