/* --- CSS VARIABLES & RESET --- */
:root {
  /* NEW PALETTE: Electric Violet & Deep Charcoal */
  --primary: #8b5cf6; /* Vibrant Violet */
  --primary-dark: #7c3aed; /* Darker Violet for hovers */
  --secondary: #111827; /* Almost Black/Deep Charcoal */
  --accent: #06b6d4; /* Cyan/Teal Accent */

  /* Text Colors */
  --text-body: #374151; /* Dark Gray for body text on light bg */
  --text-muted: #6b7280; /* Medium Gray for subtitles/supporting text */
  --text-on-dark: #f3f4f6; /* Off-white for text on dark backgrounds */

  /* Backgrounds */
  --white: #ffffff;
  --bg-light: #f9fafb; /* Very light gray section bg */

  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-padding {
  padding: 100px 0;
}
.text-center {
  text-align: center;
}
/* Updated titles to use the deep secondary color */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
}
/* Updated subtitles to use the new violet primary */
.section-subtitle {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
}
.btn-light:hover {
  background: #f3f4f6;
  transform: translateY(-3px);
}

/* --- NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* Changed to dark background for premium feel */
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Logo color updated for dark navbar */
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}
/* Link colors updated for dark navbar */
.nav-links a {
  text-decoration: none;
  color: var(--text-on-dark);
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--bg-light);
}
/* Mobile toggle color */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
}

/* --- HERO SLIDER --- */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* Centering added here as fallback */
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}
.slide.active {
  opacity: 1;
}
/* Darker overlay for better text contrast with new colors */
.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(17, 24, 39, 0.8),
    rgba(17, 24, 39, 0.9)
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 900px;
  /* --- UPDATED: Centering --- */
  margin: 0 auto;
  text-align: center;
  /* -------------------------- */
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease 0.3s;
  padding: 0 20px;
}
.slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}
.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 25px;
  font-weight: 800;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: var(--text-on-dark);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.slider-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}
.control-dot {
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}
.control-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* --- SERVICES --- */
/* Using the new light background variable */
.services-section {
  background: var(--bg-light);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 60px;
}
.service-card {
  background: var(--white);
  padding: 50px 35px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
/* Hover effect now uses the new primary color */
.service-card:hover {
  transform: translateY(-15px);
  border-bottom-color: var(--primary);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}
.service-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 25px;
}
.service-card h3 {
  margin-bottom: 15px;
  color: var(--secondary);
  font-size: 1.4rem;
}
.service-card p {
  color: var(--text-muted);
}

/* --- ABOUT US --- */
.about-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
}
.about-img {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}
.about-img img {
  width: 100%;
  height: auto;
  display: block;
}
.about-text {
  flex: 1;
}
.about-list {
  list-style: none;
  margin: 30px 0;
}
.about-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  color: var(--secondary);
  font-size: 1.1rem;
}
.about-list i {
  color: var(--accent); /* Using accent color for checks */
  font-size: 1.2rem;
}

/* --- PROCESS / WORKFLOW --- */
/* Using the light background */
.process-section {
  background: var(--bg-light);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
  text-align: center;
  position: relative;
}
.step-item {
  position: relative;
  padding: 20px;
  z-index: 2;
}
/* Connecting lines between steps */
.step-item::after {
  content: "";
  position: absolute;
  top: 45px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: #e5e7eb;
  z-index: -1;
}
.process-steps .step-item:last-child::after {
  display: none;
}

.step-number {
  width: 70px;
  height: 70px;
  background: var(--white);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border: 3px solid var(--primary);
}
.step-item h4 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--secondary);
}
.step-item p {
  color: var(--text-muted);
}

/* --- CTA SECTION --- */
.cta-section {
  /* Updated gradient to use new secondary -> primary */
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
  padding: 120px 0;
}
.cta-section h2 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 3rem;
}
.cta-section p {
  color: var(--text-on-dark);
  margin-bottom: 40px;
  font-size: 1.3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

/* --- TESTIMONIALS --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 60px;
}
.testimonial-card {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  /* Border now uses the accent color */
  border-left: 5px solid var(--accent);
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
/* Stars use accent color */
.stars {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.testimonial-card p {
  font-style: italic;
  color: var(--text-body);
  font-size: 1.1rem;
}
.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}
.client-info h4 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 0;
  font-weight: 700;
}
.client-info span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- FOOTER --- */
.footer {
  background: var(--secondary);
  color: var(--text-muted);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}
.footer h3 {
  color: var(--white);
  margin-bottom: 25px;
  font-size: 1.3rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.3s;
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  margin-right: 10px;
  transition: 0.3s;
}
.social-icons a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}
.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  font-size: 0.95rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-item::after {
    display: none;
  } /* Hide connecting lines on tablet */
  .about-wrapper {
    flex-direction: column;
  }
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    /* Mobile menu bg updated to dark */
    background: var(--secondary);
    flex-direction: column;
    padding: 30px 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Hidden by default */
    transition: all 0.4s ease-in-out;
    align-items: flex-start;
  }
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Reveal */
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .hero {
    height: 85vh;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
  .cta-section h2 {
    font-size: 2rem;
  }
}

/* Custom css */


body > nav > div > ul > li:nth-child(6) > a{
  width: fit-content;
  margin-left: 0px !important;
}

nav > div > a{
  width: 20%;
}

nav > div > a img{
  width: 100%;
}

footer a.logo{
  width: 80%;
  display: block;
}

footer a img{
  width: 100%;
}


#contact > div > div.footer-grid > div:nth-child(2) {
  padding-left: 50px;
}

@media only screen and (min-width: 1180px) and (max-width: 1279px) {
  .hero {
    height: 90vh;
  }

  h1 {
    font-size: 42px !important;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1179px) {
  .hero {
    height: 50vh;
  }
  h1 {
    font-size: 42px !important;
  }

  #contact > div > div.footer-grid > div:nth-child(2){
    padding-left: 60px;
  }

  footer ul.footer-links li {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: start;
    gap: 10px;
    word-break: break-word;
  }

footer .footer-grid {
  gap: 20px;
}

}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .hero {
    height: 60vh;
  }
  h1 {
    font-size: 38px !important;
    width: 80%;
    margin: auto;
  }
  .hero p {
    font-size: 1rem;
    width: 70%;
  }

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

  .process-steps .step-item {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
  }

  footer ul.footer-links li {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: start;
    gap: 10px;
  }

  footer ul.footer-links li i {
    padding-top: 5px;
  }
}

@media only screen and (min-width: 320px) and (max-width: 767px) {
  .hero {
    height: 80vh;
  }
  h1 {
    font-size: 28px !important;
    margin: 0 0 10px 0 !important;
  }
  h2 {
    font-size: 32px !important;
    line-height: 42px !important;
  }

  .hero p {
    font-size: 1rem !important;
    margin: 10px 0 !important;
  }

  #home > div:nth-child(1) > div > div > div > a.btn.btn-primary {
    margin-bottom: 10px;
  }

  .process-steps .step-item {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
  }

  .cta-section,
  .section-padding {
    padding: 70px 0;
  }

  #contact > div > div.footer-grid > div:nth-child(2) {
    padding: 0;
  }

  footer ul.footer-links li {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: start;
    gap: 10px;
  }

  footer ul.footer-links li i {
    padding-top: 5px;
  }

  footer .footer-grid {
    margin-bottom: 20px;
  }
}

