/* ================================================================
   EISCO — Main Stylesheet  |  Dark + Light theme
   ================================================================ */

/* ===== THEME VARIABLES ===== */
:root {
  /* Dark theme (default) */
  --color-dark:     #070d1a;
  --color-surface:  #0d1426;
  --color-surface2: #131d33;
  --color-bd:       #1e2d4a;
  --color-text:     #e2e8f0;
  --color-muted:    #64748b;
  --color-heading:  #ffffff;
  --color-input-bg: #0d1426;
  --color-input-ph: #2d3f5e;
  --color-card-hover-shadow: rgba(0,0,0,0.35);
  --orb-opacity:    0.13;
  --grid-opacity:   0.6;
}

[data-theme="light"] {
  --color-dark:     #eef4ff;
  --color-surface:  #ffffff;
  --color-surface2: #dce8fa;
  --color-bd:       #b8cce4;
  --color-text:     #1e2d45;
  --color-muted:    #5a6e8a;
  --color-heading:  #0d1a2e;
  --color-input-bg: #f5f9ff;
  --color-input-ph: #9ab0cc;
  --color-card-hover-shadow: rgba(16,100,180,0.12);
  --orb-opacity:    0.07;
  --grid-opacity:   0.35;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-dark);
  color: var(--color-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Override hardcoded Tailwind text colors per theme */
[data-theme="light"] .text-white      { color: var(--color-heading) !important; }
[data-theme="light"] .text-slate-200  { color: var(--color-text)    !important; }
[data-theme="light"] .text-slate-300  { color: var(--color-text)    !important; }
[data-theme="light"] .text-slate-400  { color: var(--color-muted)   !important; }
[data-theme="light"] .text-slate-500  { color: #7a93b0              !important; }

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-dark); }
::-webkit-scrollbar-thumb { background: #10d9a0; border-radius: 3px; }

/* ===== HERO BACKGROUND ORBS ===== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: var(--orb-opacity);
  animation: floatOrb 10s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.orb-green { width: 650px; height: 650px; background: #10d9a0; top: -150px; left: -150px; animation-delay: 0s; }
.orb-blue  { width: 550px; height: 550px; background: #5b8ef0; bottom: -150px; right: -150px; animation-delay: -5s; }

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(40px, -40px) scale(1.06); }
}

/* RTL orb mirror */
[dir="rtl"] .orb-green { left: auto; right: -150px; }
[dir="rtl"] .orb-blue  { right: auto; left: -150px; }

/* ===== GRID BACKGROUND ===== */
.grid-bg {
  background-image:
    linear-gradient(rgba(100,150,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,150,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: var(--grid-opacity);
  transition: opacity 0.4s ease;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(130deg, #10d9a0 0%, #5b8ef0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAVBAR ===== */
#navbar { transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease; }
#navbar.scrolled {
  background: rgba(7, 13, 26, 0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(30, 45, 74, 0.6);
}
[data-theme="light"] #navbar.scrolled {
  background: rgba(238, 244, 255, 0.92);
  border-bottom-color: rgba(184, 204, 228, 0.7);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 9999px;
  background: linear-gradient(130deg, #10d9a0, #5b8ef0);
  color: #fff; font-weight: 600; font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer; border: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(16,217,160,0.32); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 9999px;
  border: 1px solid var(--color-bd);
  color: var(--color-text); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; background: transparent;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.btn-secondary:hover { border-color: #10d9a0; color: #10d9a0; transform: translateY(-2px); }

/* ===== SECTION LABELS ===== */
.section-label {
  display: inline-block; padding: 6px 18px; border-radius: 9999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(16,217,160,0.07); color: #10d9a0;
  border: 1px solid rgba(16,217,160,0.2);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-heading);
  line-height: 1.2;
}

/* ===== ABOUT INFO CARD ===== */
.value-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }

/* ===== SERVICE CARDS ===== */
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-bd);
  border-radius: 18px; padding: 28px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.35s ease;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(16,217,160,0.05), rgba(91,142,240,0.05));
  opacity: 0; transition: opacity 0.3s ease; border-radius: inherit;
}
.service-card:hover {
  border-color: rgba(16,217,160,0.45);
  transform: translateY(-5px);
  box-shadow: 0 24px 48px var(--color-card-hover-shadow);
}
.service-card:hover::before { opacity: 1; }

.service-icon-wrap {
  width: 58px; height: 58px; border-radius: 15px;
  background: linear-gradient(135deg, rgba(16,217,160,0.12), rgba(91,142,240,0.12));
  border: 1px solid rgba(16,217,160,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #10d9a0; position: relative; z-index: 1;
}

/* ===== PROCESS STEPS ===== */
.process-number {
  width: 66px; height: 66px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(16,217,160,0.08), rgba(91,142,240,0.08));
  border: 1px solid rgba(16,217,160,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #10d9a0;
  margin: 0 auto; position: relative; z-index: 1;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.process-step:hover .process-number {
  background: linear-gradient(135deg, rgba(16,217,160,0.2), rgba(91,142,240,0.2));
  box-shadow: 0 0 24px rgba(16,217,160,0.2);
}

/* ===== CLIENTS MARQUEE (single row, fading edges) ===== */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  mask-image:         linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 40s linear infinite;
  padding: 12px 0;
  align-items: center;
}
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.client-logo {
  flex-shrink: 0;
  width: 170px;
  height: 120px;
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-bd);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.35s ease;
}
.client-logo:hover {
  border-color: rgba(16,217,160,0.45);
  box-shadow: 0 8px 28px rgba(16,217,160,0.12);
  transform: translateY(-3px);
}
.client-logo img {
  max-height: 84px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: filter 0.35s ease, transform 0.35s ease;
  user-select: none;
  pointer-events: none;
  display: block;
}
/* Light theme keeps logos full-color (cleaner on white cards) */
[data-theme="light"] .client-logo { background: #ffffff; }

/* ===== CONTACT ===== */
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(16,217,160,0.07); border: 1px solid rgba(16,217,160,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #10d9a0; flex-shrink: 0;
}

/* ===== FORM ===== */
.form-label {
  display: block; font-size: 0.75rem; font-weight: 500;
  color: var(--color-muted); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.form-input {
  width: 100%;
  background: var(--color-input-bg);
  border: 1px solid var(--color-bd);
  border-radius: 10px; padding: 13px 16px;
  color: var(--color-text); font-size: 0.9rem; font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.35s ease;
  outline: none;
}
.form-input:focus { border-color: #10d9a0; box-shadow: 0 0 0 3px rgba(16,217,160,0.1); }
.form-input::placeholder { color: var(--color-input-ph); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== NAV ACTIVE LINK ===== */
.nav-link.active { color: #10d9a0 !important; }

/* ===== LANG TOGGLE PILL ===== */
.lang-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 9999px;
  border: 1px solid var(--color-bd);
  font-size: 0.82rem; font-weight: 600;
  color: var(--color-muted);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-pill:hover { border-color: #10d9a0; color: #10d9a0; }

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--color-bd);
  background: transparent; cursor: pointer;
  color: var(--color-muted);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { border-color: #10d9a0; color: #10d9a0; }

/* ===== DIVIDER ===== */
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-bd), transparent);
  border: none;
  transition: background 0.35s ease;
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
  background: rgba(7, 13, 26, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-bd);
  transition: background 0.35s ease;
}
[data-theme="light"] #mobile-menu { background: rgba(238, 244, 255, 0.97); }

/* ===== LIGHT THEME: section background tints ===== */
[data-theme="light"] .bg-surface\/25,
[data-theme="light"] .bg-surface\/20,
[data-theme="light"] .bg-surface\/30,
[data-theme="light"] .bg-surface\/40,
[data-theme="light"] .bg-surface\/50 {
  background-color: rgba(210, 228, 250, 0.35) !important;
}

/* Border sections in light mode */
[data-theme="light"] .border-bd { border-color: var(--color-bd) !important; }

/* Stat numbers */
[data-theme="light"] .text-brand-green { color: #08a87a !important; }
