:root {
  --primary-color: #0077b6;
  --secondary-color: #005f87;
  --accent-color: #00b4d8;
  --text-dark: #1a1a1a;
  --text-light: #6b7280;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

.bg-primary {
  background-color: var(--primary-color);
}
.bg-secondary {
  background-color: var(--secondary-color);
}
.bg-accent {
  background-color: var(--accent-color);
}
.text-primary {
  color: var(--primary-color);
}
.text-secondary {
  color: var(--secondary-color);
}
.border-primary {
  border-color: var(--primary-color);
}

/* Hero Section Styles */
.hero-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 50%,
    var(--accent-color) 100%
  );
}
.hero-pattern {
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
}
.hero-gradient,
.hero-pattern {
  position: relative;
  overflow: hidden;
}
.hero-gradient .absolute,
.hero-pattern .absolute {
  pointer-events: none;
}

/* CTA Section Styles */
section.hero-gradient {
  position: relative;
  overflow: hidden;
}
section.hero-gradient .absolute {
  pointer-events: none;
}
section.hero-gradient .relative {
  position: relative;
  z-index: 10;
}

/* Button Styles for Hero and CTA */
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  transition: all 0.3s ease;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 119, 182, 0.3);
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  color: #fff;
}

/* CTA white button override */
.bg-white.text-primary {
  background: #fff !important;
  color: var(--primary-color) !important;
  border: none;
}
.bg-white.text-primary:hover {
  background: #f3f4f6 !important;
  color: var(--secondary-color) !important;
}

/* CTA outline button */
.border-2.border-white.text-white {
  border: 2px solid #fff !important;
  background: transparent !important;
  color: #fff !important;
}
.border-2.border-white.text-white:hover {
  background: #fff !important;
  color: var(--primary-color) !important;
  border-color: #fff !important;
}

.hero-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 50%,
    var(--accent-color) 100%
  );
}

.hero-pattern {
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 119, 182, 0.3);
}

.section-parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 768px) {
  .section-parallax {
    background-attachment: scroll;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 2000; /* Ensure it's above other content */
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 0.4s;
}

@media (max-width: 600px) {
  .modal-content {
    padding: 1rem;
    max-width: 95vw;
  }
}

/* Optional: Style for close button inside modal */
.modal-content button[onclick*="closeContactModal"] {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}

.modal-content button[onclick*="closeContactModal"]:hover {
  color: var(--primary-color);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
  z-index: 100;
  opacity: 0;
  animation: none;
}

.back-to-top.show {
  display: flex;
  opacity: 1;
  animation: fallDown 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes fallDown {
  0% {
    opacity: 0;
    transform: translateY(-120px) scale(0.7);
  }
  60% {
    opacity: 1;
    transform: translateY(20px) scale(1.05);
  }
  80% {
    transform: translateY(-8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.industry-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
  text-align: center;
  padding: 2rem;
}

.testimonial-slide.active {
  display: block;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--primary-color);
}

.stats-counter {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 1.5rem;
  margin: 1rem 0;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--primary-color);
}
.animate-spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
