/* Root Colors */
:root {
  --royal-blue: #0a3d62;
  --light-green: #9b59b6;
  --dark-black: #222222;
  --white: #ffffff;
  --gray-light: #f7f9fc;
  --transition-speed: 0.4s;
}

section.fade-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  
  section.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
  }
.scroll-hint {
    animation: pulse-glow 2.5s infinite;
  }
  
  @keyframes pulse-glow {
    0%, 100% {
      text-shadow: 0 0 10px var(--light-green), 0 0 20px var(--light-green);
    }
    50% {
      text-shadow: 0 0 20px var(--light-green), 0 0 30px var(--light-green);
    }
  }
  

/* Base Reset & Fonts */
body {
  font-family: "Inter", sans-serif;
  background: var(--white);
  color: var(--dark-black);
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  color: var(--royal-blue);
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: var(--light-green);
  text-decoration: none;
}

/* Navbar */
nav.navbar {
  background: var(--royal-blue);
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.15);
  transition: background-color var(--transition-speed);
  z-index: 1050;
  transition: transform 0.4s ease, background-color 0.4s ease;
  transform: translateY(-100%);
}

nav.navbar.scrolled {
  background: #072a4b;
  box-shadow: 0 3px 15px rgb(0 0 0 / 0.3);
  transform: translateY(0);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 1px;
  transition: color var(--transition-speed);
}

.navbar-brand:hover {
  color: var(--light-green);
}

.navbar-nav .nav-link {
  color: var(--white);
  font-weight: 600;
  padding: 0.8rem 1rem;
  transition: color var(--transition-speed);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--light-green);
}

/* Dropdown Menu */
.dropdown-menu {
  border-radius: 0.5rem;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.15);
  border: none;
  min-width: 12rem;
}

.dropdown-menu a.dropdown-item {
  font-weight: 500;
  color: var(--dark-black);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a.dropdown-item:hover {
  background-color: var(--light-green);
  color: var(--white);
}

/* Hamburger toggle icon color */
.navbar-toggler {
  border-color: rgba(255 255 255 / 0.7);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* Hero Section */
header.hero {
  position: relative;
  height: 90vh;
  background: url("https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1950&q=80")
    center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 1rem;
  overflow: hidden;
}

/* Dark overlay for readability */
header.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 61, 98, 0.85);
  z-index: 0;
  backdrop-filter: brightness(0.8);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: fadeInUp 1.2s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1,
.hero-content p,
.hero-content .btn-primary {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out forwards;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgb(0 0 0 / 0.5);
  animation-delay: 0.2s;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 5px rgb(0 0 0 / 0.4);
  animation-delay: 0.5s;
}

.btn-primary {
  background-color: var(--light-green);
  border: none;
  padding: 0.75rem 2.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 40px;
  box-shadow: 0 6px 20px rgb(155 89 182 / 0.5);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.hero-content .btn-primary {
    animation-delay: 0.8s;
  }

.btn-primary:hover {
  background-color: #0a3d62;
  box-shadow: 0 10px 30px rgb(96 216 118 / 0.7);
}

/* Scroll down hint */
.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--white);
  opacity: 0.7;
  animation: bounce 2s infinite;
  cursor: default;
  user-select: none;
}


@keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.7;
  }

  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 1;
  }
}

/* Sections */
section {
  padding: 5rem 1rem;
  max-width: 1100px;
  margin: auto;
}

section h2 {
  font-weight: 700;
  font-size: 2.75rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--royal-blue);
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--light-green);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* About Section */
#about p {
  font-size: 1.1rem;
  color: #333;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/*Partner section*/
/* Additional styling for partner cards (optional if Tailwind covers it all) */
/* Container */
.partners-section {
  background: #fff;
  padding: 5rem 1rem;
  text-align: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.partners-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Title and paragraph */
#partners h2 {
  font-size: 2.75rem;
  font-weight: 800;
  color: #111827; /* dark gray */
  margin-bottom: 0.75rem;
}
#partners p {
  font-size: 1.125rem;
  color: #6b7280; /* gray-500 */
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Partners horizontal row */
.partners-row {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
}

/* Partner cards */
.partner-card {
  max-width: 220px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.partner-card img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.partner-card p {
  margin-top: 1rem;
  font-weight: 600;
  color: #374151; /* gray-700 */
}

/* Hover effect */
.partner-card:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
}
.partner-card:hover img {
  filter: grayscale(0%);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .partners-row {
    gap: 3rem;
  }
  .partner-card {
    max-width: 160px;
  }
  #partners h2 {
    font-size: 2rem;
  }
  #partners p {
    font-size: 1rem;
    max-width: 100%;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .partners-row {
    flex-direction: column;
    gap: 2.5rem;
  }
  .partner-card {
    max-width: 100%;
  }
}

/*End Partner section*/
/* Services Section */

@keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .fade-card.animate {
    animation-play-state: running;
  }
  .fade-card {
    opacity: 0;
  animation: fadeInUp 1.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  animation-play-state: paused;
  }

#services .service-card {
    background: rgba(255 255 255 / 0.9);
    color: var(--dark-black);
  border-radius: 1rem;
  box-shadow: 0 8px 18px rgb(0 0 0 / 0.08);
  padding: 2.5rem 2rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#services .service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 18px 38px rgb(0 0 0 / 0.12);
  background: var(--white);
}

#services .service-icon {
  font-size: 3.5rem;
  color: var(--royal-blue);
  margin-bottom: 1.2rem;
  transition: color 0.4s ease;
}

#services .service-card:hover .service-icon {
  color: var(--light-green);
}

#services .service-title {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--royal-blue);
}

#services .service-desc {
  font-size: 1rem;
  color: #555;
  flex-grow: 1;
  line-height: 1.5;
}

