/* ========================
   Base Styles
======================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* height of fixed navbar */
}

body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  background-color: #f8fafc;
  scroll-behavior: smooth;
  padding-top: 30px;
}

p {
  font-size: 18px;
}

a {
  text-decoration: none;
}

/* ========================
   Navbar + Topbar
======================== */
.topbar {
  z-index: 1031;
  /* above navbar */
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .nav-link {
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover {
  color: #2563eb;
}

/* Search */
.nav-search {
  position: relative;
  transition: all 0.3s;
}

.nav-search input {
  width: 0;
  opacity: 0;
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
  border: 1px solid #ccc;
  transition: all 0.3s;
}

.nav-search.active input {
  width: 200px;
  opacity: 1;
  margin-left: 0.5rem;
}

.nav-search button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Search expand effect (optional alt field) */
#searchInput {
  width: 160px;
  transition: all 0.3s ease;
}

#searchInput:focus {
  width: 220px;
}

/* ========================
   Hero
======================== */
.hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: white;
  padding: 9rem 0 6rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.hero .btn-primary {
  background-color: #2563eb;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
}

.hero .btn-outline-light {
  border-radius: 50px;
}

.hero .card-modern {
  z-index: 1;
  position: relative;
}

.hero h1,
.hero p,
.hero .btn {
  z-index: 1;
  position: relative;
}


/* ========================
   Sections + Cards
======================== */
.section {
  padding: 4rem 0;
}

.card-modern,
#founders .card {
  border: none;
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

.card-modern:hover,
#founders .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.card:hover {
  cursor: pointer;
}

.card:hover h5,
.card:hover p {
  color: #2563eb;
}

/* Founders */
#founders .card a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

#founders .card a:hover {
  text-decoration: underline;
}

/* Client Cards */
.client-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.client-card-body {
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
}

/* News Cards */
#news .card-img-top {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

/* ========================
   Contact
======================== */
#contact .card-modern {
  border: none;
  border-radius: 1.5rem;
  transition: all 0.4s ease;
}

#contact .card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

#contact .map-container img {
  border-top: 1px solid #eee;
  object-fit: cover;
  height: 220px;
}

/* ========================
   Footer
======================== */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
}

footer h6 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

footer a {
  color: #cbd5e1;
  transition: 0.3s;
}

footer a:hover {
  color: #ffffff;
}

footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1e293b;
  margin-right: 8px;
  transition: 0.3s;
}

footer .social a:hover {
  background: #2563eb;
}

/* ========================
   Animations
======================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}



/* ========================
   Responsive
======================== */
@media (max-width: 991px) {
  .topbar {
    display: none;
  }

  .navbar {
    margin-top: 0 !important;
    top: 0 !important;
  }

  body {
    padding-top: 0 !important;
  }

  /* Hero text resize for mobile */
  .hero h1 {
    font-size: 2rem !important;
  }

  .hero p {
    font-size: 1rem !important;
  }

  .hero {
    padding: 6rem 1rem 4rem !important;
  }
}