@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;600;800&display=swap');

/* CSS Reset and Base Styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

:root {
  --primary-color: #ffa500;
  --primary-dark: #e12727;
  --accent-color: #ff9800;
  --bg-primary: #fefefe;
  --bg-secondary: #ffffff;
  --bg-light: #f8f9fa;
  --header-bg: #ea3c3c;
  --text-primary: #2d2d2d;
  --text-secondary: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.3);
}

body {
  font-family: 'Urbanist', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 18px;
  scroll-behavior: smooth;
  line-height: 1.8;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow-dark);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.logo img {
  height: 60px;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.nav a:hover, .nav a.active {
  color: #ffd700;
}

.donate-btn {
  background: #ffd700;
  color: #000;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.donate-btn:hover {
  background: #ff5722;
  color: var(--text-secondary);
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('https://source.unsplash.com/1600x800/?unity,people') center/cover no-repeat;
  color: #fff;
  padding: 7rem 2rem;
  text-align: center;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInDown 1.5s ease;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  animation: fadeInUp 2s ease;
}

.btn {
  background: var(--primary-color);
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #ff5722;
  color: var(--text-secondary);
  transform: scale(1.05);
  box-shadow: 0 4px 10px var(--shadow-light);
}

/* Section Layouts */
.section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 2rem;
}

.bg-light {
  background-color: var(--bg-light);
}

/* Founder Section */
.founder {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.founder img {
  width: 250px;
  border-radius: 12px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.5);
}

.founder-text {
  max-width: 500px;
  font-size: 1.1rem;
}

/* Certificates */
.certificates {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.certificates img {
  width: 350px;
  height: 450px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 8px 20px var(--shadow-light);
  transition: all 0.4s ease;
  background: var(--bg-secondary);
  padding: 1rem;
  border: 4px solid var(--accent-color);
}

.certificates img:hover {
  transform: scale(1.08) translateY(-5px);
  box-shadow: 0 12px 30px var(--shadow-dark);
  border-color: #ff5722;
}

/* Gallery Section */
#gallery {
  padding: 5rem 0;
}

#gallery .container {
  max-width: 1200px;
}

#gallery h2 {
  text-align: center;
  color: var(--primary-dark);
  font-size: 2.2rem;
  margin-bottom: 3rem;
}

/* Gallery Carousel */
.carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  padding: 1rem 0;
  z-index: 1;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  animation: scrollGallery 90s linear infinite;
  padding: 1rem 0;
  z-index: 2;
  position: relative;
}

.carousel-track img {
  flex: 0 0 auto;
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow-dark);
  border: 3px solid var(--accent-color);
  transition: transform 0.3s ease;
  z-index: 3;
  position: relative;
}

.carousel-track img:hover {
  transform: scale(1.02);
  border-color: #ff5722;
  z-index: 4;
}

@keyframes scrollGallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Footer */
footer {
  background: var(--header-bg);
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem 0;
}

/* Animations (custom) */
@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); }
}

/* Responsive */
@media (max-width: 768px) {
  .nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .founder {
    flex-direction: column;
    text-align: center;
  }
  .carousel-track img {
    width: 200px;
    height: 150px;
  }
}
.gallery-top-section {
  background: var(--bg-light);
  padding: 4rem 0;
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.gallery-top-section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-in-out;
}

.carousel-top {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1rem 0;
  z-index: 2;
}

.carousel-top::before,
.carousel-top::after {
  content: "";
  position: absolute;
  top: 0;
  width: 10%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.carousel-top::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-light), transparent);
}

.carousel-top::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-light), transparent);
}


.carousel-track-top {
  display: flex;
  gap: 1.5rem;
  animation: scrollGalleryTop 60s linear infinite;
  padding: 1rem 0;
  z-index: 3;
  position: relative;
}

.carousel-track-top img {
  flex: 0 0 auto;
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow-dark);
  border: 3px solid var(--accent-color);
  transition: transform 0.4s ease-in-out;
  z-index: 4;
  position: relative;
}

.carousel-track-top img:hover {
  transform: scale(1.02);
  border-color: #ff5722;
  z-index: 5;
}

@keyframes scrollGalleryTop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .carousel-track-top img {
    width: 200px;
    height: 130px;
  }
}


#qrModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.qr-overlay {
  position: relative;
}

.qr-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(255,255,255,0.2);
  cursor: pointer;
}

.awards-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.awards-gallery img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border: 4px solid #ffa500;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
}

.awards-gallery img:hover {
  transform: scale(1.05);
}

/* Gallery Category Spacing */
.gallery-category {
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.gallery-category:last-child {
  margin-bottom: 0;
}

.gallery-category h3 {
  text-align: center;
  color: var(--primary-dark);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 600;
  z-index: 2;
  position: relative;
}

/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: var(--primary-color);
  color: var(--text-secondary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: #ffb742;
  transform: scale(1.1);
}

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

/* Focus States */
a:focus,
button:focus,
img:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Performance Optimizations */
img {
  max-width: 100%;
  height: auto;
}

.carousel-track img,
.carousel-track-top img {
  will-change: transform;
}
