/* Reset and font */
/* Removes default margin, sets main font, and background color for the whole page */
body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  background: #f8f9fa;
}

/* Responsive styles for Vednamukti Foundation header and nav */
@media (max-width: 1100px) {
  .vmf-nav ul {
    gap: 32px;
  }

  .vmf-logo {
    height: 60px;
    margin-left: 2em;
    margin-bottom: 1em;
  }
}

@media (max-width: 900px) {
  .vmf-topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px;
    height: auto;
  }

  .vmf-logo-wrap {
    height: 60px;
    margin-bottom: 10px;
  }

  .vmf-logo {
    height: 50px;
    margin-left: 0;
    margin-bottom: 0;
  }

  .vmf-header-actions {
    width: 100%;
    justify-content: flex-end;
    margin-bottom: 10px;
    order: 2;
  }

  .vmf-nav {
    width: 100%;
    margin: 0;
    justify-content: flex-start;
    order: 3;
  }

  .vmf-nav ul {
    gap: 18px;
    margin: 0;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .vmf-topbar {
    padding: 8px 4vw;
  }

  .vmf-logo {
    height: 38px;
    margin-left: 0;
    margin-bottom: 0;
  }

  .vmf-header-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 8px;
  }

  .vmf-nav ul {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    margin: 0;
  }

  .vmf-nav {
    width: 100%;
    margin: 0;
    justify-content: flex-start;
  }

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

  .vmf-footer-social a {
    font-size: 18px;
    margin: 0 6px;
  }

  footer p {
    font-size: 13px;
  }
}

/* Hide desktop nav on mobile, show hamburger */
.mobile-nav {
  display: none;
}

@media (max-width: 1023px) {
  .vmf-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }

  .vmf-nav {
    display: block !important;
  }
}

/* Header */
/* Styles the top bar of the header: background color, text color, flex layout, spacing, height, and shadow */
.vmf-topbar {
  background: #1481a8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 0 0;
  /* Right padding only */
  height: 100px;
  /* Sets header height */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Container for the logo, aligns it vertically */
.vmf-logo-wrap {
  display: flex;
  align-items: center;
  height: 60px;
  /* Height for logo area */
}

/* Logo image: sets size and position */
.vmf-logo {
  height: 80px;
  /* Logo height */
  width: auto;
  margin-bottom: 2em;
  /* Adds space below logo */
  margin-left: 12em;
  /* Pushes logo to the right (not recommended for left alignment) */
}

/* Navigation bar: uses flex to align nav to the right */
.vmf-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  /* Aligns nav menu to the right */
}

/* Navigation list: horizontal layout, spacing between items, removes default list styles */
.vmf-nav ul {
  list-style: none;
  display: flex;
  gap: 63px;
  margin: 15px;
  padding: 0;
  border-bottom: none;
  /* Removed underline for all nav */
}

.vmf-nav ul li a {
  position: relative;
}

.vmf-nav ul li a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #87e2dc;
  transition: width 0.2s;
  position: absolute;
  left: 0;
  bottom: -4px;
}

.vmf-nav ul li a:hover::after,
.vmf-nav ul li.active > a::after {
  width: 100%;
}

/* Small underline for dropdown menu items */
.vmf-dropdown-menu li a {
  position: relative;
}

.vmf-dropdown-menu li a::after {
  content: "";
  display: block;
  width: 0;
  height: 1.5px;
  background: #208eb7;
  transition: width 0.2s;
  position: absolute;
  left: 0;
  bottom: 2px;
}

.vmf-dropdown-menu li a:hover::after,
.vmf-dropdown-menu li.active > a::after {
  width: 100%;
}

/* Each nav item: allows for dropdown positioning */
.vmf-nav ul li {
  position: relative;
}

/* Nav links: color, font, spacing, and hover transition */
.vmf-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 0;
  transition: color 0.2s;
}

/* Nav link hover effect: changes color */
.vmf-nav ul li a:hover {
  color: #005c9d;
}

/* Dropdown menu: hidden by default, styled for dropdown appearance */
.vmf-dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  color: #222;
  min-width: 160px;
  top: 32px;
  left: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 100;
  border-radius: 0 0 6px 6px;
  padding: 0;
}

/* Dropdown menu links: block display, padding, font weight */
.vmf-dropdown-menu li a {
  color: #222;
  padding: 10px 18px;
  display: block;
  font-weight: 500;
}

/* Dropdown menu link hover: background and text color change */
.vmf-dropdown-menu li a:hover {
  background: #f1f1f1;
  color: #208eb7;
}

