/* ============================================================
   Sur Nirman Educational & Cultural Society — modern static site
   (content & color palette preserved; layout/styling refreshed)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --red: #f81f01;
  --pink: #ee076e;
  --accent: #f9004d;
  --grad: linear-gradient(135deg, #f81f01 0%, #ee076e 100%);
  --grad-soft: linear-gradient(135deg, rgba(248,31,1,.12), rgba(238,7,110,.12));
  --ink: #101014;
  --ink-2: #1d1d24;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --card: #f6f7fb;
  --text: #1d1d24;
  --muted: #6b6f7a;
  --heading: #16161d;
  --border: #edeef3;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 10px rgba(16,16,20,.06);
  --shadow-md: 0 16px 40px rgba(16,16,20,.10);
  --shadow-lg: 0 30px 70px rgba(16,16,20,.16);
  --shadow-glow: 0 12px 32px rgba(248,31,1,.30);
  --ease: cubic-bezier(.22,.61,.36,1);
}

[data-theme="dark"] {
  --surface: #101014;
  --surface-2: #14141a;
  --card: #17171d;
  --text: #c6c9d8;
  --muted: #9094a4;
  --heading: #ffffff;
  --border: #24242d;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.35);
  --shadow-md: 0 16px 40px rgba(0,0,0,.5);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.6);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.7; font-size: 16px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { color: var(--heading); line-height: 1.18; font-weight: 700; letter-spacing: -.02em; }
::selection { background: rgba(248,31,1,.18); color: var(--heading); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.icon-svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.accent, .gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 34px; border-radius: 50px; font-weight: 600; font-size: 15px; letter-spacing: .2px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s, border-color .35s;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap; overflow: hidden; line-height: 1;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(248,31,1,.42); }
.btn-outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.btn-white { background: #fff; color: #16161d; }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.28); }
/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 22px 0; transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
  background: linear-gradient(to bottom, rgba(8,8,12,.5), rgba(8,8,12,0));
}
.header.scrolled, .header.solid {
  padding: 12px 0;
  background: rgba(16,16,20,.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 8px 32px rgba(0,0,0,.32);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; }
.logo img { height: 42px; width: auto; transition: height .4s var(--ease); }
.header.scrolled .logo img { height: 36px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav > li { position: relative; }
.nav > li > a { position: relative; color: #fff; font-size: 15px; font-weight: 500; padding: 8px 0; display: inline-block; }
.nav > li > a::after {
  content: ''; position: absolute; left: 0; bottom: 2px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width .35s var(--ease);
}
.nav > li > a:hover::after, .nav > li > a.active::after { width: 100%; }
.nav > li > a:hover, .nav > li > a.active { color: #fff; }
.nav .has-dropdown > a { padding-right: 16px; }
.nav .has-dropdown > a::before {
  content: ''; position: absolute; right: 0; top: 50%; margin-top: -2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #fff;
  transition: transform .3s var(--ease);
}
.nav .has-dropdown:hover > a::before { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: -18px; background: var(--surface); min-width: 218px;
  border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transform-origin: top left;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; padding: 8px; z-index: 20;
}
.nav li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown a { color: var(--text); display: block; padding: 10px 14px; font-size: 14px; font-weight: 500; border-radius: 9px; transition: background .25s, color .25s, padding-left .25s var(--ease); }
.dropdown a:hover { color: var(--accent); background: var(--grad-soft); padding-left: 18px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .3s, transform .3s var(--ease);
}
.theme-toggle:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.theme-toggle img { width: 17px; height: 17px; }
.theme-toggle .icon-dark { display: none; filter: invert(1); }
[data-theme="dark"] .theme-toggle .icon-light { display: none; }
[data-theme="dark"] .theme-toggle .icon-dark { display: inline-block; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: 0; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: heroFade 14s infinite; }
.hero-slide.slide-1 { background-image: url('../images/hero-1.jpg'); }
.hero-slide.slide-2 { background-image: url('../images/hero-2.jpg'); animation-delay: 7s; }
@keyframes heroFade { 0% { opacity: 0; } 6% { opacity: 1; } 50% { opacity: 1; } 56% { opacity: 0; } 100% { opacity: 0; } }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(8,8,12,.82) 0%, rgba(8,8,12,.45) 55%, rgba(8,8,12,.15) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 680px; padding-top: 60px; }
.hero-title { font-size: clamp(44px, 7vw, 78px); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.04; }
.hero-subtitle { font-size: clamp(20px, 3vw, 32px); font-weight: 600; color: rgba(255,255,255,.92); letter-spacing: .5px; margin: 14px 0 34px; }
.hero-subtitle::before { content: ''; display: block; width: 72px; height: 4px; border-radius: 4px; background: var(--grad); margin-bottom: 20px; }
.hero-dots { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); transition: background .3s; }
.hero-dots span:first-child { background: #fff; width: 26px; border-radius: 6px; }
.scroll-indicator {
  position: absolute; right: 40px; bottom: 30px; z-index: 3; width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.55); border-radius: 20px; display: flex; justify-content: center; padding-top: 7px;
}
.scroll-indicator span { width: 4px; height: 9px; border-radius: 4px; background: #fff; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
/* ---------- Section headings ---------- */
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head.center .eyebrow::after { content: ''; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 16.5px; }
.section-head .btn { margin-top: 12px; }
.muted { color: var(--muted); }
.lead { font-size: 17px; color: var(--muted); }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.media { position: relative; }
.media::before {
  content: ''; position: absolute; top: -22px; left: -22px; width: 58%; height: 58%;
  background: var(--grad); border-radius: var(--radius); opacity: .14; z-index: 0;
}
.media::after {
  content: ''; position: absolute; bottom: -22px; right: -22px; width: 46%; height: 46%;
  border: 3px solid rgba(248,31,1,.35); border-radius: var(--radius); z-index: 0;
}
.media img { position: relative; z-index: 1; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 18px; }

