/*--------------------------------------------------------------
# General Styles
--------------------------------------------------------------*/
:root {
  /* Main colors - enhanced for better contrast */
  --primary-color: #7b5db9;
  --secondary-color: #e05f8b;
  --tertiary-color: #40b6b6;
  --dark-color: #2a2a40;
  --light-color: #f8f9fa;
  --white-color: #ffffff;
  --text-color: #333333;
  --muted-text-color: #555555;

  /* Font families */
  --heading-font: "Playfair Display", serif;
  --body-font: "Poppins", sans-serif;

  /* Font sizes */
  --h1-size: 3.5rem;
  --h2-size: 2.5rem;
  --h3-size: 1.75rem;
  --h4-size: 1.25rem;
  --body-size: 1rem;
  --small-size: 0.875rem;

  /* Spacing */
  --section-padding: 100px 0;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--white-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-color);
}

p {
  margin-bottom: 1rem;
  color: var(--muted-text-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

.btn {
  padding: 10px 28px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white-color);
  box-shadow: 0 5px 15px rgba(123, 93, 185, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(123, 93, 185, 0.5);
}

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: var(--h2-size);
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.section-header h2:after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  color: #777;
  font-size: 18px;
}

/*--------------------------------------------------------------
# Message Alert
--------------------------------------------------------------*/
.message-alert {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1050;
  min-width: 300px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Navbar
--------------------------------------------------------------*/
.navbar {
  padding: 20px 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 24px;
  color: var(--primary-color);
}

.logo {
  height: 40px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--dark-color);
  padding: 10px 15px;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-content h1 {
  font-size: var(--h1-size);
  margin-bottom: 10px;
  color: var(--dark-color);
}

.hero-content h2 {
  font-size: var(--h3-size);
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #555;
}

.hero-image img {
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.gradient-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(123, 93, 185, 0.15),
    rgba(224, 95, 139, 0.15)
  );
  z-index: -1;
  border-radius: 0 0 0 100%;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services-section {
  padding: var(--section-padding);
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.service-card {
  background-color: var(--white-color);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  line-height: 80px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(123, 93, 185, 0.15),
    rgba(224, 95, 139, 0.15)
  );
  color: var(--primary-color);
  font-size: 32px;
  text-align: center;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.service-card p {
  color: #666;
  font-size: 16px;
}

/*--------------------------------------------------------------
# Experience Section
--------------------------------------------------------------*/
.experience-section {
  padding: var(--section-padding);
  position: relative;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--secondary-color)
  );
  left: 50%;
  margin-left: -1.5px;
}

.timeline-item {
  padding: 30px 0;
  position: relative;
}

.timeline-content {
  background-color: var(--white-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  width: calc(50% - 40px);
  position: relative;
  margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: auto;
}

.timeline-content:before {
  content: "";
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.timeline-item:nth-child(odd) .timeline-content:before {
  right: -50px;
}

.timeline-item:nth-child(even) .timeline-content:before {
  left: -50px;
}

.timeline-content h3 {
  font-size: 24px;
  margin-bottom: 5px;
}

.timeline-content h4 {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 500;
}

.timeline-date {
  font-size: 16px;
  font-weight: 500;
  color: #777;
  margin-bottom: 15px;
}

/*--------------------------------------------------------------
# Metrics Section
--------------------------------------------------------------*/
.metrics-section {
  padding: var(--section-padding);
  background: linear-gradient(
    135deg,
    rgba(123, 93, 185, 0.15),
    rgba(224, 95, 139, 0.15)
  );
  text-align: center;
}

.metric-item {
  margin-bottom: 30px;
}

.metric-icon {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.metric-item h3 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-item p {
  font-size: 18px;
  color: var(--dark-color);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials-section {
  padding: var(--section-padding);
  background-color: var(--white-color);
  position: relative;
}

.testimonial-item {
  padding: 20px;
}

.testimonial-content {
  background-color: var(--light-color);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-content i {
  font-size: 30px;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: block;
}

.testimonial-content p {
  font-size: 16px;
  font-style: italic;
  margin-bottom: 30px;
}

.testimonial-author h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.testimonial-author p {
  font-size: 14px;
  color: #777;
  margin-bottom: 0;
  font-style: normal;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev {
  left: -20px;
}

.carousel-control-next {
  right: -20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-section {
  padding: var(--section-padding);
  background-color: var(--light-color);
}

.contact-info {
  background-color: var(--white-color);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 100%;
}

.contact-image {
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

.contact-details {
  padding: 30px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-detail-item i {
  font-size: 18px;
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 5px;
}

.contact-detail-item p {
  margin-bottom: 0;
}

.contact-social {
  margin-top: 25px;
}

.contact-social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: rgba(146, 120, 204, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

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

.contact-form {
  background-color: var(--white-color);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 25px;
}

.form-control {
  height: 50px;
  border: 1px solid #e1e1e1;
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

textarea.form-control {
  height: auto;
}

.form-select {
  height: 50px;
  border: 1px solid #e1e1e1;
  padding: 10px 20px;
  border-radius: 5px;
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

label {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background-color: var(--dark-color);
  padding: 80px 0 20px;
  color: var(--white-color);
}

.footer-logo img {
  height: 60px;
  margin-bottom: 15px;
}

.footer-logo h3 {
  font-size: 22px;
  color: var(--white-color);
  margin-bottom: 5px;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer-links h4 {
  font-size: 18px;
  color: var(--white-color);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

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

.footer-newsletter h4 {
  font-size: 18px;
  color: var(--white-color);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-newsletter h4:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer-newsletter .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white-color);
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter .btn {
  padding: 10px 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.copyright p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-social a {
  display: inline-block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  border-radius: 50%;
  margin-left: 10px;
  transition: all 0.3s ease;
}

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

/*--------------------------------------------------------------
# Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 1199.98px) {
  :root {
    --h1-size: 3rem;
    --h2-size: 2.25rem;
    --h3-size: 1.5rem;
  }

  .hero-section {
    padding: 150px 0 80px;
  }
}

@media (max-width: 991.98px) {
  :root {
    --h1-size: 2.5rem;
    --h2-size: 2rem;
  }

  .navbar {
    padding: 15px 0;
  }

  .hero-section {
    padding: 130px 0 60px;
  }

  .hero-content {
    margin-top: 40px;
    text-align: center;
  }

  .timeline:before {
    left: 20px;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }

  .timeline-item:nth-child(odd) .timeline-content:before,
  .timeline-item:nth-child(even) .timeline-content:before {
    left: -40px;
  }

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

@media (max-width: 767.98px) {
  :root {
    --h1-size: 2.25rem;
    --h2-size: 1.75rem;
    --h3-size: 1.25rem;
    --section-padding: 70px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .service-card {
    margin-bottom: 30px;
  }

  .timeline-content {
    padding: 20px;
  }

  .carousel-control-prev {
    left: 50%;
    top: calc(100% + 20px);
    transform: translateX(-60px);
  }

  .carousel-control-next {
    right: 50%;
    top: calc(100% + 20px);
    transform: translateX(60px);
  }

  .contact-form {
    padding: 25px;
  }

  .footer {
    padding: 60px 0 20px;
  }

  .footer-logo,
  .footer-links,
  .footer-newsletter {
    margin-bottom: 40px;
  }

  .footer-bottom {
    text-align: center;
    flex-direction: column;
  }

  .copyright {
    margin-bottom: 15px;
  }
}
