/* ============================================================
   MEP SYSTEM — main.css
   Aesthetic: Industrial Precision · Dark Steel · Amber Accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:           #0d0f14;
  --bg-2:         #13161e;
  --bg-3:         #1a1e2a;
  --surface:      #1e2330;
  --surface-2:    #252b3b;
  --border:       #2a3045;
  --border-light: #333d55;

  --primary:      #f5a623;
  --primary-dark: #d4891a;
  --primary-glow: rgba(245,166,35,0.15);

  --accent:       #4a9eff;
  --accent-glow:  rgba(74,158,255,0.12);

  --success:      #2ecc71;
  --danger:       #e74c3c;
  --warning:      #f39c12;
  --info:         #3498db;

  --text:         #e8eaf0;
  --text-muted:   #8892a4;
  --text-faint:   #525e76;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.3);

  --transition:   all 0.2s ease;
  --nav-h:        68px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.2rem; }
p  { color: var(--text-muted); line-height: 1.75; }
.text-mono { font-family: var(--font-mono); }
.text-accent { color: var(--primary); }
.lead { font-size: 1.1rem; color: var(--text-muted); }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Grid ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(13,15,20,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.8rem; letter-spacing: 0.08em;
  color: var(--text); text-decoration: none;
}
.navbar-brand span { color: var(--primary); }
.navbar-brand .brand-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.navbar-nav { display: flex; align-items: center; gap: 4px; }
.navbar-nav a {
  padding: 8px 16px; border-radius: var(--radius);
  color: var(--text-muted); font-weight: 500; font-size: 0.9rem;
  transition: var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--text); background: var(--surface);
}
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.navbar-toggle { display: none; background: none; border: none; padding: 8px; }
.navbar-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: var(--transition);
}
.page-body { padding-top: var(--nav-h); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 90vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--bg-2);
  padding: 80px 0;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 70% 50%, var(--primary-glow) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, var(--accent-glow) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: var(--primary-glow); border: 1px solid var(--primary);
  color: var(--primary); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero p { font-size: 1.15rem; max-width: 520px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem; color: var(--primary); line-height: 1;
}
.hero-stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; border: none;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #0d0f14;
}
.btn-primary:hover {
  background: var(--primary-dark); color: #0d0f14;
  transform: translateY(-1px); box-shadow: 0 8px 24px rgba(245,166,35,0.3);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c0392b; transform: translateY(-1px); }
.btn-success { background: var(--success); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid transparent; }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: 10px; aspect-ratio: 1; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { border-color: var(--border-light); box-shadow: var(--shadow); }
.card-body { padding: 24px; }
.card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h4, .card-header h3 { margin: 0; font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-3);
}

/* Product Card */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 12px 40px rgba(245,166,35,0.1); }
.product-card-img {
  aspect-ratio: 4/3; overflow: hidden;
  background: var(--bg-3);
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 20px; }
.product-card-cat { font-size: 0.75rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.product-card-title { font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.product-card-price { font-family: var(--font-mono); font-size: 1.1rem; color: var(--primary); font-weight: 600; }
.product-card-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; }

/* Service Card */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-4px); border-color: var(--border-light); }
.service-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--primary-glow); border: 1px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.5rem; margin-bottom: 20px;
}
.service-card h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }

/* Stat Card */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; align-items: flex-start; gap: 16px;
}
.stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.stat-icon.orange { background: var(--primary-glow); color: var(--primary); }
.stat-icon.blue   { background: var(--accent-glow); color: var(--accent); }
.stat-icon.green  { background: rgba(46,204,113,0.12); color: var(--success); }
.stat-icon.red    { background: rgba(231,76,60,0.12); color: var(--danger); }
.stat-value { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--text); }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.stat-change { font-size: 0.78rem; margin-top: 6px; }
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-success  { background: rgba(46,204,113,0.15); color: var(--success); }
.badge-danger   { background: rgba(231,76,60,0.15); color: var(--danger); }
.badge-warning  { background: rgba(243,156,18,0.15); color: var(--warning); }
.badge-info     { background: rgba(52,152,219,0.15); color: var(--info); }
.badge-primary  { background: var(--primary-glow); color: var(--primary); }
.badge-secondary{ background: var(--surface-2); color: var(--text-muted); }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 0.95rem; font-family: var(--font-body);
  transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-control::placeholder { color: var(--text-faint); }
.form-control:disabled { opacity: 0.5; cursor: not-allowed; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-text { font-size: 0.8rem; color: var(--text-faint); margin-top: 6px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.check-group { display: flex; align-items: center; gap: 10px; }
.check-group input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: 12px 16px; text-align: left;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.9rem;
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-2); }
.table-actions { display: flex; gap: 6px; align-items: center; }
.td-name { color: var(--text); font-weight: 600; }
.td-mono { font-family: var(--font-mono); font-size: 0.85rem; }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  margin-bottom: 20px; display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid transparent; font-size: 0.9rem;
}
.alert-success { background: rgba(46,204,113,0.1); border-color: rgba(46,204,113,0.3); color: var(--success); }
.alert-danger   { background: rgba(231,76,60,0.1); border-color: rgba(231,76,60,0.3); color: var(--danger); }
.alert-warning  { background: rgba(243,156,18,0.1); border-color: rgba(243,156,18,0.3); color: var(--warning); }
.alert-info     { background: rgba(52,152,219,0.1); border-color: rgba(52,152,219,0.3); color: var(--info); }

