/* SCCF Website Modern Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --secondary: #06b6d4;
  --secondary-light: #67e8f9;
  --accent: #10b981;
  --accent-light: #34d399;
  --background: #ffffff;
  --background-secondary: #f8fafc;
  --background-tertiary: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
  --gradient-accent: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 0; /* Remove padding to eliminate white strip */
  overflow-x: hidden; /* Prevent horizontal scrolling on mobile */
}

/* Skip navigation for accessibility */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  font-weight: 600;
  transition: top 0.3s;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.skip-nav:focus {
  top: 6px;
  left: 6px;
  opacity: 1;
  pointer-events: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Modern Floating Glass Navbar */
header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4rem);
  max-width: 1200px;
  height: 4rem;
  z-index: 1000;
  
  /* Fallback background for browsers without backdrop-filter support */
  background: rgba(255, 255, 255, 0.9);
  
  /* Glass Effect - Enhanced with fallback */
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  /* Floating Design */
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(31, 38, 135, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  
  /* Smooth Transitions */
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  
  /* Ensure proper positioning */
  display: flex;
  align-items: center;
  padding: 0;
}

/* Enhanced glass effect when scrolled with fallback */
header.scrolled {
  background: rgba(255, 255, 255, 0.95); /* Fallback */
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 12px 40px rgba(31, 38, 135, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateX(-50%) translateY(-2px);
}

/* Accessibility improvements for focus states - only visible when using keyboard */
header *:focus {
  outline: none;
}

header *:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Better contrast for text over glass */
header .nav-menu a {
  color: var(--primary);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Hide/Show Animation */
header.hidden {
  transform: translateX(-50%) translateY(-150%);
  opacity: 0;
}

header.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Navbar Container */
.navbar {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  border-radius: 2rem;
}

/* Logo Section - Reconstructed */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  transition: all 0.3s ease;
  z-index: 10;
}

.logo:hover {
  color: #6366f1;
  transform: scale(1.05);
}

.logo-icon {
  height: 2.5rem;
  width: 2.5rem;
  object-fit: contain;
  margin-right: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: filter 0.3s ease;
}

.logo:hover .logo-icon {
  filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

/* Navigation Menu - Reconstructed */
.nav-content {
  display: flex;
  align-items: center;
  z-index: 10;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  align-items: center;
  background: transparent;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Glass hover effect for nav items */
.nav-menu li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-menu li a:hover::before,
.nav-menu li.active a::before {
  opacity: 1;
  transform: scale(1);
}

.nav-menu li a:hover,
.nav-menu li.active a {
  color: #6366f1;
  transform: translateY(-1px);
}

/* CTA Button - Reconstructed */
.btn-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(99, 102, 241, 0.9);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 20px rgba(99, 102, 241, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.btn-cta:hover {
  background: rgba(99, 102, 241, 1);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 30px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-cta svg {
  height: 1.25rem;
  width: 1.25rem;
  fill: currentColor;
}

/* Navbar Social Media Icons */
.navbar-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #1f2937;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover {
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 8px 25px rgba(99, 102, 241, 0.3),
    0 3px 10px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Specific social media colors on hover */
.social-link:nth-child(1):hover::before {
  background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.social-link:nth-child(2):hover::before {
  background: linear-gradient(135deg, #e1306c, #fd1d1d, #fccc63);
}

.social-link:nth-child(3):hover::before {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

/* Language Toggle */
.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  padding: 0.25rem;
  z-index: 10;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #1f2937;
  padding: 0.5rem 0.75rem;
  border-radius: 1.25rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 0.875rem;
  min-width: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lang-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: 1.25rem;
}

.lang-btn:hover::before,
.lang-btn.active::before {
  opacity: 1;
}

.lang-btn:hover,
.lang-btn.active {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Mobile Navigation Toggle - Reconstructed */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #1f2937;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #6366f1;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: currentColor;
  display: block;
  position: relative;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Mobile Responsive - Reconstructed */
@media (min-width: 768px) {
  .nav-content {
    display: flex;
  }
  
  .nav-menu {
    gap: 0.5rem;
  }
  
  .mobile-social {
    display: none !important;
  }
  
  .mobile-language-toggle {
    display: none !important;
  }
}

@media (max-width: 767px) {
  header {
    top: 0.5rem;
    width: calc(100% - 2rem);
    height: 3.5rem;
  }
  
  .navbar {
    padding: 0 1rem;
  }
  
  .navbar-social {
    display: none; /* Hide social icons on mobile to save space */
  }
  
  .language-toggle {
    display: none; /* Hide on mobile, will show in mobile menu */
  }
  
  .nav-content {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
      0 8px 32px rgba(31, 38, 135, 0.15),
      0 2px 8px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
    flex-direction: column;
    padding: 1rem 0;
    display: none;
    z-index: 50;
    border-radius: 1rem;
  }
  
  .nav-content.active {
    display: flex;
  }
  
  /* Show social icons in mobile menu */
  .nav-content.active .mobile-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
  }
  
  /* Show language toggle in mobile menu */
  .nav-content.active .mobile-language-toggle {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 0.5rem;
  }
  
  .mobile-language-toggle {
    display: none;
  }
  
  .mobile-language-toggle .language-toggle {
    display: flex;
  }
  
  .nav-content.active {
    display: flex;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu li a {
    display: block;
    padding: 1rem 1.5rem;
    border-radius: 0;
  }
  
  .nav-menu li a::before {
    border-radius: 0;
  }
  
  /* Mobile Social Icons - Hidden by default */
  .mobile-social {
    display: none;
  }
  
  .btn-cta {
    margin: 1rem 1.5rem 0;
    justify-content: center;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
  }
  
  .nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* Global Modern Styles */
html {
  scroll-behavior: smooth;
}

/* Page-specific spacing: ensure content clears the floating header on All Projects page */
body[data-page='projects-list'] main.section {
  /* header is 4rem tall with 1rem top offset; provide extra breathing room */
  margin-top: 6.5rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 1rem 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.bg-light {
  background: var(--background-secondary);
}

/* Modern Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  z-index: 1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background: var(--gradient-accent);
  color: white;
  box-shadow: var(--shadow);
}

.btn-accent:hover,
.btn-accent:focus {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Modern Hero Section */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b  50%, #334155 100%);
  color: white;
  padding: 7rem 2rem 4rem; /* Slightly reduced top/bottom padding */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 92vh; /* Slightly less than full viewport height */
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  z-index: 2;
  position: relative;
  background: none;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: none;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-welcome {
  font-size: clamp(4.5rem, 11vw, 7.5rem);
  font-weight: 900;
  color: #ffffff;
  background: none !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  text-shadow: 
    0 0 10px #70A5BE,
    0 0 20px #70A5BE,
    0 0 30px #70A5BE,
    0 0 40px #49778E;
  letter-spacing: -0.02em;
  animation: neonGlow 2s ease-in-out infinite alternate;
}

.hero-title-secondary {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  margin-left: 1rem;
  position: relative;
}

.hero-title-secondary::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: linear-gradient(135deg, #06b6d4, #10b981);
  border-radius: 2px;
}

@keyframes neonGlow {
  from {
    text-shadow: 
      0 0 10px #70A5BE,
      0 0 20px #70A5BE,
      0 0 30px #70A5BE,
      0 0 40px #49778E;
  }
  to {
    text-shadow: 
      0 0 5px #70A5BE,
      0 0 15px #70A5BE,
      0 0 25px #70A5BE,
      0 0 35px #49778E;
  }
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.5));
  }
  to {
    filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.7));
  }
}


.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 3rem;
  color: #cbd5e1;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-image {
  z-index: 2;
  position: relative;
}

/* Modern Hero Image Grid Collage */
.hero-image-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 1rem;
  height: 450px; /* Slightly reduced collage height */
  max-width: 600px;
  margin: 0 auto;
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  cursor: pointer;
}

.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.2));
  z-index: 1;
  opacity: 0;
  transition: var(--transition);
}

