:root {
  --primary-color: #dc2626;
  --primary-dark: #b91c1c;
  --secondary-color: #f84848;
  --secondary-dark: #991b1b;
  --accent-color: #f59e0b;
  --light-color: #ffffff;
  --off-white: #f9fafb;
  --light-gray: #f3f4f6;
  --medium-gray: #e5e7eb;
  --dark-color: #111827;
  --text-color: #374151;
  --text-light: #6b7280;
  --border-radius: 12px;
  --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-color);
  line-height: 1.6;
  font-family: "Open Sans", sans-serif;
  background-color: var(--light-color);
  font-size: 1rem;
  font-weight: 400;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark-color);
}

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

a:hover {
  color: var(--primary-dark);
}

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

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary-dark);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn:hover:before {
  left: 0;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-lg);
  color: var(--light-color);
}

.btn-accent {
  background-color: var(--secondary-color);
}

.btn-accent:before {
  background-color: var(--secondary-dark);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

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

.btn-outline:hover {
  color: var(--light-color);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

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

.btn-white:before {
  background-color: var(--light-gray);
}

section {
  padding: 100px 0;
}

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

.section-title {
  font-size: 2.8rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
}

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

/* --- HEADER & NAVIGATION --- */

header {
  background-color: transparent; /* Default state: Transparent */
  backdrop-filter: none; /* Default state: No blur */
  box-shadow: none; /* Default state: No shadow */
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 20px 0;
}

/* Class added via JS on scroll */
header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 15px 0; /* Slightly smaller padding when scrolled */
}

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

.logo-img {
  display: flex;
  align-items: center;
  z-index: 1002; /* Ensures Logo is clickable over the mobile menu */
  position: relative;
}

.logo-img img {
  height: 80px;
  width: auto;
  display: block;
  transition: var(--transition);
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 600;
  font-size: 1rem;
  /* Default: Links are white (to stand out on hero image) */
  color: var(--light-color);
  position: relative;
  transition: var(--transition);
}

nav ul li a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover:after {
  width: 100%;
}

nav ul li a.active {
  color: var(--secondary-color);
}

nav ul li a.active:after {
  width: 100%;
}

/* When scrolled, change nav link color to dark for readability on white background */
header.scrolled nav ul li a {
  color: var(--dark-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--light-color); /* Default white for transparent header */
  z-index: 1001;
  transition: var(--transition);
}

/* Adjust mobile menu button color on scroll */
header.scrolled .mobile-menu-btn {
  color: var(--dark-color);
}

/* --- HERO SECTION --- */

.hero {
  background: linear-gradient(
      135deg,
      rgba(17, 24, 39, 1),
      rgba(17, 24, 39, 0.2)
    ),
    url("/assets/img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--light-color);
  position: relative;
  margin-top: 0;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(220, 38, 38, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(248, 72, 72, 0.3) 0%,
      transparent 50%
    );
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 25px;
  font-weight: 700;
  color: var(--light-color);
  line-height: 1.1;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  line-height: 1.7;
  color: var(--light-color);
  opacity: 0;
  animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 2;
}

.hero-scroll a {
  color: var(--light-color);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.hero-scroll a:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

/* --- STATS --- */

.stats {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--light-color);
  padding: 80px 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.stats:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  padding: 20px;
  flex: 1;
  min-width: 200px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--light-color);
  font-family: "Poppins", sans-serif;
}

.stat-label {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  font-weight: 500;
}

/* --- ABOUT --- */

.about {
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  color: var(--dark-color);
  margin-bottom: 25px;
  font-size: 2.5rem;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-color);
}

.about-features {
  margin: 30px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.feature-item i {
  color: var(--secondary-color);
  margin-right: 10px;
  font-size: 1.1rem;
}

.about-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow-lg);
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.experience-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 15px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
  transform: rotate(5deg);
  z-index: 2;
}

.experience-badge span {
  display: block;
  font-weight: 600;
  line-height: 1.2;
}

.experience-badge span:first-child {
  font-size: 1.5rem;
}

/* --- SERVICES --- */

.services {
  background-color: var(--light-color);
}

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

.service-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid var(--medium-gray);
  position: relative;
  opacity: 0; /* Hidden initially for scroll animation */
  transform: translateY(30px);
}

/* Animated class added via JS */
.service-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.service-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover:before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-lg);
}

.service-image {
  height: 220px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-info {
  padding: 25px;
}

.service-info h3 {
  margin-bottom: 15px;
  color: var(--dark-color);
  font-size: 1.5rem;
}

.service-info p {
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.7;
}

.service-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
}

.service-price {
  display: flex;
  flex-direction: column;
}

.service-price .price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.service-price .duration {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- TESTIMONIALS --- */

.testimonials {
  background-color: var(--light-gray);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.testimonial {
  background-color: var(--light-color);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
  opacity: 0; /* Hidden initially */
  transform: translateY(30px);
}

.testimonial.animated {
  opacity: 1;
  transform: translateY(0);
}

.testimonial:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-lg);
}

