/* =========================================================
   GLOBAL SETTINGS
========================================================= */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050814;
  color: #f5f7ff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   HEADER / NAVIGATION
========================================================= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(6, 10, 24, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  border-radius: 0 0 30px 30px; /* Rounded nav bar */
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.2));
}

.nav {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
}

.nav a {
  padding: 8px 16px; /* More rounded + padded */
  border-radius: 999px;
  opacity: 0.85;
  transition: 0.2s ease;
}

.nav a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

.nav a.active {
  background: #3b82f6;
  color: #f5f7ff;
  opacity: 1;
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
  padding: 70px 20px 60px;
  background: radial-gradient(circle at top left, #1b2a5a, #050814 60%);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 600px;
}

.hero-note {
  margin-top: 12px;
  font-size: 0.9rem;
  opacity: 0.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* HERO IMAGE */
.hero-image {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1022;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.35), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-image-fake span {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #3b82f6;
  color: #f5f7ff;
}

.btn-primary:hover {
  background: #5a96ff;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #f5f7ff;
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* =========================================================
   SECTIONS
========================================================= */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 50px;
}

.section-dark {
  background: #060a18;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  margin-top: 30px;
}

.section-header {
  max-width: 650px;
}

.section-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.section h2 {
  font-size: 1.7rem;
  margin: 6px 0 10px;
}

.section-intro {
  opacity: 0.8;
  font-size: 0.95rem;
}

/* =========================================================
   BUBBLE GRID & GLOW CARDS
========================================================= */
.bubble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.bubble-card {
  position: relative;
  background: #0b1022;
  border-radius: 18px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
  cursor: pointer;
}

.bubble-card::before {
  content: "";
  position: absolute;
  top: var(--mouse-y);
  left: var(--mouse-x);
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.bubble-card:hover::before {
  opacity: 1;
}

.bubble-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  border-color: rgba(59, 130, 246, 0.9);
}

.bubble-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.bubble-card p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* =========================================================
   SERVICE CARD ICONS
========================================================= */
.service-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.9;
  display: block;
}

/* =========================================================
   FILTER BUTTONS
========================================================= */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.filter-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #f5f7ff;
  font-size: 0.85rem;
  cursor: pointer;
}

.filter-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  margin-top: 40px;
  padding: 30px 20px 24px;
  background: #040611;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-columns {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.footer-col h4 {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-col li {
  margin-bottom: 4px;
}

.footer-bottom {
  max-width: 1100px;
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* =========================================================
   BACK TO TOP BUTTON
========================================================= */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #3b82f6;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 40px;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 0.8rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
