/**
 * ============================================================================
 * COCONUT COMPUTER CLUB - HOMEPAGE (INDEX) STYLES
 * Dedicated stylesheet for index.html & its modular sections
 * Preserves 100% of exact design, hover states, layout, and animations.
 * ============================================================================
 */

:root {
  --primary: #243B77;
  --primary-dark: #16254c;
  --primary-hover: #1c2f61;
  --accent: #4d82f3;
  --accent-2: #243B77;
  --accent-light: #60a5fa;
  --surface-tint: #f0f4fa;
  --muted: #6b7280;
  --glass: rgba(255, 255, 255, 0.85);
  --card-bg: rgba(255, 255, 255, 0.95);
  --soft-shadow: 0 6px 24px rgba(22, 37, 76, 0.08);

  /* Glassmorphism Hero Tokens */
  --glass-bg-start: rgba(255, 255, 255, 0.06);
  --glass-bg-end: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-accent-1: rgba(77, 130, 243, 0.12);
  --glass-accent-2: rgba(36, 59, 119, 0.18);
}

/* Base page typography for index */
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* ============================================================================
 * Hero Section
 * ============================================================================ */
#hero {
  background: linear-gradient(135deg, #243B77 0%, #16254c 100%);
  color: white;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Background Particles */
.background-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.background-particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  animation: moveParticles 22s infinite ease-in-out;
  filter: blur(2px);
}

.particle-1 {
  width: 90px;
  height: 90px;
  top: 6%;
  left: 12%;
  animation-delay: 0s;
}

.particle-2 {
  width: 140px;
  height: 140px;
  top: 52%;
  left: 72%;
  animation-delay: 4s;
}

.particle-3 {
  width: 170px;
  height: 170px;
  top: 78%;
  left: 36%;
  animation-delay: 9s;
}

.particle-4 {
  width: 70px;
  height: 70px;
  top: 28%;
  left: 88%;
  animation-delay: 13s;
}

@keyframes moveParticles {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate(120px, -60px) scale(1.06);
    opacity: 0.45;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
}

/* Hero Glassmorphic Card */
.hero-card {
  position: relative;
  border-radius: 28px;
  padding: 40px;
  background: linear-gradient(180deg, var(--glass-bg-start), var(--glass-bg-end));
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
  transition: transform .45s cubic-bezier(.2, .9, .2, 1), box-shadow .45s ease;
}

.hero-card:hover {
  transform: translateY(-10px);
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: linear-gradient(90deg, var(--glass-accent-1), transparent 40%, var(--glass-accent-2));
  filter: blur(14px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}

.hero-card .sheen {
  position: absolute;
  top: -10%;
  left: -40%;
  width: 40%;
  height: 120%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
  animation: sheen 6s linear infinite;
  mix-blend-mode: overlay;
}

@keyframes sheen {
  0% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(220%) skewX(-18deg); }
}

.hero-card .content {
  position: relative;
  z-index: 2;
}

.hero-card h1,
.hero-card h2,
.hero-card p {
  text-shadow: 0 6px 18px rgba(3, 10, 34, 0.25);
}

.hero-card h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-card h2,
.hero-card h3 {
  font-weight: 700;
  color: #cfeaff;
  letter-spacing: -0.5px;
}

/* Elevated Primary Button for Hero */
.btn-primary {
  background-color: #d14138;
  border-color: rgba(0, 0, 0, 0.08);
  color: white;
  font-weight: 700;
  padding: 12px 34px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(209, 65, 56, 0.18);
  transition: all 0.28s ease;
}

.btn-primary:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 26px 56px rgba(2, 6, 23, 0.45), 0 6px 18px rgba(209, 65, 56, 0.12);
}

.text-light-blue {
  color: #9fd6ff;
}

.text-dark-blue {
  color: #0A1C49;
}

/* Hero Illustration */
#hero .hero-illustration {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-top: 0;
  margin-right: -40px;
  margin-bottom: -45px;
  line-height: 0;
}

#hero .hero-illustration img {
  width: 128%;
  max-width: 650px;
  height: auto;
  display: block;
  vertical-align: bottom;
  transform: translateY(39px);
  transition: transform .35s ease, filter .35s ease;
  filter: drop-shadow(0 14px 28px rgba(2, 6, 23, 0.5));
}

