/* ── Variables ─────────────────────────────────────────── */
:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --accent: #6f42c1;
  --dark: #0f172a;
  --surface: #1e293b;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
}

/* ── Base ──────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

.text-muted {
  color: var(--text-muted) !important;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--dark);
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}

.navbar-logo {
  height: 34px;
  width: auto;
  margin-right: -0.7em;
  filter: brightness(0) invert();
}

.nav-link {
  color: #0061d7 !important;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
}

.nav-link.active {
  border-bottom: 2px solid var(--primary);
}

/* ── Language toggle ───────────────────────────────────── */
.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Pages ─────────────────────────────────────────────── */
.page {
  flex: 1;
  scroll-margin-top: 90px;
}

/* ── Hero ──────────────────────────────────────────────── */
#page-home {
  background: linear-gradient(135deg, var(--dark) 0%, var(--surface) 100%);
}

.hero {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
}

.hero .badge-pill {
  background: rgba(13, 110, 253, 0.15);
  border: 1px solid rgba(13, 110, 253, 0.3);
  color: #93c5fd;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* ── Section generic ───────────────────────────────────── */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 48px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0 auto 3rem;
}

/* ── Cards ─────────────────────────────────────────────── */
.card-custom {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card-custom:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

/* ── Contact form ──────────────────────────────────────── */
.form-control,
.form-select {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: #e2e8f0 !important;
  border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15) !important;
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* ── Footer ────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Utilities ─────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-ai-highlight {
  color: #f59e0b;
  -webkit-text-fill-color: #f59e0b;
}
