body {
  font-family: "Poppins", sans-serif;
  background: #fff;
  color: #333;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ====== Top Bar ====== */
.top-bar {
  position: relative;
  z-index: 999;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6%;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(
    -5deg,
    #7cc576 0%,
    #7cc576 60%,
    #111 60%,
    #111 100%
  );
}
.contact-info span {
  margin-right: 20px;
  color: #fff;
}
.contact-info i {
  margin-right: 5px;
}
.social-links a {
  color: #fff;
  margin-left: 20px;
  transition: color 0.3s;
}
.social-links a:hover {
  color: #7cc576;
}

/* ====== Navbar ====== */
.custom-navbar {
  position: absolute;
  top: 45px;
  left: 6%;
  right: 6%;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 15px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Default nav links */
.custom-navbar .nav-link {
  position: relative;
  color: #28a745 !important; /* Green default */
  font-weight: 500;
  margin-right: 18px;
  padding-bottom: 6px;
  transition: all 0.3s ease;
}

/* Underline (hidden initially) */
.custom-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #ff7b00; /* Orange hover underline */
  transition: width 0.3s ease;
}

/* Hover: text + underline both orange */
.custom-navbar .nav-link:hover {
  color: #ff7b00 !important;
}
.custom-navbar .nav-link:hover::after {
  width: 100%;
}

/* Active link (clicked section) */
.custom-navbar .nav-link.active {
  color: #ff7b00 !important; /* Orange */
}
.custom-navbar .nav-link.active::after {
  width: 100%;
  background-color: #ff7b00;
}

/* Sticky effect */
.navbar.sticky {
  position: fixed;
  top: 0;
  left: 6%;
  right: 6%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
}
/* ===== Dropdown Menu (Professional Look) ===== */
.nav-item.dropdown {
  position: relative;
}

/* Dropdown container */
.dropdown-menu {
  border: none;
  border-radius: 12px;
  padding: 10px 0;
  min-width: 230px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
}

/* Show on hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Each dropdown item */
.dropdown-item {
  font-weight: 500;
  color: #333;
  padding: 10px 18px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

/* Hover Effect */
.dropdown-item:hover {
  background-color: #f9f9f9;
  color: #00b36b; /* soft green accent */
  border-left-color: #00b36b;
  transform: translateX(3px);
}

/* Optional subtle divider between items */
.dropdown-menu li:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dropdown arrow styling (optional aesthetic) */
.nav-item.dropdown > .nav-link::after {
  content: " ▾";
  font-size: 0.7rem;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.nav-item.dropdown:hover > .nav-link::after {
  transform: rotate(180deg);
}
.nav-separator {
  color: #ccc;
  margin: 0 10px;
  font-weight: 300;
  font-size: 18px;
  user-select: none;
}

/* ========== HERO SECTION THUMBNAILS + ARROWS FIX ========== */
.hero h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  animation: fadeInUp 1s ease forwards;
}

.hero-section {
  position: relative;
  overflow: hidden;
}

/* Thumbnail container on right */
.hero-thumbnails-container {
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  z-index: 10;
  gap: 10px;
}

/* Thumbnails layout */
.hero-thumbnails {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Thumbnail images */
.hero-thumbnails .thumb {
  width: 80px;
  height: 55px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

/* Hover and active effect */
.hero-thumbnails .thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}

.hero-thumbnails .thumb.active {
  opacity: 1;
  border-color: #00c16a; /* green highlight same as Add Property btn */
  transform: scale(1.1);
}

/* Arrows below thumbnails */
.hero-arrows {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

/* Arrow buttons style */
.arrow-btn {
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.arrow-btn i {
  font-size: 18px;
  color: #333;
}

.arrow-btn:hover {
  background: #00c16a;
}

.arrow-btn:hover i {
  color: #fff;
}

/* Responsive: hide thumbnails on mobile */
@media (max-width: 991px) {
  .hero-thumbnails-container {
    display: none !important;
  }
}

/* About Section */
.ceo-photo,
.director-photo {
  border: 3px solid linear-gradient(45deg, #4caf50, #1abc9c);
}
.ceo-box:hover,
.director-box:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
}

.about {
  padding: 100px 20px;
  background: #f9f9f9;
}
.section-title {
  font-weight: 700;
  color: #ff7f11;
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #4caf50;
  border-radius: 2px;
}
.about p {
  font-size: 18px;
  color: #555;
  max-width: 800px;
  margin: auto;
  line-height: 1.7;
}

/* Contact Section */
.contact {
  padding: 100px 20px;
}
.contact h2 {
  color: #4caf50;
}
.btn-contact {
  background: #ff7f11;
  color: #fff;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 30px;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.btn-contact:hover {
  background: #4caf50;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Director Message Section */
.director-message-section {
  background-color: #f8f9fa; /* light grey bg (matches Happynest tone) */
}

.director-photo {
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.director-photo:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.director-content {
  background: #ffffff;
  border-left: 5px solid #4caf50; /* Happynest accent color */
  transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.director-content:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.director-content h2 {
  color: #4caf50; /* accent blue */
  font-size: 1.8rem;
  position: relative;
}

.director-content h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background-color: #4caf50;
  margin-top: 8px;
  border-radius: 2px;
}

.director-content p {
  line-height: 1.7;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .director-content {
    text-align: center;
    border-left: none;
    border-top: 4px solid #4caf50;
  }
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card styling */
.img-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}
.img-card img {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}
.img-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.img-card:hover img {
  transform: scale(1.08);
}

/* Overlay on hover */
.img-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.img-card:hover::before {
  opacity: 1;
}
.img-card .card-body {
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.img-card:hover .card-body {
  transform: translateY(-5px);
}

/* Headings + text */
.img-card .card-body h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222;
}
.img-card .card-body p {
  font-size: 15px;
  color: #666;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Buttons */
.btn-success {
  position: relative;
  background: linear-gradient(135deg, #ff7f11, #ffb347);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  min-width: 150px;
  min-height: 46px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(255, 127, 17, 0.4);
}
.btn-success:hover {
  background: linear-gradient(135deg, #4caf50, #81c784);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
  transform: translateY(-3px);
}

/* Loader & tick positioning */
.loader,
.tick {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.tick {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
}

/* Button states */
.btn-success.loading .btn-text {
  display: none;
}
.btn-success.loading .loader {
  display: inline-block;
}
.btn-success.success {
  background: linear-gradient(135deg, #000, #333);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}
.btn-success.success .loader {
  display: none;
}
.btn-success.success .btn-text {
  display: none !important;
}
.btn-success.success .tick {
  display: inline-block;
}

/* Sparkle effect after success */
.btn-success.success::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.6) 10%,
    transparent 60%
  );
  animation: sparkle 1s ease forwards;
  border-radius: 50%;
}
@keyframes sparkle {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}
/* Equal height cards */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%; /* full equal height */
}

/* Card body ko grow karne do */
.project-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* heading, text, button ko alag alag rakhega */
}
.projects-page h1 {
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ff7f11, #4caf50);
  background-clip: text; /* Firefox support */
  -webkit-background-clip: text; /* Chrome/Safari */
  -webkit-text-fill-color: transparent;
  color: transparent; /* fallback */
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

/* Underline animation */
.projects-page h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff7f11, #4caf50);
  transition: width 0.6s ease;
  border-radius: 2px;
}

/* Jab page load ya hover ho to underline aye */
.projects-page h1:hover::after,
.projects-page h1.aos-animate::after {
  width: 60%;
}

/* Subtle glow */
.projects-page h1 {
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Theme Color for Active Links */
.navbar-nav .nav-link.active,
.navbar-nav .show > .nav-link {
  color: #ff7f11 !important; /* apna theme color dal do */
  font-weight: 600;
}

/* Dropdown Active Item */
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  background-color: #ff7f11 !important; /* theme color background */
  color: #fff !important; /* text white */
}
/* ===== Responsive Fixes ===== */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    height: auto;
    padding: 10px 15px;
    text-align: center;
  }

  .contact-info span {
    display: block;
    margin: 3px 0;
  }

  .custom-navbar {
    left: 0;
    right: 0;
    margin: 0 10px;
    top: 0;
    border-radius: 0;
    padding: 10px 15px;
  }

  .navbar .nav-separator {
    display: none;
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-item {
    margin: 10px 0;
  }

  section {
    padding: 40px 15px;
  }

  h1,
  h2 {
    font-size: 1.8rem;
  }

  p {
    font-size: 0.95rem;
  }
}

/* ===== Responsive Fixes for CEO Page ===== */
@media (max-width: 768px) {
  .ceo-hero h1 {
    font-size: 1.8rem;
  }

  .ceo-hero p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .team-card img {
    width: 100%;
    height: auto;
  }

  .ceo-message-card {
    margin: 10px 0;
  }
}
/* ===== Navbar & Top Bar Mobile Fix (Final) ===== */
.top-bar {
  position: relative;
  z-index: 1030;
  margin-top: 0;
}

.custom-navbar {
  position: sticky !important;
  top: 0;
  z-index: 1040;
  margin-top: 0;
}

/* Mobile layout spacing fix */
@media (max-width: 768px) {
  body {
    padding-top: 0; /* remove extra space at top */
  }

  .top-bar {
    height: auto;
    padding: 8px 15px;
  }

  /* Ensure hero section attaches properly below navbar */
  .hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Optional: small padding between navbar and hero image if needed */
  .custom-navbar + .hero {
    margin-top: 5px;
  }
}
/* ===== Fix: Hero Section Touches Navbar (No Gap) ===== */
.hero-section,
#hero,
.carousel,
.carousel-inner {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.custom-navbar {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Removes any spacing between navbar and hero */
.custom-navbar + .hero-section,
.custom-navbar + #hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* For extra safety on mobile screens */
@media (max-width: 768px) {
  .hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
