:root {
  --primary-gradient: linear-gradient(135deg, #1a4b8c 0%, #2c6cc0 100%);
  --secondary-gradient: linear-gradient(135deg, #0daa8e 0%, #1bd4b3 100%);
  --accent-color: #0daa8e;
  --accent-light: rgba(13, 170, 142, 0.1);
  --dark-blue: #0d2a5c;
  --light-gray: #f8fafc;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  color: #555;
  line-height: 1.7;
  background-color: #fefefe;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--dark-blue);
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s, visibility 0.6s;
}

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

.loader {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.loader-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
}

.loader-circle:nth-child(2) {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-top-color: rgba(255, 255, 255, 0.8);
  animation: spin 1.2s linear infinite reverse;
}

.loader-circle:nth-child(3) {
  width: 50%;
  height: 50%;
  top: 25%;
  left: 25%;
  border-top-color: rgba(255, 255, 255, 0.6);
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

.preloader-text {
  color: #fff;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 1.1rem;
  margin-top: 20px;
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  border-radius: 50%;
  color: #fff;
  background: var(--secondary-gradient);
  box-shadow: 0 5px 20px rgba(13, 170, 142, 0.3);
  transition: var(--transition);
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(13, 170, 142, 0.4);
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 18px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.brand-logo {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  flex-shrink: 0;
  transition: var(--transition);
}

.navbar-brand:hover .brand-logo {
  transform: scale(1.06) rotate(-2deg);
}

.nav-link {
  font-weight: 600;
  margin: 0 5px;
  color: var(--dark-blue) !important;
  position: relative;
  padding: 8px 12px !important;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-link.active,
.nav-link:hover {
  color: #fff !important;
  background: var(--secondary-gradient);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  border-radius: 3px;
  background: var(--secondary-gradient);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: none;
  padding: 0;
  font-size: 1.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 75, 140, 0.33) 0%, rgba(44, 108, 192, 0.37) 100%),
    url('https://images.unsplash.com/photo-1618506469810-282bef2b30b3?w=1920&q=80') center/cover fixed;
  color: #fff;
  padding: 180px 0 120px;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 35px;
  max-width: 650px;
  opacity: 0.9;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 25px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Buttons */
.btn-primary {
  background: var(--secondary-gradient);
  border: none;
  border-radius: 50px;
  padding: 15px 35px;
  font-weight: 600;
  color: #fff !important;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  z-index: 1;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0c957c 0%, #18b89c 100%);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(13, 170, 142, 0.3);
  color: #fff;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline-light {
  padding: 15px 35px;
  font-weight: 600;
  border-radius: 35px 20px;
  border-width: 2px;
  transition: var(--transition);
}

.btn-outline-light:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-outline-primary {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background: var(--secondary-gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

/* Stats */
.stats-container {
  background: var(--light-gray);
  border-radius: 20px;
  padding: 50px 30px;
  margin-top: -100px;
  position: relative;
  z-index: 5;
  box-shadow: var(--card-shadow);
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.stat-label {
  font-weight: 600;
  color: var(--dark-blue);
}

/* Sections */
.section-padding {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--light-gray) !important;
}

.section-title {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  font-size: 2.8rem;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  border-radius: 5px;
  background: var(--secondary-gradient);
}

.section-title p {
  font-size: 1.2rem;
  color: #777;
  max-width: 700px;
  margin: 20px auto 0;
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  height: 100%;
  background: #fff;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--secondary-gradient);
  transform: scaleX(0);
  transition: transform 0.5s;
}

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

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

.card-icon {
  width: 80px;
  height: 80px;
  border-radius: 20%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--accent-color);
  font-size: 34px;
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--secondary-gradient);
  color: #fff;
  transform: rotateY(180deg);
}

/* Product Cards */
.product-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  height: 100%;
  background: #fff;
}

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

.product-img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.product-body {
  padding: 28px;
}

.product-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-light);
  color: var(--accent-color);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-body h4 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
}

.product-features li {
  padding: 6px 0;
  font-size: 0.92rem;
  color: #666;
}

.product-features li i {
  color: var(--accent-color);
  margin-right: 8px;
}

/* Process Steps */
.process-step {
  text-align: center;
  padding: 35px 25px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.3s;
}

.process-step:hover {
  transform: translateY(-8px);
}

.step-number {
  width: 55px;
  height: 55px;
  background: var(--secondary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 20px;
}

/* Tech Stack */
.tech-item {
  text-align: center;
  padding: 25px 15px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.tech-item i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--dark-blue);
}

.tech-item span {
  display: block;
  font-weight: 600;
  color: var(--dark-blue);
  font-size: 0.9rem;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border-radius: 15px;
  padding: 35px;
  box-shadow: var(--card-shadow);
  margin: 15px 0;
  position: relative;
  transition: var(--transition);
  height: 100%;
}

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

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: var(--accent-light);
  line-height: 1;
  z-index: 0;
}

