:root {
  --light-brown: #BF9960; /* Previously --light-green */
  --light-purple: #604358; /* Previously --light-blue */
}

body {
  font-family: 'Poppins', sans-serif;
}

.navbar {
  background: rgba(255, 255, 255, 0.9);
  transition: background 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
  color: var(--light-brown) !important;
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 10px;
}

.navbar-nav .nav-link.active {
  color: var(--light-purple) !important;
}

.navbar-nav .nav-link {
  position: relative;
  color: var(--light-brown) !important;
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 10px;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
  color: var(--light-purple) !important;
  transform: scale(1.1);
  text-shadow: 0px 0px 8px rgba(110, 124, 135, 0.7);
}

/* Underline animation */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, var(--light-brown), var(--light-purple));
  transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Fancy glowing effect */
.navbar-nav .nav-link:hover {
  text-shadow: 0 0 10px var(--light-brown), 0 0 20px var(--light-purple);
}

.btn-brown {
  background-color: var(--light-brown);
  color: white;
  border: none;
}

.btn-brown:hover {
  background-color: #ceb084;
  color: black;
}

.btn-purple {
  background-color: var(--light-purple);
  color: white;
  border: none;
}

.btn-purple:hover {
  background-color: #8f7b8a;
  color: black;
}

/* Global Section Padding */
/* Ensure consistent section spacing */
section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section {
      padding: 50px 0;
  }
}

.section-heading {
  animation: fallIn 1s ease-out forwards;
  opacity: 0;
  transform: translateY(-50px);
}

@keyframes fallIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero-section {
  background: url('../images/hero-bg.jpg') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
  text-align: left;
  position: relative;
  font-weight: bold;
  margin-top: 80px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  padding-left: 50px;
}

.hero-section p {
  font-size: 2.0rem;
  margin-bottom: 20px;
  overflow: hidden;
  white-space: nowrap;
  width: 20ch;
  animation: typing 5s steps(16, end);
}

@keyframes typing {
  from { width: 0; }
  to { width: 20ch; }
}

/* Card Section */
.card-section {
  position: relative;
  margin-top: -170px;
  z-index: 1;
}

.card {
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover {
  transform: translateY(-30px);
}

.card img {
  width: 100%;
  margin-top: 20px;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 10px;
  color: var(--light-purple);
}

.card-text {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Services Section */
.services-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: var(--light-purple);  
  animation-delay: 0.2s;
}

.service-item {
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-item i {
  font-size: 2rem;
  color: var(--light-brown);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.service-item:hover i {
  color: var(--light-brown);
}

.service-item h6 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.service-item:hover h6 {
  color: var(--light-brown);
}

/* About Us Section */
.about-us-section {
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-us-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: var(--light-purple);
  animation-delay: 0.4s;
}

.about-us-section p {
  font-size: 16px;
  line-height: 1.8;
}

.about-us-section .btn {
  margin-top: 20px;
}

.about-us-image {
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Image Carousel Section */
.image-carousel-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--light-purple);
  text-align: center;
  animation-delay: 0.6s;
}

/* Slider Container */
.slider-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  background: #f8f9fa;
  padding: 10px 0;
}

/* Image Track */
.slider-track {
  display: flex;
  gap: 15px;
  animation: scroll 10s linear infinite;
  width: calc(150px * 10);
}

/* Individual Image */
.slider-track img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s;
}

/* Hover Effect */
.slider-track img:hover {
  transform: scale(1.1);
}

/* Scrolling Animation */
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Pause Animation on Hover */
.slider-container:hover .slider-track {
  animation-play-state: paused;
}

/* Arrows */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* Request a Call Wrapper */
.request-call-wrapper {
  padding-top: 50px;
}

/* Request a Call Section */
.request-call-section {
  padding: 100px 0;
  margin-top: 30px;
  position: relative;
  background: url('../images/sparsh-32.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  color: white;
}

.request-call-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.request-call-section .container {
  position: relative;
  z-index: 2;
}

.request-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Animation for heading (matches other sections) */
.section-heading {
  animation: fallIn 1s ease-out forwards;
  opacity: 0;
  transform: translateY(-50px);
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--light-purple);
}

@keyframes fallIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Common Banner Styles (moved from individual pages) */
.banner-section {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.banner-section img {
  width: 100%;
  height: 300px;
  object-fit: cover;  
}

.banner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.banner-heading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  width: 90%;
}

/* Common Section Padding */
.aboutpage-section,
.properties-section,
.catalogue-section,
.contact-us-section,
.about-us-section {
  padding: 80px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .banner-heading {
      font-size: 2rem;
  }
  
  .aboutpage-section,
  .properties-section,
  .catalogue-section,
  .contact-us-section,
  .about-us-section {
      padding: 50px 0;
  }
}

/* Footer Section */
.footer-section {
  background-color: var(--light-brown);
  color: white;
  padding: 0 0 20px 0;
}

.footer-section hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

.footer-section .copyright-text {
  font-size: 0.9rem;
  color: #fff;
  text-align: center;
  margin: 0;
}

/*------------------animation-----------------*/
/* Add these new animation styles to custom.css */
/* Slide-in Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Classes */
/* Animation Classes - Updated Version */
.slide-in-left,
.slide-in-right,
.slide-in-up {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.animate {
  animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right.animate {
  animation: slideInRight 0.8s ease-out forwards;
}

.slide-in-up.animate {
  animation: slideInUp 0.8s ease-out forwards;
}

/* Ensure these take priority */
.slide-in-left,
.slide-in-right,
.slide-in-up {
  will-change: transform, opacity;
}

/* Delay Classes */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}