 @import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ===== CSS Variables ===== */
:root {
  --background: hsl(0, 0%, 8%);
  --foreground: hsl(0, 0%, 98%);
  --card: hsl(0, 0%, 12%);
  --card-foreground: hsl(0, 0%, 98%);
  --primary: hsl(4, 85%, 55%);
  --primary-foreground: hsl(0, 0%, 100%);
  --primary-glow: hsl(4, 85%, 65%);
  --secondary: hsl(0, 0%, 18%);
  --secondary-foreground: hsl(0, 0%, 98%);
  --muted: hsl(0, 0%, 20%);
  --muted-foreground: hsl(0, 0%, 65%);
  --accent: hsl(15, 80%, 50%);
  --accent-foreground: hsl(0, 0%, 100%);
  --border: hsl(0, 0%, 20%);
  --radius: 0.75rem;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --gradient-primary: linear-gradient(135deg, hsl(4, 85%, 55%) 0%, hsl(15, 80%, 50%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(0, 0%, 14%) 0%, hsl(0, 0%, 10%) 100%);
  --shadow-glow: 0 0 60px hsla(4, 85%, 55%, 0.3);
  --shadow-card: 0 10px 40px hsla(0, 0%, 0%, 0.4);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ===== Utilities ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-primary {
  background: var(--gradient-primary);
}

.gradient-card {
  background: var(--gradient-card);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  50% {
    transform: translateY(-10px) translateX(-50%);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out forwards;
  opacity: 0;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: hsla(0, 0%, 8%, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px hsla(0, 0%, 0%, 0.3);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.1);
}

.logo-text h1 {
  font-size: 1.25rem;
  line-height: 1;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-desktop a:hover {
  color: var(--primary);
}

.nav-desktop a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: hsla(0, 0%, 8%, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.nav-mobile a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
  .logo-text {
    display: block;
  }
}

@media (max-width: 640px) {
  .logo-text {
    display: none;
  }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('./images/hero-bg.jpg');
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    hsla(0, 0%, 8%, 0.8) 0%, 
    hsla(0, 0%, 8%, 0.6) 50%, 
    hsl(0, 0%, 8%) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 1rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: hsla(4, 85%, 55%, 0.2);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: scale(1.05);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background-color: hsla(0, 0%, 18%, 0.8);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.scroll-indicator:hover {
  color: var(--primary);
}

.scroll-indicator svg {
  width: 32px;
  height: 32px;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* ===== Section Common ===== */
.section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section-alt {
  background-color: hsla(0, 0%, 18%, 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: hsla(4, 85%, 55%, 0.2);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.section-description {
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(to right, hsla(4, 85%, 55%, 0.2), hsla(15, 80%, 50%, 0.2));
  border-radius: 1rem;
  filter: blur(20px);
  opacity: 0.75;
  transition: opacity 0.5s ease;
}

.about-image-wrapper:hover .about-image-glow {
  opacity: 1;
}

.about-image {
  position: relative;
  border-radius: 0.75rem;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.about-quote {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  padding: 1rem;
  background: var(--gradient-card);
  backdrop-filter: blur(8px);
  border-radius: 0.5rem;
}

.about-quote p {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}

.about-quote span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.features-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: hsla(4, 85%, 55%, 0.5);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary-foreground);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.mission-box {
  margin-top: 4rem;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  text-align: center;
}

.mission-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.mission-box p {
  color: var(--muted-foreground);
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
}

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

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Categories Section ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.category-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: scale(1.05);
  border-color: hsla(4, 85%, 55%, 0.5);
  box-shadow: var(--shadow-glow);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.25);
}

.category-age {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.category-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.schedule-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}

.schedule-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
}

.schedule-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.schedule-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary-foreground);
}

.schedule-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.schedule-info {
  color: var(--muted-foreground);
}

.schedule-highlight {
  color: var(--primary);
}

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Achievements Section ===== */
.achievements-grid {
  display: grid;
  gap: 3rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-icon {
  transform: scale(1.1);
}

.timeline-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary-foreground);
}

.timeline-line {
  width: 2px;
  flex: 1;
  background-color: var(--border);
  margin-top: 0.5rem;
}

.timeline-content {
  flex: 1;
  padding-bottom: 2rem;
}

.timeline-year {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.gallery {
  display: grid;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.gallery-item img {
  width: 100%;
  height: 256px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(0, 0%, 8%, 0.8), transparent);
}

.gallery-info {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}

.gallery-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: hsla(4, 85%, 55%, 0.5);
}

.stat-card svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  margin: 0 auto 0.75rem;
}

.stat-card-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}

.stat-card-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-card {
  padding: 2rem;
  border-radius: 0.75rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
}

.contact-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary-foreground);
}

.contact-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-value {
  font-weight: 500;
}

.donation-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.donation-box {
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: hsla(0, 0%, 8%, 0.5);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.donation-box-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.donation-box-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.cta-card {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
}

.cta-card .contact-title {
  color: var(--primary-foreground);
}

.cta-description {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.cta-list {
  margin-bottom: 2rem;
}

.cta-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.cta-list-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-foreground);
  flex-shrink: 0;
}

.btn-cta {
  width: 100%;
  background-color: var(--background);
  color: var(--foreground);
}

.btn-cta:hover {
  background-color: hsla(0, 0%, 8%, 0.9);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .cta-card {
    grid-column: span 1;
  }
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.footer-logo h3 {
  font-size: 1.125rem;
}

.footer-logo p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-made {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-made svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  fill: var(--primary);
}

.footer-copyright {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copyright p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

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

/* ===== Background Decorations ===== */
.bg-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.bg-decoration-1 {
  top: 0;
  right: 0;
  width: 24rem;
  height: 24rem;
  background-color: hsla(4, 85%, 55%, 0.05);
}

.bg-decoration-2 {
  bottom: 0;
  left: 0;
  width: 24rem;
  height: 24rem;
  background-color: hsla(15, 80%, 50%, 0.05);
}

/* ===== Pattern Background ===== */
.pattern-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle at 2px 2px, currentColor 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}
