/* ==================== ROOT VARIABLES ==================== */
:root {
  --gold: #d4af37;
  --dark-gold: #c9a227;
  --brown: #5c4033;
  --dark-brown: #3e2723;
  --light-brown: #8d6e63;
  --cream: #f5f3f0;
  --text-dark: #2c2c2c;
}

/* ==================== GENERAL STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  position: relative;
}

/* ==================== ANIMATIONS & KEYFRAMES ==================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes typing {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes blink {
  0%,
  49% {
    border-right-color: var(--gold);
  }
  50%,
  100% {
    border-right-color: transparent;
  }
}

/* ==================== NAVIGATION ==================== */
.navbar {
  background: linear-gradient(135deg, var(--dark-brown) 0%, var(--brown) 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--gold) !important;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand:hover {
  color: var(--dark-gold) !important;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.logo-img {
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
  animation: slideDown 0.5s ease-out;
  transform-origin: left center;
}

.navbar-brand:hover .logo-img {
  transform: scale(2.75) rotate(5deg);
  filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.3));
}

.hero-logo {
  width: auto;
  margin-bottom: 30px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
  transform-origin: center center;
}

.nav-link {
  position: relative;
  margin: 0 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--gold) !important;
}

.nav-link.active {
  color: var(--gold) !important;
}

.nav-link.active::after {
  width: 100%;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--brown) 0%,
    var(--dark-brown) 50%,
    #2c2c2c 100%
  );
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--gold) 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInDown 1s ease-out;
}

.hero-subtitle-container {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typing-text {
  font-size: 1.8rem;
  color: #ffe082;
  border-right: 3px solid var(--gold);
  padding-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  min-height: 2rem;
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.3s ease-in-out;
  max-width: 100%;
  animation: blink 1s infinite;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .typing-text {
    font-size: 1.2rem;
    white-space: normal;
    overflow: visible;
    border-right: none;
  }

  .hero-subtitle-container {
    min-height: 80px;
  }
}

@media (max-width: 576px) {
  .typing-text {
    font-size: 1rem;
  }

  .hero-subtitle-container {
    min-height: 100px;
  }
}

@keyframes blink {
  0%,
  49% {
    border-right-color: var(--gold);
  }
  50%,
  100% {
    border-right-color: transparent;
  }
}

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  animation: fadeInUp 1.4s ease-out;
}

/* ==================== BUTTONS ==================== */
.btn-gold {
  background-color: var(--gold);
  color: var(--dark-brown);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: fadeInUp 1.6s ease-out;
}

.btn-gold:hover {
  background-color: var(--dark-gold);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-brown {
  background-color: var(--dark-brown);
  color: white;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-brown:hover {
  background-color: var(--brown);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(92, 64, 51, 0.3);
}

/* ==================== SECTION TITLES ==================== */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-brown);
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--dark-gold) 100%);
  border-radius: 2px;
}

/* ==================== ABOUT SECTION ==================== */
#about {
  animation: fadeInUp 0.8s ease-out;
}

.about-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 15px;
}

.leadership-card {
  background: white;
  border-left: 5px solid var(--gold);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: slideInRight 0.8s ease-out;
}

.leadership-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
}

.leadership-card li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1rem;
}

.leadership-card li:last-child {
  border-bottom: none;
}

.text-gold {
  color: var(--gold) !important;
}

/* ==================== FOUNDER CARDS ==================== */
.founder-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: slideUp 0.8s ease-out;
}

.founder-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.founder-image-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
}

.founder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.founder-card:hover .founder-image {
  transform: scale(1.05);
}

.founder-card h5 {
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 5px;
}

.founder-card p {
  margin: 5px 0;
  padding: 0 15px;
}

/* ==================== VISION & MISSION SECTION ==================== */
.vision-mission-card {
  background: white;
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.8s ease-out;
}

.vision-mission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.vision-card {
  border-top: 5px solid var(--gold);
}

.mission-card {
  border-top: 5px solid var(--brown);
}

.vision-mission-card .icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 15px;
  display: block;
}

.vision-mission-card h4 {
  color: var(--dark-brown);
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.vision-mission-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.8;
}

/* ==================== CORE VALUES SECTION ==================== */
.value-card {
  background: white;
  padding: 30px 25px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  animation: slideUp 0.8s ease-out;
}

.value-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15);
}