/* ---------- Tabs ---------- */
.tabs { margin-top: 34px; }
.tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 50px; margin-bottom: 26px; width: max-content; max-width: 100%; }
.tab-btn {
  padding: 10px 22px; border-radius: 50px; border: 0; background: transparent;
  color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; transition: .3s var(--ease); white-space: nowrap;
}
.tab-btn.active { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); }
.tab-pane { display: none; color: var(--muted); font-size: 15.5px; }
.tab-pane.active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Areas of Intervention ---------- */
.area-band { background: var(--ink-2); color: #c6c9d8; position: relative; overflow: hidden; }
.area-band::before {
  content: ''; position: absolute; top: -140px; right: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(248,31,1,.22), transparent 70%); border-radius: 50%;
}
.area-band::after {
  content: ''; position: absolute; bottom: -160px; left: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(238,7,110,.2), transparent 70%); border-radius: 50%;
}
.area-band .container { position: relative; z-index: 2; }
.area-band .split { align-items: start; grid-template-columns: 1fr 2.1fr; }
.area-band h2 { color: #fff; font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; }
.area-band .section-head p { color: #9b9ea8; }
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.area-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-sm); padding: 26px 22px; transition: transform .35s var(--ease), background .35s, border-color .35s, box-shadow .35s;
}
.area-card:hover { background: rgba(255,255,255,.08); transform: translateY(-6px); border-color: rgba(248,31,1,.45); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.area-card .icon-svg {
  width: 52px; height: 52px; padding: 13px; border-radius: 13px; background: var(--grad); color: #fff;
  margin-bottom: 16px; box-shadow: var(--shadow-glow);
}
.area-card p { color: #cfd2dd; font-size: 14.5px; font-weight: 500; }

/* ---------- Info blocks ---------- */
.info-block { display: grid; grid-template-columns: 68px 1fr; gap: 28px; margin-bottom: 56px; align-items: start; }
.info-block:last-child { margin-bottom: 0; }
.info-icon {
  width: 68px; height: 68px; border-radius: 18px; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-glow);
}
.info-icon .icon-svg { width: 32px; height: 32px; }
.info-block h3 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.info-block ul li { position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--muted); font-size: 15.5px; }
.info-block ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.info-block ul li strong { color: var(--heading); font-weight: 600; }
.info-block p.muted { margin-bottom: 12px; }
/* ---------- Service cards (Experience / Programs) ---------- */
.service-intro { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.service-intro h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; }
.service-intro p { color: var(--muted); font-size: 16.5px; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: rgba(248,31,1,.35); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .thumb { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; margin-bottom: 22px; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service-card:hover .thumb img { transform: scale(1.1); }
.service-card .thumb.thumb-icon { display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); }
.service-card .thumb.thumb-icon .icon-svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.contact-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 44px 30px; text-align: center; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.contact-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: rgba(248,31,1,.35); }
.contact-card .contact-icon {
  width: 74px; height: 74px; border-radius: 50%; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; box-shadow: var(--shadow-glow);
  transition: transform .4s var(--ease);
}
.contact-card:hover .contact-icon { transform: scale(1.08) rotate(-4deg); }
.contact-card .contact-icon .icon-svg { width: 32px; height: 32px; }
.contact-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.contact-card p, .contact-card a { color: var(--muted); font-size: 15.5px; transition: color .25s; }
.contact-card a:hover { color: var(--accent); }

