/* Root variables */
:root {
  --primary: #ff6b00;
  --primary-dark: #e65d00;
  --navy: #0f2238;
  --accent: #ffd15c;
  --light: #f6f7fb;
  --text: #2b2e3a;
  --topbar-h: 40px;
}

/* Layout helpers */
.py-6 {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.bg-cover {
  background-size: cover;
  background-position: center;
}

.rounded-4 {
  border-radius: 1rem;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  background: var(--light);
  color: var(--text);
  padding-top: calc(var(--topbar-h) + 100px);
}

.navbar-brand img {
  width: 80px;
  height: 80px;
}

@media (max-width: 576px) {
  .navbar-brand img {
    width: 72px;
    height: 72px;
  }
}

/* Navbar */
#mainNav.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#mainNav.scrolled {
  background-color: #ffffffee;
  backdrop-filter: saturate(1.8) blur(8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

#mainNav.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#mainNav.scrolled {
  background-color: #ffffffee;
  backdrop-filter: saturate(1.8) blur(8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

.navbar.fixed-top {
  top: var(--topbar-h);
  z-index: 1031;
}

.navbar-brand {
  color: var(--navy);
}

.navbar-light .navbar-nav .nav-link {
  color: #475569;
  font-weight: 600;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Hero */
.hero-slide {
  min-height: 100vh;
  position: relative;
}

.hero-slide {
  min-height: 100svh;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25));
}

.hero-slide .container {
  position: relative;
  z-index: 2;
  padding-top: 2.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.hero-slide {
  background-position: center center;
}

.swiper-button-prev,
.swiper-button-next {
  color: #fff;
}

.swiper-pagination-bullet {
  background: #fff;
  opacity: .6;
}

.swiper-pagination-bullet-active {
  background: var(--primary);
  opacity: 1;
}

.heroSwiper,
.testimonialsSwiper {
  overflow: hidden;
}

.heroSwiper {
  min-height: 100vh;
}

.heroSwiper:not(.swiper-initialized) .swiper-slide {
  display: none;
}

.heroSwiper:not(.swiper-initialized) .swiper-slide:first-child {
  display: block;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1031;
  background: linear-gradient(90deg, #0f2238, #1a2f4e);
  padding: .35rem 0;
}

.topbar .container {
  font-weight: 600;
  gap: .5rem;
}

.topbar .small {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.topbar .small a {
  color: #fff;
}

.topbar .small span {
  white-space: nowrap;
}

@media (max-width: 576px) {
  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  body {
    padding-top: calc(var(--topbar-h) + 110px);
  }

  .topbar .small {
    font-size: .85rem;
  }

  .hero-slide {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #0f2238;
  }

  .hero-slide .container {
    padding-top: 3.5rem;
  }
}

@media (max-width: 768px) {
  .hero-slide {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #0f2238;
  }
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 80% at 50% 0%, rgba(255, 255, 255, .08), transparent);
}

/* About */
.about-logo-orb {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(120px 120px at 50% 40%, rgba(255, 107, 0, .35), transparent), linear-gradient(135deg, #ff6b00, #ff3e7f);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 50px rgba(15, 34, 56, .18);
}

.about-logo {
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .15));
}

.about-card {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(1.2) blur(6px);
  border: 1px solid rgba(15, 34, 56, .08);
  border-radius: 1rem;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 20px 40px rgba(15, 34, 56, .08);
}

.about-badges .badge {
  margin-right: .5rem;
  margin-bottom: .5rem;
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
}

@media (max-width: 576px) {
  .about-logo-orb {
    width: 160px;
    height: 160px;
    margin-bottom: 1rem;
  }
}

/* Programs */
.program-card {
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.icon-circle {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.25rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

.card-3d {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(15, 34, 56, .12);
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease;
  padding: 1.25rem;
}

.card-3d:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 30px 60px rgba(15, 34, 56, .18);
}

.card-3d .badge {
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
}

.profile-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(15, 34, 56, .12);
  overflow: hidden;
}

.profile-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.profile-row:nth-child(odd) {
  background: #f8fafc;
}

.profile-key {
  font-weight: 700;
  color: #334155;
}

.profile-val {
  color: #0f172a;
}

.profile-val a {
  color: var(--primary);
  text-decoration: none;
}

.profile-val a:hover {
  text-decoration: underline;
}

@media (max-width: 576px) {
  .profile-row {
    grid-template-columns: 1fr;
    row-gap: .25rem;
  }
}

/* Masonry grid */
.masonry-grid {
  column-count: 3;
  column-gap: 1rem;
}

@media (max-width: 992px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .masonry-grid {
    column-count: 1;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.masonry-item img {
  transition: transform .4s ease;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.masonry-item:hover img {
  transform: scale(1.06);
}

.masonry-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .2));
  opacity: 0;
  transition: opacity .3s ease;
}

.masonry-item:hover::after {
  opacity: 1;
}

/* Fields grid */
.field-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 34, 56, .12);
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease;
}

.field-card:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 30px 60px rgba(15, 34, 56, .18);
}

