* {
  font-family: "Poppins", sans-serif;
}

nav,
ul,
ul li,
ul li a {
  transition: all 0.3s ease-in-out;
}

#navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav.bg-white {
  background-color: white !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Hover Effects */
.logo-hover:hover {
  transform: scale(1.05);
}

.contact-btn {
  background: transparent;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Desktop dropdown - NO INITIAL ANIMATION */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  /* Remove initial transition to prevent load animation */
}

/* Only add transition after navbar is ready */
.dropdown-menu.dropdown-ready {
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Desktop dropdown arrow - NO INITIAL ANIMATION */
#homes-arrow {
  /* Remove initial transition */
}

/* Only add transition after navbar is ready */
#homes-arrow.arrow-ready {
  transition: transform 0.3s ease;
}

/* Mobile/Tablet dropdown animations */
.mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(-10px);
}

.mobile-dropdown.open {
  max-height: 300px;
  opacity: 1;
  transform: translateY(0);
}

/* Mobile arrow rotation */
.arrow-down {
  transition: transform 0.3s ease;
}

.arrow-down.rotate {
  transform: rotate(180deg);
}

/* Mobile homes section styling */
.mobile-homes-section {
  position: relative;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

/* Active nav link */
.nav-link-active {
  color: #f35629 !important;
  font-weight: 700;
}

.nav-link:hover {
  color: #f35629 !important;
  font-weight: 600;
}

/* Mobile link animations */
.mobile-link {
  transition: all 0.3s ease;
  padding: 12px 16px;
  display: block;
  border-radius: 6px;
}

.mobile-link:hover {
  transform: translateX(5px);
}

/* Desktop dropdown hover */
#homes-dropdown a:hover {
  color: #f35629;
  font-weight: 600;
}

.logo a {
  line-height: 0.2 !important;
}

/* Logo styling */
#mobile-logo a,
#desktop-logo a {
  line-height: 1.1;
}

#mobile-logo span,
#desktop-logo span {
  display: block;
  margin-top: -2px;
}

/* Mobile Menu Animation */
#mobile-menu {
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu:not(.hidden) {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile and Tablet adjustments (< 768px gets left-aligned) */
@media (max-width: 767px) {
  nav {
    height: 64px;
    padding: 0 1rem;
  }

  .mobile-menu-content {
    align-items: flex-start !important;
    padding-left: 1rem !important;
    text-align: left !important;
    animation: fadeInLeft 0.3s ease-out;
  }

  .mobile-dropdown {
    text-align: left;
    padding-left: 1rem;
    border-radius: 12px;
    background-color: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.1);
  }

  .mobile-dropdown a {
    padding: 2px 0;
    display: block;
    transition: all 0.2s ease;
  }

  .donations-link {
    margin-bottom: 34px !important;
  }

  .mobile-dropdown a:hover {
    color: #f35629;
  }

  .contact-btn {
    margin-left: 16px !important;
  }

  @keyframes fadeInLeft {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* Dropdown positioning */
.dropdown-container {
  position: relative;
}

/* Smooth transitions for interactive elements (but not initial load) */
button:not(#homes-btn),
a:not(.dropdown-menu a) {
  transition: all 0.3s ease;
}

/* Prevent any unwanted animations during page load */
.preload * {
  transition: none !important;
  animation: none !important;
}

/* Remove preload class after page loads */
body:not(.preload) .dropdown-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

body:not(.preload) #homes-arrow {
  transition: transform 0.3s ease;
}

/* Custom styles for the hero section */
.hero-content {
  position: relative;
  left: 360px;
  top: 100px;
}

.heart-container {
  position: relative;
  display: inline-block;
  margin: 1rem 0;
  top: -100px;
  left: -200px;
}

.heart-icon {
  width: 100px;
  height: 100px;
  filter: brightness(0) saturate(100%) invert(47%) sepia(96%) saturate(1421%)
    hue-rotate(360deg) brightness(103%) contrast(101%);
}

.css-heart {
  position: absolute;
  width: 80px;
  height: 80px;
  margin-top: 45px;
  transform: rotate(-45deg);
  margin: 1rem auto;
}

.css-heart:before,
.css-heart:after {
  content: "";
  width: 40px;
  height: 64px;
  position: absolute;
  left: 30px;
  transform: rotate(-45deg);
  background: #ff6b35;
  border-radius: 32px 32px 0 0;
  transform-origin: 0 100%;
}

.css-heart:after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

/* Heart bounce animation */
@keyframes heartBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-5px) scale(1.05);
  }
  50% {
    transform: translateY(0) scale(1);
  }
  75% {
    transform: translateY(-5px) scale(1.02);
  }
}

