@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --body-color: #ffffff;
  --primary-color: #12b9c7;
  --primary-rgb: 18, 185, 199;
  --secondary-color: #112e5a;
  --alt-color: #f5faff;
  --card-color: #ffffff;
  --dark-color: #08182a;
  --white-color: #ffffff;
  --heading-text: #112e5a;
  --para-text: #666666;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--body-color);
  color: var(--para-text);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

.primary-text { color: var(--primary-color); }
.heading-text { color: var(--heading-text); }
.para-text { color: var(--para-text); }
.alt-color { background-color: var(--alt-color); }
.body-color { background-color: var(--body-color); }

/* Topbar */
.topbar {
  background: var(--secondary-color);
  color: var(--white-color);
  font-size: 14px;
}

.topbar a {
  color: var(--white-color);
}

.topbar a:hover {
  color: var(--primary-color);
}

.topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white-color);
  background: var(--primary-color);
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.topbar-btn:hover {
  transform: translateY(-2px);
  color: var(--white-color) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

/* Navbar */
.navbar .nav-link {
  font-weight: 600;
  padding: 8px 14px;
  color: var(--heading-text);
  position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary-color);
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.brand-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--heading-text);
  letter-spacing: -0.5px;
}

.brand-logo span {
  color: var(--primary-color);
}

/* Buttons */
.primary-btn {
  background: var(--primary-color);
  color: var(--white-color);
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  background: var(--secondary-color);
  color: var(--white-color);
}

.outline-btn {
  background: transparent;
  color: var(--heading-text);
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--secondary-color);
  display: inline-block;
  transition: all 0.3s ease;
}

.outline-btn:hover {
  background: var(--secondary-color);
  color: var(--white-color);
}

/* Hero */
.hero-section {
  background: var(--secondary-color);
  position: relative;
  overflow: hidden;
}

.hero-slide {
  display: flex;
  align-items: center;
  min-height: 700px;
  position: relative;
}

.hero-content-box {
  width: 45%;
  background: var(--card-color);
  padding: 60px;
  margin-left: 6%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  z-index: 3;
  position: relative;
}

.hero-image-side {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
}

.hero-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading-text);
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.4;
}

.carousel-indicators .active {
  opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
}

.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }

/* Section common */
.section-padding {
  padding: 80px 0;
}

.sub-title {
  font-size: 0.875rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.main-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 650px;
  margin: 0 auto;
}

/* About */
.about-img-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(17, 46, 90, 0.15);
}

.about-img-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Service cards */
.service-card {
  background: var(--card-color);
  border-radius: 16px;
  padding: 32px 28px;
  height: 100%;
  border: 1px solid rgba(18, 185, 199, 0.1);
  transition: all 0.35s ease;
  box-shadow: 0 8px 30px rgba(17, 46, 90, 0.06);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(18, 185, 199, 0.15);
  border-color: var(--primary-color);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(18, 185, 199, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Product catalog */
.product-card {
  background: var(--card-color);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 10px 35px rgba(17, 46, 90, 0.08);
  transition: all 0.35s ease;
  border: 1px solid rgba(18, 185, 199, 0.08);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(18, 185, 199, 0.18);
}

.product-img {
  height: 220px;
  overflow: hidden;
}

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

.product-card:hover .product-img img {
  transform: scale(1.06);
}

.product-body {
  padding: 24px;
}

.product-tag {
  display: inline-block;
  background: rgba(18, 185, 199, 0.12);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

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

.product-features li {
  padding: 4px 0;
  font-size: 0.9rem;
}

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

/* Case study */
.case-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 320px;
}

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

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

.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 24, 42, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--white-color);
}

/* Stats */
.stats-section {
  background: var(--secondary-color);
  color: var(--white-color);
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
}

.stat-item p {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Tech stack */
.tech-badge {
  background: var(--card-color);
  border: 1px solid rgba(18, 185, 199, 0.15);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(18, 185, 199, 0.12);
}

.tech-badge i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Process */
.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  width: 56px;
  height: 56px;
  background: var(--primary-color);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

/* Testimonials */
.testimonial-card {
  background: var(--card-color);
  border-radius: 16px;
  padding: 32px;
  height: 100%;
  box-shadow: 0 10px 35px rgba(17, 46, 90, 0.08);
  border-left: 4px solid var(--primary-color);
}

.testimonial-card .quote-icon {
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.5;
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* Contact */
.contact-info-card {
  background: var(--secondary-color);
  color: var(--white-color);
  border-radius: 16px;
  padding: 40px;
  height: 100%;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-item .icon-box {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form-card {
  background: var(--card-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 15px 45px rgba(17, 46, 90, 0.1);
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  background: var(--alt-color);
  border: 1px solid rgba(18, 185, 199, 0.2);
  padding: 12px 16px;
  border-radius: 8px;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(18, 185, 199, 0.15);
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: rgba(255, 255, 255, 0.8);
}

.footer h5 {
  color: var(--white-color);
  font-weight: 700;
}

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

.footer-links a:hover {
  color: var(--primary-color);
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

/* Back to top */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(18, 185, 199, 0.4);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: var(--secondary-color);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
  .hero-slide {
    flex-direction: column;
    min-height: auto;
    padding: 40px 0;
  }

  .hero-content-box {
    width: 90%;
    margin: 0 auto 20px;
    padding: 36px 28px;
  }

  .hero-image-side {
    position: relative;
    width: 90%;
    margin: 0 auto;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
  }

  .hero-title {
    font-size: 1.75rem;
  }

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

  .main-title {
    font-size: 1.75rem;
  }

  .stat-item h3 {
    font-size: 2.25rem;
  }
}

@media (max-width: 576px) {
  .hero-content-box {
    padding: 28px 20px;
  }

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