/* ======================== Google Fonts and Global Styles ======================== */
:root {
  --primary-color: #007bff;
  --secondary-color: #495057;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --text-primary: #2c3e50;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --body-font: 'Poppins', sans-serif;
  --heading-font: 'Playfair Display', serif;
  --primary-gradient: linear-gradient(45deg, #007bff, #0056b3);
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
}

body {
  font-family: var(--body-font);
  color: var(--text-primary);
  background-color: #f0f2f5;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: #0056b3;
}

.container {
  max-width: 1200px;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #0056b3, #007bff);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.section-header {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-top: 1rem;
  text-transform: uppercase;
  font-weight: 600;
}

/* Ensure sections are visible by default for scrapers and no-JS users */
.animated-section {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Only hide and animate if JavaScript is enabled */
.js-enabled .animated-section {
  opacity: 0;
  transform: translateY(50px);
}

.js-enabled .animated-section.animate {
  opacity: 1;
  transform: translateY(0);
}

/* ======================== Navbar ======================== */
.navbar {
  box-shadow: var(--shadow-light);
  transition: all 0.4s ease;
  padding: 1rem 0;
}

.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.navbar .navbar-brand img {
  height: 50px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar .nav-link {
  font-weight: 500;
  color: var(--dark-color);
  position: relative;
  margin: 0 10px;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
  z-index: 3; /* ensure the underline sits above background */
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

.nav-btn {
  /* Make CTA match the regular nav-link appearance */
  background: transparent;
  color: var(--dark-color) !important;
  padding: 0.5rem 0; /* match nav-link vertical padding */
  border-radius: 0;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
}

.nav-btn:hover {
  color: #0056b3;
  background: transparent;
}

/* CTA now matches regular nav links; no special underline needed */

.navbar .container {
  max-width: 100%;
  padding: 0 50px;
}

/* ======================== Hero Section ======================== */
.hero-section {
  background-color: #fff;
  padding: 10rem 0 5rem;
  overflow: hidden;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-family: var(--heading-font);
  color: var(--dark-color);
  font-weight: 800;
  animation-duration: 1.5s;
}

.hero-content p {
  margin: 2rem 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.hero-image img {
  max-height: 500px;
  width: auto;
  margin-left: auto;
  display: block;
}

/* ======================== About Section ======================== */
#about {
  background-color: #fff;
}

.about-image-container {
  position: relative;
  padding-bottom: 75%;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.homepage-about-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

/* ======================== Services Section ======================== */
.services-section {
  background-color: #f8f9fa;
  padding: 8rem 0;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}

.service-card {
  background: #fff;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-title {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.service-description {
  flex-grow: 1;
  color: var(--text-secondary);
}

.service-link {
  font-weight: 600;
  margin-top: 20px;
  display: inline-block;
}

/* ======================== Skills Section ======================== */
.partnership-section {
  padding: 5rem 0;
}

.partnership-section h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark-color);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  align-items: center;
}

.partner-logo {
  text-align: center;
  filter: grayscale(0%);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.partner-logo:hover {
  filter: grayscale(100%);
  transform: scale(1.1);
}

.partner-logo:hover span {
  color: var(--text-secondary);
}

.partner-logo img {
  height: 60px;
  width: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}

.partner-logo span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ======================== Team Section ======================== */
.team-hero {
  background-image: url('https://images.unsplash.com/photo-1573496359142-b8d87734b3a4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
  padding: 8rem 0;
  color: white;
  position: relative;
  z-index: 1;
}

.team-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.team-hero-title {
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.team-section {
  background-color: #f8f9fa;
  padding: 5rem 0;
}

.team-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.team-image {
  position: relative;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  color: #fff;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: translateY(-5px);
  color: var(--primary-color);
}

.team-info {
  padding: 30px;
  text-align: center;
}

.team-name {
  font-size: 1.5rem;
  margin-bottom: 5px;
  font-family: var(--body-font);
}

.team-role {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
}

.team-description {
  margin-top: 15px;
  font-size: 0.9rem;
  height: 70px;
  overflow: hidden;
  color: var(--text-secondary);
}

.btn-portfolio {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  background: transparent;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
}

.btn-portfolio:hover {
  background: var(--primary-color);
  color: #fff;
}

/* ======================== Values Section ======================== */
.values-section {
  background: #fff;
  padding: 5rem 0;
}

.values-title {
  color: var(--dark-color);
}

.value-card {
  background: #f8f9fa;
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  height: 100%;
}

.value-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-hover);
  background: var(--primary-color);
  color: #fff;
}

.value-card:hover h3,
.value-card:hover p {
  color: #fff;
}

.value-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  color: #fff;
  transform: scale(1.1);
}

.value-card h3 {
  font-size: 1.3rem;
  font-family: var(--body-font);
  font-weight: 600;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ======================== How It Works Section ======================== */
.how-it-works {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: var(--dark-color);
  color: #fff;
  max-width: 1200px;
  margin: 0 auto;
}

.our {
  color: #cec5c5 !important;
}

.how-text {
  padding: 80px 50px;
  flex: 1 1 50%;
}

.how-text h5 {
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 2px;
}

.how-text h2 {
  font-size: 2.5rem;
  margin: 10px 0;
}

.how-text h4 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.step-box {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.step-box:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.step-number {
  background: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.how-image {
  flex: 1 1 50%;
  background-image: url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80');
  background-size: cover;
  background-position: center;
  min-height: 400px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.promo-box {
  background: rgba(0, 0, 0, 0.7);
  padding: 30px 40px;
  border-radius: var(--border-radius);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.5s ease;
}

.how-image:hover .promo-box {
  transform: scale(1);
}

.promo-box h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 20px;
}

.promo-box a.btn-primary {
  width: auto;
}

/* ======================== Projects Section ======================== */
.projects-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.article-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.article-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.1);
}

.article-category {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--primary-color);
  color: #fff;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.article-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-title {
  font-size: 1.4rem;
  font-family: var(--body-font);
  font-weight: 600;
  margin-bottom: 10px;
}

.article-title:hover {
  color: var(--primary-color);
}

.article-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.article-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.read-more-link {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ======================== Testimonials Section ======================== */
.testimonials-section {
  background: var(--primary-gradient);
  color: #fff;
  padding: 5rem 0;
}

.testimonials-section .section-title,
.testimonials-section .section-subtitle {
  color: #fff;
}

.testimonials-carousel-container {
  position: relative;
  margin-top: 4rem;
  overflow: hidden;
}

.testimonials-carousel {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card {
  min-width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: var(--border-radius);
  margin: 0 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quote-icon {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 25px;
  flex-grow: 1;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.client-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
}

.client-name {
  font-size: 1.1rem;
  font-family: var(--body-font);
  font-weight: 600;
  margin-bottom: 0;
}

.client-role {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #fff;
  width: 15px;
  height: 15px;
}

/* ======================== FAQ Section ======================== */
.faq-section {
  padding: 5rem 0;
}

.faq-header {
  text-align: center;
  margin-bottom: 4rem;
}

.faq-subtitle {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
}

.faq-title {
  font-size: 2.5rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.accordion-item {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background-color: #f8f9fa;
  color: var(--primary-color);
}

.accordion-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(-180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.accordion-content.active {
  max-height: 200px;
  padding: 0 25px 25px;
}

.accordion-content p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* ======================== Contact Section ======================== */
.contact-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}

.contact-info {
  flex: 1 1 40%;
  background: var(--primary-gradient);
  color: #fff;
  padding: 40px;
}

.contact-title {
  font-size: 2rem;
}

.contact-subtitle {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  opacity: 0.95;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.info-content h4 {
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
}

.info-content p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

.contact-form {
  flex: 1 1 60%;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.error-message {
  color: red;
  font-size: 0.85rem;
  position: absolute;
  bottom: -20px;
  left: 0;
  display: none;
}

/* ======================== Footer Section ======================== */
.footer {
  background: var(--dark-color);
  color: #fff;
  padding: 5rem 0 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  flex: 1 1 250px;
}

.footer-logo img {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-social {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-links-container {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 50%;
  gap: 20px;
  justify-content: space-around;
}

.footer-column {
  flex: 1 1 150px;
}

.footer-column h4 {
  font-family: var(--body-font);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
}

.footer-links li {
  list-style: none;
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .how-text,
  .how-image {
    flex-basis: 100%;
  }

  .how-image {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 7rem 0 3rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-image {
    display: none !important;
  }

  .contact-card {
    flex-direction: column;
  }

  .contact-info,
  .contact-form {
    flex-basis: 100%;
  }

  .footer-links-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}