/* ============================================
   ABIDIN CARE FOUNDATION - Main Stylesheet
   ============================================ */

:root {
  --primary: #2323C4;
  --primary-dark: #1a1a99;
  --primary-light: #eeeeff;
  --accent: #E84E1A;
  --accent-dark: #c43e12;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f4;
  --gray-200: #e9ecef;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --radius: 1rem;
  --radius-sm: .5rem;
  --radius-xl: 1.5rem;
  --transition: .3s ease;
}

/* ---- Base ---- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  margin: 0;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

.section-py { padding: 5rem 0; }
.section-py-sm { padding: 3rem 0; }

/* ---- Navbar ---- */
.navbar-brand img { height: 48px; width: auto; }
.navbar-brand .brand-text { font-family: 'Outfit', sans-serif; }
.navbar-brand .brand-name { font-size: 1.1rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.navbar-brand .brand-sub  { font-size: .65rem; font-weight: 600; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; }

.navbar {
  padding: 1rem 0;
  transition: all var(--transition);
  background: var(--white) !important;
  box-shadow: none;
}
.navbar.scrolled { box-shadow: var(--shadow); padding: .6rem 0; }

.navbar-nav .nav-link {
  font-weight: 600;
  font-size: .9rem;
  color: var(--gray-700) !important;
  padding: .4rem .85rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary) !important; background: var(--primary-light); }

.btn-nav-outline {
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  border-radius: 50px !important;
  padding: .45rem 1.3rem !important;
}
.btn-nav-outline:hover { background: var(--primary); color: var(--white) !important; }

.btn-nav-solid {
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: .45rem 1.3rem !important;
  border: 2px solid var(--accent);
}
.btn-nav-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---- Buttons ---- */
.btn-primary-custom {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  border-radius: 50px;
  padding: .75rem 2rem;
  font-weight: 700;
  font-size: .95rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary-custom:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,78,26,.3); }

.btn-outline-custom {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 50px;
  padding: .75rem 2rem;
  font-weight: 700;
  font-size: .95rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline-custom:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

.btn-blue-custom {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: .75rem 2rem;
  font-weight: 700;
  font-size: .95rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  text-decoration: none;
}
.btn-blue-custom:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }

/* ---- Section Labels ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--accent);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-label::before,
.section-label::after { content: ''; display: block; width: 2rem; height: 2px; background: var(--accent); }
.section-label.no-before::before { display: none; }

/* ---- Hero ---- */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a0a1a;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,26,.85) 40%, rgba(35,35,196,.25) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 80px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: .4rem 1.1rem;
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.hero-title { font-size: clamp(2.8rem,6vw,5rem); color: var(--white); margin-bottom: 1.5rem; }
.hero-title .accent { color: var(--accent); }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 2.5rem; }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: rgba(255,255,255,.6);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero-scroll .scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,.2);
  margin: .5rem auto 0;
  position: relative;
  overflow: hidden;
}
.hero-scroll .scroll-line::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: rgba(255,255,255,.7);
  animation: scrollDown 1.5s linear infinite;
}
@keyframes scrollDown { to { top: 150%; } }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ---- Stats Strip ---- */
.stats-strip { background: var(--primary); padding: 4rem 0; }
.stat-item { text-align: center; padding: 0 1rem; }
.stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,.15); }
.stat-number { font-family: 'Outfit', sans-serif; font-size: 3.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .1em; margin-top: .4rem; }

/* ---- Page Header ---- */
.page-header {
  background: var(--primary);
  padding: 7rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .15;
}
.page-header h1 { color: var(--white); font-size: clamp(2rem,4vw,3.5rem); }
.page-header p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 600px; }

/* ---- Cards ---- */
.card-custom {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.card-custom:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-img-wrap { overflow: hidden; }
.card-img-wrap img { width: 100%; height: 240px; object-fit: cover; transition: transform .7s ease; }
.card-custom:hover .card-img-wrap img { transform: scale(1.05); }
.card-body-custom { padding: 1.75rem; }
.card-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .25rem .75rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}
.card-tag-blue { background: var(--primary); }

/* ---- Programs ---- */
.program-card { height: 100%; }
.program-img-wrap { position: relative; overflow: hidden; }
.program-img-wrap img { width: 100%; height: 220px; object-fit: cover; transition: transform .7s ease; }
.program-card:hover .program-img-wrap img { transform: scale(1.05); }
.program-stat-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--accent);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .8rem;
  border-radius: 50px;
}

