/* =============================================
   ARIHANTHAA WELFARE SOCIETY — style.css
   ============================================= */

:root {
  --primary:      #1E3A8A;
  --primary-dark: #162d6b;
  --accent:       #3B82F6;
  --light:        #F4F7FB;
  --white:        #ffffff;
  --text:         #1F2937;
  --muted:        #6B7280;
  --border:       #E5E7EB;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--light);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}
.container { max-width: 1100px; margin: auto; padding: 0 24px; }

/* =============================================
   LOADER
   ============================================= */
#loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.7s ease;
}

.loader-ring {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-left-color: var(--accent);
  animation: ringRotate 1.1s linear infinite;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.loader-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  animation:
    logoBounceIn 0.8s cubic-bezier(0.34, 1.6, 0.64, 1) 0.15s both,
    logoBreathe  2s   ease-in-out 1s infinite;
}
@keyframes logoBounceIn {
  0%   { opacity: 0; transform: scale(0.2) rotate(-20deg); }
  60%  { opacity: 1; transform: scale(1.1) rotate(4deg); }
  80%  { transform: scale(0.95) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes logoBreathe {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 0   rgba(30,58,138,0)); }
  50%       { transform: scale(1.06); filter: drop-shadow(0 0 16px rgba(30,58,138,0.4)); }
}

.loader-tagline {
  margin-top: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 1.5px;
  animation: taglineIn 0.6s ease 0.7s both;
}
@keyframes taglineIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   SCROLL FADE-IN
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   HEADER
   ============================================= */
#header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
  z-index: 500;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}
.logo-container { display: flex; align-items: center; gap: 10px; }
.nav-logo {
  width: 40px; height: 40px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.nav-logo:hover { transform: scale(1.08); }
.logo-container span {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
}
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #EEF2FF 0%, #F4F7FB 55%, #DBEAFE 100%);
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero-blob.one   { width: 520px; height: 520px; background: #93C5FD; opacity: 0.28; top: -140px; left: -170px; }
.hero-blob.two   { width: 420px; height: 420px; background: #BFDBFE; opacity: 0.28; bottom: -110px; right: -120px; }
.hero-blob.three { width: 300px; height: 300px; background: #C7D2FE; opacity: 0.2;  top: 40%; left: 40%; }

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 80px 24px 60px;
}
.hero-logo-wrap { animation: heroLogoIn 0.9s cubic-bezier(0.34,1.5,0.64,1) 2s both; }
@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(0.4) translateY(20px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}
.hero-logo {
  width: 110px; height: 110px;
  object-fit: contain;
  border-radius: 24px;
  background: var(--white);
  padding: 10px;
  box-shadow: 0 12px 40px rgba(30,58,138,0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-logo:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(30,58,138,0.26); }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 50px; font-weight: 800;
  color: var(--primary); line-height: 1.1;
  animation: fadeUp 0.8s ease 2.2s both;
}
.tagline { font-size: 19px; font-weight: 500; color: var(--accent); animation: fadeUp 0.8s ease 2.35s both; }
.desc { max-width: 560px; color: var(--muted); font-size: 16px; line-height: 1.85; animation: fadeUp 0.8s ease 2.5s both; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; animation: fadeUp 0.8s ease 2.65s both; }
.scroll-hint { margin-top: 16px; animation: fadeUp 0.8s ease 2.9s both; }
.scroll-hint span {
  display: block; width: 2px; height: 44px; margin: auto;
  background: linear-gradient(to bottom, var(--primary), transparent);
  border-radius: 2px;
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.8); }
  50%       { opacity: 1;    transform: scaleY(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 8px;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn.primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,58,138,0.32); }
.btn.secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn.secondary:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,58,138,0.2); }

/* =============================================
   SECTION SHARED
   ============================================= */
.section { padding: 86px 0; text-align: center; }
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.section h2 { font-family: 'Playfair Display', serif; font-size: 36px; color: var(--primary); margin-bottom: 20px; }
.center-text { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 16px; line-height: 1.85; }

/* =============================================
   ABOUT
   ============================================= */
.about-section { background: var(--white); text-align: left; }
.about-grid { display: grid; grid-template-columns: 1fr 300px; gap: 70px; align-items: center; }
.about-text .section-label { display: block; margin-bottom: 10px; }
.about-text h2 { text-align: left; margin-bottom: 18px; }
.about-text p  { color: var(--muted); font-size: 15.5px; line-height: 1.9; margin-bottom: 14px; }
.about-text em { color: var(--primary); font-style: italic; font-weight: 500; }
.symbol-card {
  background: var(--light); border-radius: 20px; padding: 36px 28px;
  text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.symbol-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,0.1); }
.community-logo { width: 130px; height: auto; object-fit: contain; }
.symbol-caption { margin-top: 18px; font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 600; font-style: italic; color: var(--primary); line-height: 1.6; }
.symbol-sub { margin-top: 6px; font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }

/* =============================================
   VISION & MISSION
   ============================================= */
.vm { background: var(--light); }
.vm-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; margin-top: 40px; }
.vm-box {
  background: var(--white); padding: 36px 32px; border-radius: 16px;
  text-align: left; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vm-box:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,0.1); }