.grid-item:hover::before {
  opacity: 1;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  display: block;
  opacity: 1;
}

.grid-item:hover img {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1rem;
  transform: translateY(100%);
  transition: var(--transition);
  z-index: 2;
}

.grid-item:hover .image-overlay {
  transform: translateY(0);
}

.overlay-text {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* See more button under gallery */
.gallery-see-more {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

/* Grid Layout Positioning */
.main-image {
  grid-column: 1 / 8;
  grid-row: 1 / 6;
  z-index: 3;
}

.secondary-image {
  grid-column: 8 / 13;
  grid-row: 1 / 4;
  z-index: 2;
}

.accent-image {
  grid-column: 1 / 6;
  grid-row: 6 / 9;
  z-index: 2;
}

.feature-image {
  grid-column: 8 / 13;
  grid-row: 4 / 7;
  z-index: 2;
}

.small-image {
  grid-column: 6 / 10;
  grid-row: 6 / 9;
  z-index: 1;
}

.grid-item:nth-child(odd) {
  animation: float 6s ease-in-out infinite;
}

.grid-item:nth-child(even) {
  animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

/* Modern Section Headers */
.section h2 {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  padding-top: 2rem;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Modern About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.about-content {
  grid-column: 1;
}

.team-section {
  grid-column: 1;
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  margin: 2rem auto 0;
  max-width: 1200px;
  width: 100%;
}

/* Desktop layout: side by side for content, full width for team */
@media (min-width: 1024px) {
  .about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  /* Use internal grid for items; keep container simple to avoid empty right column */
  .about-main-content {
    display: block;
    margin-bottom: 3rem;
  }
}

.about-content h3 {
  color: var(--primary);
  margin: 3rem 0 1rem 0;
  font-size: 1.5rem;
  position: relative;
  padding-left: 2rem;
}

.about-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.about-content h3:first-child {
  margin-top: 0;
}

.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* New: About items two-column alternating layout */
.about-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .about-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 3rem;
  }
  .about-item:nth-child(odd) {
    padding-right: 1.5rem;
    border-right: 1px solid var(--border);
  }
  .about-item:nth-child(even) {
    padding-left: 1.5rem;
  }
}

.about-item h3 {
  color: var(--primary);
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  position: relative;
  padding-left: 2rem;
}

.about-item h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.about-item p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.team-section {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.team-section h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-left: 0;
}

.team-section h3::before {
  display: none;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .team-grid { 
    grid-template-columns: repeat(2, minmax(0,1fr)); 
    justify-items: stretch;
  }
  /* Make 3rd, 4th, and 5th items span to create 2-3 layout */
  .team-grid .team-member:nth-child(3) {
    grid-column: 1 / 2;
  }
  .team-grid .team-member:nth-child(4) {
    grid-column: 2 / 3;
  }
  .team-grid .team-member:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 280px;
    justify-self: center;
  }
}
@media (min-width: 900px) {
  .team-grid { 
    grid-template-columns: repeat(6, minmax(0,1fr)); 
    max-width: 900px;
  }
  /* Center 2 items in top row - items 1 and 2 */
  .team-grid .team-member:nth-child(1) {
    grid-column: 2 / 4;
    grid-row: 1;
  }
  .team-grid .team-member:nth-child(2) {
    grid-column: 4 / 6;
    grid-row: 1;
  }
  /* 3 items in bottom row - items 3, 4, and 5 */
  .team-grid .team-member:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 2;
    max-width: none;
    justify-self: stretch;
  }
  .team-grid .team-member:nth-child(4) {
    grid-column: 3 / 5;
    grid-row: 2;
    max-width: none;
    justify-self: stretch;
  }
  .team-grid .team-member:nth-child(5) {
    grid-column: 5 / 7;
    grid-row: 2;
    max-width: none;
    justify-self: stretch;
  }
}
@media (min-width: 1200px) {
  .team-grid { 
    grid-template-columns: repeat(6, minmax(0,1fr));
    max-width: 1000px;
  }
}

