/* =========================================
   1. VARIABLES
   ========================================= */
:root {
  --primary-color: #25343f;
  --primary-rgb: 37, 52, 63;
  --primary-color-dark: #1e293b;
  --secondary-color: #ff9b51;
  --secondary-rgb: 255, 155, 81;
  --text-dark: #25343f;
  --text-light: #767676;
  --extra-light: #eaefef;
  --white: #ffffff;
  --white-rgb: 255, 255, 255;
  --accent-color: #fbbf24;
  --max-width: 1200px;
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
*::before,
*::after,
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text-dark);
  background-color: var(--extra-light);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =========================================
   3. UTILITY CLASSES
   ========================================= */
.section {
  padding: 5rem 1rem;
}

.section__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__header {
  margin-bottom: 2rem;
  text-align: center;
}

.section__title {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section__description {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.75;
}

.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--secondary-color);
  border-radius: 2rem;
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid var(--secondary-color);
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

/* =========================================
   4. HEADER
   ========================================= */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  background: rgba(var(--white-rgb), 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Backgrounds */
.hero-bg-mesh {
  background-color: var(--extra-light);
  background-image:
    radial-gradient(
      at 80% 0%,
      rgba(var(--primary-rgb), 0.05) 0px,
      transparent 50%
    ),
    radial-gradient(
      at 0% 50%,
      rgba(var(--primary-rgb), 0.05) 0px,
      transparent 50%
    ),
    radial-gradient(
      at 40% 20%,
      rgba(var(--secondary-rgb), 0.1) 0px,
      transparent 50%
    );
}

.header__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  text-decoration: none;
}

.header__logo-img {
  width: 200px;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.header__link {
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: 0.3s;
}

.header__link:hover {
  color: var(--primary-color);
}

.header__btn {
  padding: 0.5rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

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

.header__mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 6rem; /* Offset for fixed header + extra space */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.hero__content {
  max-width: 800px; /* Limit text width for readability */
}

.hero__image-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero__image {
  border-radius: 1rem;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

.hero__title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hero__title--highlight {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text; /* Clip background to text */
  background-clip: text;
  color: transparent; /* Make text transparent to show background */
}

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

/* =========================================
   6. SERVICES SECTION
   ========================================= */
.service__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.service__card {
  padding: 2rem;
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

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

.service__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: var(--primary-color);
  background-color: var(--secondary-color);
  border-radius: 50%;
}

.service__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* =========================================
   7. PROCESS SECTION
   ========================================= */
.process__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.process__card {
  padding: 1rem;
  border-radius: 1rem;
  transition: 0.3s;
}

.process__card:hover {
  background-color: var(--extra-light);
}

.process__image {
  width: 100%;
  max-width: 100%;
  border-radius: 1rem;
  margin-bottom: 1rem;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.process__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* =========================================
   8. TESTIMONIALS SECTION
   ========================================= */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.testimonials__card {
  padding: 2rem;
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
}

.testimonials__stars {
  color: var(--accent-color); /* Gold color for stars */
  margin-bottom: 1rem;
}

.testimonials__text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonials__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonials__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonials__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

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

/* =========================================
   9. CTA BANNER
   ========================================= */
.banner__container {
  background:
    linear-gradient(
      to right,
      rgba(var(--white-rgb), 0.9),
      rgba(var(--white-rgb), 0.7)
    ),
    url("./assets/banner.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 2rem;
  padding: 5rem 2rem;
  text-align: center;
}

.banner__title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.banner__description {
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.banner__btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.banner__btn-outline {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 2rem;
  font-weight: 600;
  border: 1px solid var(--primary-color);
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
}

.banner__btn-outline:hover {
  background-color: var(--primary-color-dark);
  color: var(--white);
  border: none;
}

/* =========================================
   10. FOOTER
   ========================================= */
.footer {
  background-color: var(--text-dark);
  color: var(--extra-light);
  padding-top: 5rem;
  padding-right: 1rem;
  padding-left: 1rem;
}

.footer__container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer__description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__socials a {
  color: var(--extra-light);
  font-size: 1.25rem;
  transition: 0.3s;
  border: 1px solid var(--text-light);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer__socials a i {
  line-height: 1; /* Ensure no extra line-height spacing */
  font-size: 1.2rem; /* Explicit size for the icon */
}

.footer__socials a:hover {
  color: var(--primary-color);
  background-color: var(--white);
}

.footer__col h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 1rem;
}

.footer__links a {
  color: var(--text-light);
  text-decoration: none;
  transition: 0.3s;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__bar {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  border-top: 1px solid var(--text-light);
  margin-top: 4rem;
}

/* =========================================
   11. MEDIA QUERIES (RESPONSIVE)
   ========================================= */

/* Max Width: 900px (Tablet/Small Desktop) */
@media (max-width: 900px) {
  .header__menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: none;
    animation: slideDown 0.3s ease-out forwards;
  }

  .header__menu.is-active {
    display: flex;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .header__btn {
    display: none;
  }

  .header__mobile-toggle {
    display: block;
  }

  .service__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Max Width: 768px (Tablet Portrait) */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }

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

/* Max Width: 600px (Mobile) */
@media (max-width: 600px) {
  .service__grid {
    grid-template-columns: 1fr;
  }

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

  .banner__title {
    font-size: 2rem;
  }

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