/* ==========================================================================
   1. Global Styles & Variables
   ========================================================================== */
:root {
  --primary-color: #C039A2;
  /* Vibrant Magenta */
  --secondary-color: #8A2BE2;
  /* Blue Violet */
  --dark-bg: #121212;
  --card-bg: #1E1E1E;
  --text-color: #A0A0A0;
  --heading-color: #F5F5F5;
  --border-color: rgba(255, 255, 255, 0.1);
  --light-bg: #f4f4f7;

  --font-family-base: 'Poppins', sans-serif;
  --font-family-headings: 'Montserrat', sans-serif;

  --container-width: 1200px;
  --header-height: 75px;
  --border-radius: 8px;
  --transition-speed: 0.3s;
  --accent-gradient: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Poppins:wght@400;500&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--heading-color);
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-family-headings);
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.8rem;
  font-weight: 800;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */
.site-header {
  background-color: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-speed);
}

.site-header.scrolled {
  background-color: var(--dark-bg);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img {
  max-height: 60px;
}

.nav-menu {
  display: flex;
}

.nav-item {
  margin: 0 20px;
}

.nav-link {
  color: var(--heading-color);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-cta {
  margin-left: 20px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 6px 0;
  background-color: var(--heading-color);
  transition: all var(--transition-speed);
}

/* ==========================================================================
   3. Buttons & Forms
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  z-index: -1;
  transition: opacity var(--transition-speed);
}

.btn:hover::before {
  opacity: 0;
}

.btn-primary {
  background-color: var(--heading-color);
  color: var(--dark-bg);
  border-color: var(--heading-color);
}

.btn-primary:hover {
  background: transparent;
  color: var(--heading-color);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--heading-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-color);
  background-color: var(--dark-bg);
  color: var(--heading-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(192, 57, 162, 0.3);
}

.error-message {
  color: #f47174;
  font-size: 0.875rem;
  display: block;
  margin-top: 5px;
  min-height: 1em;
}

.form-success-message {
  background: rgba(4, 182, 115, 0.1);
  color: #04b673;
  border: 1px solid #04b673;
  padding: 15px;
  border-radius: var(--border-radius);
  margin-top: 20px;
  display: none;
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 120px);
  padding-bottom: 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-glow-1,
.hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-color);
  top: 0;
  left: 10%;
  opacity: 0.2;
}

.hero-glow-2 {
  width: 350px;
  height: 350px;
  background: var(--secondary-color);
  bottom: 0;
  right: 10%;
  opacity: 0.2;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto 60px;
}

.hero-title {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.stat-card {
  background: var(--card-bg);
  padding: 20px 30px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  flex: 1;
  max-width: 250px;
}

.stat-number {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 800;
}

.stat-number::after {
  content: '%';
  font-size: 1.5rem;
}

.stat-label {
  margin: 0;
  font-size: 0.9rem;
}

/* ==========================================================================
   5. Services Section
   ========================================================================== */
.services-section {
  background: var(--card-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--dark-bg);
  padding: 40px 30px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
}

.service-icon {
  margin-bottom: 20px;
  color: var(--primary-color);
  width: 48px;
  height: 48px;
}

/* ==========================================================================
   6. Our Edge Section
   ========================================================================== */
.edge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.edge-image-wrapper img {
  border-radius: var(--border-radius);
}

.edge-list {
  margin-top: 30px;
}

.edge-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 20px;
}

.edge-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.edge-list span {
  font-weight: 500;
  color: var(--heading-color);
  display: block;
}

/* ==========================================================================
   7. ROI Calculator Section
   ========================================================================== */
.roi-calculator-section {
  background: var(--card-bg);
}

.roi-calculator-wrapper {
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  gap: 40px;
  align-items: center;
  background: var(--dark-bg);
  padding: 50px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.roi-inputs .form-group {
  margin-bottom: 40px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border-color);
  outline: none;
  border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  cursor: pointer;
  border-radius: 50%;
}

.range-value {
  display: block;
  text-align: right;
  font-weight: 500;
  color: var(--heading-color);
  margin-top: 10px;
}

.roi-outputs {
  display: flex;
  gap: 30px;
  text-align: center;
}

.output-metric {
  padding: 20px;
  border-left: 1px solid var(--border-color);
  flex: 1;
}

.output-metric:first-child {
  border-left: none;
}

.output-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
  display: block;
  margin-bottom: 10px;
}

