body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #333;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Header Navbar */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 12px 0;
  transition: all 0.4s ease-in-out;
}
.navbar.scrolled {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Logo */
.logo-img {
  width: 170px;   /* Pehle 55px tha, ab double kar dia */
  height: 60px;
  display: inline-block;
}
.brand-text {
  font-size: 22px;
  font-weight: 600;
  color: #FF7F11;
  transition: 0.4s ease;
}
.brand-text:hover {
  color: #4CAF50;
  transform: scale(1.05);
}

/* Navbar Links */
.nav-link {
  font-weight: 600;
  margin: 0 10px;
  color: #4CAF50 !important;
  transition: all 0.3s ease-in-out;
}
.nav-link:hover,
.nav-link:focus {
  color: #FF7F11 !important;
  transform: translateY(-2px);
}

/* Dropdown on Hover */
.nav-item.dropdown:hover .nav-link {
  color: #FF7F11 !important; /* Projects text theme color */
}
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
  border-top: 3px solid #FF7F11; /* Theme line on top */
}

/* Dropdown Menu Styling */
.dropdown-menu {
  background: #fff;
  border-radius: 10px;
  padding: 10px 0;
  min-width: 250px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.dropdown-item {
  padding: 10px 20px;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease-in-out;
}
.dropdown-item:hover {
  background: #FF7F11; /* Theme background */
  color: #fff;
  border-radius: 6px;
  padding-left: 25px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}

/* Heading Base Style */
.wow-heading {
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.wow-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #FF7F11;
  transition: all 0.6s ease;
  transform: translateX(-50%);
}
.wow-heading:hover::after {
  width: 100%;
}

/* Animation Words */
.word {
  display: inline-block;
  opacity: 0;
}

/* "Welcome" */
.welcome {
  animation: fadeIn 0.8s forwards;
  animation-delay: 0.2s;
}

/* "to" */
.to {
  margin-left: 10px;
  animation: fadeIn 0.8s forwards;
  animation-delay: 1s;
}

/* "HappyNest" letters */
.happynest .letter {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  animation: slideUp 0.4s forwards;
}

/* Proper sequence (fast) */
.happynest .letter:nth-child(1) { animation-delay: 1.4s; }
.happynest .letter:nth-child(2) { animation-delay: 1.6s; }
.happynest .letter:nth-child(3) { animation-delay: 1.8s; }
.happynest .letter:nth-child(4) { animation-delay: 2s; }
.happynest .letter:nth-child(5) { animation-delay: 2.2s; }
.happynest .letter:nth-child(6) { animation-delay: 2.4s; }
.happynest .letter:nth-child(7) { animation-delay: 2.6s; }
.happynest .letter:nth-child(8) { animation-delay: 2.8s; }
.happynest .letter:nth-child(9) { animation-delay: 3s; }

/* Animations */
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Subtitle */
.wow-subtitle {
  font-size: 1.4rem;
  margin-top: 15px;
  color: #eee;
  opacity: 0;
  animation: fadeInUp 1s forwards;
  animation-delay: 3.4s;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.happynest {
  font-size: 0; /* space hat jayegi */
}
.happynest .letter {
  font-size: 3.5rem; /* original size restore */
}


/* About Section */
.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);
}

/* Footer */
footer {
  background: #f8f9fa;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: #777;
}

/* 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);
}


.gallery {
  padding: 60px 5%;
  background: #f9f9f9;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-container img {
  width: 100%;
  height: 250px; /* ✅ sab ke liye fix height */
  object-fit: cover; /* ✅ crop karke equal banayega */
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: transform 0.4s, box-shadow 0.4s;
}

.gallery-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* 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 */
}




