/* Basic Reset & Global Styles */
:root {
  --color-primary-dark: #0A0A0A;
  /* Deep Charcoal */
  --color-secondary-dark: #121212;
  /* Slightly lighter charcoal */
  --color-accent-blue: #007bff;
  /* Standard blue, can be replaced with a custom gradient */
  --color-accent-blue-light: #0091ff;
  /* Lighter shade for hover */
  --color-text-light: #e0e0e0;
  /* Light gray for most text */
  --color-text-dark: #bbbbbb;
  /* Slightly darker light gray for secondary text */
  --color-border: #333;
  /* Dark border */
  --font-family-primary: 'Inter', sans-serif;
  --max-width-container: 1200px;
  --section-padding: 80px;
  --header-height: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-primary);
  line-height: 1.6;
  color: var(--color-text-light);
  background-color: var(--color-primary-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Prevent horizontal scroll from animations */
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-light);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 900;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

h2.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent-blue);
  border-radius: 2px;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--color-text-dark);
}

p.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-light);
}

a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-blue-light);
}

ul {
  list-style: none;
}

/* Utility Classes */
.container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 25px;
}

.text-center {
  text-align: center;
}

.section-padding {
  padding: var(--section-padding) 0;
}

.section-dark {
  background-color: var(--color-secondary-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-dark);
  margin-top: -20px;
  margin-bottom: 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: transparent;
  border: 2px solid var(--color-accent-blue);
  color: var(--color-accent-blue);
}

.btn-primary:hover {
  background-color: var(--color-accent-blue);
  color: var(--color-primary-dark);
}

.btn-accent {
  background: linear-gradient(90deg, #007bff, #6a00ff);
  /* Blue to Purple Gradient */
  color: #ffffff;
  border: 2px solid transparent;
}

.btn-accent:hover {
  background: linear-gradient(90deg, #6a00ff, #007bff);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-light);
  border: 2px solid var(--color-text-dark);
  margin-left: 20px;
}

.btn-secondary:hover {
  background-color: var(--color-text-dark);
  color: var(--color-primary-dark);
}

.btn-video svg {
  margin-right: 8px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Header */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: transparent;
  z-index: 1000;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

#site-header.scrolled {
  background-color: rgba(10, 10, 10, 0.85);
  /* Semi-transparent dark background */
  backdrop-filter: blur(8px);
  /* Glassmorphism effect */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-text-light);
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--color-accent-blue-light);
}

#main-nav .nav-links {
  display: flex;
  gap: 30px;
}

#main-nav .nav-links a {
  font-weight: 500;
  color: var(--color-text-light);
  position: relative;
}

#main-nav .nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-blue);
  transition: width 0.3s ease;
}

#main-nav .nav-links a:hover::after,
#main-nav .nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 40px;
}

.hamburger {
  display: none;
  /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text-light);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hamburger active state animation */
.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-height);
  /* Offset for fixed header */
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url('https://source.unsplash.com/random/1920x1080/?abstract-tech,network,ai') no-repeat center center / cover;
  /* Dynamic background image */
  background-attachment: fixed;
  /* Parallax effect */
  animation: zoomOutSubtle 60s infinite alternate;
  /* Subtle zoom animation */
}

@keyframes zoomOutSubtle {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  opacity: 0;
  /* Hidden by default for JS animation */
  transform: translateY(20px);
  /* Slightly down for fade-in-up */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero-content.fade-in-up-active {
  opacity: 1;
  transform: translateY(0);
}

.hero-content h1 {
  font-size: 4.5rem;
  color: #ffffff;
  margin-bottom: 25px;
  text-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
}

.hero-content p.lead {
  font-size: 1.5rem;
  margin-bottom: 40px;
}

.hero-content .btn {
  margin: 0 10px;
}

/* Scroll Down Indicator */
.scroll-down-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-accent-blue);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-down-indicator:hover {
  opacity: 1;
}

.scroll-down-indicator svg {
  width: 28px;
  height: 28px;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* Problem Section */
.problem-section {
  background-color: var(--color-primary-dark);
}

.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.problem-graphic img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Solutions Grid */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.solution-card {
  background-color: var(--color-primary-dark);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
}

.solution-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
  border-color: var(--color-accent-blue);
}

.solution-card .icon-placeholder {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 123, 255, 0.1);
  border-radius: 50%;
  color: var(--color-accent-blue);
}

.solution-card .icon-placeholder svg {
  width: 32px;
  height: 32px;
}

/* How It Works / Process Section */
.how-it-works-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
  position: relative;
}

