/* ========================== */
/* 1. CSS VARIABLES - Enhanced Color Palette */
/* ========================== */
:root {
  --primary: #388e3c;
  --primary-light: #6abf69;
  --primary-dark: #00600f;
  --secondary: #ff5a00;
  --secondary-light: #ff8a50;
  --secondary-dark: #c41c00;
  --nav-link-color: #fff;
  --nav-link-hover-bg: #004aad;
  --nav-link-hover-text: #fff;
  --header-bg: rgba(0, 0, 0, 0.9);
  --bg-light: #f9f9f9;
  --bg-alt: #f5f5f5;
  --text-dark: #222;
  --text-medium: #444;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ========================== */
/* 2. GLOBAL RESET / BASE STYLES - Enhanced */
/* ========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #FFFFFF;
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--primary-light);
  color: white;
}

/* ========================== */
/* 3. HEADER & NAVIGATION - Modern Redesign */
/* ========================== */
header.sticky-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  height: auto;
  min-height: 80px;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

header.sticky-header.scrolled {
  padding: 10px 5%;
  box-shadow: var(--shadow-md);
}

.logo {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  overflow: hidden;
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.logo:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Modern Mobile Menu */
.navbar {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px 5%;
  box-shadow: var(--shadow-md);
  transform: translateY(-150%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
  z-index: 999;
}

.navbar.active {
  transform: translateY(0);
  opacity: 1;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.nav-item {
  color: var(--nav-link-color);
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 17px;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--nav-link-hover-text);
  transform: translateY(-2px);
}

.nav-item:hover::before {
  width: 80%;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(255, 90, 0, 0.2), rgba(255, 90, 0, 0.1));
  color: var(--secondary);
}

.nav-item.active::before {
  width: 80%;
  background: var(--secondary);
}

/* Enhanced Donate Button */
.nav-links .donateNow {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)) !important;
  color: white !important;
  font-weight: bold;
  padding: 14px 28px;
  border-radius: 30px;
  text-transform: uppercase;
  margin: 15px 0 5px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 90, 0, 0.3);
  border: none;
  display: inline-block;
  text-align: center;
}

.nav-links .donateNow:hover {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary)) !important;
  color: white !important;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 20px rgba(255, 90, 0, 0.4);
}

/* Modern Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--secondary);
  font-size: large;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: var(--transition);
  transform-origin: right center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translateY(-2px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translateY(2px);
}

/* Social Media Icons - Modern */
.socialmedia {
  /* display: none; */
  display: flex;
  justify-content: center;
  justify-items: center;
}

.socialmedia a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.socialmedia a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.socialmedia a:hover::before {
  left: 100%;
}

.socialmedia a:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.socialmedia img {
  width: 22px;
  height: 22px;
  transition: var(--transition);
}

.socialmedia a:hover img {
  transform: scale(1.2);
}

/* ========================== */
/* 4. SECTION STYLES - Enhanced */
/* ========================== */
.section {
  padding: clamp(50px, 7vw, 100px) 20px;
  text-align: center;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.section.home-about {
  background: var(--bg-alt);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Modern Typography */
h1, h2, h3 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(28px, 6vw, 48px);
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

h2 {
  font-size: clamp(24px, 5vw, 36px);
  margin-bottom: 25px;
}

h3 {
  font-size: clamp(20px, 4vw, 28px);
  color: var(--text-medium);
  margin: 30px 0 15px;
}

.intro {
  font-size: clamp(18px, 3.5vw, 22px);
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

.content {
  font-size: clamp(16px, 2.8vw, 18px);
  color: var(--text-medium);
  line-height: 1.8;
  margin: 25px auto;
  max-width: 800px;
}

.closing-text {
  font-size: clamp(16px, 2.8vw, 18px);
  margin-top: 40px;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  padding: 0 30px;
}

.closing-text::before,
.closing-text::after {
  content: '•';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary);
  font-size: 1.5em;
}

.closing-text::before {
  left: 0;
}

.closing-text::after {
  right: 0;
}

/* ========================== */
/* MEDIA QUERIES - Enhanced Breakpoints */
/* ========================== */
@media (min-width: 768px) {
  header.sticky-header {
    padding: 15px 5%;
  }

  .logo {
    height: 70px;
    width: 70px;
  }

  .navbar {
    position: static;
    width: auto;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
  }

  .nav-links {
    flex-direction: row;
    gap: 15px;
    width: auto;
  }

  .nav-item {
    padding: 8px 15px;
    font-size: 16px;
  }

  .nav-links .donateNow {
    margin: 0 0 0 15px;
  }

  .menu-toggle {
    display: none;
  }

  .socialmedia {
    display: flex;
    gap: 12px;
    margin-left: 25px;
  }
}

@media (min-width: 992px) {
  header.sticky-header {
    padding: 20px 5%;
  }

  .logo {
    height: 80px;
    width: 80px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-item {
    font-size: 17px;
    padding: 10px 18px;
  }

  .socialmedia {
    gap: 15px;
  }

  .socialmedia a {
    width: 44px;
    height: 44px;
  }

  .socialmedia img {
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 1200px) {
  .nav-links {
    gap: 25px;
  }

  .nav-item {
    font-size: 18px;
  }

  .socialmedia a {
    width: 46px;
    height: 46px;
  }

  .socialmedia img {
    width: 26px;
    height: 26px;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
  animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
/* ========================== */
/* NAVBAR HEIGHT OPTIMIZATION */
/* ========================== */
header.sticky-header {
  height: 60px; /* Reduced from 100px to match image */
  min-height: 60px; /* Consistent minimum height */
  padding: 5px 20px; /* Reduced vertical padding */
}

.logo {
  height: 50px; /* Reduced from 60px */
  width: 50px;  /* Reduced from 60px */
}

/* Mobile menu adjustments */
.navbar {
  top: 60px; /* Adjusted to match new header height */
}

/* Desktop view adjustments */
@media (min-width: 768px) {
  header.sticky-header {
    height: 60px; /* Maintain compact height */
    padding: 5px 5%; /* Keep reduced padding */
  }
  
  .logo {
    height: 100px; /* Maintain smaller size */
    width: 100px;
    position: absolute;
    top:0%;
    border: outset;
  }
  
  .nav-item {
    padding: 8px 12px; /* Slightly reduced padding */
    font-size: 15px; /* Slightly smaller font */
    text-decoration: none;
  }

  
  .nav-links .donateNow {
    padding: 8px 18px; /* Slightly more compact */
    margin-left: 10px; /* Reduced spacing */
  }
}

/* Make navbar items more compact */
.nav-links {
  gap: 12px; /* Reduced from 15-25px */
}

/* Social media icons scaling */
.socialmedia a {
  width: 36px;
  height: 36px;
  
}

.socialmedia img {
  width: 20px;
  height: 20px;
}

/* Ensure content starts below navbar */
.container {
  padding-top: 80px; /* Reduced from 125px */
}