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

:root {
  --primary-color: #a31e35;
  --secondary-color: #d32f2f;
  --dark-color: #212121;
  --light-color: #f7f7f7;
  --white-color: #fff;
}

body {
  font-family: "Sora", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  scroll-behavior: smooth;
}

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

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

/* Section Title and Description */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 20px; /* Reduced margin to make space for description */
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-description {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto 60px; /* Added margin to separate from the content */
}

/* Header */
.header {
  background-color: var(--white-color);
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo-img {
  width: 150px;
  height: 70px;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  align-items: center;
}

.navbar .nav-links li {
  margin-left: 20px;
  position: relative;
}

.navbar .nav-links a {
  font-weight: 600;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.navbar .nav-links a:hover {
  color: var(--secondary-color);
}

.dropdown-icon {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 10px 0;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  min-width: 250px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  padding: 10px 20px;
  display: block;
  white-space: nowrap;
}

.hamburger-menu {
  display: none;
  background: none;
  border: 2px solid var(--dark-color);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
}

.hamburger-menu:hover {
  background-color: var(--light-color);
}

.hamburger-menu:active {
  background-color: rgba(163, 30, 53, 0.1);
}

.hamburger-icon {
  color: var(--dark-color);
  font-size: 24px;
  transition: transform 0.3s ease;
}

.hamburger-menu.active .hamburger-icon {
  transform: rotate(90deg);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1636217424491-ff7393fe73fd?q=80&w=1167&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white-color);
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  max-width: 800px;
}

/* Section Styling */
section {
  padding: 80px 0;
}

.welcome-message,
.who-we-are,
.services,
.contact {
  background-color: var(--white-color);
}

.why-choose-dese {
  background-color: var(--light-color);
}

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

.testimonials .testimonial-item {
  margin-bottom: 40px;
  text-align: center;
}

.testimonials blockquote {
  font-style: italic;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 10px;
}

.testimonials p {
  font-weight: 600;
}

/* Welcome Message Styling */
.welcome-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.welcome-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  position: relative;
}

/* Why Choose Dese Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  background-color: var(--white-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-10px);
}

.feature-item h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.25rem;
}

/* Testimonials Carousel (with images) */
.carousel {
  overflow: hidden;
  position: relative;
  max-width: 100%;
}

.carousel-track {
  display: flex;
  align-items: stretch;
  animation: scroll-rtl 20s linear infinite;
  width: max-content;
}

.testimonial-card {
  flex: 0 0 320px;
  margin: 0 15px;
  background: var(--white-color);
  color: var(--dark-color);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.testimonial-media {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #eee;
}

.testimonial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-card blockquote {
  font-style: italic;
  font-size: 1rem;
  margin: 0 0 10px 0;
}

.testimonial-meta {
  font-weight: 600;
  margin-top: auto;
}

@media (max-width: 768px) {
  .testimonial-card {
    flex-basis: 280px;
  }
  .testimonial-media {
    height: 160px;
  }
}

/* Who We Are Section */
.who-we-are {
  padding: 60px 20px;
  background-color: #fff;
  max-width: 1100px;
  margin: 0 auto;
}

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

.mission-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #333;
}

.mission-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

.founder-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.founder-text {
  flex: 1;
  min-width: 280px;
}

.founder-text h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #555;
}

.founder-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

.founder-image img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Services Grid */
.services .container {
  padding: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 20px;
  grid-template-areas:
    "service1 service2"
    "service3 service4"
    "service3 service5";
}

.service-card {
  background-color: var(--white-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(163, 30, 53, 0.1);
  color: var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.services-grid .service-card:nth-child(1) {
  grid-area: service1;
}

.services-grid .service-card:nth-child(2) {
  grid-area: service2;
}

.services-grid .service-card:nth-child(3) {
  grid-area: service3;
  grid-row: span 2;
}

.services-grid .service-card:nth-child(4) {
  grid-area: service4;
}

.services-grid .service-card:nth-child(5) {
  grid-area: service5;
}

.service-card--secondary {
  border: 1px solid var(--primary-color);
  background-color: var(--primary-color);
  color: var(--white-color);
}

.service-card--secondary .card-icon {
  background-color: var(--white-color);
  color: var(--primary-color);
}

.service-card--secondary h3,
.service-card--secondary p {
  color: var(--white-color);
}

.services-grid .service-card--secondary:nth-child(5) {
  grid-column: 2 / 3;
}

/* Contact Form Styling */
.contact-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: "Sora", sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 5px rgba(163, 30, 53, 0.2);
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 40px 0;
  text-align: center;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links a,
.contact-footer p,
.contact-footer a {
  color: var(--white-color);
  margin: 0 10px;
}

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

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

.social-links a {
  font-size: 1.5rem;
  margin: 0 10px;
}

/* Scroll-to-top button */
#scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: none;
  transition: all 0.3s ease;
  z-index: 999;
  align-items: center;
  justify-content: center;
}

#scroll-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
    position: relative;
  }

  .header .container .hamburger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
  }

  .navbar {
    width: 100%;
    order: 1;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    text-align: left;
    margin-top: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-links.active {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    margin: 0;
    border-bottom: 1px solid var(--light-color);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links li a {
    padding: 15px 20px;
    display: block;
    width: 100%;
  }

  .dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    width: 100%;
    position: relative;
  }

  .dropdown-toggle:active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(163, 30, 53, 0.1);
    pointer-events: none;
  }

  .dropdown {
    pointer-events: none;
  }

  .dropdown .dropdown-toggle {
    pointer-events: auto;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    background-color: transparent !important;
    padding: 0;
    margin: 0;
    border-radius: 0;
    border-top: none;
    opacity: 0;
    visibility: hidden;
    height: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
  }

  .nav-links .dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    height: auto;
    max-height: 300px;
    overflow: visible;
    transition: all 0.4s ease;
  }

  .dropdown-menu li a {
    padding: 12px 40px;
    font-size: 0.9rem;
    background-color: transparent;
  }

  .dropdown:hover .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
  }

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

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

  .footer .container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-links,
  .contact-footer {
    margin-bottom: 20px;
  }

  .footer-links a,
  .contact-footer p {
    display: block;
    margin: 5px 0;
  }

  /* Mobile-specific adjustments */
  .services-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "service1"
      "service2"
      "service3"
      "service4"
      "service5";
  }

  .services-grid .service-card:nth-child(3) {
    grid-row: auto;
  }

  .founder-section {
    flex-direction: column;
    text-align: center;
  }

  .founder-image img {
    width: 200px;
    height: 200px;
    margin-top: 20px;
  }
}

.footer {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 40px 20px;
}

.footer img {
  max-height: 60px;
  margin-right: 30px;
  flex-shrink: 0;
}

.footer .container {
  display: flex;
  flex-direction: column;
}

.footer-content {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--white-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.contact-footer {
  margin-bottom: 15px;
}

.contact-footer a {
  color: var(--white-color);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  font-size: 1.4rem;
  color: var(--white-color);
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Arrange logo and content horizontally on desktop */
@media (min-width: 769px) {
  .footer {
    display: flex;
    align-items: center;
  }
  .footer img {
    margin-bottom: 0;
  }
  .footer .container {
    flex: 1;
  }
}

/* Stack logo on top on small screens */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer img {
    margin: 0 0 20px 0;
  }
}
