/* Global Styles and Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Color Variables */
:root {
  --primary-red: #dc3545;
  --dark-red: #c82333;
  --navy: #1a2238;
  --blue: #9daaf2;
  --gray: #f4f4f6;
  --white: #ffffff;
  --text-dark: #333;
  --shadow: 0 4px 16px rgba(26, 34, 56, 0.1);
}

/* Navigation Styles */
nav.home-page {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 1.2rem 1.2rem;
  padding: 1.2rem 5%;
  margin-bottom: 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo img {
  width: 100px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle:focus {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

.nav-toggle-bar {
  width: 24px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-item {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-item a {
  color: var(--navy);
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.nav-item a:hover,
.nav-item a.active {
  background: var(--primary-red);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero Section */
.message {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("./assets/images/home.jpg") top center/cover no-repeat;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 4rem 2rem;
  border-radius: 1rem;
  margin: 0 2rem 2rem 2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.message h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.message h1 span {
  color: var(--primary-red);
  font-weight: 900;
}

/* Button Styles */
.button1,
button {
  background: var(--primary-red);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.button1:hover,
button:hover {
  background: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.message .button1 {
  margin-top: 2rem;
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
}

.button-secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  box-shadow: none;
  margin-left: 1rem;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transform: translateY(-2px);
}

/* Services Section */
#services-head {
  text-align: center;
  color: var(--primary-red);
  font-size: 2.5rem;
  margin: 3rem 0 2rem 0;
  font-weight: bold;
  letter-spacing: 1px;
}

#services-head span {
  color: var(--navy);
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-content {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 2rem;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  flex: 1 1 300px;
  max-width: 350px;
  min-width: 280px;
  border: 1px solid var(--gray);
}

.service-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(26, 34, 56, 0.15);
}

.service-content img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-content h2 {
  color: var(--primary-red);
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.4rem;
}

.service-content p {
  color: var(--text-dark);
  margin-bottom: 2rem;
  text-align: justify;
  line-height: 1.6;
  flex-grow: 1;
}

.service-content .button1 {
  margin-top: auto;
  align-self: center;
}

/* About Section */
#about-header {
  text-align: center;
  color: var(--primary-red);
  font-size: 2.5rem;
  margin: 3rem 0 2rem 0;
  font-weight: bold;
  letter-spacing: 1px;
}

.about {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
}

.about .left {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about .left h3 {
  color: var(--primary-red);
  margin-bottom: 1rem;
  text-align: center;
}

.about .left img {
  width: 100%;
  max-width: 300px;
  height: 400px;
  object-fit: cover;
  object-position: top;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.about .right {
  flex: 1 1 400px;
  color: var(--text-dark);
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray);
}

.about .right h2 {
  color: var(--primary-red);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.about .right p {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  text-align: justify;
}

/* Testimonials Section */
.testimonial-slider {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 2rem 2rem;
  background-color: var(--navy);
  overflow-x: auto;
  scroll-behavior: smooth;
  text-align: center;
}
.testimonial-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}
.testimonial-title h2 {
  text-align: center;
  color: var(--navy);
}

.testimonial {
  background: var(--white);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);

  /* max-width: 400px; */
  min-width: 300px;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid var(--gray);
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(26, 34, 56, 0.15);
}

.testimonial::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-red);
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: serif;
  opacity: 0.3;
}

.testimonial .stars {
  color: #ffc107;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.testimonial p {
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.testimonial cite {
  color: var(--primary-red);
  font-weight: bold;
  font-style: normal;
  font-size: 1rem;
}

.testimonial cite::before {
  content: "— ";
  color: var(--navy);
}

/* Contact Section */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
  background: var(--gray);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  /* padding: 3rem 2rem; */
  padding-top: 1rem;
  /* margin: 3rem 2rem; */
  /* max-width: 1200px; */
  margin-left: auto;
  margin-right: auto;
}

.contact > div {
  /* background: var(--white); */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
  text-align: center;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
  min-width: 220px;
  flex: 1 1 220px;
  color: var(--primary-red);
  border: 1px solid var(--gray);
  transition: transform 0.3s ease;
}

.contact > div:hover {
  transform: translateY(-3px);
}

.contact4 p a:hover {
  color: var(--primary-red);
  transform: translateX(3px);
}
.contact p {
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.contact4 p a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 0.3rem;
  padding: 0.2rem 0.5rem;
}

.contact4 img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 0.8rem;
}

.contact4 a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact4 a:hover {
  color: var(--primary-red);
  transform: translateX(3px);
}

/* Credit Section */
.credit {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 1rem;
  /* margin-top: 2rem; */
}

.credit p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .message h1 {
    font-size: 2rem;
  }

  .message {
    padding: 3rem 1rem;
    margin: 0 1rem 2rem 1rem;
    min-height: 60vh;
  }

  nav.home-page {
    padding: 1rem;
  }

  .home-nav {
    flex-direction: row;
    gap: 1rem;
    text-align: center;
  }

  .nav-item {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-item a {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }

  .home-nav {
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-item {
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    width: 100%;
    border-radius: 0 0 1rem 1rem;
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .nav-item a {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--gray);
  }

  .nav-item a:last-child {
    border-bottom: none;
  }

  .nav-item.nav-open {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
    padding: 0.5rem 0;
  }

  .services {
    padding: 0 1rem;
    flex-direction: column;
    align-items: center;
  }

  .service-content {
    max-width: 100%;
    min-width: 280px;
  }

  .about {
    flex-direction: column;
    padding: 0 1rem;
    text-align: center;
  }

  .about .left {
    width: 100%;
    align-items: center;
  }

  .about .left img {
    width: 90%;
    height: 350px;
  }

  .about .right {
    width: 100%;
  }

  .contact {
    flex-direction: column;
  }

  .contact > div {
    width: 100%;
  }

  #services-head,
  #about-header {
    font-size: 2rem;
    margin: 2rem 0 1.5rem 0;
  }
}

@media (max-width: 480px) {
  .message h1 {
    font-size: 1.6rem;
  }

  .message {
    padding: 2rem 1rem;
    font-size: 0.9rem;
  }

  .service-content {
    min-width: 250px;
    padding: 1.5rem;
  }

  .about .left img {
    height: 300px;
  }

  .button1,
  button {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }

  .message .button1 {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
  }
}

/* Additional Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-content {
  animation: fadeInUp 0.6s ease-out;
}

.service-content:nth-child(2) {
  animation-delay: 0.1s;
}
.service-content:nth-child(3) {
  animation-delay: 0.2s;
}
.service-content:nth-child(4) {
  animation-delay: 0.3s;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.nav-item a:focus,
.button1:focus,
button:focus {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}