.team-subsection { 
  margin-top: 2rem; 
}
.team-subsection h4 {
  margin: 1rem 0 1.5rem;
  font-size: 1.35rem;
  color: var(--primary);
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

.team-subsection h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gradient-primary);
}

.team-member {
  text-align: center;
  padding: 1.5rem;
  background: var(--background-secondary);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: white;
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--secondary);
  transition: var(--transition);
}

.team-member:hover img {
  border-color: var(--accent);
  transform: scale(1.1);
}

.team-member h4 {
  margin: 0.75rem 0 0.5rem;
  color: var(--primary);
  font-size: 1.1rem;
}

.team-member p:first-of-type {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.team-member p:last-of-type {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Enhanced Modern Projects Section */
.section-description {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

/* When only one project is shown, center it and constrain width for better balance */
.projects-grid.single {
  grid-template-columns: 1fr;
}

.projects-grid.single .project-card {
  justify-self: center;
  width: 100%;
  max-width: 980px;
}

.project-card {
  background: white;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  transform-origin: center;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

/* Project Image with Overlay */
.project-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(6, 182, 212, 0.9), rgba(16, 185, 129, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  text-align: center;
  color: white;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: white;
}

.project-overlay-content p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn-overlay {
  background: white;
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

.btn-overlay:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* Project Content */
.project-content {
  padding: 2.5rem;
  position: relative;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-category {
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-status[data-status="active"],
.project-status:contains("Active") {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.project-status:contains("Growing") {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.project-status:contains("Expanding") {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.project-content h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.project-content p {
  margin-bottom: 2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Project Statistics */
.project-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(112, 165, 190, 0.2);
  box-shadow: 0 4px 12px rgba(21, 37, 48, 0.08);
  position: relative;
}

.project-stats::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #70A5BE, #49778E);
  border-radius: 4px 0 0 4px;
}

.stat {
  text-align: center;
  padding: 0.5rem;
}

.stat-number {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
  line-height: 1.1;
  word-break: break-word;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: clamp(0.65rem, 1.2vw, 0.75rem);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
  opacity: 0.8;
}

.project-link {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--secondary);
  border-radius: var(--border-radius-lg);
  background: transparent;
  margin-top: 0.5rem;
}

.project-link::after {
  content: '→';
  transition: var(--transition);
  font-size: 1.1rem;
}

.project-link:hover {
  background: var(--secondary);
  color: white;
  transform: translateX(5px);
}

/* Projects CTA Section */
.projects-cta {
  text-align: center;
  margin-top: 5rem;
  padding: 4.5rem 2rem;
  background: #f7fbfd;
  border-radius: 32px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(112, 165, 190, 0.25);
  position: relative;
  overflow: hidden;
}

.projects-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 800px at 20% 20%, rgba(14, 165, 233, 0.12) 0%, rgba(14, 165, 233, 0.05) 45%, transparent 70%),
    radial-gradient(700px 700px at 80% 80%, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.05) 45%, transparent 70%);
  pointer-events: none;
}

.projects-cta h3 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.projects-cta p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  position: relative;
  z-index: 1;
}

.projects-cta .btn {
  position: relative;
  z-index: 1;
  border-radius: 9999px;
  padding: 1rem 2.25rem;
  letter-spacing: 0.6px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.projects-cta .btn.btn-primary {
  background: linear-gradient(135deg, #0f2c3a 0%, #2e6c86 100%);
  border: none;
}

.projects-cta .btn.btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

/* ===================================
   News Hub CTA Section
   =================================== */
.news-hub-cta {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  border-radius: var(--border-radius-xl);
  padding: 3rem 2.25rem; /* slightly smaller box */
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
  max-width: 1000px; /* make the outer box a bit narrower */
  margin: 0 auto; /* center within container */
  width: 100%;
}

.news-hub-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1) rotate(180deg);
    opacity: 0.3;
  }
}

.news-hub-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(6, 182, 212, 0.4);
}

.news-hub-content {
  position: relative;
  z-index: 1;
}

.news-hub-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: bounce-icon 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes bounce-icon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.news-hub-cta h3 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-hub-cta p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.news-hub-btn {
  background: #ffffff;
  color: #0891b2;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--border-radius-lg);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: none;
  text-decoration: none;
}

.news-hub-btn:hover {
  background: #f0fdfa;
  transform: translateX(5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-hub-btn svg {
  transition: var(--transition);
}

.news-hub-btn:hover svg {
  transform: translateX(5px);
}

/* Responsive Design for News Hub */
@media (max-width: 768px) {
  .news-hub-cta {
    padding: 3rem 2rem;
  }
  
  .news-hub-icon {
    font-size: 3rem;
  }
  
  .news-hub-cta h3 {
    font-size: 1.875rem;
  }
  
  .news-hub-cta p {
    font-size: 1rem;
  }
  
  .news-hub-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .news-hub-cta {
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius-lg);
  }
  
  .news-hub-icon {
    font-size: 2.5rem;
  }
  
  .news-hub-cta h3 {
    font-size: 1.5rem;
  }
  
  .news-hub-cta p {
    font-size: 0.938rem;
  }
  
  .news-hub-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.938rem;
    width: 100%;
    justify-content: center;
  }
}

/* Photo Gallery Section */
.gallery-filters,
.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0 4rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background: white;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: var(--transition);
  padding: 2rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info {
  color: white;
  width: 100%;
}

.gallery-info h4 {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem); /* responsive sizing */
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
  white-space: normal; /* allow wrapping */
  word-break: break-word; /* avoid overflow on long words */
}

.gallery-info p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.gallery-category {
  background: var(--gradient-accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* Gallery CTA */
.gallery-cta {
  text-align: center;
  padding: 4rem 3rem;
  background: var(--background-secondary);
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.gallery-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.gallery-cta h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.gallery-cta p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.gallery-cta .btn {
  position: relative;
  z-index: 2;
}

/* Gallery Filter Animation */
.gallery-item {
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease;
}

.gallery-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Masonry-style layout for larger screens */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery-item:nth-child(3n+1) {
    grid-row: span 1;
  }
  
  .gallery-item:nth-child(5n+2) {
    grid-row: span 1;
  }
}

.project-link::after {
  content: '→';
  transition: var(--transition);
}

.project-link:hover {
  color: var(--accent);
  transform: translateX(5px);
}

/* Modern Get Involved Section */
.involvement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.involvement-card {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.involvement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.involvement-card h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.involvement-card p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Modern Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--background);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form {
  width: 100%;
}

.form-note {
  margin-top: 1rem;
  text-align: center;
}

.form-note small {
  color: var(--text-light);
  font-size: 0.85rem;
  font-style: italic;
}

/* Form Message Styles */
.form-message {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  position: relative;
  animation: slideIn 0.3s ease-out;
}

.form-message-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent);
}

.form-message-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

.form-message p {
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}

.close-message {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: var(--transition);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-message:hover {
  opacity: 1;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Google Forms Integration */
.google-form-container {
  margin-top: 1.5rem;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: white;
}

.google-form-container iframe {
  border: none;
  width: 100%;
  min-height: 650px;
  background: transparent;
}

/* Two-Tier Get Involved Section */
.involvement-tier {
  margin: 3rem 0;
  padding: 2.5rem;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.involvement-tier::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}



.tier-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.tier-header h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.tier-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Volunteer Section Styles */
.volunteer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.volunteer-benefits {
  display: grid;
  gap: 1.5rem;
}

.benefit-item {
  /* Two-column grid (title | description) */
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  column-gap: 1.25rem;
  row-gap: 0.25rem;
  align-items: start;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Icons removed */
.benefit-icon { display: none; }

.benefit-item h4 {
  grid-column: 1;
  margin: 0; /* keep tight for alignment */
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
}

.benefit-item p {
  grid-column: 2;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.volunteer-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(80, 200, 120, 0.1));
  border-radius: 12px;
  border: 2px dashed var(--primary-color);
}

.volunteer-form-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.volunteer-form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(74, 144, 226, 0.3);
}

.volunteer-form-btn svg {
  transition: transform 0.3s ease;
}

.volunteer-form-btn:hover svg {
  transform: translateX(2px);
}

.form-note {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
}







/* Modern Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  height: fit-content;
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.contact-item {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--background-secondary);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary);
}

.contact-item h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item p {
  margin: 0;
  font-size: 1.05rem;
}

.contact-item a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent);
}

.social-media {
  margin-top: 2rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.contact-form-container {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.contact-form h3 {
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.map-container {
  margin-top: 4rem;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.map-container iframe {
  border-radius: var(--border-radius-lg);
}

/* Footer */
.footer {
  background: var(--primary);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.footer-section h4 {
  margin-bottom: 1.5rem;
  color: var(--secondary-light);
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-section p {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: #e2e8f0;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.footer-section ul li a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition);
}

.footer-section ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-section ul li a:hover {
  color: var(--secondary-light);
  transform: translateX(10px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #94a3b8;
  position: relative;
  z-index: 2;
}

/* Modern Responsive Design */
@media (max-width: 1024px) and (min-width: 768px) {
  .navbar-social .social-link {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  .navbar-social .social-link svg {
    width: 1.1rem;
    height: 1.1rem;
  }
}

@media (max-width: 1800px) {
  .container {
    padding: 6rem 1.5rem;
  }
  
  .hero {
    gap: 3rem;
  }
  
  .about-grid,
  .involvement-grid,
  .contact-grid {
    gap: 3rem;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding: 4rem 2rem;
  }
  
  .hero-title-secondary {
    margin-left: 0;
  }
  
  .hero-title-secondary::before {
    display: none;
  }
  
  .hero-image-grid {
    height: 400px;
    max-width: 500px;
    gap: 0.8rem;
  }
  
  .overlay-text {
    font-size: 0.8rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .involvement-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 2rem;
  }
  
  .project-stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 5rem 1rem 2rem; /* Adjusted for floating navbar */
    min-height: 70vh;
  }
  
  .hero h1 {
    font-size: 2rem;
    gap: 0.3rem;
  }
  
  .hero-welcome {
    font-size: clamp(3.5rem, 15vw, 4.5rem);
  }
  
  .hero-title-secondary {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    margin-left: 0.5rem;
  }
  
  .hero-title-secondary::before {
    left: -0.5rem;
    width: 3px;
    height: 50%;
  }
  
  .hero-image-grid {
    height: 300px;
    max-width: 350px;
    gap: 0.5rem;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(6, 1fr);
  }
  
  .main-image {
    grid-column: 1 / 6;
    grid-row: 1 / 4;
  }
  
  .secondary-image {
    grid-column: 6 / 9;
    grid-row: 1 / 3;
  }
  
  .accent-image {
    grid-column: 1 / 4;
    grid-row: 4 / 7;
  }
  
  .feature-image {
    grid-column: 6 / 9;
    grid-row: 3 / 6;
  }
  
  .small-image {
    grid-column: 4 / 7;
    grid-row: 4 / 7;
  }
  
  .overlay-text {
    font-size: 0.7rem;
  }
  
  .image-overlay {
    padding: 0.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .project-card {
    transform: none !important;
  }
  
  .project-card:hover {
    transform: translateY(-5px) !important;
  }
  
  .project-image {
    height: 200px;
  }
  
  .project-content {
    padding: 2rem;
  }
  
  .project-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .stat {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(112, 165, 190, 0.1);
  }
  
  .stat:last-child {
    border-bottom: none;
  }
  
  .projects-cta {
    padding: 3rem 2rem;
    margin-top: 3rem;
  }
  
  .projects-cta h3 {
    font-size: 1.5rem;
  }
  
  /* Gallery Mobile Styles */
  .gallery-filters {
    margin: 2rem 0 3rem;
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  
  .gallery-item {
    transform: none !important;
  }
  
  .gallery-item:hover {
    transform: translateY(-5px) !important;
  }
  
  .gallery-overlay {
    padding: 1.5rem;
  }
  
  .gallery-info h4 {
    font-size: 1.1rem;
  }
  
  .gallery-info p {
    font-size: 0.9rem;
  }
  
  .gallery-cta {
    padding: 3rem 2rem;
  }
  
  .gallery-cta h3 {
    font-size: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  

  
  .involvement-card,
  .contact-form-container,
  .contact-info,
  .team-section {
    padding: 2rem;
  }
  
  /* New Get Involved Section Responsive */
  .involvement-tier {
    margin: 2rem 0;
    padding: 1.5rem;
  }
  
  .volunteer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .volunteer-action {
    padding: 1.5rem;
  }
  
  .benefit-item {
    /* Stack title and description on small screens */
    grid-template-columns: 1fr;
    align-items: start;
    padding: 1rem;
  }
  .benefit-item h4,
  .benefit-item p {
    grid-column: 1;
  }
  
  .tier-header h3 {
    font-size: 1.5rem;
  }
  

  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .involvement-card,
  .contact-form-container,
  .contact-info,
  .team-section {
    padding: 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* Modern Accessibility & Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .hero-image img {
    transform: none !important;
  }
}

/* Enhanced Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
.nav-toggle:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
  border-radius: var(--border-radius);
}

.btn:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary: #000000;
    --secondary: #0066cc;
    --background: #ffffff;
    --text: #000000;
    --accent: #006600;
    --border: #333333;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Print Styles */
@media print {
  .nav-toggle,
  .social-icons,
  .btn,
  .map-container {
    display: none;
  }
  
  .hero {
    background: none !important;
    color: black !important;
  }
  
  .section {
    padding: 2rem 0;
    break-inside: avoid;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
}

/* Loading Animation for Images */
img {
  transition: opacity 0.3s ease;
  opacity: 1; /* Ensure images are visible by default */
}

/* Form error styles */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.form-group input.error:focus,
.form-group textarea.error:focus,
.form-group select.error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

/* Responsive image improvements */
img {
  max-width: 100%;
  height: auto;
}

/* Better focus indicators for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Temporarily disabled lazy loading styles
img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}
*/

/* Modern Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 6px;
  border: 2px solid var(--background-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-accent);
}

/* Selection Styles */
::selection {
  background: var(--secondary-light);
  color: var(--primary);
}

::-moz-selection {
  background: var(--secondary-light);
  color: var(--primary);
}