.field-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.field-card:hover .field-img {
  transform: scale(1.06);
}

.field-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .45));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.field-title {
  color: #fff;
  font-weight: 700;
  margin: 0;
}

@media (max-width: 576px) {
  .field-img {
    height: 200px;
  }
}

/* Card images */
.card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

@media (max-width: 576px) {
  .card-img-top {
    height: 180px;
  }
}

/* Contact */
.contact-section {
  position: relative;
  background: linear-gradient(135deg, #0f2238, #1a2f4e);
  color: #fff;
  overflow: hidden;
}

.contact-shape-1,
.contact-shape-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .25;
  pointer-events: none;
}

.contact-shape-1 {
  width: 260px;
  height: 260px;
  background: radial-gradient(120px 120px at 50% 50%, var(--accent), transparent);
  top: -60px;
  left: -60px;
}

.contact-shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(120px 120px at 50% 50%, #ff3e7f, transparent);
  bottom: -80px;
  right: -80px;
}

.contact-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .22);
}

.contact-title {
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .5rem;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
  color: var(--accent);
}

.contact-section .form-control {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
}

.contact-section .form-control::placeholder {
  color: rgba(255, 255, 255, .7);
}

.contact-section .btn-primary {
  box-shadow: 0 10px 24px rgba(255, 107, 0, .35);
}

/* Contact page light theme overrides */
.contact-page-light {
  background: #fff;
  color: var(--text);
}

.contact-page-light .contact-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: var(--text);
}

.contact-page-light .contact-title {
  color: var(--navy);
}

.contact-page-light .contact-icon {
  background: rgba(15, 34, 56, .06);
  color: var(--primary);
}

.contact-page-light .form-control {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: var(--text);
}

.contact-page-light .form-control::placeholder {
  color: #64748b;
}

.contact-page-light .btn-primary {
  box-shadow: 0 10px 24px rgba(255, 107, 0, .25);
}

.map-embed iframe {
  border-radius: .75rem;
}

.contact-page-light .contact-list div,
.contact-page-light .contact-list a {
  color: var(--navy);
  font-weight: 700;
}

.contact-page-light .contact-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Donate layout */
.donate-gradient {
  background: linear-gradient(135deg, #ff6b00, #ff3e7f);
}

.donate-gradient .card-3d {
  color: var(--text);
}

.donate-gradient .card-3d h5,
.donate-gradient .card-3d h6 {
  color: var(--navy) !important;
}

.donate-grid .donate-qr-img {
  max-width: 220px;
  margin: 0 auto;
}

.donate-bank-card {
  padding: 1.1rem;
}

.donate-bank-card ul {
  font-size: 1.05rem;
}

.donate-bank-card h5 {
  font-size: 1.25rem;
}

/* Director message */
.director-section {
  position: relative;
  background: linear-gradient(135deg, #0f2238, #ff6b00);
  color: #fff;
  overflow: hidden;
}

.director-shape-1,
.director-shape-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .25;
  pointer-events: none;
}

.director-shape-1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(120px 120px at 50% 50%, var(--accent), transparent);
  top: -80px;
  left: -80px;
}

.director-shape-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(120px 120px at 50% 50%, #ff3e7f, transparent);
  bottom: -90px;
  right: -90px;
}

.director-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}

.director-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .22);
}

.director-avatar {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .25);
  border: 3px solid rgba(255, 255, 255, .25);
}