/* Header actions (Donate, Join Us, Social icons): flex layout and spacing */
.vmf-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Button style for Donate/Join Us: color, padding, rounded, etc. */
.vmf-btn {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Button hover effect: darker background */
.vmf-btn:hover {
  background: #005c9d;
}

/* Social icon style: color, size, spacing, transition */
.vmf-social {
  color: #fff;
  font-size: 20px;
  margin-left: 8px;
  transition: color 0.2s;
}

/* Social icon hover effect: color change */
.vmf-social:hover {
  color: #005c9d;
}

/* Responsive: On large screens, adjust header layout for better wrapping and spacing */
@media (min-width: 900px) {
  .vmf-topbar {
    flex-wrap: wrap;
    /* Allows header items to wrap to new lines if needed */
    align-items: flex-start;
    /* Aligns items to the top of the header */
    height: auto;
    /* Allows header height to adjust based on content */
    padding-top: 10px;
    /* Adds space at the top of the header */
    padding-bottom: 0px;
    /* Adds space at the bottom of the header */
  }

  .vmf-logo-wrap {
    flex: 0 0 auto;
  }

  .vmf-header-actions {
    width: 100%;
    justify-content: flex-end;
    margin-bottom: 5px;
    margin-top: 0;
    order: -1;
    /* Moves actions above nav */
  }

  .vmf-nav {
    flex: 1 1 auto;
    margin-left: 20px;
    margin-top: 10px;
  }
}

/* Responsive styles for Vednamukti Foundation header and nav */
@media (max-width: 1100px) {
  .vmf-nav ul {
    gap: 32px;
    /* Reduce gap between nav items */
  }

  .vmf-logo {
    height: 60px;
    margin-left: 2em;
    margin-bottom: 1em;
  }
}

@media (max-width: 900px) {
  .vmf-topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px;
    height: auto;
  }

  .vmf-logo-wrap {
    height: 60px;
    margin-bottom: 10px;
  }

  .vmf-logo {
    height: 50px;
    margin-left: 0;
    margin-bottom: 0;
  }

  .vmf-header-actions {
    width: 100%;
    justify-content: flex-end;
    margin-bottom: 10px;
    order: 2;
  }

  .vmf-nav {
    width: 100%;
    margin: 0;
    justify-content: flex-start;
    order: 3;
  }

  .vmf-nav ul {
    gap: 18px;
    margin: 0;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .vmf-topbar {
    padding: 8px 4vw;
  }

  .vmf-logo {
    height: 38px;
    margin-left: 0;
    margin-bottom: 0;
  }

  .vmf-header-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 8px;
  }

  .vmf-nav ul {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    margin: 0;
  }

  .vmf-nav {
    width: 100%;
    margin: 0;
    justify-content: flex-start;
  }

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

  .vmf-footer-social a {
    font-size: 18px;
    margin: 0 6px;
  }

  footer p {
    font-size: 13px;
  }
}

/* Fade In Down */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInDown {
  animation: fadeInDown 1s both;
}

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 1s both;
}

/* Float Up */
@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-floatUp {
  animation: floatUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-floatUp.delay-100 {
  animation-delay: 0.15s;
}

.animate-floatUp.delay-200 {
  animation-delay: 0.3s;
}

/* Simple fadeIn */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fadeIn {
  animation: fadeIn 1.2s both;
}

/* Progress bar animation */
@keyframes progress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.animate-progress {
  animation: progress 2s ease-out;
}

/* Bounce once */
@keyframes bounceOnce {
  0%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(0);
  }
}

.animate-bounceOnce {
  animation: bounceOnce 0.7s;
}

/* Hero Section Styles */
@keyframes zoomSlow {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.05);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

.animate-zoomSlow {
  animation: zoomSlow 15s ease-in-out infinite alternate;
}

.animate-fadeInUp {
  animation: fadeInUp 1s ease-out both;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

/* ----------------- */
/* Custom CSS for elements that need more styling */
.hero-video {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.hero-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.campaign-card {
  transition: transform 0.3s ease;
}

.campaign-card:hover {
  transform: translateY(-5px);
}

.sdg-icon {
  transition: transform 0.3s ease;
}

.sdg-icon:hover {
  transform: scale(1.1);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1.1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1.1);
  }
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Footer text: color, font size, no margin */
footer p {
  color: #222;
  font-size: 15px;
  margin: 0;
}

/* Footer */
/* Footer background, padding, and center alignment */
footer {
  background: #87e2dc;
  padding: 28px 0 12px 0;
  text-align: center;
}

/* Footer content container: max width and center */
.vmf-footer-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Social icons in footer: spacing below */
.vmf-footer-social {
  margin-bottom: 10px;
}

/* Footer social links: color, size, spacing, hover effect */
.vmf-footer-social a {
  color: #005c9d;
  font-size: 22px;
  margin: 0 10px;
  transition: color 0.2s;
  text-decoration: none;
}

.vmf-footer-social a:hover {
  color: #2bb1e0;
}

/* Optional: Make footer text and icons smaller on mobile */
@media (max-width: 600px) {
  .vmf-footer-content {
    padding: 0 10px;
  }

  .vmf-footer-social a {
    font-size: 18px;
    margin: 0 6px;
  }

  footer p {
    font-size: 13px;
  }
}