.value-card i {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.value-card h5 {
  color: var(--dark-brown);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.value-card p {
  color: #777;
  font-size: 0.95rem;
  margin: 0;
}

/* ==================== PROJECTS SECTION ==================== */
.project-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  animation: slideUp 0.8s ease-out;
}

.project-card:hover {
  border-color: var(--gold);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.project-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.project-card:hover .project-icon {
  transform: scale(1.1) rotate(10deg);
}

.project-card h5 {
  color: var(--dark-brown);
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.project-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ==================== IMPACT SECTION ==================== */
.impact-stat {
  background: white;
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

.impact-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--dark-gold) 100%);
}

.impact-stat:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
  animation: pulse 2s ease-in-out infinite;
}

.impact-stat p {
  color: var(--brown);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* ==================== BENEFICIARY SECTION ==================== */
.beneficiary-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: slideUp 0.8s ease-out;
}

.beneficiary-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
  background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
}

.beneficiary-card i {
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.beneficiary-card:hover i {
  animation: float 1s ease-in-out infinite;
}

.beneficiary-card h5 {
  color: var(--dark-brown);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.beneficiary-card p {
  color: #777;
  font-size: 0.95rem;
  margin: 0;
}

/* ==================== PARTNERS SECTION ==================== */
.partner-badge {
  background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
  color: var(--dark-brown);
  padding: 15px 20px;
  border-radius: 25px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
  animation: slideUp 0.8s ease-out;
}

.partner-badge:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

/* ==================== PARTNERS CAROUSEL ==================== */
@keyframes slidePartners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partners-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
}

.partners-carousel {
  display: flex;
  animation: slidePartners 20s linear infinite;
  width: max-content;
  gap: 20px;
}

.partners-carousel:hover {
  animation-play-state: paused;
}

.partner-carousel-item {
  flex: 0 0 180px;
  min-width: 180px;
  background: white;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.partner-carousel-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.partner-logo-container {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
  border-radius: 8px;
  overflow: hidden;
}

.partner-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-carousel-item:hover .partner-logo {
  transform: scale(1.1);
}

.partner-name {
  color: var(--dark-brown);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

/* ==================== EVENTS SECTION ==================== */
.event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: slideUp 0.8s ease-out;
  border: 2px solid var(--gold);
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.event-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-card:hover .event-image {
  transform: scale(1.05);
}

.event-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gold);
  color: var(--dark-brown);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.event-date .day {
  font-size: 1.2rem;
  line-height: 1;
}

.event-date .month {
  font-size: 0.7rem;
  text-transform: uppercase;
  line-height: 1;
}

.event-content {
  padding: 25px;
}

.event-content h5 {
  color: var(--dark-brown);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.event-location {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.event-location i {
  font-size: 0.8rem;
}

.event-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.art-therapy-slide {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #000;
}

#artTherapyGalleryModal .swiper-button-prev,
#artTherapyGalleryModal .swiper-button-next {
  color: var(--gold);
}

#artTherapyGalleryModal .swiper-pagination-bullet {
  background: rgba(212, 175, 55, 0.4);
}

#artTherapyGalleryModal .swiper-pagination-bullet-active {
  background: var(--gold);
}

/* ==================== MEDIA SECTION ==================== */
.media-link {
  display: flex;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: 10px;
  text-decoration: none;
  color: var(--dark-brown);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  animation: slideUp 0.8s ease-out;
}

.media-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

.media-link i {
  font-size: 1.8rem;
  color: var(--gold);
  margin-right: 15px;
  transition: all 0.3s ease;
}

.media-link:hover i {
  transform: scale(1.2);
}

.media-link span {
  font-weight: 600;
  font-size: 1rem;
}

/* ==================== CONTACT SECTION ==================== */
.bg-gold {
  background: linear-gradient(
    135deg,
    var(--gold) 0%,
    var(--dark-gold) 100%
  ) !important;
}

.contact-form input,
.contact-form textarea {
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 15px 0;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.2);
  border-bottom-color: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* ==================== FOOTER ==================== */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, var(--dark-brown) 100%);
}

footer a {
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--gold) !important;
}

/* ==================== SCROLL TO TOP BUTTON ==================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
  color: var(--dark-brown);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  animation: slideInRight 0.3s ease-out;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .nav-link {
    margin: 10px 0;
  }

  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 1.2rem;
  }

  .project-card,
  .value-card,
  .beneficiary-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }
}

/* ==================== UTILITY CLASSES ==================== */
.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.text-white-50:hover {
  color: var(--gold) !important;
}

/* Smooth transitions for all interactive elements */
a,
button {
  transition: all 0.3s ease;
}
