/* Base Styles */
:root {
  --primary-color: #0f1a2c;
  --secondary-color: #f6ac0f;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --white: #ffffff;
  --header-font: "Playfair Display", serif;
  --body-font: "Poppins", sans-serif;
}

.section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section__subheader {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.section__header {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--header-font);
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.section__description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Button Styles */
.btn {
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #a88a62;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* About Hero Section - Updated for Fade Slider */
.about-hero {
  position: relative;
  height: 70vh;
  width: 100%;
  overflow: hidden;
  padding: 0;
  z-index: -2; /* Decreased z-index */
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: -2; /* Decreased z-index */
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out; /* Smooth fade transition */
  z-index: -2; /* Decreased z-index */
}

.hero-slide.active {
  opacity: 1;
  z-index: -2; /* Decreased z-index */
}

/* Slider Navigation Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  padding: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s ease;
  pointer-events: auto;
}

.slider-btn:hover {
  background: var(--secondary-color);
}

.slider-btn.prev {
  left: 1rem;
}

.slider-btn.next {
  right: 1rem;
}

/* About Intro Section */
.about-intro {
  padding: 5rem 0;
}

.about-intro__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}

/* About Features Section */
.about-features {
  padding: 5rem 0;
  background-color: #f9f9f9;
  position: relative;
  isolation: isolate;
}

.about-features::before {
  position: absolute;
  content: "";
  bottom: 0;
  right: 0;
  height: 75%;
  width: 100%;
  background-image: url("../assets/image2.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.05;
  z-index: -1;
}

.about-features__container {
  text-align: center;
}

.about-features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.about-features__card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.about-features__card:hover {
  transform: translateY(-10px);
}

.about-features__card:nth-child(4) {
  background-color: var(--primary-color);
}

.about-features__card:nth-child(4) :is(h4, p) {
  color: var(--white);
}

.about-features__card span {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.about-features__card:nth-child(4) span {
  color: var(--white);
}

.about-features__card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--header-font);
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.about-features__card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* About Story Section */
.about-story {
  padding: 5rem 0;
}

.about-story__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}

/* About CTA Section */
.about-cta {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../assets/image3.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--white);
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 26, 44, 0.3), rgba(22, 12, 79, 0.372));
  z-index: 0;
}

.about-cta__container {
  position: relative;
  z-index: 1;
}

.about-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-cta p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.about-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Footer Styles */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 4rem 0 0;
}

.footer__container {
  display: grid;
  gap: 4rem 2rem;
}

.footer__col {
  margin-bottom: 2rem;
}

.footer__logo {
  margin-bottom: 2rem;
  color: var(--white);
}

.footer__logo img {
  height: 100px;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.footer__logo img:hover {
  opacity: 0.9;
}

.footer__description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer__socials {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgb(255, 255, 255);
  color: var(--text-light);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer__socials a:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-5px);
}

.footer__col h4 {
  margin-bottom: 2rem;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--header-font);
  color: var(--white);
}

.footer__col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.footer__links li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer__links li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer__links li span {
  margin-right: 0.8rem;
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.footer__bar {
  padding: 1.5rem 0;
  background-color: rgba(0, 0, 0, 0.2);
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Animations */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.appear {
  opacity: 1;
  transform: translateY(0);
}

.animate-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-item.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Media Queries */
@media screen and (max-width: 991px) {
  .about-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .about-intro__container,
  .about-story__container {
    grid-template-columns: 1fr;
  }
  
  .section__header {
    font-size: 2rem;
  }
}

@media screen and (max-width: 576px) {
  .about-features__grid {
    grid-template-columns: 1fr;
  }
  
  .about-cta__buttons {
    flex-direction: column;
  }
  
  .footer__container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer__col {
    display: block;
    margin-bottom: 2rem;
  }

  .footer__col h4::after {
    left: 0;
    transform: none;
  }

  .footer__links {
    padding: 0;
    display: block;
  }

  .footer__links li {
    text-align: left;
  }

  .footer__links li a {
    justify-content: flex-start;
  }

  .footer__socials {
    justify-content: flex-start;
  }

  .footer__description {
    text-align: left;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-slide {
    transition: none !important;
  }
}