/* 🌙 SOFT TWILIGHT THEME — Magical, Calm, Child-Attractive */
:root {
  --primary: #9d4edd;
  --secondary: #a67cff;
  --accent: #c77dff;
  --bg: #121220;
  --text: #e6e6e6;
  --muted: #b0b0c8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Soft gradients for sections */
  --block1: linear-gradient(135deg, #16213e, #0f3460);
  --block2: linear-gradient(135deg, #1a1a2e, #24243e);
  --block3: linear-gradient(135deg, #1e1e2e, #2a2a4a);
  --block4: linear-gradient(135deg, #1a1a2e, #24243e);
  --block5: linear-gradient(135deg, #1e1e2e, #2a2a4a);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Poppins', system-ui, Segoe UI, Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MCIgaGVpZ2h0PSI1MCI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIiBzdHJva2Utd2lkdGg9IjEiIGQ9Ik0wIDBoNTB2NTBIMHoiLz48Y2lyY2xlIGN4PSIyNSIgY3k9IjI1IiByPSIxIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIi8+PC9zdmc+');
  background-size: 100px 100px;
}

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

/* ---------------- HEADER ---------------- */
.site-header {
  background: linear-gradient(90deg, #9d4edd, #a67cff);
  color: white;
  position: sticky;
  top: 0;
  z-index: 40;
  animation: slideDown 0.8s ease-out;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 4px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: spinLogo 6s linear infinite alternate;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.logo:hover {
  transform: rotate(10deg) scale(1.1);
  background: rgba(255, 255, 255, 0.15);
}
.brand-text h1 {
  font-size: 20px;
  margin: 0;
  color: white;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand-text small {
  opacity: 0.9;
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav a {
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav a:hover::after {
  width: 100%;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  padding: 8px;
  border-radius: 50%;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

/* ---------------- HERO ---------------- */
.hero {
  padding: 80px 0;
  background: var(--block1);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/b1.jpg'), url('assets/b2.jpg'), url('assets/b3.jpg'), url('assets/b4.jpg');
  background-size: cover;
  background-position: center;
  animation: bgSlide 24s infinite alternate;
  z-index: -1;
  opacity: 0.85;
}
@keyframes bgSlide {
  0% { background-position: center 0%, center 0%, center 0%, center 0%; }
  25% { background-position: center 25%, center 25%, center 25%, center 25%; }
  50% { background-position: center 50%, center 50%, center 50%, center 50%; }
  75% { background-position: center 75%, center 75%, center 75%, center 75%; }
  100% { background-position: center 100%, center 100%, center 100%, center 100%; }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: center;
}
.hero-text {
  animation: fadeInLeft 1.2s ease;
}
.hero-text h2 {
  font-size: 38px;
  margin-bottom: 12px;
  color: white;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.hero-text p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 17px;
  max-width: 90%;
}
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: var(--primary);
}
.btn:hover {
  background: var(--accent);
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 12px 30px rgba(157, 78, 221, 0.4);
}
.hero-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: floatUpAndDown 5s ease-in-out infinite;
  transform-origin: center;
  transition: transform 0.5s ease;
  filter: brightness(1.1);
}
.hero-img:hover {
  transform: scale(1.05) rotate(2deg);
  filter: brightness(1.2);
}

/* ---------------- BLOG SECTION ---------------- */
.section {
  padding: 60px 0;
}
.section h3 {
  font-size: 26px;
  margin-bottom: 12px;
  text-align: center;
  color: white;
  font-weight: 700;
  animation: fadeInUp 1s ease;
  letter-spacing: -0.3px;
}
.section.alt {
  background: var(--block2);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.blog-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.blog-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.blog-item h4 {
  padding: 18px;
  color: white;
  margin: 0;
  font-size: 18px;
}
.blog-item p {
  padding: 0 18px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.read-more {
  display: block;
  text-align: center;
  color: var(--accent);
  text-decoration: none;
  padding: 10px;
  font-weight: 600;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 10px;
}
.read-more:hover {
  color: white;
  background: rgba(255,255,255,0.05);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s forwards;
}
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.gallery-item:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- ACHIEVEMENTS ---------------- */
.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  justify-content: center;
}
.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 220px;
  text-align: center;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s forwards;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(157, 78, 221, 0.2);
  background: rgba(255, 255, 255, 0.08);
}
.card h4 {
  margin: 15px 0 8px;
  color: white;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.achievement-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
.card:hover .achievement-img {
  opacity: 1;
}

/* ---------------- EVENTS ---------------- */
.events-list {
  list-style: none;
  margin-top: 20px;
}
.events-list li {
  display: flex;
  gap: 16px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateX(-40px);
  animation: fadeInRight 0.8s forwards;
}
.events-list li:nth-child(1) { animation-delay: 0.1s; }
.events-list li:nth-child(2) { animation-delay: 0.2s; }
.events-list li:nth-child(3) { animation-delay: 0.3s; }
.events-list li:hover {
  transform: translateX(0) scale(1.02);
  box-shadow: 0 16px 30px rgba(157, 78, 221, 0.15);
  background: rgba(255, 255, 255, 0.05);
}
.event-img {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.event-body strong {
  display: block;
  margin-bottom: 6px;
  color: white;
  font-size: 16px;
}
.event-body p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* ---------------- CONTACT ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.contact-info {
  animation: fadeInLeft 1s ease;
}
.contact-info h3 {
  color: white;
  margin-bottom: 16px;
}
.features-list {
  list-style: none;
  margin-top: 16px;
}
.features-list li {
  color: var(--muted);
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}
.features-list li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}
.contact-info a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
.contact-info a:hover {
  color: white;
  text-decoration: underline;
}

/* ---------------- MAP ---------------- */
.map-wrap iframe {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  animation: fadeIn 1s ease;
}

/* ---------------- FOOTER — WITH GLOW ANIMATION ---------------- */
.site-footer {
  background: linear-gradient(90deg, #a67cff, #9d4edd);
  color: white;
  padding: 24px 0;
  margin-top: 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: footerGlow 4s ease-in-out infinite alternate;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.2), transparent 70%);
  animation: pulseRing 6s ease-in-out infinite;
  z-index: -1;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.site-footer a {
  color: white;
  text-decoration: none;
  margin-left: 16px;
  transition: var(--transition);
  font-size: 18px;
  display: inline-block;
}
.site-footer a:hover {
  color: var(--accent);
  transform: scale(1.2);
}
.social-icon {
  font-size: 20px;
  transition: var(--transition);
}
.social-icon:hover {
  transform: translateY(-4px) scale(1.3);
  color: var(--accent);
}
.attribution {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  text-align: center;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--muted);
}

/* ---------------- RESPONSIVE — MOBILE FIRST ---------------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-image {
    display: none;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    flex-direction: column;
  }
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    background: linear-gradient(90deg, #9d4edd, #a67cff);
    padding: 10px;
    border-radius: 12px;
    margin: 0 12px;
    box-shadow: var(--shadow);
    z-index: 50;
  }
  .nav a {
    font-size: 12px;
    padding: 6px 10px;
  }
  .nav-toggle {
    display: block;
  }
  .site-header {
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .hero-text h2 {
    font-size: 28px;
    line-height: 1.1;
  }
  .hero-text p {
    font-size: 15px;
    margin-bottom: 16px;
  }
  .gallery-grid img {
    height: 140px;
  }
  .logo {
    width: 50px;
    height: 50px;
  }
  .brand-text h1 {
    font-size: 18px;
  }
  .section h3 {
    font-size: 22px;
  }
  .map-wrap iframe {
    height: 300px;
  }
  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  .card {
    padding: 20px;
  }
  .achievement-img,
  .event-img {
    width: 80px;
    height: 80px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 10px;
  }
  .attribution {
    font-size: 12px;
  }
  .contact-grid {
    gap: 20px;
  }
  .features-list {
    font-size: 14px;
  }
}

/* ---------------- ANIMATIONS ---------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes floatUpAndDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@keyframes spinLogo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes animate-bounce-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.animate-fade-in { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in-right { animation: fadeInRight 0.8s ease-out forwards; }
.animate-fade-in-left { animation: fadeInLeft 0.8s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 1s ease-out forwards; }
.animate-bounce-in { animation: animate-bounce-in 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.animate-float { animation: floatUpAndDown 5s ease-in-out infinite; }

/* ---------------- FOOTER GLOW ANIMATION ---------------- */
@keyframes footerGlow {
  0% { box-shadow: 0 10px 30px rgba(157, 78, 221, 0.3); }
  100% { box-shadow: 0 15px 40px rgba(157, 78, 221, 0.6); }
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 0.2; }
  100% { transform: scale(1); opacity: 0.4; }
}