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

:root {
  --sky-blue: #e3f2fd;
  --soft-blue: #90caf9;
  --ocean-blue: #42a5f5;
  --mint-green: #b2dfdb;
  --soft-green: #4db6ac;
  --lavender: #e1bee7;
  --peach: #ffccbc;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --text-dark: #37474f;
  --text-light: #546e7a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  /* overflow-x: hidden; */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}

/* Navigation */
nav {
  background: var(--white);
  padding: 1.2rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ocean-blue), var(--soft-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--ocean-blue);
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--sky-blue) 0%,
    var(--mint-green) 100%
  );
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(66, 165, 245, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-weight: 800;
  line-height: 1.2;
}

.hero-text .gradient-text {
  background: linear-gradient(135deg, var(--ocean-blue), var(--soft-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  line-height: 1.8;
}

.hero-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.visual-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.visual-card:hover {
  transform: translateY(-5px);
}

.visual-card h4 {
  color: var(--ocean-blue);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.visual-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

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

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--ocean-blue), var(--soft-blue));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(66, 165, 245, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(66, 165, 245, 0.4);
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: white;
  color: var(--ocean-blue);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid var(--ocean-blue);
}

.btn-secondary:hover {
  background: var(--ocean-blue);
  color: white;
}

/* Stats Bar */
.stats-bar {
  background: white;
  padding: 3rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--ocean-blue);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.stat-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Services Section */
.services {
  padding: 6rem 0;
  background: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--sky-blue);
  color: var(--ocean-blue);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.8rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 3rem;
  border-radius: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--ocean-blue), var(--soft-green));
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.service-emoji {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.service-card h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-card > p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.price {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(135deg, var(--lavender), var(--peach));
  color: var(--text-dark);
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 1rem 0 2rem 0;
}

.features {
  list-style: none;
}

.features li {
  padding: 0.7rem 0;
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.features li::before {
  content: "✓";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--mint-green);
  color: var(--soft-green);
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  flex-shrink: 0;
}

/* Case Studies */
.portfolio {
  padding: 6rem 0;
  background: white;
}

.portfolio-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
  margin-top: 2rem;
}

.portfolio-item {
  flex: 1 1 340px; /* allows items to grow and shrink */
  background: var(--light-gray);
  border-radius: 20px;
  height: auto; /* ensure no fixed height */

  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex; /* allows content to stretch vertically */
  flex-direction: column;
}

.portfolio-item:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.portfolio-content {
  display: flex;
  flex-direction: column;
  padding: 3rem;
  height: 100%;
}

.portfolio-item h3 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.portfolio-item p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  /* background: linear-gradient(
    135deg,
    #e3f2fd 0%,
    #b2dfdb 100%
  ); Changed to sky-blue and mint-green */
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(66, 165, 245, 0.1) 0%,
      transparent 50%
    ),
    /* ocean-blue */
      radial-gradient(
        circle at 80% 50%,
        rgba(77, 182, 172, 0.1) 0%,
        transparent 50%
      ); /* soft-green */
  pointer-events: none;
}

.testimonials-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.testimonials-track {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.testimonial-card {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}

.testimonial-card.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.testimonial-content {
  background: rgba(255, 255, 255, 0.9); /* More opaque white */
  border: 1px solid rgba(66, 165, 245, 0.2); /* ocean-blue border */
  border-radius: 20px;
  padding: 50px 40px 40px;
  position: relative;
  backdrop-filter: blur(10px);
  animation: slideUp 1.2s ease-out;
}

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

.quote-icon {
  font-size: 80px;
  line-height: 1;
  color: #42a5f5; /* Changed to ocean-blue */
  opacity: 0.3;
  position: absolute;
  top: 20px;
  left: 30px;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #37474f; /* Changed to text-dark */
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info h4 {
  font-size: 1.1rem;
  color: #37474f; /* Changed to text-dark */
  margin-bottom: 4px;
}

.author-info p {
  font-size: 0.95rem;
  color: #4db6ac; /* Changed to soft-green */
  margin: 0;
}

.carousel-progress {
  width: 100%;
  height: 3px;
  background: rgba(66, 165, 245, 0.2); /* ocean-blue */
  border-radius: 2px;
  margin-top: 40px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #42a5f5, #4db6ac);
  width: 0%;
  border-radius: 2px;
  transition: width 0.05s linear; /* Smooth transition between updates */
}

@keyframes progress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .testimonial-content {
    padding: 40px 30px 30px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .quote-icon {
    font-size: 60px;
  }
}

.results {
  margin-top: auto;
  padding-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.result-box {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
}

.result-value {
  font-size: 2.2rem;
  color: var(--ocean-blue);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.result-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Lead Magnet */
.lead-magnet {
  background: linear-gradient(135deg, var(--ocean-blue), var(--soft-green));
  padding: 5rem 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.lead-magnet::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.lead-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.lead-magnet h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.lead-magnet p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.email-capture {
  display: flex;
  gap: 1rem;
  max-width: 550px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.email-capture input {
  flex: 1;
  min-width: 280px;
  padding: 1.2rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.email-capture button {
  padding: 1.2rem 2.5rem;
  background: white;
  color: var(--ocean-blue);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.email-capture button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Maintenance CTA */
.maintenance-cta {
  background: var(--sky-blue);
  padding: 4rem 0;
  text-align: center;
}

.maintenance-cta h3 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.maintenance-cta .price-highlight {
  font-size: 2.5rem;
  color: var(--ocean-blue);
  font-weight: 700;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-weight: 700;
}

.benefit-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.benefit-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.benefit-item h4 {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.benefit-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-methods {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--light-gray);
  border-radius: 15px;
}

.contact-methods p {
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

.contact-form-wrapper {
  background: var(--light-gray);
  padding: 3rem;
  border-radius: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

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

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem 1.2rem;
  border: 2px solid rgba(66, 165, 245, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
  background: white;
  color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ocean-blue);
  box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 2rem;
}

.footer-content {
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s;
  font-weight: 500;
}

.social-btn:hover {
  background: var(--ocean-blue);
  transform: translateY(-3px);
}

.copyright {
  margin-top: 2rem;
  opacity: 0.6;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-visual {
    grid-template-columns: 1fr;
  }

  nav ul {
    gap: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  } /* <-- closing brace was missing here */

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .email-capture {
    flex-direction: column;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-wrapper {
    padding: 0.2rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.6rem 0.2rem;
  }
}
