/* ==========================================================================
   KATHMANDU SAMAJ (काठमाडौं समाज) - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --primary-crimson: #9E1B32;
  --primary-crimson-hover: #b8223e;
  --primary-crimson-light: rgba(158, 27, 50, 0.08);
  --gold-accent: #D4AF37;
  --gold-glow: rgba(212, 175, 55, 0.3);
  --navy-dark: #0b1329;
  --navy-card: #131f3d;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-alt: #f1f5f9;
  
  /* UI Tokens */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.14);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .brand-font {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Utility Containers */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-padding {
  padding: 90px 0;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-crimson);
  background: var(--primary-crimson-light);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--navy-dark);
  margin-bottom: 16px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-crimson), var(--gold-accent));
  margin: 14px auto 0 auto;
  border-radius: 2px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(11, 19, 41, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-crimson), #670d1e);
  color: var(--gold-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 15px rgba(158, 27, 50, 0.4);
}

.logo-text h2 {
  font-size: 1.25rem;
  color: var(--text-light);
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--gold-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: rgba(248, 250, 252, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-accent);
  transition: var(--transition-fast);
}

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

.btn-cta {
  background: linear-gradient(135deg, var(--primary-crimson), #7c1225);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 15px rgba(158, 27, 50, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(158, 27, 50, 0.5);
  background: linear-gradient(135deg, var(--primary-crimson-hover), #9E1B32);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(11, 19, 41, 0.88), rgba(19, 31, 61, 0.93)), url('images/grand-assembly-1.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  color: var(--text-light);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-text {
  max-width: 620px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-accent);
  color: var(--gold-accent);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.2rem;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--gold-accent), #fef08a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(248, 250, 252, 0.85);
  margin-bottom: 35px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.hero-media-preview {
  position: relative;
}

.hero-image-stack {
  position: relative;
  width: 100%;
  height: 420px;
}

.hero-card-main {
  width: 85%;
  height: 340px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  border: 3px solid rgba(212, 175, 55, 0.4);
  position: absolute;
  top: 0;
  left: 0;
}

.hero-card-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-sub {
  width: 60%;
  height: 220px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border: 2px solid rgba(255,255,255,0.4);
  position: absolute;
  bottom: 0;
  right: 0;
}

.hero-card-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stats-floating {
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  background: rgba(19, 31, 61, 0.95);
  backdrop-filter: blur(12px);
  padding: 18px 24px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stats-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-accent);
  line-height: 1;
}

.stats-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
}

.feature-card {
  background: var(--bg-surface);
  padding: 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-50px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-crimson-light);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-crimson-light);
  color: var(--primary-crimson);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.1rem;
  color: var(--navy-dark);
  margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}

.feature-desc {
  font-size: 0.9rem;
}

.about-image-wrapper {
  position: relative;
}

.about-img-box {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-surface);
}

.about-img-box img {
  width: 100%;
  display: block;
  transition: var(--transition-smooth);
}

.about-img-box:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   EXECUTIVE COMMITTEE SHOWCASE
   ========================================================================== */
.committee-section {
  background: var(--bg-alt);
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.committee-card {
  background: var(--bg-surface);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid #e2e8f0;
}

.committee-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.committee-img-container {
  height: 240px;
  position: relative;
  overflow: hidden;
}

.committee-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.committee-card:hover .committee-img-container img {
  transform: scale(1.08);
}

.committee-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--navy-dark);
  color: var(--gold-accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.committee-info {
  padding: 24px;
}

.committee-role {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-crimson);
  letter-spacing: 1px;
}

.committee-name {
  font-size: 1.3rem;
  color: var(--navy-dark);
  margin: 6px 0 10px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}

.committee-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PHOTO GALLERY SECTION & LIGHTBOX
   ========================================================================== */
.gallery-section {
  background: var(--bg-body);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--bg-surface);
  color: var(--text-dark);
  border: 1px solid #cbd5e1;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-crimson);
  color: #ffffff;
  border-color: var(--primary-crimson);
  box-shadow: 0 4px 15px rgba(158, 27, 50, 0.25);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 260px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: var(--navy-dark);
}

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

.gallery-item:hover img {
  transform: scale(1.08);
  opacity: 0.8;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 19, 41, 0.92) 0%, rgba(11, 19, 41, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-fast);
}

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

.gallery-tag {
  align-self: flex-start;
  background: var(--gold-accent);
  color: var(--navy-dark);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.gallery-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.gallery-desc {
  color: rgba(248, 250, 252, 0.8);
  font-size: 0.85rem;
}

.gallery-zoom-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 10, 24, 0.95);
  backdrop-filter: blur(20px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.lightbox-content {
  max-width: 1000px;
  width: 90%;
  position: relative;
  text-align: center;
}

.lightbox-img-wrapper {
  max-height: 75vh;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.lightbox-img-wrapper img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.lightbox-caption {
  margin-top: 20px;
  color: #ffffff;
}

.lightbox-caption h3 {
  color: var(--gold-accent);
  font-size: 1.4rem;
  margin-bottom: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-nav:hover {
  background: var(--primary-crimson);
  border-color: var(--primary-crimson);
}

.lightbox-prev { left: -65px; }
.lightbox-next { right: -65px; }

/* ==========================================================================
   INITIATIVES & COMMUNITY IMPACT
   ========================================================================== */
.initiatives-section {
  background: var(--navy-dark);
  color: var(--text-light);
}

.initiatives-section .section-title {
  color: #ffffff;
}

.initiatives-section .section-desc {
  color: rgba(248, 250, 252, 0.7);
}

.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.initiative-card {
  background: var(--navy-card);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

.initiative-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-accent);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.initiative-img {
  height: 220px;
  overflow: hidden;
}

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

.initiative-card:hover .initiative-img img {
  transform: scale(1.08);
}

.initiative-content {
  padding: 28px;
}

.initiative-title {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.initiative-desc {
  color: rgba(248, 250, 252, 0.75);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.initiative-link {
  color: var(--gold-accent);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.initiative-link:hover {
  gap: 10px;
}

/* ==========================================================================
   CONTACT & FOOTER
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-box {
  background: var(--bg-surface);
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-crimson-light);
  color: var(--primary-crimson);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-text h4 {
  font-size: 1.05rem;
  color: var(--navy-dark);
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 4px;
}

.contact-form {
  background: var(--bg-surface);
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-crimson);
  box-shadow: 0 0 0 3px var(--primary-crimson-light);
}

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

/* Footer */
.site-footer {
  background: #070d1c;
  color: rgba(248, 250, 252, 0.7);
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--gold-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsiveness */
@media (max-width: 992px) {
  .hero-content, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}
