/* Zyntraq Inc — Corporate Website Styles */

:root {
  --primary: #6421ff;
  --primary-dark: #5018d4;
  --primary-light: #8550ff;
  --primary-rgb: 100, 33, 255;
  --accent: #8550ff;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --text: #334155;
  --text-muted: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --transition: 0.3s ease;
  --purple: var(--primary);
  --purple-dark: var(--primary-dark);
  --purple-light: #f3eeff;
  --purple-soft: #e8dfff;
  --bs-primary: #6421ff;
  --bs-primary-rgb: 100, 33, 255;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

.section-padding {
  padding: 90px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.section-desc {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.35);
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

/* Top bar */
.top-bar {
  background: var(--dark);
  font-size: 0.875rem;
}

.top-bar-info a,
.top-bar-info span {
  color: rgba(255, 255, 255, 0.75);
  margin-right: 24px;
}

.top-bar-info a:hover {
  color: var(--white);
}

.top-bar-info i {
  color: var(--accent);
  margin-right: 6px;
}

/* Navbar */
.navbar {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white) !important;
  font-size: 1.25rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
}

.brand-text strong {
  color: var(--accent);
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 8px 16px !important;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.btn-nav {
  padding: 10px 22px !important;
  font-size: 0.9rem;
}

/* Hero */
.hero-section {
  position: relative;
}

.hero-slide {
  min-height: 85vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.65) 55%, rgba(var(--primary-rgb), 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 100px;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent);
  border: 1px solid rgba(6, 182, 212, 0.4);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
}

.carousel-indicators .active {
  background: var(--accent);
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 20px;
  opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--primary);
  opacity: 1;
}

/* Service cards */
.service-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.06));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon i {
  font-size: 1.75rem;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.service-link:hover {
  color: var(--primary-dark);
}

.service-link i {
  transition: transform 0.2s;
}

.service-link:hover i {
  transform: translateX(4px);
}

/* About — template style (fig. 1) */
.about-section {
  background: #f4f6f9;
}

.about-badge-label,
.why-badge-label {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.about-title,
.why-title {
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  max-width: 540px;
}

.about-lead,
.why-lead {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 520px;
}

.about-mini-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 20px;
  height: 100%;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  transition: var(--transition);
}

.about-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(var(--primary-rgb), 0.12);
}

.about-mini-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--purple-light);
  border: 1px solid var(--purple-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.about-mini-icon i {
  font-size: 1.5rem;
  color: var(--purple);
}

.about-mini-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.about-mini-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0;
}

.btn-about {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--purple);
  color: var(--white);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  transition: var(--transition);
}

.btn-about:hover {
  background: var(--purple-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.35);
}

.btn-about i {
  transition: transform 0.2s;
}

.btn-about:hover i {
  transform: translateX(4px);
}

.about-image-wrap {
  padding-left: 0;
}

.about-main-image {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3.2;
}

/* Why Choose Us — template style (fig. 2) */
.why-section {
  background: var(--white);
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.why-blob {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 520 / 470;
}

.why-blob-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  clip-path: url(#whyBlobClip);
  -webkit-clip-path: url(#whyBlobClip);
}

@supports not (clip-path: url(#whyBlobClip)) {
  .why-blob-image {
    clip-path: none;
    border-radius: 45% 55% 42% 58% / 52% 48% 55% 45%;
  }
}

.why-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
}

.why-feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.why-feature-item:last-child {
  margin-bottom: 0;
}

.why-feature-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #e8ecf2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.why-feature-icon i {
  font-size: 1.6rem;
  color: var(--purple);
}

.why-feature-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-feature-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  max-width: 400px;
}

.why-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.why-avatars {
  display: flex;
  align-items: center;
}

.why-avatars img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  margin-left: -12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.why-avatars img:first-child {
  margin-left: 0;
}

.why-avatar-plus {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -12px;
  font-size: 1.25rem;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.why-stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
  margin: 0 0 4px;
}

.why-stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

/* Process */
.process-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 32px 24px;
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.process-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.process-num {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(var(--primary-rgb), 0.12);
  line-height: 1;
  margin-bottom: 8px;
}

.process-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}

.process-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.process-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Stats */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
}

.stat-item h3 {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 500;
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 32px;
}

.contact-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.25rem;
  color: var(--primary);
}

.contact-list strong {
  display: block;
  color: var(--dark);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.contact-list a {
  color: var(--primary);
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--primary-dark);
}

.contact-list span {
  color: var(--text-muted);
}

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.contact-form .form-control,
.contact-form .form-select {
  border-radius: 8px;
  padding: 12px 16px;
  border-color: #e2e8f0;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-brand {
  margin-bottom: 0;
}

.site-footer h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact i {
  color: var(--accent);
  margin-top: 4px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* 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: 991.98px) {
  .section-padding {
    padding: 60px 0;
  }

  .hero-slide {
    min-height: 70vh;
  }

  .hero-content {
    padding: 100px 0 80px;
  }

  .about-image-wrap {
    margin-top: 24px;
  }

  .why-blob {
    width: 100%;
    max-width: 480px;
  }
}

@media (max-width: 767.98px) {
  .why-blob {
    max-width: 100%;
    aspect-ratio: 4 / 3.6;
  }

  .navbar-collapse {
    background: var(--dark-soft);
    padding: 16px;
    border-radius: var(--radius);
    margin-top: 12px;
  }

  .btn-nav {
    display: block;
    text-align: center;
    margin-top: 8px;
  }

  .contact-form {
    padding: 24px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .why-blob {
    aspect-ratio: 1 / 0.92;
  }
}

@media (min-width: 992px) {
  .why-section .col-lg-6:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .why-blob {
    width: 100%;
    max-width: 100%;
  }
}