#hero .hero-illustration img:hover {
  filter: drop-shadow(0 18px 36px rgba(2, 6, 23, 0.6));
}

/* ============================================================================
 * Highlights & Stat Boxes
 * ============================================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stat-box {
  background: var(--glass);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--soft-shadow);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-box:hover {
  background: linear-gradient(180deg, rgba(147, 197, 253, 0.5), rgba(37, 99, 235, 0.3));
  transform: scale(1.05);
}

.stat-box .num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
}

.stat-box .label {
  color: var(--muted);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
}

/* General Cards */
.card.shadow-sm {
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: var(--soft-shadow);
  transition: all 0.3s ease;
}

.card.shadow-sm:hover {
  border-color: var(--accent);
  transform: scale(1.03);
}

.card p.lead,
.card .lead {
  color: #1f2937;
  font-family: 'Inter', sans-serif;
}

/* ============================================================================
 * Recruitment Roadmap Timeline
 * ============================================================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.timeline-icon {
  min-width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.1);
}

.timeline-content {
  flex: 1;
}

.timeline-phase-badge {
  display: inline-block;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.2), rgba(96, 165, 250, 0.2));
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
}

.timeline-content h4 {
  margin-top: 0.2rem;
  margin-bottom: 0.6rem;
  font-family: 'Poppins', sans-serif;
}

.timeline-progress {
  margin-top: 12px;
}

.progress-track {
  background: rgba(0, 0, 0, 0.06);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}

/* ============================================================================
 * Benefits & Feature Boxes
 * ============================================================================ */
.feature-box {
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(147, 197, 253, 0.3));
  padding: 28px;
  box-shadow: var(--soft-shadow);
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.15);
}

.icon-box-circle {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-size: 2rem;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
}

/* ============================================================================
 * CTA Section
 * ============================================================================ */
.cta {
  background: linear-gradient(180deg, var(--primary), var(--accent-2));
  color: white;
  padding: 4rem 1rem;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.cta .background-animation::before {
  top: 10%;
  left: 10%;
  width: 200px;
  height: 200px;
}

.cta .background-animation::after {
  bottom: 10%;
  right: 10%;
  width: 200px;
  height: 200px;
}

.cta .btn-light {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(147, 197, 253, 0.3));
  color: var(--primary);
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  padding: 0.75rem 2rem;
  border-radius: 1.5rem;
  transition: all 0.3s ease;
}

.cta .btn-light:hover {
  background: linear-gradient(90deg, rgba(147, 197, 253, 0.3), rgba(255, 255, 255, 0.95));
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* ============================================================================
 * FAQ & Location Accordion
 * ============================================================================ */
.faq-card .accordion-button {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(147, 197, 253, 0.3));
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.faq-card .accordion-button:not(.collapsed) {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.1);
  background: linear-gradient(180deg, rgba(147, 197, 253, 0.3), rgba(255, 255, 255, 0.98));
}

.faq-card .accordion-item + .accordion-item {
  margin-top: 0.5rem;
}

.location-card .map-embed iframe {
  min-height: 220px;
  border-radius: 12px;
}

.location-card h3,
.faq-card h3 {
  font-size: 1.45rem;
  font-family: 'Poppins', sans-serif;
}

/* ============================================================================
 * Responsive Breakpoints
 * ============================================================================ */
@media (max-width: 991px) {
  .hero-illustration {
    margin-bottom: -28px;
  }

  .hero-illustration img {
    width: 95%;
    max-width: 440px;
    transform: none;
  }

  .hero-card {
    padding: 28px;
    text-align: center;
    max-width: 95%;
    overflow: visible;
    margin-top: -20px;
  }

  .faq-card,
  .location-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 767px) {
  #hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-card {
    border-radius: 18px;
    padding: 20px;
  }

  .hero-card h1 {
    font-size: 1.9rem;
    text-align: center;
  }

  .hero-card h2,
  .hero-card h3 {
    text-align: center;
  }

  .hero-illustration {
    display: none;
  }

  .icon-box-circle {
    width: 72px;
    height: 72px;
  }

  .stat-box .num {
    font-size: 1.5rem;
  }

  .feature-box {
    padding: 20px;
  }
}
