/* =========================================
   CSS Variables & Resets - White/Blue Theme
   ========================================= */
:root {
  /* Colors - White Theme with Blue Accents */
  --bg-dark: #f8fafc; /* Very light slate, effectively white */
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  
  --primary: #2563eb; /* Bright vibrant blue */
  --primary-hover: #1d4ed8;
  --accent: #0f172a; /* Dark charcoal/slate */
  
  --text-main: #0f172a; /* Dark text for readability */
  --text-muted: #475569;
  
  --border-light: rgba(0, 0, 0, 0.08);
  --glass-border: rgba(0, 0, 0, 0.15);
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --max-width: 1280px;
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, .logo {
  font-family: var(--font-heading);
  font-weight: 600;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

h1 span {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

a {
  text-decoration: none;
  color: inherit;
}

.section-padding {
  padding: 6rem 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--glass-border);
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary), #818cf8);
  border-radius: 4px;
  display: inline-block;
  transform: rotate(45deg);
}

.logo-light {
  font-weight: 300;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  margin: 5px;
  transition: all 0.3s ease;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
  gap: 4rem;
  position: relative;
  padding-top: var(--nav-height);
}

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

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-content p {
  margin-bottom: 2.5rem;
  font-size: 1.25rem;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

/* Hero Visuals */
.hero-visual {
  position: relative;
  height: 600px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1586528116311-ad8ed7c83a56?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.hero-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(37, 99, 235, 0.2) 100%);
  border-radius: 30px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}

.visual-card-1 {
  top: 10%;
  right: -5%;
}

.visual-card-2 {
  bottom: 15%;
  left: -5%;
  animation-delay: -3s;
}

.visual-card-3 {
  top: 45%;
  right: -10%;
  animation-delay: -1.5s;
}

.card-icon {
  font-size: 2rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.card-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.card-text {
  display: flex;
  flex-direction: column;
}

.card-text span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.card-text strong {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-heading);
}

/* =========================================
   Services Section (SVG Pack included)
   ========================================= */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-card {
  flex: 1 1 300px;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.05), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  margin-bottom: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.service-card p {
  font-size: 1rem;
}

/* =========================================
   Value Proposition Section
   ========================================= */
.value-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}

.value-list {
  list-style: none;
  margin-top: 2rem;
}

.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: #ffffff;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.check-icon {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.value-list span {
  font-size: 1rem;
}

.value-list strong {
  color: var(--text-main);
}

.value-image {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 24px;
  background: url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* =========================================
   Target Customers
   ========================================= */
.customers {
  position: relative;
  background-color: #ffffff; /* Contrast against main bg */
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.customer-card {
  padding: 2.5rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.customer-image {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.customer-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
}

.customer-card h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* =========================================
   Image Quote Dividers (21:9 Parallax)
   ========================================= */
.quote-divider {
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.quote-divider::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.7);
}

.quote-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 900px;
  padding: 0 5%;
}

.quote-content blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.quote-content cite {
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =========================================
   Infinite Comments (Testimonials) Section
   ========================================= */
.testimonials {
  overflow: hidden;
  background: var(--bg-dark);
}

.marquee-wrapper {
  display: flex;
  width: 100vw; /* Take full width */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  padding: 1rem 0;
}

/* Add a gradient fade on left and right for seamless look */
.marquee-wrapper::before, .marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark), transparent);
}
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee-content {
  display: flex;
  gap: 2rem;
  animation: scrollMarquee 30s linear infinite;
  /* Width must fit all cards duplicated */
  min-width: max-content;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.comment-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
  padding: 2rem;
  border-radius: 16px;
  width: 400px;
  flex-shrink: 0;
}

.comment-card p {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.comment-card h4 {
  color: var(--primary);
  font-size: 1rem;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Translates by exactly half the total width of content, since we duplicated the items */
    transform: translateX(calc(-50% - 1rem));
  }
}

/* =========================================
   Contact / CTA section
   ========================================= */
.contact {
  display: flex;
  justify-content: center;
  background-color: #ffffff;
}

.contact-box {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
  border-radius: 30px;
  padding: 4rem;
  max-width: 800px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.contact-box h2 {
  color: #ffffff;
}

.contact-box p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
  position: relative;
  z-index: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form select {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.contact-form input::placeholder {
  color: #94a3b8;
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
  background: #ffffff;
}

.submit-btn {
  grid-column: span 2;
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.submit-btn:hover {
  background: #f8fafc;
  color: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* =========================================
   Footer
   ========================================= */
footer {
  border-top: 1px solid var(--border-light);
  padding: 4rem 5% 2rem;
  background: #ffffff;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.link-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-column h4 {
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.link-column a {
  color: var(--text-muted);
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* =========================================
   Inner Pages (Privacy / Terms)
   ========================================= */
.page-header {
  padding: 8rem 5% 4rem;
  background: var(--primary);
  color: #fff;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0;
  font-size: 3rem;
}

.page-header h1 span {
  -webkit-text-fill-color: #fff; /* Override gradient for pages */
}

.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 5%;
}

.content-section h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

.content-section p, .content-section ul {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.content-section ul {
  padding-left: 2rem;
}

/* =========================================
   Animations & Responsive
   ========================================= */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Intersection Observer Classes */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Constraints */
@media (max-width: 1024px) {
  .hero {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--nav-height) + 2rem);
  }
  
  .hero-content p {
    margin: 0 auto 2.5rem;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .value-container {
    grid-template-columns: 1fr;
  }
  
  .value-image {
    order: -1;
    height: 350px;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .submit-btn {
    grid-column: span 1;
  }
  
  /* Mobile Menu */
  .nav-links {
    position: absolute;
    right: -100%;
    top: var(--nav-height);
    background: #ffffff;
    flex-direction: column;
    width: 60%;
    height: calc(100vh - var(--nav-height));
    align-items: center;
    justify-content: center;
    transition: right 0.5s ease;
    border-left: 1px solid var(--border-light);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
  }
  
  .nav-links.nav-active {
    right: 0;
  }
  
  .burger {
    display: block;
  }
  
  .burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 5px);
  }
  
  .burger.toggle .line2 {
    opacity: 0;
  }
  
  .burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -5px);
  }
}

@media (max-width: 480px) {
  .nav-links {
    width: 100%;
    border-left: none;
  }
  
  .hero-visual {
    display: none;
  }
  
  .contact-box {
    padding: 2.5rem 1.5rem;
  }
  
  .marquee-content {
    gap: 1rem;
  }
  
  .comment-card {
    width: 300px;
    padding: 1.5rem;
  }
}