.rating {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 30px;
  font-style: italic;
  position: relative;
}

.testimonial-text:before,
.testimonial-text:after {
  content: '"';
  font-size: 3rem;
  color: var(--medium-gray);
  position: absolute;
  line-height: 1;
}

.testimonial-text:before {
  top: -20px;
  left: -15px;
}

.testimonial-text:after {
  bottom: -40px;
  right: -15px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 3px solid var(--primary-color);
}

.author-info h4 {
  margin-bottom: 5px;
  color: var(--dark-color);
  text-align: left;
}

.author-info span {
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: left;
  display: block;
}

.more-reviews {
  margin-top: 40px;
  text-align: center;
}

/* --- PROCESS --- */

.process {
  background-color: var(--light-color);
}

.process-steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 50px;
  gap: 30px;
}

.process-step {
  flex: 0 0 calc(25% - 30px);
  text-align: center;
  padding: 30px 20px;
  position: relative;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.process-step.animated {
  opacity: 1;
  transform: translateY(0);
}

.process-step:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-lg);
}

.process-step:not(:last-child):after {
  content: "";
  position: absolute;
  top: 50%;
  right: -30px;
  width: 30px;
  height: 2px;
  background-color: var(--medium-gray);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 25px;
}

.step-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.step-title {
  font-size: 1.2rem;
  color: var(--dark-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.step-description {
  color: var(--text-light);
  line-height: 1.7;
}

/* --- CTA --- */

.cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.cta-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      135deg,
      rgba(220, 38, 38, 0.9),
      rgba(248, 72, 72, 0.9)
    ),
    url("/assets/img/cta-bg.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.cta-content {
  position: relative;
  z-index: 1;
  color: var(--light-color);
  text-align: center;
}

.cta h2 {
  color: var(--light-color);
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* --- CONTACT --- */

.contact {
  background-color: var(--light-gray);
}

.contact-container {
  display: flex;
  gap: 50px;
}

.gta-map-container {
  flex: 1;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background-color: var(--light-color);
}

.map-wrapper {
  height: 500px;
  position: relative;
}

.map-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: var(--border-radius);
}

.map-overlay h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.areas-grid span {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-size: 0.9rem;
}

.areas-grid i {
  color: var(--secondary-color);
  margin-right: 8px;
  font-size: 0.9rem;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  margin-bottom: 25px;
  color: var(--dark-color);
  font-size: 1.8rem;
}

.contact-details {
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  margin-bottom: 25px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.1),
    rgba(248, 72, 72, 0.1)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.contact-text h4 {
  color: var(--dark-color);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.contact-text p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 5px;
}

.map-link,
.email-link,
.phone-link {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 5px;
  transition: var(--transition);
}

.map-link:hover,
.email-link:hover,
phone-link:hover {
  color: var(--primary-dark);
}

.map-link i,
.email-link i,
phone-link i {
  margin-left: 5px;
  transition: var(--transition);
}

.map-link:hover i,
.email-link:hover i,
phone-link:hover i {
  transform: translateX(3px);
}

/* --- FOOTER --- */

footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 80px 0 30px;
  position: relative;
}

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

.footer-col h3 {
  margin-bottom: 25px;
  font-size: 1.3rem;
  color: var(--light-color);
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
  bottom: 0;
  left: 0;
}

.footer-col p {
  color: #adb5bd;
  margin-bottom: 20px;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #adb5bd;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--light-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #adb5bd;
  font-size: 0.9rem;
}

/* --- ANIMATIONS --- */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* --- BACK TO TOP BUTTON --- */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--light-color);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--box-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 30px -10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* --- MEDIA QUERIES --- */

@media (max-width: 1200px) {
  .process-step {
    flex: 0 0 calc(50% - 30px);
    margin-bottom: 40px;
  }

  .process-step:not(:last-child):after {
    display: none;
  }
}

@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .about-image {
    order: -1;
    margin-bottom: 40px;
  }

  .contact-container {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 15px;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
  }

  nav.active {
    transform: translateX(0);
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  nav ul li {
    margin: 15px 0;
  }

  /* Ensure mobile nav links are dark (since background is white) */
  nav ul li a {
    color: var(--dark-color) !important;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .hero-btns {
    flex-direction: column;
    gap: 15px;
  }

  .cta-btns {
    flex-direction: column;
  }

  section {
    padding: 70px 0;
  }

  .stat-item {
    flex: 0 0 calc(50% - 30px);
  }

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

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

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

  .hero {
    background-attachment: scroll;
    background-position: center;
  }
}

@media (max-width: 576px) {
  .process-step {
    flex: 0 0 100%;
    margin-bottom: 30px;
  }

  .stat-item {
    flex: 0 0 100%;
  }

  .hero {
    min-height: 600px;
  }

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

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

  .footer-container {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}
