/* ============================================================
   IDELENCE TECH — custom styles layered on Bootstrap 5
   Palette: deep navy base, white text, electric blue accents
   ============================================================ */

:root {
  --idt-navy: #0d1117;
  --idt-navy-2: #171b22;
  --idt-navy-3: #1e242d;
  --idt-blue: #a3c401;
  --idt-blue-light: #bcd94a;
  --idt-text: #f2f5f5;
  --idt-muted: #9aa2b1;
  --idt-border: rgba(255, 255, 255, 0.09);
  --idt-glow: 0 0 40px -8px rgba(163, 196, 1, 0.55);
  --idt-card-shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.6);
}

body {
  background-color: var(--idt-navy);
  color: var(--idt-text);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* ---------- Header ---------- */
.idt-header {
  background-color: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--idt-border);
}

.idt-header .navbar-nav .nav-link {
  color: var(--idt-muted);
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
}

.idt-header .navbar-nav .nav-link:hover {
  color: var(--idt-text);
  background: rgba(255, 255, 255, 0.06);
}

.idt-header .navbar-nav .nav-link.active {
  color: var(--idt-blue-light);
}

.navbar-toggler {
  border-color: var(--idt-border);
}

.navbar-toggler-icon {
  filter: invert(1) brightness(1.6);
}

.idt-wordmark {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--idt-text);
}

.idt-wordmark span {
  color: var(--idt-blue-light);
}

/* ---------- Buttons ---------- */
.btn-idt {
  background-color: var(--idt-blue);
  color: #101418;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.7rem 1.5rem;
  border: none;
  transition: all 0.2s ease;
}

.btn-idt:hover, .btn-idt:focus {
  background-color: #8bb000;
  color: #fff;
  box-shadow: var(--idt-glow);
}

.btn-outline-idt {
  border: 1px solid var(--idt-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--idt-text);
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.7rem 1.5rem;
  transition: all 0.2s ease;
}

.btn-outline-idt:hover, .btn-outline-idt:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------- Hero ---------- */
.idt-hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 7rem;
}

.idt-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.idt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 17, 23, 0.7), rgba(13, 17, 23, 0.85), var(--idt-navy));
}

.idt-grid {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

.idt-hero .container {
  position: relative;
}

.idt-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
}

.idt-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--idt-blue-light);
}

.idt-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--idt-border);
  background: rgba(23, 27, 34, 0.6);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--idt-blue-light);
}

.idt-gradient-text {
  background: linear-gradient(120deg, var(--idt-blue-light), var(--idt-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Sections & cards ---------- */
.idt-section {
  padding: 5rem 0;
}

.idt-section-alt {
  background-color: rgba(23, 27, 34, 0.35);
  border-top: 1px solid var(--idt-border);
  border-bottom: 1px solid var(--idt-border);
}

.idt-section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.idt-section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 800;
}

.idt-card {
  background-color: var(--idt-navy-2);
  border: 1px solid var(--idt-border);
  border-radius: 1.25rem;
  box-shadow: var(--idt-card-shadow);
}

.idt-card-hover {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.idt-card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(163, 196, 1, 0.45);
  box-shadow: var(--idt-glow);
}

.idt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 0.9rem;
  background: rgba(163, 196, 1, 0.15);
  color: var(--idt-blue-light);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.idt-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--idt-blue);
  color: #101418;
  font-weight: 800;
  font-family: "Manrope", sans-serif;
}

.idt-big-num {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: rgba(163, 196, 1, 0.4);
}

.idt-check li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--idt-muted);
}

.idt-check li .bi {
  color: var(--idt-blue-light);
  margin-top: 0.2rem;
}

.idt-illustrative-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(4px);
  color: var(--idt-muted);
  border: 1px solid var(--idt-border);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.idt-portfolio-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.idt-card-hover:hover .idt-portfolio-img {
  transform: scale(1.05);
}

/* ---------- Process / CTA ---------- */
.idt-cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4rem 1.5rem;
  border-radius: 1.75rem;
}

.idt-cta-card .idt-grid {
  opacity: 0.4;
}

.idt-cta-card > .position-relative {
  position: relative;
}

/* ---------- Forms ---------- */
.idt-input {
  width: 100%;
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  color: var(--idt-text);
  padding: 0.75rem 1rem;
  font-size: 0.925rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.idt-input::placeholder {
  color: rgba(154, 166, 196, 0.6);
}

.idt-input:focus {
  border-color: var(--idt-blue);
  box-shadow: 0 0 0 3px rgba(163, 196, 1, 0.25);
}

.idt-field-error {
  color: #ff7a7a;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.idt-alert-error {
  border: 1px solid rgba(255, 122, 122, 0.4);
  background: rgba(255, 122, 122, 0.1);
  color: #ff9d9d;
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  font-size: 0.875rem;
}

.idt-success-box {
  text-align: center;
  padding: 3rem 1rem;
}

.idt-success-box .bi {
  font-size: 3.2rem;
  color: var(--idt-blue-light);
}

/* ---------- Footer ---------- */
.idt-footer {
  background-color: rgba(23, 27, 34, 0.4);
  border-top: 1px solid var(--idt-border);
}

.idt-footer h6 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.idt-footer a, .idt-footer li, .idt-footer p {
  color: var(--idt-muted);
  font-size: 0.9rem;
}

.idt-footer a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.idt-footer a:hover {
  color: var(--idt-blue-light);
}

.idt-footer .idt-footer-icon {
  color: var(--idt-blue-light);
  margin-top: 0.2rem;
}

/* ---------- Page hero (inner pages) ---------- */
.idt-page-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
  border-bottom: 1px solid var(--idt-border);
}

.idt-page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
}

.idt-page-hero .container {
  position: relative;
}

/* ---------- Misc ---------- */
.idt-scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.idt-scroll-reveal.idt-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .idt-scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Logo chip: the charcoal part of the mark needs a light surface to read on dark headers */
.idt-logo-chip {
  /*background-color: #f8f9f7;*/
  /*padding: 2px;*/
}