.director-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.director-title {
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent);
}

.director-quote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .9);
}

.director-name {
  font-weight: 700;
  color: #fff;
}

.director-name:hover {
  color: var(--accent);
  text-shadow: 0 4px 18px rgba(255, 107, 0, .55);
}

@media (max-width: 576px) {
  .director-avatar {
    width: 190px;
    height: 190px;
  }
}

/* Donate gradient */
.donate-gradient {
  background: linear-gradient(135deg, #ff6b00, #ff3e7f);
}

.donate-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.donate-chip {
  padding: .5rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  border: 2px solid rgba(0, 0, 0, .06);
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.donate-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.donate-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(255, 107, 0, .35);
}

.volunteer-section {
  background: var(--navy);
  color: #fff;
  border-radius: 1rem;
  padding: 2rem;
}

.volunteer-section .btn {
  margin-right: .5rem;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
}

.avatar-circle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
}

/* Counters */
.counter {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}

/* Footer */
footer .form-control {
  background-color: rgba(255, 255, 255, .08);
  color: #fff;
}

footer .form-control::placeholder {
  color: rgba(255, 255, 255, .6);
}

footer.footer-modern {
  position: relative;
  background: #0f2238;
}

.footer-contact-strip {
  position: relative;
  z-index: 2;
  transform: translateY(-50%);
}

.contact-pill {
  background: var(--primary);
  color: #fff;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  box-shadow: 0 14px 36px rgba(255, 107, 0, .35);
}

.contact-pill .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 1.25rem;
}

.contact-pill .pill-title {
  font-weight: 700;
  font-size: .875rem;
  opacity: .95;
}

.contact-pill .pill-text {
  font-weight: 600;
  font-size: .95rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-brand .brand-icon {
  color: var(--accent);
  font-size: 1.25rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: .5rem;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: all .2s ease;
  border: 1px solid rgba(255, 255, 255, .1);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-2px);
}

.footer-heading {
  position: relative;
  padding-bottom: .5rem;
  margin-bottom: .75rem;
  font-weight: 700;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
}

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

.footer-nav li {
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
}

.footer-nav li::before {
  content: \"\\00BB\";
  color: var(--accent);
  margin-right: .5rem;
  font-weight: 700;
}

.footer-nav a {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

.recent-post-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .6rem;
  color: rgba(255, 255, 255, .85);
}

.recent-date {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: .5rem;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-weight: 700;
}

.newsletter-form .input-group .btn {
  box-shadow: 0 10px 24px rgba(255, 107, 0, .35);
}

.footer-divider {
  border-color: rgba(255, 255, 255, .12) !important;
}

.footer-bottom {
  background: var(--primary);
  color: #fff;
}

.footer-bottom a {
  color: #fff;
  opacity: .9;
  text-decoration: none;
}

.footer-bottom a:hover {
  opacity: 1;
}

/* Gallery Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 1rem;
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox .btn-close-lightbox {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: .5rem;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 1.25rem;
}

.galleryLightboxSwiper {
  width: 100%;
  max-width: 1100px;
}

.galleryLightboxSwiper .swiper-slide {
  display: grid;
  place-items: center;
}

.galleryLightboxSwiper img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.gallery-lightbox .swiper-button-prev,
.gallery-lightbox .swiper-button-next {
  color: #fff;
}

.gallery-lightbox .swiper-pagination-bullet {
  background: rgba(255, 255, 255, .9);
}

/* Program modal */
.program-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 1rem;
}

.program-lightbox.open {
  display: flex;
}

.program-modal-card {
  width: 95vw;
  max-width: 1100px;
  background: #fff;
  color: var(--text);
  border-radius: 1rem;
  padding: 1rem 1rem 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  border: 1px solid rgba(0, 0, 0, .06);
}

.program-modal-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .25rem;
}

.program-modal-desc {
  color: #475569;
  margin-bottom: .75rem;
}

.programSwiper .swiper-slide {
  display: grid;
  place-items: center;
}

