/* ============================================
   QUALIT Website - Styles
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --accent: #06b6d4;
  --dark: #f8fafc;
  --dark-secondary: #f1f5f9;
  --dark-card: #ffffff;
  --text-light: #0f172a;
  --text-muted: #64748b;
  --text-body: #475569;
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --gradient-dark: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  --gradient-hero: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e293b 50%,
    #0f172a 100%
  );
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(37, 99, 235, 0.15);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--dark);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* ---------- Utility ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-light);
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 0 auto 60px;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 12px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 8px 0;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 80px;
  width: auto;
  transition: var(--transition);
  filter: brightness(0) invert(1);
}

.navbar.scrolled .nav-logo-img {
  height: 60px;
  filter: none;
}

.nav-menu {
  display: flex;
  gap: 35px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background: #ffffff;
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 2px;
  background: #ffffff;
  transition: var(--transition);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.navbar.scrolled .hamburger,
.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
  background: var(--text-light);
}

.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.navbar.scrolled .nav-link {
  color: var(--text-muted);
}

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

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(26, 115, 232, 0.08) 0%,
    transparent 70%
  );
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1);
  }
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-logo-img {
  height: 180px;
  width: auto;
  filter: brightness(0) invert(1);
}

.hero-tags {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 3px;
  margin-bottom: 40px;
  font-weight: 300;
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Vision Section ---------- */
.vision {
  background: var(--gradient-dark);
  padding: 80px 0 60px;
}

.vision-row {
  display: flex;
  justify-content: center;
  gap: 0;
}

.vision-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 30px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.vision-item:last-child {
  border-right: none;
}

.vision-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.vision-item i {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.vision-item span {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  letter-spacing: 0.3px;
}

.vision-item span {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.3px;
}

/* ---------- Services Section ---------- */
.services {
  background: var(--dark);
  position: relative;
  padding: 80px 0 60px;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(37, 99, 235, 0.15),
    transparent
  );
}

.services-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.service-tag {
  padding: 14px 32px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 50px;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  cursor: default;
}

.service-tag.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Customers Section ---------- */
.customers {
  background: var(--gradient-dark);
  overflow: hidden;
}

.customers-marquee {
  overflow: hidden;
  margin-bottom: 40px;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.customers-track {
  display: flex;
  gap: 40px;
  animation: marquee 25s linear infinite;
  width: max-content;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.customer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 35px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border-radius: var(--border-radius);
  min-width: 180px;
  min-height: 100px;
}

.customer-logo img {
  max-height: 55px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.customers-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 100%;
  margin: 0 auto;
  white-space: nowrap;
}

/* ---------- Team Section ---------- */
.team {
  background: var(--dark);
  text-align: center;
}

.team-statement {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-body);
  letter-spacing: 1px;
  margin-bottom: 50px;
}

.team-badges {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.team-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  background: var(--dark-card);
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.team-badge.visible {
  opacity: 1;
  transform: translateY(0);
}

.team-badge i {
  font-size: 1.2rem;
  color: var(--accent);
}

.team-badge span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ---------- Contact Section ---------- */
.contact {
  background: var(--gradient-dark);
}

.contact-cards-centered {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-card {
  background: var(--dark-card);
  border-radius: var(--border-radius);
  padding: 45px 40px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  flex: 0 1 360px;
  opacity: 0;
  transform: translateY(30px);
}

.contact-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  font-size: 1.4rem;
  color: var(--primary);
}

.contact-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 12px;
}

.contact-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact-email {
  display: inline-block;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 24px;
  border: 1px solid rgba(0, 201, 255, 0.3);
  border-radius: 50px;
  transition: var(--transition);
}

.contact-email:hover {
  background: rgba(0, 201, 255, 0.1);
  color: var(--text-light);
  border-color: var(--accent);
}

/* ---------- Footer ---------- */
.footer {
  background: #0f172a;
  padding: 30px 0;
  border-top: none;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-row p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .vision-row {
    flex-wrap: wrap;
  }
  .vision-item {
    flex: 0 0 50%;
    border-right: none;
    padding: 20px;
  }

  .services-strip {
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #1e293b;
    flex-direction: column;
    padding: 80px 40px 40px;
    gap: 25px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }

  .nav-menu .nav-link {
    color: rgba(255, 255, 255, 0.7);
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    color: #ffffff;
  }

  .nav-menu.active {
    right: 0;
  }

  .hero-logo-img {
    height: 120px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 3px;
  }

  .hero-tags {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section {
    padding: 70px 0;
  }

  .vision-row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .vision-item {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 20px;
  }
  .vision-item:last-child {
    border-bottom: none;
  }

  .services-strip {
    gap: 12px;
  }

  .service-tag {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .customer-logo {
    min-width: 140px;
    padding: 20px 25px;
  }

  .team-badges {
    gap: 20px;
  }

  .contact-cards-centered {
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .hero-logo-img {
    height: 90px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }
}