.testimonial-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 18px;
  border: 4px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stars {
  color: #ffc107;
  font-size: 0.95rem;
}

/* Testimonial Carousel */
.testimonial-carousel {
  padding: 0 50px 40px;
  position: relative;
}

.testimonial-carousel .carousel-inner {
  overflow: hidden;
}

.testimonial-slide-wrap {
  padding: 16px 12px;
  height: 100%;
}

.testimonial-carousel .carousel-item {
  transition: transform 0.6s ease-in-out;
}

.testimonial-carousel .testimonial-card {
  margin: 0;
}

.testimonial-carousel .testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.testimonial-carousel-mobile {
  padding: 0 40px 40px;
}

.testimonial-carousel-mobile .testimonial-indicators {
  margin-bottom: 20px;
}

.testimonial-carousel-mobile .testimonial-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  margin: 0 4px;
}

.testimonial-carousel-mobile .testimonial-indicators .active {
  width: 24px;
}

.testimonial-indicators {
  position: relative;
  margin-bottom: 30px;
}

.testimonial-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #cbd5e1;
  border: none;
  margin: 0 6px;
  opacity: 1;
  transition: var(--transition);
}

.testimonial-indicators .active {
  background: var(--secondary-gradient);
  width: 32px;
  border-radius: 6px;
}

.testimonial-control {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.testimonial-control-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--dark-blue);
  box-shadow: var(--card-shadow);
  font-size: 1rem;
  transition: var(--transition);
}

.testimonial-control:hover .testimonial-control-icon {
  background: var(--secondary-gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 170, 142, 0.3);
}

.testimonial-carousel .carousel-control-prev {
  left: 0;
}

.testimonial-carousel .carousel-control-next {
  right: 0;
}

@media (max-width: 767px) {
  .testimonial-carousel-mobile {
    padding: 0 36px 36px;
  }

  .testimonial-slide-wrap {
    padding: 12px 6px;
  }

  .testimonial-control {
    width: 36px;
    height: 36px;
  }

  .testimonial-control-icon {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}

/* CTA */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, rgba(13, 42, 92, 0.95) 0%, rgba(26, 75, 140, 0.9) 100%),
    url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80') center/cover fixed;
  color: #fff;
  padding: 120px 0;
  overflow: hidden;
}

.cta-section h2 {
  color: #fff;
  font-size: 2.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-content {
  position: relative;
  z-index: 2;
}

/* Contact */
.contact-form,
.contact-info {
  background: #fff;
  box-shadow: var(--card-shadow);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.contact-form .form-control {
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(13, 170, 142, 0.15);
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-blue);
}

/* Footer */
.footer {
  background: var(--dark-blue);
  color: #b0c4d9;
  padding: 100px 0 30px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--secondary-gradient);
}

.footer h5 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 15px;
}

.footer h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #b0c4d9;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(5px);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  margin-right: 12px;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--secondary-gradient);
  transform: translateY(-5px);
  color: #fff;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  margin-top: 60px;
  text-align: center;
  font-size: 0.95rem;
}

.about-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #fff;
  padding: 24px 28px;
  margin: 24px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-section,
  .cta-section {
    background-attachment: scroll;
  }

  .hero-section {
    padding: 150px 0 100px;
  }

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

  .section-title h2 {
    font-size: 2.3rem;
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.1rem;
  }

  .section-padding {
    padding: 70px 0;
  }

  .stats-container {
    margin-top: -60px;
  }

  .contact-form,
  .contact-info {
    padding: 28px 20px;
  }

  .cta-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1,
  .section-title h2 {
    font-size: 1.85rem;
  }

  .btn-primary,
  .btn-outline-light {
    padding: 12px 25px;
    font-size: 0.95rem;
    width: 100%;
    margin-bottom: 12px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
  }
}