.programSwiper img {
  max-width: 92vw;
  max-height: 70vh;
  object-fit: contain;
  border-radius: .75rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.program-lightbox .btn-close-lightbox {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: .5rem;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 1.25rem;
}

.program-lightbox .swiper-button-prev,
.program-lightbox .swiper-button-next {
  color: var(--navy);
}

.program-lightbox .swiper-pagination-bullet {
  background: var(--primary);
}

/* About NGO gallery */
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.about-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 34, 56, .12);
}

@media (max-width: 576px) {
  .about-gallery img {
    height: 160px;
  }
}

/* Document Lightbox */
.doc-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 1rem;
}

.doc-lightbox.open {
  display: flex;
}

.doc-lightbox .btn-close-lightbox {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: .5rem;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 1.25rem;
}

.doc-frame {
  width: 92vw;
  max-width: 1100px;
  height: 80vh;
  background: #0f2238;
  border-radius: .75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
}

.doc-frame iframe,
.doc-frame object,
.doc-frame embed {
  width: 100%;
  height: 100%;
  background: #fff;
  border: 0;
}

/* Certificate cards */
.certificate-card {
  padding: 1rem;
}

.certificate-card h6 {
  font-weight: 700;
  color: #0f172a;
}

.certificate-card .icon-circle {
  background: rgba(255, 107, 0, .12);
  color: var(--primary);
}

/* Animated hamburger */
.navbar-toggler {
  border: none;
  padding: .35rem .5rem;
  outline: none;
}

.navbar-toggler-icon {
  width: 26px;
  height: 2px;
  background: #475569;
  display: block;
  position: relative;
  transition: transform .3s ease, background-color .3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: #475569;
  transition: transform .3s ease, top .3s ease, bottom .3s ease;
}

.navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler-icon::after {
  bottom: -8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-light .navbar-toggler {
  border: none;
}

.navbar-light .navbar-toggler-icon,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  background: var(--primary);
}

/* Mobile collapse panel animation */
@media (max-width: 992px) {
  #mainNav .navbar-collapse {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: saturate(1.8) blur(10px);
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: .75rem;
    padding: .5rem;
    margin-top: .5rem;
    transform-origin: top right;
    transition: transform .25s ease, opacity .25s ease;
    opacity: 0;
    transform: scale(.96);
  }

  #mainNav .navbar-collapse.show {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 576px) {
  .py-6 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-slide {
    min-height: 85vh;
  }

  .hero-slide .display-4 {
    font-size: 2rem;
  }

  .hero-slide .lead {
    font-size: 1rem;
  }

  .hero-slide .btn {
    padding: .45rem .9rem;
    font-size: .9rem;
  }

  .about-logo-orb {
    width: 140px;
    height: 140px;
    margin-bottom: 1rem;
  }

  .card-img-top {
    height: 160px;
  }

  .field-img {
    height: 180px;
  }

  .masonry-grid {
    column-count: 1;
    column-gap: .75rem;
  }

  .masonry-item {
    margin-bottom: .75rem;
  }

  .contact-card {
    padding: 1rem;
  }

  .footer-contact-strip {
    transform: none;
    margin-top: -1rem;
  }

  .galleryLightboxSwiper img {
    max-width: 94vw;
    max-height: 72vh;
  }

  .gallery-lightbox .btn-close-lightbox {
    width: 36px;
    height: 36px;
    top: .75rem;
    right: .75rem;
  }
}

@media (max-width: 768px) {
  .footer-brand {
    align-items: flex-start;
  }

  .footer-heading {
    margin-bottom: .5rem;
  }
}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.auth-page {
  background: #070410;
  color: rgba(255, 255, 255, .9);
  padding-top: 0 !important;
}

.auth-page .topbar,
.auth-page #mainNav {
  display: none !important;
}

.auth-wrap {
  position: relative;
  overflow: hidden;
}

.auth-page .auth-wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 2.25rem 0;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.auth-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: brightness(.62) saturate(1.2) contrast(1.08);
}

.auth-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 18% 18%, rgba(168, 85, 247, .35), transparent 62%),
    radial-gradient(800px 520px at 78% 70%, rgba(99, 102, 241, .25), transparent 62%),
    linear-gradient(180deg, rgba(6, 3, 16, .58), rgba(6, 3, 16, .84));
}

.auth-page .auth-hero {
  position: relative;
  border-radius: 1.6rem;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
  transform-style: preserve-3d;
}