.vm-line { width: 40px; height: 3px; background: var(--primary); border-radius: 2px; margin-bottom: 20px; }
.vm-box h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--primary); margin-bottom: 12px; }
.vm-box p  { color: var(--muted); line-height: 1.8; font-size: 15px; }

/* =============================================
   PROGRAMS
   ============================================= */
.programs-section { background: var(--white); }
.cards { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.card {
  background: var(--light); padding: 36px 26px; border-radius: 16px;
  width: 265px; box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 3px solid transparent; text-align: center;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(30,58,138,0.12); border-bottom-color: var(--primary); }
.card-icon-wrap {
  width: 52px; height: 52px; background: var(--white); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; box-shadow: 0 2px 10px rgba(30,58,138,0.1);
}
.card-icon-wrap svg { width: 24px; height: 24px; stroke: var(--primary); }
.card h4 { font-size: 17px; font-weight: 600; color: var(--primary); margin-bottom: 10px; }
.card p  { color: var(--muted); font-size: 14px; line-height: 1.75; }

/* =============================================
   IMPACT
   ============================================= */
.impact { background: var(--primary); }
.impact .section-label { color: #93C5FD; }
.impact h2 { color: var(--white); }
.impact-container { display: flex; justify-content: center; align-items: center; gap: 80px; margin-top: 48px; }
.impact-box h3 { font-family: 'Playfair Display', serif; font-size: 64px; font-weight: 700; color: var(--white); line-height: 1; }
.impact-box h3::after { content: '+'; }
.impact-box p { font-size: 15px; color: #93C5FD; margin-top: 8px; font-weight: 500; }
.impact-divider { width: 1px; height: 90px; background: rgba(255,255,255,0.2); }

/* =============================================
   GALLERY
   ============================================= */
.gallery-section { background: var(--light); }
.gallery-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 20px; }
.gallery-item { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,0.1); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,45,107,0.85) 0%, transparent 55%); opacity: 0; transition: opacity 0.35s ease; display: flex; align-items: flex-end; padding: 22px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay p { color: var(--white); font-size: 15px; font-weight: 600; }
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 12px; object-fit: contain; animation: lightboxIn 0.3s ease; }
@keyframes lightboxIn { from { opacity:0; transform:scale(0.88); } to { opacity:1; transform:scale(1); } }
.lightbox-close { position: absolute; top: 20px; right: 28px; font-size: 38px; color: var(--white); cursor: pointer; opacity: 0.8; transition: opacity 0.2s; }
.lightbox-close:hover { opacity: 1; }

/* =============================================
   GET INVOLVED
   ============================================= */
.involved { background: linear-gradient(160deg, #EEF2FF, #DBEAFE); }
.involved h2 { margin-bottom: 14px; }
.involved .center-text { margin-bottom: 32px; }

/* =============================================
   CONTACT
   ============================================= */
.contact-section { background: var(--white); }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 44px;
  text-align: left;
}

.contact-info { display: flex; flex-direction: column; gap: 28px; }

.info-label {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}

.info-item p,
.info-item a {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.8;
  display: block;
}
.info-item a:hover { color: var(--primary); }

.map-link {
  display: inline-block;
  font-size: 14px !important;
  font-weight: 600;
  color: var(--primary) !important;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.map-link:hover { opacity: 0.7; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px; color: var(--text);
  background: var(--light); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
  background: var(--white);
}
.contact-form textarea { resize: vertical; }
.form-feedback { font-size: 14px; font-weight: 500; min-height: 20px; }

/* Map embed */
.map-embed { margin-top: 48px; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,0.1); }
.map-embed iframe { display: block; }

/* =============================================
   FOOTER
   ============================================= */
footer { background: var(--primary-dark); padding: 40px 0 0; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,0.1); padding: 4px; }
.footer-name { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--white); font-weight: 700; display: block; }
.footer-motto { font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 0.5px; margin-top: 2px; }

.footer-mid p { color: rgba(255,255,255,0.65); font-size: 13px; line-height: 1.8; }
.footer-mid a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-mid a:hover { color: var(--white); }

.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

.footer-bottom { text-align: center; padding: 16px 0; }
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 12px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-symbol { display: flex; justify-content: center; }
  .symbol-card { max-width: 280px; }
  .about-text h2 { text-align: center; }
  .about-text .section-label { text-align: center; display: block; }
  .about-text p { text-align: center; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-links { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); padding: 12px 0; gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 24px; font-size: 15px; }
  .nav-links a::after { display: none; }
  #header { position: relative; }
  .hero-title { font-size: 32px; }
  .hero-logo  { width: 80px; height: 80px; }
  .tagline    { font-size: 16px; }
  .gallery-grid     { grid-template-columns: 1fr; }
  .vm-grid          { grid-template-columns: 1fr; }
  .cards            { flex-direction: column; align-items: center; }
  .impact-container { flex-direction: column; gap: 40px; }
  .impact-divider   { width: 80px; height: 1px; }
}

@media (max-width: 480px) {
  .hero-title  { font-size: 26px; }
  .section h2  { font-size: 26px; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 260px; }
  .btn { text-align: center; }
}