:root {
  --bg: #0b1020;
  --bg-soft: #121933;
  --card: #161d37;
  --text: #f2f5ff;
  --muted: #9ea8c5;
  --accent: #3ecbff;
  --accent-2: #6a5cff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 110% -10%, rgba(106, 92, 255, 0.24), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(62, 203, 255, 0.16), transparent 60%),
    var(--bg);
}

#mainNav {
  background: rgba(10, 14, 30, 0.92);
  backdrop-filter: blur(8px);
  transition: box-shadow .2s ease;
}

#mainNav.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }

.navbar-brand { font-size: 1.9rem; letter-spacing: -0.5px; }

.brand-mark {
  display: inline-block;
  width: 14px;
  height: 28px;
  border-radius: 16px;
  background: linear-gradient(170deg, var(--accent), var(--accent-2));
  transform: skew(-14deg);
}

.py-lg-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }

.text-accent { color: var(--accent); }
.text-gradient {
  background: linear-gradient(90deg, var(--accent), #6ad1ff 40%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-secondary { color: var(--muted) !important; }

.hero-card {
  position: relative;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(140deg, rgba(62, 203, 255, 0.24), rgba(106, 92, 255, 0.2));
}

.hero-card-inner {
  border-radius: 16px;
  background: rgba(14, 20, 42, 0.9);
  border: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem;
}

.hero-card h3 { font-size: 1.2rem; }
.hero-card li { color: #dce3fb; margin-bottom: .7rem; }
.hero-card i { color: var(--accent); }

.icon-chip {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #1f2848;
  border: 1px solid rgba(255,255,255, .12);
  color: var(--accent);
}

.chip-1 { top: -14px; right: 46px; }
.chip-2 { top: 48px; right: -12px; }
.chip-3 { bottom: 18px; left: -12px; }

.section-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.5px; }

.service-card,
.project-card,
.blog-card {
  background: rgba(20, 27, 52, 0.8);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 1.3rem;
  transition: transform .25s ease, border-color .25s ease;
}

.service-card:hover,
.project-card:hover,
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(62, 203, 255, 0.6);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: .9rem;
  background: linear-gradient(130deg, rgba(62,203,255,.28), rgba(106,92,255,.2));
  color: var(--accent);
}

.service-card h3 { font-size: 1.35rem; font-weight: 600; }
.service-card p { color: var(--muted); min-height: 72px; }

.project-image {
  height: 220px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.project-image::before {
  content: '';
  position: absolute;
  inset: 12% 12%;
  border-radius: 14px;
  background: rgba(8, 12, 26, 0.45);
  border: 1px solid rgba(255,255,255,.18);
}

.gradient-purple { background: linear-gradient(110deg, #4f46e5, #8b5cf6); }
.gradient-yellow { background: linear-gradient(110deg, #f59e0b, #fbbf24); }
.gradient-orange { background: linear-gradient(110deg, #fb923c, #fcd34d); }
.gradient-blue { background: linear-gradient(110deg, #2563eb, #0ea5e9); }

.process-wrapper {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.1);
}

.process-step {
  padding: 1.7rem;
  background: rgba(20, 27, 52, 0.72);
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.process-step span {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
}

.process-step h3 { margin-top: .4rem; font-size: 1.4rem; }
.process-step p { color: var(--muted); margin: 0; }
.process-step-gradient { background: linear-gradient(120deg, rgba(98,56,255,.92), rgba(94,116,255,.92)); }
.process-step-gradient p { color: #e9ecff; }

.blog-image {
  height: 160px;
  border-radius: 12px;
  margin-bottom: 1rem;
  background:
    radial-gradient(circle at 20% 30%, rgba(62,203,255,.45), transparent 35%),
    radial-gradient(circle at 70% 20%, rgba(106,92,255,.48), transparent 40%),
    #172041;
}


.reveal-segment {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-segment.is-visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  background: linear-gradient(180deg, rgba(13,18,35,.1), rgba(13,18,35,.7));
}

footer h4 { font-size: 1.1rem; margin-bottom: .8rem; }
.footer-links a, .footer-links li {
  color: var(--muted);
  text-decoration: none;
  margin-bottom: .5rem;
  display: inline-block;
}
.footer-links a:hover { color: var(--accent); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 991px) {
  .service-card p { min-height: auto; }
  .process-step { border-right: none; }
}


.hero .text-accent,
.hero h1,
.hero .lead,
.hero .btn,
.hero-card,
#mainNav .nav-link {
  will-change: transform, opacity;
}

.icon-chip {
  will-change: transform;
}
