/* ============================================================
   BukhosiIT.net — Pure CSS (no framework)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2344ba;
  --primary-light: #3b5fd4;
  --primary-dark: #1a3490;
  --accent: #ff8d06;
  --accent-light: #ffa333;

  /* Dark theme (default) */
  --bg: #0a0e1a;
  --bg-2: #0f1424;
  --bg-card: #131929;
  --bg-card-hover: #1a2236;
  --border: rgba(255,255,255,0.08);
  --text: #f0f4ff;
  --text-muted: #8899bb;
  --text-dim: #4a5878;
  --nav-bg: rgba(10,14,26,0.88);
  --logo-bg: rgba(255,255,255,0.08);
  --logo-radius: 10px;
  --shadow: 0 4px 32px rgba(0,0,0,0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.25s ease;
}

[data-theme="light"] {
  --bg: #f5f7ff;
  --bg-2: #eef1fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4ff;
  --border: rgba(35,68,186,0.12);
  --text: #0d1633;
  --text-muted: #5566aa;
  --text-dim: #aab0cc;
  --nav-bg: rgba(245,247,255,0.92);
  --logo-bg: transparent;
  --logo-radius: 0px;
  --shadow: 0 4px 32px rgba(35,68,186,0.1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
html,body {
    overflow-x: hidden;
    width: 100%;
}
h1,h2,h3,h4,h5 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hide-mobile { display: inline; }

/* === GRADIENT TEXT === */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(35,68,186,0.35);
}
.btn--primary:hover { box-shadow: 0 8px 30px rgba(35,68,186,0.5); }

.btn--secondary {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border); backdrop-filter: blur(8px);
}
.btn--secondary:hover {
  border-color: var(--primary); color: var(--primary);
  background: rgba(35,68,186,0.06);
}

/* === SECTION LAYOUT === */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }

.section-label {
  display: inline-block; padding: 6px 18px; border-radius: 50px;
  background: rgba(35,68,186,0.12); color: var(--primary-light);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 16px; border: 1px solid rgba(35,68,186,0.2);
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px;
}
.section-sub {
  color: var(--text-muted); font-size: 1.05rem;
  max-width: 560px; margin: 0 auto;
}

/* === REVEAL === */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}

/* Logo image in navbar */
.navbar__logo {
  display: flex; align-items: center; flex-shrink: 0;
}
.navbar__logo img {
  height: 50px; width: auto;
  background: transparent;
  padding: 5px 12px;
  border-radius: var(--logo-radius);
  object-fit: contain;
  transition: border-radius var(--transition), padding var(--transition);
}
[data-theme="light"] .navbar__logo img {
  background: transparent;
  padding: 0;
}

.navbar__nav { display: flex; align-items: center; gap: 8px; }

.nav-link {
  padding: 8px 16px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text); background: rgba(255,255,255,0.06);
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active { background: rgba(35,68,186,0.08); }
.nav-link.active { color: var(--primary-light); font-weight: 600; }

.navbar__actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); background: var(--bg-card);
  border: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
}
.theme-toggle:hover { color: var(--accent); }

[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; align-items: center; justify-content: center;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding-top: 72px;
}

.hero__orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.hero__orb--blue {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(35,68,186,0.3) 0%, transparent 70%);
  top: -100px; left: -150px;
}
.hero__orb--orange {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,141,6,0.2) 0%, transparent 70%);
  bottom: -50px; right: -100px; animation-delay: -4s;
}

@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero__inner {
  position: relative; z-index: 1;
  text-align: center; padding: 80px 24px;
  width: 100%;
}

/* Hero logo icon — large B mark with animated ring */
.hero__logo-wrap {
  position: relative;
  width: 140px; height: 140px;
  margin: 0 auto 32px;
  display: flex; align-items: center; justify-content: center;
}
.hero__logo-ring {
  position: absolute; inset: -6px; border-radius: 28px;
  background: conic-gradient(var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
  animation: spin 6s linear infinite;
  opacity: 0.7;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__logo-icon {
  width: 140px; height: 140px;
  border-radius: 24px;
  object-fit: cover;
  position: relative; z-index: 1;
  box-shadow: 0 20px 60px rgba(35,68,186,0.4);
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 50px;
  background: rgba(35,68,186,0.12);
  border: 1px solid rgba(35,68,186,0.25);
  color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.1); }
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 24px;
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.18rem); color: var(--text-muted);
  max-width: 560px; margin: 0 auto 40px; line-height: 1.7;
}
.hero__cta {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 64px;
}

.hero__stats {
  display: inline-flex; align-items: center; gap: 32px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 24px 40px;
  flex-wrap: wrap; justify-content: center;
}

.mina {
  width: 90%;
  max-width: 320px;
  height: auto;
  border-radius: 5px;
}

.mina img {
  width: 100%;
  height: 100%;
}

.stat { text-align: center; }
.stat__num {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; font-weight: 800; color: var(--primary-light);
}
.stat__label {
  display: block; font-size: 0.75rem; color: var(--text-muted);
  margin-top: 2px; text-transform: uppercase; letter-spacing: 0.05em;
}
.stat__divider { width: 1px; height: 40px; background: var(--border); }

.hero__scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; animation: float 3s ease-in-out infinite;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--text-dim), transparent); }

/* === ABOUT === */
.about { background: var(--bg-2); }

.about__grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 80px; align-items: center;
}

