:root {
  /* Modern Color Palette */
  --bg-color: #fcfcfc;
  --text-main: #2d3436;
  --text-light: #636e72;
  --accent-color: #7A0C2E;
  /* Bordeaux */
  --accent-hover: #9c1c40;
  --primary-color: #5A2EA6;
  /* Violet */
  --highlight-color: #FFC400;
  /* Warm Yellow */

  /* Spacing & Layout */
  --container-width: 1200px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Header/Nav */
header {
  padding: var(--spacing-md) 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-selector {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.2rem;
  /* Larger for emojis */
  color: var(--text-light);
  display: flex;
  gap: 0.5rem;
  position: absolute;
  right: var(--spacing-lg);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.lang-link {
  text-decoration: none;
  cursor: pointer;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  padding: 5px;
}

.lang-link:hover,
.lang-link.active {
  filter: grayscale(0%);
}

.lang-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: white;
  min-width: 120px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0.5rem 0;
  flex-direction: column;
}

.lang-option {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
}

.lang-option:hover {
  background-color: #f1f1f1;
}

/* Mobile Language Selector */
@media (max-width: 768px) {
  .lang-selector {
    right: 1rem;
  }

  /* Hide all links except active one on mobile, effectively */
  .lang-link:not(.active) {
    display: none;
  }

  /* Show dropdown on hover/click (CSS hover works on tap on iOS usually, but we might need JS for better UX. For now CSS hover on container) */
  .lang-selector:hover .lang-dropdown-content {
    display: flex;
  }

  .lang-link.active::after {
    content: ' ▾';
    font-size: 0.8rem;
    color: #666;
  }
}

.logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.logo-img {
  height: 2.5rem;
  /* Match font size */
  width: auto;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-lg) 0;
  min-height: 80vh;
  gap: var(--spacing-lg);
}

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .hero-content {
    flex: 1;
    padding-right: var(--spacing-md);
  }

  .hero-image-container {
    flex: 1;
  }
}

.hero-content {
  max-width: 600px;
  /* margin-bottom removed for flex gap handling */
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
  color: var(--accent-color);
}

.hero-image-container {
  width: 100%;
  max-width: 500px;
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Mission Section */
.mission {
  background-color: #fff;
  padding: var(--spacing-lg) 0;
  border-top: 2px solid var(--highlight-color);
  border-bottom: 2px solid var(--highlight-color);
  position: relative;
  overflow: hidden;
}

.mission-text {
  font-size: 1.5rem;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-main);
  position: relative;
  z-index: 2;
}

.mission-highlight {
  color: var(--accent-color);
  font-weight: 600;
}

.badge-container {
  text-align: center;
  margin-top: var(--spacing-md);
}

.donation-badge {
  display: inline-block;
  background-color: var(--highlight-color);
  color: var(--accent-color);
  font-family: var(--font-heading);
  font-weight: 900;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0px var(--primary-color);
  font-size: 1.2rem;
  border: 2px solid var(--text-main);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1) rotate(-3deg);
  }

  50% {
    transform: scale(1.05) rotate(-3deg);
  }

  100% {
    transform: scale(1) rotate(-3deg);
  }
}

/* Store Section */
.store {
  padding: var(--spacing-lg) 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  text-align: left;
  /* Keep left as per sketch "STORE" text? Sketch has it sort of distinct. */
  padding-left: var(--spacing-md);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.product-card {
  background: white;
  border-radius: 20px;
  padding: var(--spacing-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  margin-bottom: var(--spacing-sm);
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: var(--spacing-lg) 0;
  text-align: center;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: auto;
  /* Push to bottom if content is short */
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-logo img {
  height: 2rem;
  width: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.social-link:hover {
  color: var(--highlight-color);
}

.instagram-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
}

/* Slideshow Styles */
.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mySlides {
  display: none;
}

.mySlides img {
  vertical-align: middle;
  width: 100%;
  border-radius: 20px;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s ease;
  border-radius: 50%;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Position the "next button" to the right */
.next {
  right: 15px;
}

.prev {
  left: 15px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.thumbnail-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.thumbnail {
  cursor: pointer;
  height: 60px;
  width: 60px;
  margin: 0 2px;
  background-color: #ddd;
  border-radius: 10px;
  display: inline-block;
  transition: background-color 0.6s ease;
  object-fit: cover;
  opacity: 0.6;
  border: 2px solid transparent;
}

.thumbnail.active,
.thumbnail:hover {
  opacity: 1;
  border-color: var(--accent-color);
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: .4
  }

  to {
    opacity: 1
  }
}
/* Lightbox Modal */
#lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 900px;
  max-height: 80vh;
  object-fit: contain;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
