:root {
  --orange: #FF5A1F;
  --deep-orange: #FF3D00;
  --yellow: #FFC107;
  --red: #E53935;

  --grad-or: linear-gradient(135deg, var(--orange), var(--deep-orange));
  --grad-oy: linear-gradient(135deg, var(--orange), var(--yellow));
  --grad-hero: linear-gradient(135deg, #FF3D00 0%, #FF5A1F 45%, #FFC107 100%);
  --grad-text: linear-gradient(90deg, var(--orange), var(--yellow));

  --bg: #0e0c0a;
  --bg2: #151210;
  --bg3: #1c1713;
  --surface: #1f1a15;
  --surface2: #26201a;
  --border: rgba(255, 90, 31, .15);
  --text: #f5f0eb;
  --text-muted: #9a8f85;
  --card-bg: rgba(30, 23, 18, .8);
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --shadow-glow: 0 0 40px rgba(255, 90, 31, .25);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, .45);
  --overlay-bg: rgba(14, 12, 10, .82);
}

:root[data-theme="light"] {
  --bg: #fff8f3;
  --bg2: #fff2e8;
  --bg3: #ffe9d6;
  --surface: #ffffff;
  --surface2: #fff4ec;
  --border: rgba(255, 90, 31, .18);
  --text: #1a1008;
  --text-muted: #7a6a5a;
  --card-bg: rgba(255, 255, 255, .9);
  --shadow-glow: 0 0 40px rgba(255, 90, 31, .15);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, .10);
  --overlay-bg: rgba(255, 248, 243, .88);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  transition: background .35s, color .35s;
  padding-top: 78px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: .45;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg2);
}

::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 4px;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background: var(--bg2);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--orange);
  margin-bottom: .8rem;
}

.section-tag::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: .8rem;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.75;
}

.section-head {
  margin-bottom: 3rem;
}

.section-head.center {
  text-align: center;
}

.section-head.center .section-sub {
  margin: 0 auto;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 100px;
  border: none;
  font-size: .95rem;
  font-weight: 700;
  padding: .9rem 1.8rem;
  transition: all .25s ease;
}

.btn-primary {
  background: var(--grad-or);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 90, 31, .18);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .25s;
}

.see-more-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 90, 31, .2);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
  margin: 0 auto 2rem;
  max-width: 100%;
  padding: 0 0 1rem;
}

.filter-btn {
  height: 38px;
  padding: 0 1.2rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all .22s ease;
}

.filter-btn:hover {
  border-color: var(--orange);
}

.filter-btn.active {
  background: var(--grad-or);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 61, 0, .35);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  overflow: hidden;
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  border-color: rgba(255, 90, 31, .35);
}

.placeholder-card {
  border: 1px dashed rgba(255, 90, 31, .45);
  background: rgba(255, 90, 31, .05);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
}

.placeholder-card h3 {
  margin-bottom: .75rem;
  font-size: 1.3rem;
}

.placeholder-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  min-height: 240px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: .7rem;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.75;
}

@media (max-width: 900px) {
  .section {
    padding: 4.5rem 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 5%;
  }
  .filter-bar {
    justify-content: flex-start;
  }
}

/* Contact form success message reveal (JS toggles .show) */
.form-success.show { display: block !important; }

/* Global keyboard focus visibility (a11y) */
:focus-visible {
  outline: 2px solid var(--orange, #FF5A1F);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
