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

html{scroll-behavior:smooth}

body {
  font-family: "Poppins", sans-serif;
  background: #f5f5f5;
}

/*SCROLLBAR Styling*/
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-thumb {
  background: #1b78c7;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1b78c7; 
}

.hero-bg img,
.card,
.swiper-slide {
  will-change: transform, opacity;
}

/* Hero Section Layout */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 40px;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  z-index: -1;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4); /* same effect, faster */
}

.hero-content {
  flex: 1;
  padding-right: 40px;
  color: white;
  z-index: 1;
}
/* Sirf desktop view */
@media (min-width: 1025px) {
  .hero-content {
    margin-left: 130px; /* 👈 thoda right shift */
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
}

.hero-desc {
  font-size: 1.20rem;
  margin: 20px 0;
  max-width: 450px;
  line-height: 1.2;
}

.explore-btn {
  background: #1b78c7;
  color: white;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease; /* Smooth hover */
}
.explore-btn:hover {
  background: #000;   /* 👈 Black on hover */
  color: #fff;        /* Text white for contrast */
}
.cards-slider {
  width: 50%;
  z-index: 1;
}

/* Swiper Core */
.swiper {
  width: 100%;
  padding-bottom: 80px; /* Space for arrows */
}

/* Slide Scaling Effect */
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transition: transform 0.4s ease, opacity 0.4s ease;
  cursor: grab;
}
.swiper-slide:active {
  cursor: grabbing;
}
.card {
  position: relative;
  width: 260px;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: grab;
}
.card:active {
  cursor: grabbing;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* text always bottom */
  align-items: center;
  text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: white;
}

/* Active Card Bigger */
.swiper-slide-active .card {
  height: 430px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2); /* lighter */
  transform: scale(1.05); /* smaller scale = smoother */
}

.swiper-slide-prev .card,
.swiper-slide-next .card {
  transform: scale(0.95);
  opacity: 0.9;
}

/* Arrows BELOW Active Card */
.slider-arrows {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
}

.swiper-button-prev,
.swiper-button-next {
  position: static; /* Remove default Swiper absolute positioning */
  background: white;
  color: black;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    height: auto;
    padding: 20px;
    text-align: center;
  }

  .hero-content {
    padding: 20px 0;
  }

  .cards-slider {
    width: 100%;
  }

  .card {
    width: 220px;
    height: 300px;
  }

  .swiper-slide-active .card {
    height: 340px;
  }
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;  /* was 4rem */
  }

  .hero-desc {
  font-size: 0.95rem;
  max-width: 100%;
  line-height: 1.6;  /* 👈 Add this */
}


  .card-overlay h3 {
    font-size: 1rem;  /* smaller heading on card */
  }

  .card-overlay p {
    font-size: 0.8rem; /* smaller paragraph */
  }
}