.about__visual {
  display: flex; flex-direction: column;
  align-items: center; gap: 24px;
}

/* Full logo (B icon + text) displayed in a card */
.about__logo-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(35,68,186,0.2);
  border: 1px solid rgba(35,68,186,0.15);
  display: flex; align-items: center; justify-content: center;
}
.about__logo-card img {
  width: 100%; max-width: 280px;
  height: auto; object-fit: contain;
}

.about__float-cards { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.about__float-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 18px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted); text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.about__float-card:hover { transform: translateX(8px); border-color: var(--primary); color: var(--text); }

.about__bio { color: var(--text-muted); font-size: 1rem; margin-bottom: 16px; line-height: 1.75; }
.about__bio strong { color: var(--text); }

.about__skills { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }
.skill-tag {
  padding: 6px 16px; border-radius: 50px;
  background: rgba(35,68,186,0.1); border: 1px solid rgba(35,68,186,0.2);
  color: var(--primary-light); font-size: 0.82rem; font-weight: 600;
}

/* === SERVICES === */
.services__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transition: transform var(--transition); transform-origin: left;
}
.service-card:hover {
  transform: translateY(-6px); border-color: rgba(35,68,186,0.3);
  box-shadow: 0 20px 40px rgba(35,68,186,0.1);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: rgba(35,68,186,0.1); border: 1px solid rgba(35,68,186,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); margin-bottom: 20px;
  transition: background var(--transition);
}
.service-card:hover .service-card__icon { background: rgba(35,68,186,0.2); }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.service-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.service-card__tag {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  background: rgba(255,141,6,0.1); color: var(--accent);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid rgba(255,141,6,0.2);
}

.services__cta {
  text-align: center; margin-top: 56px; padding: 40px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.services__cta p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }
.services__cta strong { color: var(--text); }

/* === LOCATION === */
.location { background: var(--bg-2); }
.location__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.location__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.location__map iframe {
  width: 100%; height: 440px; border: none; display: block;
  filter: saturate(0.8) brightness(0.9);
}
[data-theme="light"] .location__map iframe { filter: none; }

.location__info { display: flex; flex-direction: column; gap: 16px; }
.location__card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px;
  transition: border-color var(--transition), transform var(--transition);
}
.location__card:hover { border-color: rgba(35,68,186,0.3); transform: translateX(4px); }
.location__card-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.location__card h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.location__card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.location__card strong { color: var(--text); }

/* === CONTACT === */
.contact__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  flex-flow: row wrap;
}
.contact-card:hover {
  transform: translateY(-4px); border-color: rgba(35,68,186,0.3);
  box-shadow: 0 12px 32px rgba(35,68,186,0.1);
}
.contact-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card__info { flex: 1; min-width: 0; }
.contact-card__label {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 3px;
}
.contact-card__value {
  display: block; font-size: 0.88rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.contact-card__arrow {
  color: var(--text-dim); flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}
.contact-card:hover .contact-card__arrow { color: var(--primary-light); transform: translateX(4px); }

/* === FOOTER === */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }

.footer__brand { }
.footer__logo-link { display: inline-block; margin-bottom: 14px; }
.footer__logo-img {
  height: 56px; width: auto;
  background: white; padding: 10px 16px; border-radius: 12px;
  object-fit: contain;
}
[data-theme="light"] .footer__logo-img { background: transparent; padding: 0; }

.footer__brand p { font-size: 0.88rem; color: var(--text-muted); max-width: 260px; line-height: 1.6; }

.footer__links h4, .footer__contact h4 {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 16px;
}
.footer__links a, .footer__contact a, .footer__contact p {
  display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px;
  transition: color var(--transition);
}
.footer__links a:hover, .footer__contact a:hover { color: var(--primary-light); }

.footer__bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer__bottom .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.footer__bottom p { font-size: 0.82rem; color: var(--text-dim); }

/* === FLOATING WHATSAPP === */
.wa-float {
  position: fixed; bottom: calc(28px + env(safe-area-inset-bottom)); right: 28px; z-index: 99999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-wa 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.6); animation: none; }
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 4px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 36px rgba(37,211,102,0.65); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2,1fr); }
  .contact__grid { grid-template-columns: repeat(2,1fr); }
  .about__grid { gap: 48px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hide-mobile { display: none; }
  .wa-float {bottom: 100px;}
  .hamburger { display: flex; }
  .navbar__nav {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    flex-direction: column; padding: 20px 24px 32px; gap: 4px;
    transform: translateY(-120%); opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none; border-bottom: 1px solid var(--border);
  }
  .navbar__nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-link { padding: 12px 16px; width: 100%; }

  .hero__stats { gap: 20px; padding: 20px 24px; }
  .stat__divider { display: none; }

  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__visual { order: -1; }

  .services__grid { grid-template-columns: 1fr; }
  .location__grid { grid-template-columns: 1fr; }
  .location__map iframe { height: 300px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__brand { grid-column: auto; }
  .footer__bottom .container { flex-direction: column; text-align: center; gap: 6px; }
}

@media (max-width: 480px) {
  .hero__logo-wrap { width: 110px; height: 110px; }
  .hero__logo-icon { width: 110px; height: 110px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .btn { padding: 13px 22px; font-size: 0.9rem; }
  .hero__stats { width: 100%; }
}

@media screen and (min-width:768px) and (max-width:1020px) {
  .ok {display: none;}
}