@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Noto+Sans+SC:wght@300;400;700;900&display=swap');

:root {
  --bg-color: #050811;
  --bg-color-light: #0d1326;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  
  --accent-1: #6366f1; /* Indigo */
  --accent-2: #a855f7; /* Purple */
  --accent-3: #ec4899; /* Pink */
  
  --glass-bg: rgba(20, 25, 45, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 800;
}

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

ul {
  list-style: none;
}

/* Typography */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 2px;
}

/* Layout */
section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(5, 8, 17, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-1);
  transition: var(--transition);
}

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

/* Hero Section with Parallax */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* Extra height for parallax */
  background-image: url('../images/img_13.png'); /* A great wide shot */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(5,8,17,0.3) 0%, rgba(5,8,17,1) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
  transform: translateY(0); /* Used for parallax via JS */
  will-change: transform, opacity;
}

.hero-subtitle {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-1);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-title {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 300;
}

/* Button */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  border: none;
  box-shadow: 0 10px 20px -10px var(--accent-1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  transition: var(--transition);
  z-index: -1;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  box-shadow: 0 15px 30px -10px var(--accent-2);
  transform: translateY(-3px);
}

/* Timeline / History */
.history-section {
  background-color: var(--bg-color);
  position: relative;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-3), transparent);
}

.timeline-item {
  margin-bottom: 4rem;
  position: relative;
  width: 50%;
  padding-right: 3rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-right: 0;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 0;
  right: -10px;
  width: 20px;
  height: 20px;
  background: var(--bg-color);
  border: 4px solid var(--accent-1);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 15px var(--accent-1);
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -10px;
}

.timeline-item:nth-child(2) .timeline-dot { border-color: var(--accent-2); box-shadow: 0 0 15px var(--accent-2); }
.timeline-item:nth-child(3) .timeline-dot { border-color: var(--accent-3); box-shadow: 0 0 15px var(--accent-3); }

.timeline-content {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.2);
}

.timeline-date {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-1);
  margin-bottom: 0.5rem;
}

.timeline-item:nth-child(2) .timeline-date { color: var(--accent-2); }
.timeline-item:nth-child(3) .timeline-date { color: var(--accent-3); }

.timeline-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.timeline-img {
  width: 100%;
  border-radius: 8px;
  margin-top: 1rem;
}

/* Districts Grid */
.districts-section {
  background: var(--bg-color-light);
  position: relative;
}

.districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.district-card {
  background: var(--glass-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.district-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.district-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border-color: var(--accent-1);
}

.district-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.district-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.district-card:hover .district-img-wrapper img {
  transform: scale(1.1);
}

.district-info {
  padding: 1.5rem;
}

.district-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Gallery Masonry */
.gallery-section {
  background: var(--bg-color);
}

.masonry {
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry-item {
  margin-bottom: 1.5rem;
  break-inside: avoid;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  cursor: pointer;
}

.masonry-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: var(--transition);
}

.masonry-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 0;
  transition: var(--transition);
}

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

.masonry-item:hover::after {
  opacity: 1;
}

.masonry-caption {
  position: absolute;
  bottom: -30px;
  left: 20px;
  z-index: 2;
  font-weight: 600;
  font-size: 1.1rem;
  opacity: 0;
  transition: var(--transition);
}

.masonry-item:hover .masonry-caption {
  bottom: 20px;
  opacity: 1;
}

/* Join Us */
.join-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.join-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 60%);
  z-index: 0;
}

.join-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 4rem 2rem;
  border-radius: 24px;
}

.roles-list {
  text-align: left;
  margin: 2rem auto;
  max-width: 600px;
}

.roles-list li {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  position: relative;
}

.roles-list li::before {
  content: '🎯';
  position: absolute;
  left: 0;
  top: 2px;
}

.roles-list strong {
  color: var(--accent-2);
}

.join-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 3.5rem; }
  .timeline::before { left: 30px; }
  .timeline-item { width: 100%; padding-left: 80px; padding-right: 0; }
  .timeline-item:nth-child(even) { left: 0; padding-left: 80px; }
  .timeline-dot { left: 20px !important; }
  .masonry { column-count: 2; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.5rem; }
  .nav-links { display: none; } /* Could add a hamburger menu if needed */
  .masonry { column-count: 1; }
}

/* Members Section */
.members-section {
    padding: 6rem 0;
    background-color: var(--bg-dark);
}

.word-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    margin-top: 3rem;
    min-height: 300px;
}

@keyframes floatFlow {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-8px) translateX(4px);
    }
    66% {
        transform: translateY(5px) translateX(-4px);
    }
}

.cloud-word {
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: default;
    user-select: none;
    font-weight: bold;
    animation: floatFlow 6s ease-in-out infinite;
}

.cloud-word:hover {
    animation-play-state: paused;
    transform: scale(1.2) !important;
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
    z-index: 10;
}

.cloud-cta {
    display: inline-block;
    padding: 10px 20px;
    border: 2px dashed var(--primary);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    margin: 10px;
}

.cloud-cta:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    transform: scale(1.1);
}
