:root{
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --text: #0f172a;
  --muted: rgba(15,23,42,0.72);

  --primary: #6366F1;   /* indigo */
  --accent:  #22C55E;   /* mint */
  --accent2: #A3E635;   /* lime */
  --cyan:    #06B6D4;

  --card: #ffffff;
  --card-border: rgba(2,6,23,0.08);
  --shadow: 0 18px 55px rgba(2,6,23,0.08);
}

html[data-theme="dark"]{
  --bg: #070b14;
  --bg-soft: #0b1220;
  --text: #e5e7eb;
  --muted: rgba(229,231,235,0.72);

  --card: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.12);
  --shadow: 0 18px 55px rgba(0,0,0,0.35);
}

body{ background: var(--bg); color: var(--text); }
.bg-soft{ background: var(--bg-soft); }

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

.nav-blur{
  background: rgba(11,18,32,0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
html[data-theme="light"] .nav-blur{
  background: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(2,6,23,0.08);
}

.navbar .nav-link{ color: rgba(255,255,255,0.82); }
html[data-theme="light"] .navbar .nav-link{ color: rgba(15,23,42,0.80); }
.navbar .nav-link.active{ color: #fff; }
html[data-theme="light"] .navbar .nav-link.active{ color: #0f172a; }

/* Responsive header logo (your provided image) */
.brand-logo{
  height: clamp(6rem, 3.2vw, 46px);
  width: auto;
  max-width: 280px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* Footer logo slightly smaller */
.brand-logo-footer{
  height: clamp(6rem, 2.6vw, 40px);
}

/* Make the logo appear white in dark mode */
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: inline-block; }

.btn-icon{
  width: 40px; height: 40px;
  border-radius: 14px;
  display: grid; place-items:center;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
}
html[data-theme="light"] .btn-icon{
  border: 1px solid rgba(2,6,23,0.10);
  background: rgba(2,6,23,0.04);
  color: #0f172a;
}

.min-vh-75{ min-height: 75vh; }
.home-slider{ position: relative; overflow: hidden; }

.slide-bg{ position:absolute; inset:0; z-index:0; opacity: 0.96; transform: scale(1.02); }
.bg-1{
  background:
    radial-gradient(1200px 600px at 20% 20%, rgba(99,102,241,0.55), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(6,182,212,0.40), transparent 60%),
    radial-gradient(900px 500px at 65% 85%, rgba(34,197,94,0.28), transparent 60%),
    linear-gradient(120deg, #050812, #0b1220 45%, #0b1220);
}
.bg-2{
  background:
    radial-gradient(1200px 600px at 30% 20%, rgba(34,197,94,0.45), transparent 60%),
    radial-gradient(900px 500px at 75% 35%, rgba(99,102,241,0.45), transparent 60%),
    linear-gradient(120deg, #050812, #0b1220 45%, #0b1220);
}
.bg-3{
  background:
    radial-gradient(1200px 600px at 25% 20%, rgba(6,182,212,0.45), transparent 60%),
    radial-gradient(900px 500px at 78% 40%, rgba(163,230,53,0.30), transparent 60%),
    linear-gradient(120deg, #050812, #0b1220 45%, #0b1220);
}

.carousel-item .container{ position: relative; z-index: 1; }
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  font-size: 0.9rem;
}
.pill-mint{ background: rgba(34,197,94,0.16); border-color: rgba(34,197,94,0.28); }
.pill-lime{ background: rgba(163,230,53,0.14); border-color: rgba(163,230,53,0.25); }

.card-surface{
  background: var(--card);
  border: 1px solid var(--card-border) !important;
  box-shadow: var(--shadow);
}

.feature-card, .project-card, .stat-card{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover{ transform: translateY(-3px); }
.feature-icon{
  width: 46px; height: 46px;
  border-radius: 16px;
  display:grid; place-items:center;
  background: rgba(99,102,241,0.14);
  color: var(--primary);
  font-size: 20px;
}

.project-tag{
  display:inline-flex; align-items:center; gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(99,102,241,0.14);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}
.project-tag.mint{ background: rgba(6,182,212,0.14); color: var(--cyan); }
.project-tag.lime{ background: rgba(163,230,53,0.16); color: #65a30d; }

.stat-num{ font-size: 34px; font-weight: 900; letter-spacing: -0.5px; }

.cta{
  background:
    radial-gradient(900px 450px at 20% 20%, rgba(6,182,212,0.35), transparent 60%),
    radial-gradient(900px 450px at 85% 35%, rgba(99,102,241,0.50), transparent 60%),
    radial-gradient(900px 450px at 60% 90%, rgba(34,197,94,0.25), transparent 60%),
    linear-gradient(120deg, #0b1220, #0b1220);
}

.footer{
  background: #0b1220;
  color: rgba(255,255,255,0.85);
}
.footer h6{ color:#fff; }
.footer-links a{ color: rgba(255,255,255,0.74); text-decoration:none; }
.footer-links a:hover{ color:#fff; }
.social{
  width: 40px; height: 40px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color:#fff; text-decoration:none;
}

.page-header{
  background:
    radial-gradient(900px 450px at 20% 30%, rgba(99,102,241,0.45), transparent 60%),
    radial-gradient(900px 450px at 80% 20%, rgba(6,182,212,0.28), transparent 60%),
    radial-gradient(900px 450px at 60% 90%, rgba(34,197,94,0.18), transparent 60%),
    linear-gradient(120deg, #050812, #0b1220 45%, #0b1220);
}

.about-chip, .about-list{
  display:flex; align-items:center; gap:10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.contact-card{
  background:
    radial-gradient(900px 450px at 20% 30%, rgba(99,102,241,0.10), transparent 60%),
    radial-gradient(900px 450px at 80% 20%, rgba(6,182,212,0.10), transparent 60%),
    var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.contact-ic{
  width: 44px; height: 44px;
  border-radius: 16px;
  display:grid; place-items:center;
  background: rgba(34,197,94,0.16);
  color: #16a34a;
  font-size: 20px;
}

.whatsapp-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  z-index: 9999;
  background: #25D366;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
  color:#fff;
  font-size: 26px;
}

.carousel-control-prev, .carousel-control-next-icon{
  display: none;
}


/* 1) Global overflow fix */
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* 2) Prevent any element from causing overflow */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 3) Hide overflow from sections that use big backgrounds/gradients */
.home-slider,
.page-header {
  overflow: hidden;
}

/* 4) If any element uses 100vw, replace behavior with 100% */
.slide-bg {
  width: 100%;
  left: 0;
  right: 0;
}

/* 5) Extra safety for Bootstrap rows (rare but helps) */
.container, .container-fluid {
  overflow-x: clip; /* modern browsers */
}