/* ── Modals ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 90%; max-width: 540px;
  max-height: 85vh; overflow: auto;
  transform: translateY(20px); transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h4 { margin: 0; font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end;
}
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; }
.modal-close:hover { color: var(--text); }

/* ── Section Headers ─────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--primary); margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 560px; margin: 0 auto; }
.section-divider {
  display: flex; align-items: center; gap: 16px; margin: 0 auto 40px;
  max-width: 120px;
}
.section-divider::before, .section-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.section-divider span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand h3 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 12px; }
.footer-brand h3 span { color: var(--primary); }
.footer-brand p { font-size: 0.9rem; }
.footer-col h5 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-faint);
}

/* ── Cart Badge ──────────────────────────────────────────────── */
.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary); color: #0d0f14;
  font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.pagination a, .pagination li a {
  padding: 8px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); color: var(--text-muted);
  font-size: 0.85rem; transition: var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination li.active a { background: var(--primary); border-color: var(--primary); color: #0d0f14; font-weight: 700; }

/* ── Testimonials ─────────────────────────────────────────────── */
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.testimonial-quote { font-size: 2rem; color: var(--primary); line-height: 1; margin-bottom: 16px; }
.testimonial-text { color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-glow); border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-weight: 700; font-size: 1rem;
}
.testimonial-name { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.testimonial-role { font-size: 0.8rem; color: var(--text-faint); }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-faint); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border-light); }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 80px 24px;
  color: var(--text-faint);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; }

/* ── Page Banner ─────────────────────────────────────────────── */
.page-banner {
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 60px 0; position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 40%;
  background: radial-gradient(ellipse at right, var(--primary-glow), transparent 70%);
}
.page-banner h1 { margin-bottom: 12px; font-size: clamp(2rem, 5vw, 3.5rem); }

/* ── Utility ─────────────────────────────────────────────────── */
.d-flex   { display: flex; }
.d-grid   { display: grid; }
.d-none   { display: none; }
.gap-8    { gap: 8px; }
.gap-16   { gap: 16px; }
.gap-24   { gap: 24px; }
.mt-8     { margin-top: 8px; }
.mt-16    { margin-top: 16px; }
.mt-24    { margin-top: 24px; }
.mt-40    { margin-top: 40px; }
.mb-8     { margin-bottom: 8px; }
.mb-16    { margin-bottom: 16px; }
.mb-24    { margin-bottom: 24px; }
.mb-40    { margin-bottom: 40px; }
.ml-auto  { margin-left: auto; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.fw-600   { font-weight: 600; }
.fw-700   { font-weight: 700; }
.fs-sm    { font-size: 0.85rem; }
.color-muted { color: var(--text-muted); }
.color-primary { color: var(--primary); }
.color-success { color: var(--success); }
.color-danger  { color: var(--danger); }
.align-items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.border-top { border-top: 1px solid var(--border); }
.p-24 { padding: 24px; }
.separator { height: 1px; background: var(--border); margin: 24px 0; }

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 520px;
  max-height: 860px;
  overflow: hidden;
  background: var(--bg-2);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: none;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Background image */
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.carousel-slide.active .slide-bg {
  transform: scale(1);
}

.slide-bg-fallback {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
}

/* Dark overlay */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.45) 55%,
    rgba(0,0,0,0.15) 100%
  );
  z-index: 1;
}

/* Content */
.slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.slide-inner {
  max-width: 680px;
}

.slide-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  line-height: 1.05;
}

.slide-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 540px;
}

.slide-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Animate in */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.carousel-slide.active .animate-in {
  animation: slideUp 0.7s ease forwards;
}

.carousel-slide.active .animate-in:nth-child(1) { animation-delay: 0.1s; opacity: 0; }
.carousel-slide.active .animate-in:nth-child(2) { animation-delay: 0.25s; opacity: 0; }
.carousel-slide.active .animate-in:nth-child(3) { animation-delay: 0.4s; opacity: 0; }
.carousel-slide.active .animate-in:nth-child(4) { animation-delay: 0.55s; opacity: 0; }

/* Prev / Next buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #0d0f14;
}

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

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* Mobile */
@media (max-width: 767px) {
  .hero-carousel { height: 75vh; min-height: 420px; }
  .slide-title { font-size: 2rem; }
  .slide-subtitle { font-size: .95rem; }
  .slide-actions { flex-direction: column; }
  .slide-actions .btn { width: 100%; justify-content: center; }
  .carousel-btn { width: 40px; height: 40px; font-size: 1.2rem; }
  .carousel-prev { left: 12px; }
  .carousel-next { right: 12px; }
  .slide-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.65));
  }
}
