/* ===========================
   BrightHorizon Infotech Clone
   style.css
=========================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #1a3c6e;
  --accent-orange: #e87722;
  --accent-blue: #2d6cdf;
  --text-dark: #1a1a2e;
  --text-muted: #555;
  --white: #fff;
  --light-bg: #f7f9fc;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --nav-height: 75px;
  --transition: 0.3s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(15, 30, 60, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 135px;
  width: 330px;
  background: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links li a {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links li a:hover { color: var(--accent-orange); }
.nav-links li a .chevron {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Dropdown */
.nav-item { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% );
  left: 0;
  background: var(--accent-blue);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all var(--transition);
}
.nav-item:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
  display: block;
}
.dropdown li a {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark) !important;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.dropdown li a:hover { background: var(--light-bg); color: var(--accent-blue) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 25px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   HERO SLIDER
=========================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.slide.active { opacity: 1; z-index: 1; }

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 12px;
}
.slide-content h2 {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  margin-bottom: 22px;
}
.slide-content p {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 36px;
}

/* Hero CTA Button */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--text-dark);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-hero:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-hero svg { width: 18px; height: 18px; }

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.slider-arrow:hover { background: rgba(255,255,255,0.3); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}
.dot.active { background: var(--white); }

/* ===========================
   FLOATING BUTTONS (right side)
=========================== */
.floating-btns {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), opacity var(--transition);
  text-decoration: none;
}
.float-btn:hover { transform: scale(1.1); }
.float-btn.chat  { background: #1a3c6e; }
.float-btn.whatsapp { background: #25d366; }
.float-btn.messenger { background: #0084ff; }

/* ===========================
   SECTIONS COMMON
=========================== */
section { padding: 90px 48px; }
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.8;
}

/* ===========================
   OUR MISSION
=========================== */
.mission {
  background: var(--white);
  padding: 80px 48px;
}
.mission-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 60px 70px;
  box-shadow: var(--card-shadow);
  text-align: center;
}
.mission-card h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--text-dark);
}
.mission-card p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-muted);
}

/* ===========================
   OUR SERVICES
=========================== */
.services { background: var(--light-bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto 48px;
}
.service-card {
  background: var(--white);
  border-radius: 14px;
  padding: 36px 28px;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.service-icon {
  width: 54px; height: 54px;
  background: #e8f0fe;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 26px; height: 26px; color: var(--accent-blue); }
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: center;
}
.services-cta { text-align: center; }

/* Dark CTA button */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-dark);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 2px solid var(--text-dark);
}
.btn-dark:hover {
  background: transparent;
  color: var(--text-dark);
}

/* ===========================
   OUR CLIENTS
=========================== */
.clients { background: var(--white); }
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}
.client-logo {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 90px;
  transition: box-shadow var(--transition);
}
.client-logo:hover { box-shadow: var(--card-shadow); }
.client-logo img { max-height: 50px; width: auto; filter: grayscale(20%); }

/* Text fallback for client logos */
.client-logo span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: #111827;
  color: rgba(255,255,255,0.8);
  padding: 70px 48px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 50px;
}
.footer-brand img { 
  height: 90px; 
  width: 190%;
  margin-bottom: 18px; 
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}
.social-links a:hover { background: var(--accent-blue); color: white; }

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}
.contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--accent-blue); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom .legal { display: flex; gap: 20px; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  section { padding: 60px 24px; }
  .mission-card { padding: 40px 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* Mobile nav open */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: #0f1e3c;
  padding: 24px;
  gap: 20px;
  z-index: 999;
}
