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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', sans-serif;
  background: #fafafa;
  color: #333;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  margin-bottom: 2.5rem;
  max-width: 800px;
  line-height: 1.6;
  font-weight: 300;
  opacity: 0.95;
}

.hero-video-container {
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0,0,0,0.4);
}

.hero-video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.6);
  border: 2px dashed rgba(255,255,255,0.3);
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  display: block;
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  background: white;
  color: #667eea;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  font-size: 2rem;
  animation: bounce 2s infinite;
  opacity: 0.7;
  cursor: pointer;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}

/* Header */
header {
  text-align: center;
  padding: 3rem 2rem 2rem;
  background: white;
  border-bottom: 1px solid #eee;
}

.logo {
  height: 100px;
  margin-bottom: 1.5rem;
}

.home-headline {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.7;
  color: #555;
  font-weight: 400;
  max-width: 900px;
  margin: 0 auto;
}

/* Main Content */
.content-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3rem;
  color: #333;
  font-weight: 700;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 1rem;
}

.project-card {
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 1.5rem;
  text-align: center;
}

.project-info p {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

/* Playful Color Accents */
.project-card:nth-child(1) .project-info { border-top: 4px solid #ff6b6b; }
.project-card:nth-child(2) .project-info { border-top: 4px solid #4ecdc4; }
.project-card:nth-child(3) .project-info { border-top: 4px solid #ffe66d; }
.project-card:nth-child(4) .project-info { border-top: 4px solid #a8e6cf; }
.project-card:nth-child(5) .project-info { border-top: 4px solid #ff8b94; }
.project-card:nth-child(6) .project-info { border-top: 4px solid #b4a7d6; }
.project-card:nth-child(7) .project-info { border-top: 4px solid #ffd3b6; }
.project-card:nth-child(8) .project-info { border-top: 4px solid #95e1d3; }

/* Footer */
footer {
  background: #f5f5f5;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
  border-top: 1px solid #e0e0e0;
}

footer p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #666;
  font-weight: 500;
}

.supporter-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.supporter-list li {
  flex: 1;
  min-width: 220px;
}

.supporter-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1.5rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: #667eea;
  font-weight: 500;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.supporter-list a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.favicon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Project Detail Page Styles */
.project-header {
  background: white;
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.project-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #333;
  margin-bottom: 1rem;
}

.back-link {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.back-link:hover {
  transform: translateX(-5px);
}

.project-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.project-section {
  margin-bottom: 4rem;
}

.project-section h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1.5rem;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

.project-section p,
.project-section li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.project-section ul {
  list-style-position: inside;
  padding-left: 1rem;
}

.project-section ul li {
  margin-bottom: 0.5rem;
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

/* Video Embeds */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.status-installed {
  background: #d4edda;
  color: #155724;
}

.status-available {
  background: #d1ecf1;
  color: #0c5460;
}

.status-progress {
  background: #fff3cd;
  color: #856404;
}

/* Team Section */
.team-list {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.team-list p {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
    padding: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0.5rem;
  }
  
  .supporter-list {
    flex-direction: column;
    gap: 1rem;
  }

  .supporter-list li {
    min-width: 100%;
  }

  .project-content {
    padding: 2rem 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .home-headline br {
    display: none;
  }

  .hero-tagline br {
    display: none;
  }
}
