@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #3757f7;
  --primary-dark: #001eb6;
  --text-dark: #212d48;
  --text-muted: #6c757d;
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --gradient: linear-gradient(90deg, #3757f7 0%, #001eb6 100%);
  --shadow: 0 10px 40px rgba(55, 87, 247, 0.12);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* Top Bar */
.top-bar {
  background: var(--text-dark);
  color: var(--white);
  padding: 10px 0;
  font-size: 13px;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.85);
}

.top-bar a:hover {
  color: var(--white);
}

.top-bar i {
  color: var(--primary);
  margin-right: 6px;
}

.top-bar .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-left: 6px;
  font-size: 13px;
}

.top-bar .social-icons a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Navbar */
.navbar {
  background: var(--white);
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
}

.navbar-brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark) !important;
  letter-spacing: -0.5px;
}

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

.navbar-nav .nav-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark) !important;
  padding: 8px 18px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary-custom {
  background: var(--gradient);
  color: var(--white) !important;
  border: none;
  padding: 12px 28px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  display: inline-block;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(55, 87, 247, 0.35);
  color: var(--white) !important;
}

.btn-outline-custom {
  border: 2px solid var(--white);
  color: var(--white) !important;
  padding: 12px 28px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  display: inline-block;
  background: transparent;
}

.btn-outline-custom:hover {
  background: var(--white);
  color: var(--primary) !important;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
}

.hero-slide {
  min-height: 650px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(33, 45, 72, 0.85) 0%, rgba(55, 87, 247, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
}

.hero-content .subtitle {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.15;
}

.hero-content h1 span {
  color: var(--primary);
  display: block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin: 20px 0 30px;
  max-width: 550px;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  opacity: 1;
}

.carousel-indicators .active {
  background: var(--primary);
  border-color: var(--primary);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(55, 87, 247, 0.8);
  border-radius: 50%;
  background-size: 40%;
}

/* Section Titles */
.section-padding {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title .subtitle {
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-title h2 span {
  color: var(--primary-dark);
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 32px;
  color: var(--white);
}

.feature-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* About Section */
.about-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.about-content h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-content h3 span {
  color: var(--primary);
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.about-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-list li i {
  color: var(--primary);
  font-size: 18px;
  margin-top: 3px;
}

.about-box {
  background: var(--bg-light);
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  margin-top: 20px;
}

.about-box h5 {
  color: var(--primary);
  margin-bottom: 8px;
}

/* Service Cards */
.service-card {
  background: var(--white);
  padding: 35px 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  border-bottom-color: var(--primary);
  transform: translateY(-5px);
}

.service-card .icon {
  width: 65px;
  height: 65px;
  background: rgba(55, 87, 247, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .icon {
  background: var(--gradient);
  color: var(--white);
}

.service-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

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

.product-card:hover {
  transform: translateY(-8px);
}

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

.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--gradient);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.product-card .product-body {
  padding: 25px;
}

.product-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 15px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-tags span {
  background: var(--bg-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* Portfolio */
.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.portfolio-filter button {
  background: transparent;
  border: 2px solid #e0e0e0;
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-filter button.active,
.portfolio-filter button:hover {
  background: var(--gradient);
  border-color: transparent;
  color: var(--white);
}

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
}

.portfolio-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 30, 182, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay h5 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 5px;
}

.portfolio-overlay span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

/* Stats */
.stats-section {
  background: var(--gradient);
  padding: 70px 0;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-item .number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .number span {
  font-size: 24px;
}

.stat-item h5 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
}

/* Why Choose Us */
.why-tabs .nav-link {
  border: none;
  background: var(--bg-light);
  color: var(--text-dark);
  font-weight: 600;
  padding: 15px 25px;
  border-radius: 8px;
  margin-right: 10px;
  margin-bottom: 10px;
}

.why-tabs .nav-link.active {
  background: var(--gradient);
  color: var(--white);
}

.why-img img {
  border-radius: 8px;
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* FAQ */
.accordion-item {
  border: none;
  margin-bottom: 12px;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  padding: 20px 25px;
  background: var(--white);
}

.accordion-button:not(.collapsed) {
  background: var(--gradient);
  color: var(--white);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button::after {
  filter: none;
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  color: var(--text-muted);
  padding: 20px 25px;
  line-height: 1.8;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  padding: 35px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 100%;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 60px;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-card p {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

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

.testimonial-author h6 {
  margin: 0;
  font-size: 15px;
}

.testimonial-author span {
  font-size: 13px;
  color: var(--text-muted);
}

/* CTA Banner */
.cta-banner {
  background: var(--text-dark);
  padding: 60px 0;
  text-align: center;
}

.cta-banner h3 {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.cta-banner a {
  color: var(--primary);
  font-weight: 700;
  font-size: 22px;
}

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

.contact-info-card h3 {
  color: var(--white);
  margin-bottom: 25px;
}

.contact-info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-info-item .icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info-item h6 {
  color: var(--white);
  margin-bottom: 4px;
  font-size: 14px;
}

.contact-info-item p,
.contact-info-item a {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 14px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form .form-control {
  border: 1px solid #e0e0e0;
  padding: 14px 18px;
  border-radius: 5px;
  font-size: 14px;
  margin-bottom: 20px;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(55, 87, 247, 0.15);
}

.contact-form textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 0;
}

.footer h5 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 25px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px 0;
  margin-top: 50px;
  text-align: center;
  font-size: 14px;
}

/* Page Header */
.page-header {
  background: var(--gradient);
  padding: 120px 0 70px;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  color: var(--white);
  font-size: 42px;
  margin-bottom: 10px;
}

.breadcrumb-custom {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-custom li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.breadcrumb-custom li a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb-custom li::after {
  content: '/';
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-custom li:last-child::after {
  display: none;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 38px;
  }

  .hero-slide {
    min-height: 500px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .about-img img {
    height: 350px;
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 30px;
  }

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

  .stat-item .number {
    font-size: 36px;
  }

  .top-bar {
    text-align: center;
  }

  .top-bar .social-icons {
    justify-content: center;
    margin-top: 8px;
  }
}