/* Connecting Line (for visual flow on larger screens) */
.how-it-works-steps::before {
  content: '';
  position: absolute;
  top: 50px;
  /* Adjust based on step-number position */
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-border);
  z-index: 0;
  display: none;
  /* Hidden by default, show on larger screens */
}

.step {
  background-color: var(--color-secondary-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  /* Ensure step content is above connecting line */
}

.step .step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, #007bff, #6a00ff);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 0 0 5px var(--color-primary-dark);
  /* Rings around number */
}

/* Testimonials */
.testimonial-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background-color: var(--color-primary-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

.testimonial-card blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
}

.testimonial-card blockquote::before {
  content: '"';
  font-size: 3rem;
  position: absolute;
  left: 0;
  top: -10px;
  color: var(--color-accent-blue);
  opacity: 0.5;
}

.client-info {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  border: 2px solid var(--color-accent-blue);
}

.client-name {
  font-weight: 600;
  color: var(--color-accent-blue-light);
  margin-bottom: 0;
}

.client-title {
  font-size: 0.9rem;
  color: var(--color-text-dark);
  margin-bottom: 0;
}

/* Final Call to Action */
.cta-final {
  background: linear-gradient(135deg, var(--color-accent-blue), #6a00ff);
  /* Blue to Purple Gradient */
  color: #fff;
  padding: var(--section-padding) 0;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cta-final h2 {
  color: #fff;
  margin-bottom: 25px;
}

.cta-final p.lead {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.cta-final .btn-accent {
  background: #fff;
  color: #6a00ff;
  /* Use the darker purple from the gradient */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-final .btn-accent:hover {
  background: #f0f0f0;
  color: var(--color-accent-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.site-footer {
  background-color: var(--color-secondary-dark);
  color: var(--color-text-dark);
  padding: 60px 0;
  font-size: 0.9rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  justify-items: start;
  /* Align items to the start of their grid area */
}

.footer-logo {
  font-size: 1.5rem;
  margin-bottom: 15px;
  display: block;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--color-text-dark);
}

.footer-col ul li a:hover {
  color: var(--color-accent-blue-light);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  color: var(--color-text-dark);
  font-size: 1.2rem;
  width: 35px;
  height: 35px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--color-accent-blue);
  color: #fff;
  border-color: var(--color-accent-blue);
}

/* Animations for Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Add sequential delay for elements in grids if desired */
.solutions-grid .solution-card {
  transition-delay: var(--delay, 0s);
  /* Custom property for stagger */
}

.solutions-grid .solution-card:nth-child(1) {
  --delay: 0s;
}

.solutions-grid .solution-card:nth-child(2) {
  --delay: 0.1s;
}

.solutions-grid .solution-card:nth-child(3) {
  --delay: 0.2s;
}

.solutions-grid .solution-card:nth-child(4) {
  --delay: 0.3s;
}

/* Add more if there are more cards */

.how-it-works-steps .step {
  transition-delay: var(--delay, 0s);
}

.how-it-works-steps .step:nth-child(1) {
  --delay: 0s;
}

.how-it-works-steps .step:nth-child(2) {
  --delay: 0.1s;
}

.how-it-works-steps .step:nth-child(3) {
  --delay: 0.2s;
}

.how-it-works-steps .step:nth-child(4) {
  --delay: 0.3s;
}

.testimonial-carousel .testimonial-card {
  transition-delay: var(--delay, 0s);
}

.testimonial-carousel .testimonial-card:nth-child(1) {
  --delay: 0s;
}

.testimonial-carousel .testimonial-card:nth-child(2) {
  --delay: 0.1s;
}

.testimonial-carousel .testimonial-card:nth-child(3) {
  --delay: 0.2s;
}


/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .header-content {
    padding: 0 20px;
  }

  #main-nav {
    display: none;
    /* Hide desktop nav */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary-dark);
    padding-top: var(--header-height);
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    /* Start off-screen */
    transition: transform 0.3s ease-in-out;
  }

  #main-nav .nav-links {
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
    text-align: center;
  }

  #main-nav .nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .nav-cta {
    margin-left: 0;
    /* Remove margin for mobile CTA */
  }

  .hamburger {
    display: block;
    /* Show hamburger */
  }

  body.nav-open #main-nav {
    transform: translateX(0);
    /* Slide in */
    display: flex;
    /* Show the navigation */
  }

  body.nav-open {
    overflow: hidden;
    /* Prevent scrolling when nav is open */
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-content p.lead {
    font-size: 1.2rem;
  }

  .hero-content .btn {
    margin-bottom: 20px;
    /* Space out buttons */
  }

  .grid-2-cols {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .problem-graphic {
    order: -1;
    /* Move graphic above text on small screens */
    margin-bottom: 40px;
  }