/* ---------- Prose (who-we-are / appeal / governance / donate) ---------- */
.prose { max-width: 860px; margin: 0 auto; }
.prose p { margin-bottom: 22px; color: var(--muted); font-size: 16px; }
.prose h3 { font-size: 27px; font-weight: 700; margin: 36px 0 16px; }
.prose ul { margin: 0 0 22px; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 11px; color: var(--muted); font-size: 15.5px; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.prose .figure { margin: 40px 0; position: relative; }
.prose .figure img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.signature { font-weight: 600; color: var(--heading); margin-top: 8px; }
.signature .role { color: var(--muted); font-weight: 500; }

/* ---------- Donate / centered prose ---------- */
.prose-center { text-align: center; max-width: 640px; }
.prose-center .eyebrow { justify-content: center; }
.donate-title { font-size: clamp(32px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; }
.mb-30 { margin-bottom: 30px; }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.logo-404 { height: 52px; width: auto; margin: 0 auto 28px; }

/* ---------- Page banner ---------- */
.banner {
  position: relative; padding: 172px 0 84px; color: #fff; text-align: center; overflow: hidden;
  background: url('../images/bg-image-1.jpg') center/cover no-repeat;
}
.banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8,8,12,.72), rgba(8,8,12,.6)); }
.banner::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--grad); }
.banner .container { position: relative; z-index: 2; }
.banner h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; color: #fff; margin-bottom: 12px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #cfcfd6; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 8px 18px; border-radius: 50px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.breadcrumb a { color: #fff; font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .5; }

/* ---------- Footer ---------- */
.footer {
  position: relative; padding: 24px 0; color: #fff; overflow: hidden;
  background: url('../images/bg-image-1.jpg') center/cover no-repeat;
}
.footer::before { content: ''; position: absolute; inset: 0; background: rgba(10,10,14,.82); }
.footer::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.footer .container { position: relative; z-index: 2; text-align: center; }
.footer-brand { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.footer-copy { color: #c9cbd4; font-size: 13.5px; }
.footer-copy a { color: var(--accent); font-weight: 600; }
/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-slide, .scroll-indicator span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed; inset: 0; background: rgba(12,12,16,.97); z-index: 1100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a { color: #fff; font-size: 21px; font-weight: 600; padding: 12px 0; }
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .close { position: absolute; top: 24px; right: 28px; font-size: 36px; color: #fff; background: none; border: 0; cursor: pointer; line-height: 1; }
.mobile-nav .btn { margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .area-band .split { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
}
@media (max-width: 576px) {
  .hero { min-height: 78vh; }
  .hero-inner { padding-top: 48px; }
  .hero-title { font-size: 42px; }
  .hero-subtitle { font-size: 20px; }
  .area-grid { grid-template-columns: 1fr; }
  .info-block { grid-template-columns: 1fr; gap: 18px; }
  .info-icon { width: 58px; height: 58px; }
  .section { padding: 68px 0; }
  .banner { padding: 140px 0 64px; }
  .scroll-indicator { display: none; }
}