/* apply animation infinitely */
.bounce-heart {
  animation: heartBounce 5s infinite ease-in-out;
}

.deserve-text {
  font-size: 80px;
  font-weight: 800;
  background: linear-gradient(to bottom, #f35629 49%, #f28f27);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  margin-top: -150px;
  margin-left: -18px;
  line-height: 1;
}

.paragraph-text {
  font-size: 17px;
  color: #333;
  margin-top: 15px;
  max-width: 443px;
  margin-left: -9px;
  text-align: right;
}

.donate-btn {
  max-width: 320px;
  min-width: 300px;
  align-items: center;
  display: inline-block;
}

@media (max-width: 1275px) {
  .hero-content h1,
  .hero-content h2 {
    font-size: 42px;
  }

  .deserve-text {
    font-size: 65px;
    margin-top: -150px;
    margin-left: -15px;
    line-height: 1;
  }

  .paragraph-text {
    font-size: 15px;
    color: #333;
    margin-top: 15px;
    max-width: 400px;
    margin-left: -34px;
    text-align: right;
  }

  .heart-container {
    top: -100px;
    left: -170px;
  }

  .donate-btn {
    align-items: center;
  }
}

/* Tablet styles (900px to 1169px) */
@media (min-width: 768px) and (max-width: 1169px) {
  .hero-content {
    position: relative;
    left: 0;
    top: 0;
    margin-top: 30px;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 160px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 36px;
  }

  .heart-container {
    position: relative;
    display: inline-block;
    margin: 1rem 0;
    top: -80px;
    left: -140px;
  }

  .deserve-text {
    font-size: 55px;
    margin-top: -125px;
    margin-left: 3px;
  }

  .paragraph-text {
    font-size: 15px;
    max-width: 500px;
    margin: 15px auto 0;
    text-align: center;
  }

  .donate-btn {
    margin: 20px auto;
    display: block;
  }

  .main-heading {
    font-size: 24px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  #home {
    min-height: 30vh !important; /* Reduced from min-h-screen (100vh) */
    background-size: cover !important;
    background-position: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero-content {
    position: relative;
    left: 0;
    top: 0;
    text-align: center;
    padding: 1.5rem;
    margin: 0 auto;
    margin-top: 140px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 28px;
  }

  .heart-container {
    top: -30px;
    left: -40px;
  }

  .deserve-text {
    font-size: 40px;
    margin-top: -74px;
    margin-left: 124px;
  }

  .paragraph-text {
    font-size: 15px;
    max-width: 450px;
    margin: 15px auto 0;
    text-align: center;
    padding: 0 1rem;
  }

  .donate-btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    margin-top: 30px;
    padding: 0.75rem 1.5rem;
  }

  .main-heading {
    font-size: 22px;
  }
}

/* Extra small mobile */
@media (max-width: 479px) {
  #home {
    min-height: 50vh !important;
    padding: 20px 0 !important;
  }

  .heart-icon {
    width: 70px;
    height: 70px;
  }

  .hero-content {
    padding: 1rem;
    margin-top: 180px;
  }

  .deserve-text {
    font-size: 2.4rem;
    margin-top: -60px;
    margin-left: 90px;
  }

  .paragraph-text {
    font-size: 14px;
    padding: 0 0.5rem;
  }

  .main-heading {
    font-size: 20px;
  }

  .heart-container {
    top: -20px;
    left: -50px;
  }

  .donate-btn {
    display: block;
    margin: 30px auto 0;
    padding: 0.5rem 0.5rem;
    min-width: 200px;
    font-size: 14px;
    text-align: center;
  }
}

/* who we are section styles */
/* Default (Desktop first) */
.about-text {
  min-width: 600px;
  max-width: 800px;
}

/* Paragraph inside about-text */
.about-text p {
  font-size: 17px;
  line-height: 1.7;
}

.about-btn {
  display: block;
  width: 100%;
  text-align: center;
  min-width: 250px;
  max-width: 450px;
}

