/* ============================================
   BHU Group — Main Stylesheet
   ============================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #06090F;
  --bg2: #0D1220;
  --bg3: #111826;
  --accent: #3B82F6;
  --accent2: #60A5FA;
  --accent-glow: rgba(59,130,246,0.18);
  --text: #F1F5FB;
  --muted: #7A8BA8;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(59,130,246,0.25);
  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 5%;
  background: rgba(6,9,15,0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s, background 0.3s;
}

.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-bottom: 2px;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent2) !important; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 5% 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: 20%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid var(--border2);
  color: var(--accent2);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
  animation: fadeUp 0.6s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-h1 .accent { color: var(--accent2); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  font-weight: 300;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn-ghost:hover { border-color: var(--accent2); color: var(--accent2); transform: translateY(-1px); }

/* ── HERO CAROUSEL ── */
.hero-carousel-wrap {
  width: calc(100% + 10%);
  margin-left: -5%;
  margin-top: 3rem;
  overflow: hidden;
}

.hero-carousel-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 5%;
  margin-bottom: 1rem;
}

.logo-img.logo-img--color {
  filter: none;
  opacity: 0.9;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
}

.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.carousel-track:hover { animation-play-state: paused; }

.logo-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 2.2rem;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: border-color 0.25s, background 0.25s;
  cursor: default;
}

.logo-card:hover {
  border-color: var(--border2);
  background: rgba(59,130,246,0.05);
}

.logo-industry {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.logo-img-wrap {
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.logo-img {
  width: 120px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.2s;
}

.logo-card:hover .logo-img { opacity: 1; }

.logo-fallback {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--accent-glow);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent2);
}

/* ── SECTION SHARED ── */
section { padding: 4rem 5%; }

.section-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--muted);
  font-weight: 300;
  max-width: 560px;
  font-size: 1.05rem;
}

/* ── SERVICES ── */
#services { background: var(--bg); }

.services-intro { margin-bottom: 3.5rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.service-card {
  background: var(--bg2);
  padding: 2.2rem;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover { background: var(--bg3); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 46px; height: 46px;
  background: var(--accent-glow);
  border: 1px solid var(--border2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  font-size: 1.3rem;
}

.service-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}

.service-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  font-weight: 300;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(59,130,246,0.08);
  color: var(--accent2);
  border: 1px solid rgba(59,130,246,0.15);
  font-weight: 500;
}

/* ── PROCESS ── */
#process { background: var(--bg); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.process-step {
  position: relative;
  padding: 1.8rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.25s, transform 0.2s;
}

.process-step:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
}

.step-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(59,130,246,0.12);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.step-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.step-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  font-weight: 300;
}

/* ── ABOUT ── */
#about { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.about-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: border-color 0.25s, transform 0.2s;
}

.about-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
}

.about-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-initials {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent2);
  letter-spacing: -0.02em;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent2);
  letter-spacing: 0.02em;
}

.about-bio {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  font-weight: 300;
  margin-top: 0.4rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

/* ── CTA ── */
#cta {
  background: var(--bg2);
  text-align: center;
  padding: 7rem 5%;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}

#cta .section-title { margin: 0 auto 1rem; }
#cta .section-sub { margin: 0 auto 2.5rem; }

.cta-note {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.cta-note a {
  color: var(--accent2);
  text-decoration: none;
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-logo .logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── MOBILE ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  #cta .btn-primary { width: 100%; justify-content: center; }
}

.about-avatar.photo {
  background: none;
  border: 2px solid var(--border2);
  overflow: hidden;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}