/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  overflow-x: hidden;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
}

/* Critical: Prevents scrolling while the loader is active */
body.loading {
  overflow: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: #4a4a4a;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #1a1a1a;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 8%;
  gap: 15rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.03) 0%,
    transparent 100%
  );
  z-index: 0;
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #1a1a1a;
  border-radius: 50px;
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 1px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  letter-spacing: -1px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: #6a6a6a;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 0.5s both;
  justify-content: center;
}

.btn {
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #1a1a1a;
  color: white;
}

.btn-primary:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: #1a1a1a;
  border: 1.5px solid #e0e0e0;
}

.btn-secondary:hover {
  border-color: #1a1a1a;
  background: #fafafa;
}

/* Hero Image */
.hero-image {
  position: relative;
  z-index: 1;
  animation: fadeInRight 0.8s ease 0.4s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Trusted Brands */
.trusted-brands {
  padding: 4rem 8%;
  background: #fafafa;
  text-align: center;
}

.trusted-brands h3 {
  font-size: 0.9rem;
  color: #6a6a6a;
  margin-bottom: 2rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  opacity: 0.6;
}

.brand-logos span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

/* Stats Section */
.stats {
  padding: 6rem 8%;
  background: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: #fafafa;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: #f0f0f0;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #6a6a6a;
  font-weight: 500;
}

/* Features Section */
.features {
  padding: 8rem 8%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  /* Ensure base color is white for text */
}

/* Cleanup Style: Dark background header color overwrite */
.section-header.dark-bg h2 {
  color: white;
}

.section-header.dark-bg p {
  color: rgba(255, 255, 255, 0.9);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 4rem auto 0;
}

.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.feature-card p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Services Section */
.services {
  padding: 8rem 8%;
  background: #fafafa;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 1.1rem;
  color: #6a6a6a;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  padding: 2.5rem;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: height 0.4s ease;
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #d0d0d0;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-weight: 600;
}

.service-card p {
  color: #6a6a6a;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Team Section */
.team-section {
  padding: 8rem 8%;
  background: #ffffff;
}

.team-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.team-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.team-text p {
  font-size: 1.1rem;
  color: #6a6a6a;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.team-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.team-stat {
  padding: 1.5rem;
  background: #fafafa;
  border-radius: 8px;
}

.team-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
}

.team-stat-label {
  font-size: 0.9rem;
  color: #6a6a6a;
}

.team-image {
  position: relative;
}

.team-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Certifications */
.certifications {
  padding: 6rem 8%;
  background: #fafafa;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 3rem auto 0;
}

.cert-card {
  padding: 2rem;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.cert-card:hover {
  border-color: #1a1a1a;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cert-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cert-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
}

/* CTA Section */
.cta-section {
  padding: 8rem 8%;
  text-align: center;
  background: #1a1a1a;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 1.1rem;
  color: #b0b0b0;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-section .btn-primary {
  background: #ffffff;
  color: #1a1a1a;
}

.cta-section .btn-primary:hover {
  background: #f0f0f0;
}

.cta-section .btn-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.cta-section .btn-secondary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 4rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-image {
    order: -1;
  }

  .nav-links {
    display: none;
  }

  .team-content {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .navbar,
  .hero,
  .stats,
  .services,
  .certifications,
  .cta-section,
  .trusted-brands,
  .features,
  .team-section {
    padding-left: 5%;
    padding-right: 5%;
  }
}

/* Scroll Animation Styles (The base styles for hidden state) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}