.nav-transition {
  transition: all 0.3s ease;
}

.testimonial-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #f35629;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.our-mission p {
  font-size: 16px;
}

.our-vision p {
  font-size: 16px;
}

.quotation-icon {
  filter: opacity(0.25);
}

@media (max-width: 1023px) {
  .about-text {
    min-width: 320px;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
  }

  .about-text p {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .about-container {
    max-width: 92% !important;
    margin: 0 auto;
  }

  .about-container h2 {
    font-size: 32px;
  }

  .about-container h2 span {
    font-size: 32px;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .image-container {
    order: 1;
    margin-bottom: 20px;
  }

  .about-text {
    min-width: auto;
    max-width: 95%;
    margin: 0 auto;
    text-align: center;
    order: 2;
    margin-top: -30px;
  }

  .about-text p {
    font-size: 15px;
  }

  .our-mission p {
    font-size: 15px;
  }

  .our-vision p {
    font-size: 15px;
  }

  .about-btn {
    display: block;
    margin: 40px auto 0 auto;
    min-width: 200px;
    margin-top: 4px;
  }

  .testimonial-section {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 479px) {
  .about-container h2,
  .about-container h2 span {
    font-size: 25px;
  }

  .about-container {
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
  }

  .about-text {
    max-width: 90%;
    padding: 0.9rem;
  }

  .about-text p {
    font-size: 14px;
    line-height: 1.6;
  }

  .about-btn {
    display: block;
    margin: 20px auto 0;
    width: auto;
    min-width: 180px;
    max-width: 100%;
    padding: 0.9rem;
    font-size: 15px;
  }

  .image-container > div {
    width: 100%;
    max-width: 380px;
    height: 350px;
    margin: 0 auto;
  }

  .our-mission p {
    font-size: 14px;
  }

  .our-vision p {
    font-size: 14px;
  }

  .testimonial-section {
    gap: 10px !important;
  }
}

@media (max-width: 375px) {
  .about-container h2,
  .about-container h2 span {
    font-size: 25px;
  }

  .image-container > div {
    width: 260px;
    height: 290px;
  }

  .about-btn {
    width: 150px;
    font-size: 14px;
  }

  .about-text {
    max-width: 100%;
    padding: 10px;
    margin-top: 30px;
  }

  .about-text p {
    font-size: 14px;
  }
}

/* contact page styles */
.contact-page-info div p {
  font-size: 17px;
}

@media (max-width: 768px) {
  .contact-container h2 {
    font-size: 32px;
  }

  .contact-container {
    max-width: 92% !important;
    margin: 0 auto;
  }

  .contact-container h2 span {
    font-size: 32px;
  }

  .contact-container form label {
    font-size: 15px !important;
  }

  .contact-container form button {
    font-size: 15px !important;
  }

  .contact-page-info div p {
    font-size: 16px;
  }
}

@media (max-width: 479px) {
  .contact-container h2,
  .contact-container h2 span {
    font-size: 28px;
  }

  .contact-container form label {
    font-size: 14px !important;
  }

  .contact-container form button {
    font-size: 14px !important;
  }

  .contact-container {
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
  }

  .contact-container h2,
  .contact-container h2 span {
    font-size: 25px;
  }

  .contact-page-info {
    padding: 0.9rem;
    margin-top: -20px !important;
  }

  .contact-page-info div p {
    font-size: 15px;
  }

  .contact-container .bg-white {
    padding: 0.9rem !important;
    margin: 0.9rem 0;
    margin-top: -20px !important;
  }

  .contact-content-part {
    padding-bottom: 50px !important;
  }

  .contact-container form label {
    font-size: 14px !important;
  }

  .contact-container form input,
  .contact-container form textarea {
    padding: 0.9rem !important;
    font-size: 13px !important;
  }

  .contact-container form button {
    font-size: 15px !important;
    padding: 0.5rem 1rem !important;
    width: auto;
    min-width: 100px;
  }
}

@media (max-width: 375px) {
  .contact-container h2,
  .contact-container h2 span {
    font-size: 24px;
  }

  .contact-container form label {
    font-size: 14px !important;
  }

  .contact-container form button {
    font-size: 14px !important;
  }

  .contact-container form input {
    font-size: 12px !important;
  }

  .contact-container form textarea {
    font-size: 12px !important;
  }

  .contact-page-info div p {
    font-size: 15px;
  }
}

/* footer part styles */

.footer {
  background: linear-gradient(rgba(0, 0, 0, 0.8)),
    url("../images/footer-bg.jpeg") no-repeat center center;
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* Changed from fixed to scroll */
  color: white;
  padding: 60px 0 0; /* Remove bottom padding */
  width: 100%;
}

.footer-container {
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding: 0 20px;
}

.mallika-section {
  text-align: left;
}

.useful-links {
  text-align: center;
}

.contact-info {
  text-align: right;
}

.footer-section h3 {
  font-size: 24px;
  margin-bottom: -4px;
  font-weight: bold;
  color: #f35629;
}

.footer-section .footer-title {
  font-size: 16px;
  font-weight: bold;
  color: white;
}

.footer-section h4 {
  font-size: 16px;
  margin-top: 0;
  font-weight: 700;
  margin-bottom: 15px;
  color: #f28f27;
}

.mallika-section p {
  line-height: 1.6;
  margin-bottom: 20px;
  color: #cccccc;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  /* Keep social links left-aligned in MALLIKA section */
  justify-content: flex-start;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; /* circle size */
  height: 40px;
  border-radius: 50%;
  transition: 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.social-links img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.social-links a:hover {
  background: #ff6b35;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
  transform: translateY(-3px) scale(1.1);
}

.useful-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.useful-links li {
  margin-bottom: 8px;
}

.useful-links a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 3px 0;
}

.useful-links a:hover {
  color: #ff6b35;
  padding-left: 5px;
}

.contact-info p {
  margin-bottom: 12px;
  color: #cccccc;
}

.contact-info i {
  color: #ff6b35;
  width: 20px;
}

/* Updated footer-bottom with proper black background */
.footer-bottom {
  background-color: rgba(
    0,
    0,
    0,
    0.9
  ); /* Solid black background with slight transparency */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  text-align: center;
  color: #cccccc;
  font-size: 12px;
  font-weight: 600;
  width: 100%;
  margin: 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .footer {
    background: linear-gradient(rgba(0, 0, 0, 0.8)),
      url("../images/footer-tab.jpeg") no-repeat center center;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
  }
}

@media (max-width: 430px) {
  .footer {
    background: linear-gradient(rgba(0, 0, 0, 0.8)),
      url("../images/footer-mobile.jpeg") no-repeat center center;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    padding: 0 15px;
  }

  /* Override alignment for mobile - center everything */
  .mallika-section,
  .useful-links,
  .contact-info {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
  }

  .footer-bottom {
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 40px 0 0;
  }

  .footer-section h3 {
    font-size: 20px;
  }

  .footer-section h4 {
    font-size: 15px;
  }

  .useful-links ul li a {
    font-size: 15px;
  }

  .mallika-section p {
    font-size: 15px;
  }

  .contact-info p {
    font-size: 15px;
  }

  .footer-content {
    padding: 0 10px;
  }

  .footer-bottom {
    padding: 10px;
    font-size: 11px;
  }
}

@media (max-width: 375px) {
  .footer {
    padding: 40px 0 0;
  }

  .footer-section h3 {
    font-size: 20px;
  }

  .footer-section h4 {
    font-size: 14px;
  }

  .useful-links ul li a {
    font-size: 14px;
  }

  .mallika-section p {
    font-size: 14px;
  }

  .contact-info p {
    font-size: 13px;
  }

  .footer-content {
    padding: 0 10px;
  }

  .footer-bottom p {
    font-size: 10px;
  }
}

@media (max-width: 479px) {
  .about-container,
  .contact-container,
  .footer-content {
    padding: 0.9rem !important;
    max-width: calc(
      100% - 1.8rem
    ) !important; /* Account for left and right padding */
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #home {
    min-height: 50vh !important;
    padding: 0.9rem !important;
  }

  .hero-content {
    margin-top: 140px;
    text-align: center;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 28px;
    margin-left: 0 !important;
  }

  .paragraph-text {
    font-size: 14px;
    max-width: 100% !important;
    margin: 15px auto 0 !important;
    text-align: center;
    padding: 0 !important;
  }

  .donate-btn {
    display: block;
    margin: 30px auto 0;
    padding: 0.9rem;
    min-width: 200px;
    max-width: 100%;
    font-size: 14px;
    text-align: center;
  }
}