.auth-hero-inner {
  position: relative;
  z-index: 2;
  padding: 2.1rem;
  color: rgba(255, 255, 255, .92);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-logo-orb {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(140px 140px at 40% 35%, rgba(255, 255, 255, .16), transparent 62%),
    radial-gradient(160px 160px at 60% 72%, rgba(168, 85, 247, .22), transparent 62%),
    linear-gradient(135deg, rgba(99, 102, 241, .95), rgba(168, 85, 247, .95));
  box-shadow: 0 26px 70px rgba(0, 0, 0, .5);
  animation: authFloat 6.2s ease-in-out infinite;
}

.auth-hero-glow {
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(420px 320px at 24% 18%, rgba(168, 85, 247, .26), transparent 62%),
    radial-gradient(420px 320px at 72% 86%, rgba(99, 102, 241, .18), transparent 62%);
  filter: blur(26px);
  opacity: .95;
  pointer-events: none;
  animation: authGlow 8.5s ease-in-out infinite;
}

.auth-page .auth-card {
  position: relative;
  background: rgba(22, 10, 40, .46);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 1.6rem;
  padding: 1.7rem;
  box-shadow: 0 32px 110px rgba(0, 0, 0, .5);
  backdrop-filter: blur(18px) saturate(160%);
  overflow: hidden;
  transform-style: preserve-3d;
}

.auth-page .auth-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 210deg, rgba(168, 85, 247, .42), rgba(99, 102, 241, .32), rgba(236, 72, 153, .22), rgba(168, 85, 247, .42));
  filter: blur(18px);
  opacity: .55;
  pointer-events: none;
}

.auth-page .auth-card>* {
  position: relative;
  z-index: 2;
}

.auth-tilt {
  will-change: transform;
  transition: transform .25s ease;
}

.auth-tilt::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(420px 320px at var(--glare-x, 30%) var(--glare-y, 20%), rgba(255, 255, 255, .18), transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 45%, rgba(255, 255, 255, .06));
  opacity: .35;
  pointer-events: none;
  transform: translateZ(40px);
  transition: opacity .2s ease;
  mix-blend-mode: screen;
}

.auth-tilt.tilt-active::after {
  opacity: .6;
}

.auth-3d-layer {
  transform: translateZ(var(--z, 16px));
}

.auth-page .auth-card .alert {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .92);
}

.auth-page .auth-card .alert-success {
  box-shadow: 0 18px 60px rgba(34, 197, 94, .16);
}

.auth-page .auth-card .alert-danger {
  box-shadow: 0 18px 60px rgba(239, 68, 68, .14);
}

.auth-page .auth-card .form-control:focus,
.auth-page .auth-card .form-select:focus {
  transform: translateZ(8px);
}

.auth-page .auth-card .form-control,
.auth-page .auth-card .form-select,
.auth-page .auth-card .input-group-text,
.auth-page .auth-card .btn {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.auth-page .btn-primary:active {
  transform: translateY(0px) scale(.99);
}

@media (prefers-reduced-motion: reduce) {
  .auth-tilt {
    transition: none;
  }

  .auth-logo-orb,
  .auth-hero-glow,
  .auth-shape-1,
  .auth-shape-2,
  .auth-shape-3 {
    animation: none;
  }
}

.auth-page .auth-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .86);
  font-weight: 700;
  font-size: .85rem;
}

.auth-page .auth-tabs .nav-link {
  font-weight: 800;
  border-radius: 999px;
  padding: .55rem 1rem;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}

.auth-page .auth-tabs .nav-link.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, .95), rgba(168, 85, 247, .95));
  color: #fff;
  box-shadow: 0 16px 46px rgba(168, 85, 247, .32);
  border-color: rgba(255, 255, 255, .16);
}

.auth-page .text-muted {
  color: rgba(255, 255, 255, .68) !important;
}

.auth-page .form-label {
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
}

.auth-page .auth-card .form-control,
.auth-page .auth-card .form-select,
.auth-page .auth-card .input-group-text {
  border-radius: 1rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .92);
}

.auth-page .auth-card .form-control::placeholder {
  color: rgba(255, 255, 255, .55);
}

