/* ===== CSS Variables ===== */
:root {
  --color-primary: #0080ff;
  --color-primary-dark: #0066cc;
  --color-primary-light: #3399ff;
  --color-text: #1a1a1a;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-border: #e5e7eb;
  --color-success: #10b981;
  --color-error: #ef4444;

  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-width: 1200px;
  --header-height: 80px;

  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ===== Container ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-bg);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.nav__logo img {
  height: 32px;
  width: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-primary);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link--cta {
  padding: 10px 24px;
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background-color: var(--color-primary-dark);
  color: white;
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 24px;
  color: var(--color-text);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.btn--primary {
  background-color: var(--color-primary);
  color: white;
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--large {
  padding: 18px 40px;
  font-size: 18px;
}

.btn--full {
  width: 100%;
}

/* ===== Hero Section ===== */
.hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.hero__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.hero__title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero__description {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 32px;
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-card__number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 16px;
  color: var(--color-text-light);
}

/* ===== Trust Section ===== */
.trust-section {
  padding: 60px 0;
  background-color: var(--color-bg-alt);
}

.trust-section__title {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-badge {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  padding: 12px 24px;
  background-color: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* ===== Section ===== */
.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section__title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-text);
}

.section__description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  padding: 40px;
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.service-card__title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.service-card__description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.service-card__link {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card__link:hover {
  gap: 8px;
}

/* ===== Process Section ===== */
.process-section {
  background-color: var(--color-bg-alt);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.process-step {
  text-align: center;
}

.process-step__number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.2;
  margin-bottom: 16px;
}

.process-step__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.process-step__description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* ===== Testimonials ===== */
.testimonials-section {
  background-color: white;
}

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

.testimonial-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
  display: block;
}

.testimonial {
  text-align: center;
  padding: 40px;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}

.testimonial__rating {
  font-size: 24px;
  color: #ffc107;
  margin-bottom: 24px;
}

.testimonial__text {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial__author strong {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

.testimonial__author span {
  font-size: 14px;
  color: var(--color-text-light);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  color: var(--color-text);
  transition: var(--transition);
}

.carousel-btn:hover {
  background-color: var(--color-primary);
  color: white;
}

.carousel-btn--prev {
  left: 0;
}

.carousel-btn--next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-border);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background-color: var(--color-primary);
  width: 32px;
  border-radius: 6px;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content__title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-content__description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0.9;
}

.cta-section .btn--primary {
  background-color: white;
  color: var(--color-primary);
}

.cta-section .btn--primary:hover {
  background-color: var(--color-bg-alt);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-text);
  color: white;
  padding: 80px 0 24px;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer__logo {
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer__description {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.footer__social-link:hover {
  background-color: var(--color-primary);
}

.footer__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer__links a:hover {
  color: white;
  padding-left: 4px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__contact li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.footer__contact svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__newsletter {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.footer__newsletter input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
}

.footer__newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer__newsletter button {
  padding: 12px 16px;
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.footer__newsletter button:hover {
  background-color: var(--color-primary-dark);
}

.footer__bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Page Hero ===== */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  text-align: center;
}

.page-hero__title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.page-hero__description {
  font-size: 20px;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Services Detailed ===== */
.services-detailed {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.service-detailed {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  padding: 40px;
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.service-detailed__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.service-detailed__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.service-detailed__description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.service-detailed__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.service-detailed__features li {
  font-size: 16px;
  color: var(--color-text);
  padding-left: 28px;
  position: relative;
}

.service-detailed__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ===== Contact ===== */
.contact-section {
  padding: 60px 0 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.contact-info p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-detail {
  display: flex;
  gap: 20px;
}

.contact-detail__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.contact-detail h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.contact-detail p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-light);
  margin: 0;
}

.contact-detail a {
  color: var(--color-primary);
}

.contact-detail a:hover {
  text-decoration: underline;
}

.contact-form-wrapper {
  background-color: white;
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  color: var(--color-text);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.1);
}

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

.form-note {
  font-size: 14px;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 8px;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.fade-in.visible {
  animation: fadeIn 0.6s ease forwards;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: white;
    padding: 80px 32px 32px;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s ease;
  }

  .nav__menu.show {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .nav__link::after {
    display: none;
  }

  .nav__toggle,
  .nav__close {
    display: block;
  }

  .nav__close {
    position: absolute;
    top: 24px;
    right: 24px;
  }

  .hero__title {
    font-size: 40px;
  }

  .section__title {
    font-size: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-detailed {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__description {
    font-size: 18px;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 60px 0;
  }

  .section__title {
    font-size: 28px;
  }

  .page-hero {
    padding: 120px 0 60px;
  }

  .page-hero__title {
    font-size: 32px;
  }

  .contact-form-wrapper {
    padding: 32px 24px;
  }

  .testimonials-carousel {
    padding: 20px 50px;
  }

  .testimonial__text {
    font-size: 18px;
  }
}