.output-label {
  font-size: 0.9rem;
}

.calculator-disclaimer {
  text-align: center;
  margin-top: 30px;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ==========================================================================
   8. Process Section
   ========================================================================== */
.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.process-step {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.process-step:nth-child(odd) {
  left: 0;
  text-align: right;
}

.process-step:nth-child(even) {
  left: 50%;
  text-align: left;
}

.process-step::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--dark-bg);
  border: 4px solid var(--primary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.process-step:nth-child(even)::after {
  left: -10px;
}

.process-content {
  padding: 20px 30px;
  background: var(--card-bg);
  position: relative;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   9. Testimonials Section
   ========================================================================== */
.testimonials-section {
  background: var(--card-bg);
}

.testimonial-slider-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  height: 200px;
}

/* Adjust height as needed */
.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-speed);
  text-align: center;
}

.testimonial-slide.active {
  opacity: 1;
}

.testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--heading-color);
}

.testimonial-author {
  margin-top: 20px;
}

.author-name {
  display: block;
  font-weight: 500;
  color: var(--primary-color);
}

.author-title {
  font-size: 0.9rem;
}

.slider-nav {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.slider-btn {
  background: var(--card-bg);
  color: var(--heading-color);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  margin: 0 10px;
  font-size: 1.2rem;
}

.slider-btn:hover {
  background: var(--primary-color);
  color: var(--heading-color);
}

/* ==========================================================================
   10. CTA Section
   ========================================================================== */
.cta-section {
  text-align: center;
  background: var(--accent-gradient);
}

.cta-title,
.cta-text {
  color: var(--heading-color);
}

.cta-text {
  max-width: 600px;
  margin: 0 auto 30px;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
  padding-top: 80px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 60px;
}

.footer-column h4 {
  color: var(--heading-color);
  margin-bottom: 20px;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
}

/* ==========================================================================
   12. Other Pages (Contact, Legal)
   ========================================================================== */
.page-header-section {
  padding: 140px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  max-width: 700px;
  margin: 0 auto;
}

.contact-section {
  background: var(--dark-bg);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.contact-info-container {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.contact-info-container ul li {
  margin-bottom: 15px;
}

.contact-info-container strong {
  color: var(--primary-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.legal-page-section {
  background: var(--light-bg);
  color: #333;
}

.legal-content-wrapper {
  max-width: 800px;
  margin: auto;
  background: #fff;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.legal-content-wrapper h2 {
  color: #121212;
  margin-top: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.legal-content-wrapper ul {
  list-style: disc;
  padding-left: 20px;
}

.legal-content-wrapper li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   13. Animations & Scroll Effects
   ========================================================================== */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn-up 0.8s forwards ease-out;
  animation-delay: var(--delay, 0s);
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: var(--delay, 0s);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   14. Responsiveness
   ========================================================================== */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .header-cta {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .edge-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .edge-image-wrapper {
    margin-bottom: 30px;
  }

  .roi-calculator-wrapper {
    grid-template-columns: 1fr;
  }

  .roi-outputs {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    margin-top: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-timeline::after {
    left: 30px;
  }

  .process-step {
    width: 100%;
    padding-left: 70px;
    padding-right: 0;
    text-align: left !important;
  }

  .process-step:nth-child(even) {
    left: 0;
  }

  .process-step::after {
    left: 20px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section-padding {
    padding: 80px 0;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--dark-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform var(--transition-speed);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-item {
    margin: 20px 0;
  }

  .nav-link {
    font-size: 1.5rem;
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .testimonial-slider {
    height: 250px;
  }
}