.auth-page .auth-card .form-control:focus,
.auth-page .auth-card .form-select:focus {
  border-color: rgba(168, 85, 247, .65);
  box-shadow: 0 0 0 .25rem rgba(168, 85, 247, .18);
}

.auth-page .auth-card .input-group .btn {
  border-radius: 1rem;
}

.auth-page .auth-strength {
  height: 10px;
  background: rgba(255, 255, 255, .09);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
}

.auth-page .auth-strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
  transition: width .25s ease;
}

.auth-page .auth-note {
  border-radius: 1rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8);
}

.auth-page .btn-primary {
  background: linear-gradient(135deg, rgba(99, 102, 241, 1), rgba(168, 85, 247, 1));
  border: 0;
  box-shadow: 0 18px 55px rgba(168, 85, 247, .34);
}

.auth-page .btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.auth-page .btn-outline-primary {
  color: rgba(255, 255, 255, .86);
  border-color: rgba(255, 255, 255, .22);
}

.auth-page .btn-outline-primary:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .26);
}

.auth-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: .32;
  pointer-events: none;
  z-index: 1;
}

.auth-shape-1 {
  width: 340px;
  height: 340px;
  background: radial-gradient(180px 180px at 50% 50%, rgba(168, 85, 247, 1), transparent);
  top: -140px;
  right: -120px;
  animation: authPulse 7.8s ease-in-out infinite;
}

.auth-shape-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(200px 200px at 50% 50%, rgba(99, 102, 241, 1), transparent);
  bottom: -170px;
  left: -170px;
  animation: authPulse 9.2s ease-in-out infinite;
}

.auth-shape-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(160px 160px at 50% 50%, rgba(236, 72, 153, 1), transparent);
  top: 42%;
  left: 44%;
  animation: authPulse 10.8s ease-in-out infinite;
}

@keyframes authFloat {

  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }

  50% {
    transform: translate3d(0, -12px, 0) rotate(2deg);
  }
}

@keyframes authPulse {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: .22;
  }

  50% {
    transform: translate3d(0, 0, 0) scale(1.09);
    opacity: .36;
  }
}

@keyframes authGlow {

  0%,
  100% {
    opacity: .85;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.04);
  }
}

@media (max-width: 992px) {
  .auth-hero-inner {
    padding: 1.6rem;
  }

  .auth-logo-orb {
    width: 180px;
    height: 180px;
  }
}

/* =============================================
   Auth Buttons in Navbar
   ============================================= */
.btn-auth-login,
.btn-auth-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Login Button - Outline Style */
.btn-auth-login {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
}

.btn-auth-login:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.35);
}

.btn-auth-login:active {
  transform: translateY(0);
}

/* Register Button - Gradient Style */
.btn-auth-register {
  background: linear-gradient(135deg, var(--primary), #ff3e7f);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-auth-register::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff3e7f, var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-auth-register span,
.btn-auth-register i {
  position: relative;
  z-index: 1;
}

.btn-auth-register:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.45);
  color: #fff;
}

.btn-auth-register:hover::before {
  opacity: 1;
}

.btn-auth-register:active {
  transform: translateY(0) scale(0.98);
}

/* Glow animation on hover */
.btn-auth-register::after {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--primary), #ff3e7f, var(--primary));
  border-radius: 50px;
  opacity: 0;
  z-index: -1;
  filter: blur(15px);
  transition: opacity 0.3s ease;
}

.btn-auth-register:hover::after {
  opacity: 0.6;
  animation: btnGlow 1.5s ease-in-out infinite;
}

@keyframes btnGlow {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* Icon styling */
.btn-auth-login i,
.btn-auth-register i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.btn-auth-login:hover i,
.btn-auth-register:hover i {
  transform: translateX(2px);
}

/* Mobile responsive */
@media (max-width: 991.98px) {

  .btn-auth-login,
  .btn-auth-register {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .btn-auth-login {
    margin-bottom: 0.5rem;
  }
}

/* Navbar scrolled state - adjust button colors */
#mainNav.scrolled .btn-auth-login {
  border-color: var(--primary);
  color: var(--primary);
}

#mainNav.scrolled .btn-auth-login:hover {
  background: var(--primary);
  color: #fff;
}