/* ============================================
   HOME PAGE STYLES
   Color scheme: #111B47, #505F98, #3b82f6,
   #E7ECFF, #f8fafc, #ffffff
   ============================================ */

/* ==================== HERO ==================== */
.home-hero {
  position: relative;
  min-height: 600px;
  background: linear-gradient(135deg, #111B47 0%, #505F98 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  padding: 80px 40px 60px;
  gap: 60px;
}

.home-hero-text {
  flex: 1;
}

.home-hero-text h1 {
  font-family: Aldrich, sans-serif;
  font-size: 3.5rem;
  color: #ffffff;
  margin: 0 0 20px;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-highlight {
  color: #E7ECFF;
  position: relative;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 6px;
  background: rgba(59, 130, 246, 0.5);
  border-radius: 3px;
}

.home-hero-sub {
  font-family: Roboto, sans-serif;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 35px;
  max-width: 500px;
  line-height: 1.6;
}

.home-hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary-home {
  display: inline-block;
  padding: 16px 36px;
  background: #ffffff;
  color: #111B47;
  font-family: Aldrich, sans-serif;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary-home {
  display: inline-block;
  padding: 16px 36px;
  background: transparent;
  color: #ffffff;
  font-family: Aldrich, sans-serif;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-secondary-home:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
}

.home-hero-logo {
  flex-shrink: 0;
}

.home-hero-logo img {
  width: 380px;
  height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.4));
  animation: logoFloat 4s ease-in-out infinite;
}

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

/* ==================== COMMUNITY PHOTO STRIP ==================== */
.community-strip {
  background: #111B47;
  padding: 0;
  overflow: hidden;
}

.community-strip-inner {
  display: flex;
  gap: 0;
  animation: scrollStrip 25s linear infinite;
  width: max-content;
}

.community-strip-inner:hover {
  animation-play-state: paused;
}

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

.community-photo {
  flex-shrink: 0;
  width: 300px;
  height: 200px;
  overflow: hidden;
}

.community-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.85;
}

.community-photo:hover img {
  transform: scale(1.1);
  opacity: 1;
}

/* ==================== SHARED SECTION STYLES ==================== */
.section-title {
  font-family: Aldrich, sans-serif;
  font-size: 2.5rem;
  color: #111B47;
  margin: 0 0 15px;
  text-align: center;
}

.section-desc {
  font-family: Roboto, sans-serif;
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto 50px;
  text-align: center;
  line-height: 1.6;
}

/* ==================== WHAT WE DO ==================== */
.home-events {
  padding: 80px 20px;
  background: #ffffff;
}

.home-events-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.events-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.event-card-home {
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.event-card-home:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(17, 27, 71, 0.12);
  border-color: #3b82f6;
}

.event-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card-home:hover .event-card-img img {
  transform: scale(1.08);
}

.event-card-body {
  padding: 25px;
}

.event-card-body h3 {
  font-family: Aldrich, sans-serif;
  font-size: 1.3rem;
  color: #111B47;
  margin: 0 0 10px;
}

.event-card-body p {
  font-family: Roboto, sans-serif;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}

/* ==================== HACKATHON CTA ==================== */
.hackathon-cta {
  background: linear-gradient(135deg, #111B47 0%, #1e3a8a 100%);
  padding: 80px 20px;
}

.hackathon-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hackathon-cta-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hackathon-cta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hackathon-cta-text {
  color: #ffffff;
}

.cta-badge {
  display: inline-block;
  font-family: Roboto, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #111B47;
  background: #E7ECFF;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hackathon-cta-text h2 {
  font-family: Aldrich, sans-serif;
  font-size: 2.5rem;
  margin: 0 0 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hackathon-cta-text p {
  font-family: Roboto, sans-serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin: 0 0 30px;
}

.hackathon-cta .btn-primary-home {
  background: #ffffff;
  color: #111B47;
}

/* ==================== PHOTO GALLERY MOSAIC ==================== */
.home-gallery {
  padding: 80px 20px;
  background: #f8fafc;
}

.home-gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 15px;
}

.mosaic-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.mosaic-item.tall {
  grid-row: span 2;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.mosaic-item:hover img {
  transform: scale(1.08);
}

.mosaic-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(17, 27, 71, 0.4));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-more {
  text-align: center;
  margin-top: 40px;
}

.gallery-more .btn-secondary-home {
  color: #111B47;
  border-color: #111B47;
}

.gallery-more .btn-secondary-home:hover {
  background: #111B47;
  color: #ffffff;
}

/* ==================== GET INVOLVED ==================== */
.home-connect {
  padding: 80px 20px;
  background: #ffffff;
}

.home-connect-inner {
  max-width: 900px;
  margin: 0 auto;
}

.connect-cards-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.connect-card-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 20px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  color: #505F98;
  text-decoration: none;
  font-family: Aldrich, sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.connect-card-home svg {
  width: 32px;
  height: 32px;
}

.connect-card-home:hover {
  background: #111B47;
  color: #ffffff;
  border-color: #111B47;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(17, 27, 71, 0.2);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .home-hero-text h1 {
    font-size: 2.8rem;
  }

  .home-hero-logo img {
    width: 280px;
    height: 280px;
  }

  .hackathon-cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hackathon-cta-img {
    max-height: 400px;
  }

  .events-grid-home {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero-content {
    flex-direction: column;
    text-align: center;
    padding: 100px 20px 50px;
    gap: 30px;
  }

  .home-hero-text h1 {
    font-size: 2.2rem;
  }

  .home-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero-btns {
    justify-content: center;
  }

  .home-hero-logo img {
    width: 200px;
    height: 200px;
  }

  .section-title {
    font-size: 2rem;
  }

  .events-grid-home {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .mosaic-item.tall {
    grid-row: span 1;
  }

  .connect-cards-home {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-photo {
    width: 220px;
    height: 150px;
  }

  .hackathon-cta-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .home-hero-text h1 {
    font-size: 1.8rem;
  }

  .home-hero-sub {
    font-size: 1rem;
  }

  .btn-primary-home,
  .btn-secondary-home {
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .home-hero-logo img {
    width: 160px;
    height: 160px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
    gap: 10px;
  }

  .connect-cards-home {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .community-photo {
    width: 180px;
    height: 120px;
  }

  .hackathon-cta-text h2 {
    font-size: 1.6rem;
  }

  .event-card-img {
    height: 160px;
  }
}