/* ---- Testimonials ---- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  height: 100%;
}
.testimonial-stars { color: #f59e0b; font-size: 1rem; }
.testimonial-quote { font-size: 2.5rem; line-height: 1; color: var(--accent); font-family: Georgia, serif; }

/* ---- Values ---- */
.value-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.value-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.value-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.value-icon svg { width: 32px; height: 32px; stroke: var(--primary); }

/* ---- CTA Section ---- */
.cta-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(232,78,26,.15);
}

/* ---- Gallery ---- */
.gallery-filter .btn { border-radius: 50px; font-weight: 600; font-size: .85rem; margin: .2rem; }
.gallery-filter .btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.gallery-item { overflow: hidden; border-radius: var(--radius); cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(35,35,196,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay svg { width: 40px; height: 40px; stroke: var(--white); }

/* Lightbox */
.lightbox-modal .modal-dialog { max-width: 900px; }
.lightbox-modal .modal-content { background: #000; border: none; border-radius: var(--radius); }
.lightbox-modal img { width: 100%; max-height: 80vh; object-fit: contain; }

/* ---- Forms ---- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  border: 1px solid var(--gray-100);
}
.form-control-custom {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .95rem;
  transition: border-color var(--transition);
  width: 100%;
  background: var(--gray-50);
}
.form-control-custom:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(35,35,196,.1); background: var(--white); }
.form-label-custom { font-weight: 700; font-size: .85rem; color: var(--gray-800); margin-bottom: .4rem; display: block; }
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: .4rem 1rem;
  border-radius: 50px;
  border: 2px solid var(--gray-200);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  color: var(--gray-700);
  user-select: none;
}
.skill-tag.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.skill-tag:hover { border-color: var(--primary); }

/* ---- Contact Info Cards ---- */
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.info-card svg { width: 32px; height: 32px; stroke: var(--primary); }

/* ---- Donate ---- */
.donate-amounts { display: flex; flex-wrap: wrap; gap: .75rem; }
.amount-btn {
  padding: .75rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-800);
}
.amount-btn:hover,
.amount-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ---- Events ---- */
.event-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.event-date-badge {
  background: var(--accent);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-block;
  line-height: 1.2;
  text-align: center;
}
.event-date-badge span { display: block; font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }

/* ---- Newsletter ---- */
.newsletter-section { background: var(--gray-50); padding: 4rem 0; border-top: 1px solid var(--gray-100); }
.newsletter-form { display: flex; gap: .5rem; max-width: 480px; margin: 0 auto; }
.newsletter-form input { flex: 1; border: 2px solid var(--gray-200); border-radius: 50px; padding: .7rem 1.25rem; font-size: .95rem; outline: none; transition: border-color var(--transition); }
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form button { white-space: nowrap; }

/* ---- Footer ---- */
footer { background: #0d0e2b; color: rgba(255,255,255,.7); padding: 4rem 0 0; }
footer h5 { color: var(--white); font-weight: 700; margin-bottom: 1.25rem; font-size: 1rem; }
footer a { color: rgba(255,255,255,.65); transition: color var(--transition); font-size: .9rem; }
footer a:hover { color: var(--accent); }
.footer-brand img { height: 52px; margin-bottom: 1rem; filter: brightness(1.1); }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
  margin-right: .4rem;
}
.social-links a:hover { background: var(--accent); color: var(--white); }
.footer-links li { margin-bottom: .5rem; }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 2.5rem 0 0; }
.footer-bottom { padding: 1.25rem 0; font-size: .85rem; }

/* ---- Alerts ---- */
.alert-success-custom {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.alert-success-custom svg { width: 36px; height: 36px; stroke: #059669; flex-shrink: 0; }

/* ---- Utility ---- */
.text-accent { color: var(--accent) !important; }
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.bg-accent-custom { background: var(--accent) !important; }
.bg-light-custom { background: var(--gray-50) !important; }
.divider-accent { width: 3rem; height: 3px; background: var(--accent); border-radius: 2px; }
.rounded-custom { border-radius: var(--radius-xl) !important; }
.objective-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.objective-item svg { width: 22px; height: 22px; stroke: var(--accent); flex-shrink: 0; margin-top: 2px; }
.map-embed { width: 100%; height: 280px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .stat-item + .stat-item { border-left: none; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.5rem; margin-top: 1.5rem; }
  .stat-number { font-size: 2.5rem; }
  .hero-title { font-size: 2.4rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form button { border-radius: 50px; }
}

/* ---- AOS overrides ---- */
[data-aos] { transition-duration: 600ms !important; }
