/* ============================================
   HACKATHONS PAGE Styles
   ============================================ */
/* Page hero styles are now in global.css */

/* --- Hack Section (Problem Solving) --- */
.hack-section { padding: 100px 0; }

.hack-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}

.hack-header-text h2 { margin-bottom: 20px; }

.hack-intro {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.hack-emphasis {
  font-family: var(--font-heading);
  font-size: 1.375rem !important;
  font-weight: 800;
  color: rgb(25,75,70) !important;
  margin-top: 16px;
}

.hack-header-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hack-header-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.hack-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hack-card {
  padding: 36px 32px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(25,75,70,0.08);
  border-radius: 20px;
  transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(25,75,70,0.06);
}

.hack-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgb(25,75,70), rgba(25,75,70,0.8), rgb(202,80,51));
  background-size: 200% 100%;
  animation: cardBorderShimmer 4s ease-in-out infinite;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.hack-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(25,75,70,0.12), 0 0 0 1px rgba(25,75,70,0.1);
  border-color: rgba(25,75,70,0.15);
  background: rgba(255,255,255,0.9);
}

.hack-card:hover .hack-card-accent { opacity: 1; }

.hack-card h3 { font-size: 1.1875rem; margin-bottom: 12px; }
.hack-card p { font-size: 0.9375rem; }

/* --- Capability Section --- */
.capability-section { padding: 100px 0; }

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.capability-card {
  padding: 36px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(25,75,70,0.08);
  border-radius: 20px;
  transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 24px rgba(25,75,70,0.06);
  position: relative;
  overflow: hidden;
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgb(25,75,70), rgba(25,75,70,0.8), rgb(202,80,51));
  background-size: 200% 100%;
  animation: cardBorderShimmer 4s ease-in-out infinite;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.capability-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(25,75,70,0.12), 0 0 0 1px rgba(25,75,70,0.1);
  border-color: rgba(25,75,70,0.15);
  background: rgba(255,255,255,0.9);
}

.capability-card:hover::before { opacity: 1; }

.capability-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(25,75,70,0.12), rgba(25,75,70,0.04));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
  transition: all 0.4s ease;
}

.capability-card:hover .capability-num {
  background: linear-gradient(135deg, rgba(25,75,70,0.35), rgba(245,158,11,0.3));
  -webkit-background-clip: text;
  background-clip: text;
}

.capability-card h4 { font-size: 1.0625rem; margin-bottom: 10px; }
.capability-card p { font-size: 0.9rem; }

/* --- Team Growth Section --- */
.growth-section { padding: 100px 0; }

.growth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.growth-card {
  padding: 32px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(25,75,70,0.08);
  border-radius: 20px;
  display: flex;
  gap: 20px;
  transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 24px rgba(25,75,70,0.06);
  position: relative;
  overflow: hidden;
}

.growth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgb(25,75,70), rgba(25,75,70,0.8), rgb(202,80,51));
  background-size: 200% 100%;
  animation: cardBorderShimmer 4s ease-in-out infinite;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.growth-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(25,75,70,0.12), 0 0 0 1px rgba(25,75,70,0.1);
  border-color: rgba(25,75,70,0.15);
  background: rgba(255,255,255,0.9);
}

.growth-card:hover::before { opacity: 1; }

.growth-card-wide {
  grid-column: 1 / -1;
}

.growth-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(25,75,70,0.1), rgba(25,75,70,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(25,75,70,0.7);
  transition: all 0.4s ease;
}

.growth-card:hover .growth-icon {
  background: linear-gradient(135deg, rgba(25,75,70,0.9), rgba(25,75,70,0.7));
  color: #fff;
  box-shadow: 0 6px 20px rgba(25,75,70,0.25);
  transform: scale(1.08) rotate(-3deg);
}

.growth-icon svg { width: 24px; height: 24px; }
.growth-card h4 { font-size: 1.0625rem; margin-bottom: 8px; }
.growth-card p { font-size: 0.875rem; }

/* --- Final CTA (styles now in global.css) --- */

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hack-header { grid-template-columns: 1fr; }
  .hack-cards { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .growth-grid { grid-template-columns: 1fr; }
  .growth-card { flex-direction: column; }
}