/* Industries Section */
#industries p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
  text-align: center;
}

/* Insights Section */
#insights p {
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
  text-align: center;
}

/* Contact Section */
#contact p {
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #444;
  text-align: center;
  line-height: 1.6;
}

#contact form {
  max-width: 480px;
  margin: auto;
}

#contact form .form-control {
  border-radius: 0.5rem;
  box-shadow: none;
  border: 1.5px solid #ccc;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

#contact form .form-control:focus {
  border-color: var(--light-green);
  box-shadow: 0 0 6px var(--light-green);
  outline: none;
}

#contact button[type="submit"] {
  background-color: var(--light-green);
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  padding: 0.75rem 0;
  width: 100%;
  box-shadow: 0 6px 20px rgb(155, 89, 182, 0.8);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#contact button[type="submit"]:hover {
  background-color: #9b59b6;
  box-shadow: 0 10px 30px rgba(155, 89, 182, 0.8);
}

/* Footer */
footer {
  background: var(--royal-blue);
  color: var(--white);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  user-select: none;
}

footer p {
  margin: 0.25rem 0;
}

footer .social-links a {
  color: var(--light-green);
  margin: 0 0.75rem;
  font-size: 1.25rem;
  transition: color 0.3s ease;
  display: inline-block;
}

footer .social-links a:hover {
  color: #a8f0b6;
}

/* Scrollspy highlight */
.nav-link.active {
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 3px;
  background-color: var(--light-green);
  border-radius: 3px;
}

/* Parallax background for Our Services */
#services {
  position: relative;
  background: url("https://images.unsplash.com/photo-1508830524289-0adcbe822b40?auto=format&fit=crop&w=1950&q=80")
    center center / cover no-repeat fixed;
  color: var(--white);
  padding: 6rem 1rem;
  overflow: hidden;
}

/* Dark overlay */
#services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 61, 98, 0.85);
  /* dark royal blue with transparency */
  z-index: 0;
}

/* Make sure content is above overlay */
#services > * {
  position: relative;
  z-index: 1;
}

#services .service-title,
#services h2 {
  color: var(--royal-blue);
}

#services .service-desc {
  color: #333;
}

/* Industries Section Cards */
.industry-card {
  background: var(--gray-light);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.07);
  text-align: center;
  color: var(--dark-black);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  cursor: default;
}

.industry-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.industry-icon {
  font-size: 3.5rem;
  color: var(--royal-blue);
  margin-bottom: 1rem;
  transition: color 0.4s ease;
}

.industry-card:hover .industry-icon {
  color: var(--light-green);
}

.industry-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--royal-blue);
}
#servicesTitle {
  color: white !important;
}

.industry-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
}

.insights-section {
  padding: 4rem 2rem;
  background: #f9f9f9;
}

.insights-section h2 {
  font-size: 2.5rem;
  text-align: center;
}

.insights-section .lead {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.insight-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  transform-style: preserve-3d;
  flex-direction: column;
  display: flex;
}

.insight-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.25rem;
  justify-content: space-between;
}

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-content p {
  color: #666;
  font-size: 0.95rem;
}
.card-content .btn {
  margin-top: auto;
  align-self: flex-start;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: #007bff;
  font-weight: bold;
  text-decoration: none;
}

.insight-card:hover {
  transform: scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/*Insights*/
.insights-section {
  padding: 4rem 2rem;
  background: #f9f9f9;
}
.insights-section h2,
.insights-section .lead {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.insight-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.industry-card,
.insight-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  perspective: 1000px;
}

.insight-card:hover {
  transform: scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.industry-card:hover,
.insight-card:hover {
  transform: rotateY(6deg) rotateX(6deg) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.insight-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.2rem;
}

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-size: 0.95rem;
  color: #666;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.author-meta img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.author-meta span {
  font-size: 0.85rem;
  color: #444;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.show {
  display: flex !important;
}

.modal-content {
  background: white;
  border-radius: 1rem;
  max-width: 700px;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.modal-content img {
  width: 100%;
  border-radius: 1rem;
  max-height: 300px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.modal-content h3 {
  margin-top: 0.5rem;
  font-size: 1.6rem;
}

.modal-content p {
  font-size: 1rem;
  color: #444;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
}

/*End insights*/

.swiper {
  padding: 4rem 0;
}

.swiper-slide {
  background: #fff;
  border-radius: 20px;
  text-align: center;
  padding: 2rem;
  width: 320px;
  height: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.industry-icon {
  font-size: 2.5rem;
  color: royalblue;
  margin-bottom: 1rem;
}

.industry-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.swiper-button-next,
.swiper-button-prev {
  color: royalblue;
}

.swiper-pagination-bullet-active {
  background: royalblue;
}
#here-header {
  color: white;
}

#ai-capabilities {
  position: relative;
  background: url("https://images.unsplash.com/photo-1518773553398-650c184e0bb3?auto=format&fit=crop&w=1950&q=80")
    center center / cover no-repeat fixed;
  color: var(--white);
  padding: 6rem 1rem;
  overflow: hidden;
}

#ai-capabilities::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 61, 98, 0.85); /* same dark overlay */
  z-index: 0;
}

#ai-capabilities > * {
  position: relative;
  z-index: 1;
}

/* Override card backgrounds and text colors for readability */
#ai-capabilities .service-card, /* or your AI cards class */
#ai-capabilities .ai-card {
  background: rgba(255 255 255 / 0.9);
  color: var(--dark-black);
}

#ai-capabilities .service-title,
#ai-capabilities h2 {
  color: white;
}

#ai-capabilities .service-desc {
  color: #333;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  #services .service-card {
    padding: 2rem 1.5rem;
  }
}
