/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
:root {
  /* Colors */
  --bg-dark: #070a13;
  --bg-darker: #04050a;
  --bg-card: rgba(15, 23, 42, 0.45);
  --bg-card-hover: rgba(30, 41, 59, 0.65);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(56, 189, 248, 0.25);
  
  /* Flutter Accent (Sky Blue / Navy) */
  --flutter-blue: #02569B;
  --flutter-light: #38bdf8;
  
  /* Firebase Accent (Orange / Amber) */
  --firebase-orange: #f57c00;
  --firebase-amber: #ffca28;
  
  /* Semantic Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Fonts & Transitions */
  --font-display: 'Google Sans Flex', 'Google Sans', sans-serif;
  --font-body: 'Google Sans Flex', 'Google Sans', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-darker);
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utilities & Layout */
/* Use a single gutter variable so header and container stay aligned */
:root {
  --gutter: 1.5rem; /* default small screens */
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  transition: max-width 0.4s ease, padding 0.4s ease;
}

@media (min-width: 1200px) {
  :root { --gutter: 3rem; }
  .container { max-width: 1320px; }
}

@media (min-width: 1440px) {
  :root { --gutter: 4rem; }
  .container { max-width: 1420px; }
}

@media (min-width: 1680px) {
  :root { --gutter: 5rem; }
  .container { max-width: 1520px; }
}

@media (min-width: 1920px) {
  :root { --gutter: 6rem; }
  .container { max-width: 1600px; }
}

/* Make the topbar (nav-container) span the full viewport width on extra-large screens, while
   keeping its inner padding aligned with page content. This keeps the header visually full-bleed
   but preserves comfortable gutters for nav items. */
@media (min-width: 1680px) {
  header > .nav-container.container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 1.25rem var(--gutter); /* use gutter for consistent spacing */
    box-sizing: border-box;
  }

  header.scrolled > .nav-container.container {
    padding: 0.75rem var(--gutter);
  }
}

section {
  padding: 3rem 0;
  position: relative;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.text-gradient-flutter {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-firebase {
  background: linear-gradient(135deg, #ffca28 0%, #f57c00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-mixed {
  background: linear-gradient(135deg, var(--flutter-light) 0%, var(--firebase-amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-summer {
  background: linear-gradient(135deg, #fff176 0%, #fbc02d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphic Components */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 0.85rem;
  gap: 0.4rem;
}

.btn-primary {
  background: linear-gradient(135deg, #f57c00 0%, #ff8f00 100%);
  color: #04050a;
  box-shadow: none;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--flutter-light);
  transform: translateY(-2px);
  box-shadow: none;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(7, 10, 19, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  transition: var(--transition-smooth);
}
header.scrolled .nav-container {
  padding: 0.75rem var(--gutter);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo-symbol {
  display: flex;
  align-items: center;
  position: relative;
}

/* Logo symbol glow removed */

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--flutter-light), var(--firebase-amber));
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  padding: 13px 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.burger-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
  transform-origin: center;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 3rem;
  overflow: hidden;
  position: relative;
}

/* Hero background glow elements removed */

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.45rem 0.9rem 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  width: fit-content;
}

.hero-tagline-copy {
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.hero-tagline a {
  color: var(--flutter-light);
  font-weight: 700;
  transition: var(--transition-smooth);
}

.hero-nextflutter-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.28rem 0.7rem 0.28rem 0.42rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.12);
  text-decoration: none;
}

.hero-nextflutter-link:hover {
  color: var(--firebase-amber);
  background: rgba(255, 202, 40, 0.08);
  border-color: rgba(255, 202, 40, 0.18);
}

.hero-nextflutter-logo {
  display: block;
  width: auto;
  height: 1.15rem;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-tagline a:hover {
  color: var(--firebase-amber);
}

.hero-title {
  font-size: clamp(2.8rem, 4.8vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 680px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  min-height: 4.2rem;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-stats.is-visible .stat-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-stats.is-visible .stat-item:nth-child(1) { transition-delay: 0ms; }
.hero-stats.is-visible .stat-item:nth-child(2) { transition-delay: 90ms; }
.hero-stats.is-visible .stat-item:nth-child(3) { transition-delay: 180ms; }
.hero-stats.is-visible .stat-item:nth-child(4) { transition-delay: 270ms; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.2vw, 2.45rem);
  font-weight: 800;
  line-height: 1.1;
  display: inline-block;
}

.stat-label {
  font-size: clamp(0.7rem, 0.8vw, 0.82rem);
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.3;
}

.hero-graphic-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.hero-graphic {
  width: 100%;
  max-width: clamp(280px, 30vw, 440px);
  height: auto;
  max-height: 55vh;
  object-fit: contain;
  filter: none;
  animation: float 6s ease-in-out infinite;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-graphic:hover {
  transform: scale(1.04) rotate(2deg);
}

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

/* ==========================================================================
   CONTEXT & VISION SECTION
   ========================================================================== */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.vision-content h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.vision-paragraph {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: justify;
}

.vision-features {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.v-feature-card {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.2);
}

.v-feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v-feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.vision-svg-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.vision-mesh {
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.1));
}

/* ==========================================================================
   INTERACTIVE TIMELINE SECTION
   ========================================================================== */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-track {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, var(--flutter-light), var(--firebase-amber));
  z-index: 2;
  transition: height 0.4s ease-out;
  box-shadow: none;
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
  z-index: 3;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-card-wrapper {
  display: flex;
  justify-content: flex-end;
}

.timeline-step:nth-child(even) .timeline-card-wrapper {
  grid-column: 2;
  justify-content: flex-start;
}

.timeline-step:nth-child(even) .timeline-info-wrapper {
  grid-column: 1;
  text-align: right;
}

.timeline-info-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0;
}

.timeline-month-badge {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.1rem;
  color: rgba(255, 255, 255, 0.04);
  transition: var(--transition-smooth);
}

.timeline-step.active .timeline-month-badge {
  color: var(--text-primary);
  opacity: 0.15;
}

.timeline-month-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-card {
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
  opacity: 0.2;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.timeline-step.active .timeline-card {
  opacity: 1;
  transform: translateY(0);
}

.timeline-step:nth-child(1).active .timeline-card {
  border-color: rgba(56, 189, 248, 0.15);
  box-shadow: none;
}

.timeline-step:nth-child(2).active .timeline-card {
  border-color: rgba(255, 202, 40, 0.15);
  box-shadow: none;
}

.timeline-step:nth-child(3).active .timeline-card {
  border-color: rgba(255, 143, 0, 0.12);
  box-shadow: none;
}

.timeline-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-darker);
  border: 3px solid rgba(255, 255, 255, 0.2);
  filter: none; /* removed colored glow */
  transition: var(--transition-smooth);
}

.timeline-step.active .timeline-dot {
  transform: translate(-50%, -50%) scale(1.2);
  background: var(--bg-darker);
}

.timeline-step:nth-child(1).active .timeline-dot {
  border-color: var(--flutter-light);
  box-shadow: none;
}

.timeline-step:nth-child(2).active .timeline-dot {
  border-color: var(--firebase-amber);
  box-shadow: none;
}

.timeline-step:nth-child(3).active .timeline-dot {
  border-color: #ff8f00;
  box-shadow: none;
}

.timeline-step-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.timeline-step-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.timeline-list-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   EXPERTS & MENTORS SECTION
   ========================================================================== */
.mentors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 360px));
  gap: 1.25rem;
  justify-content: center;
  align-items: start;
}

.mentor-card {
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 360px;
}

.mentor-avatar-container {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  padding: 3px;
  margin-bottom: 1rem;
  position: relative;
  background: linear-gradient(135deg, var(--flutter-light) 0%, var(--firebase-amber) 100%);
}

.mentor-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--bg-darker);
  transition: var(--transition-smooth);
}

.mentor-card:hover .mentor-avatar {
  transform: scale(1.05);
}

/* Added styling for actual user images */
.mentor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.gde-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #4285F4;
  color: white;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.mentor-name {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.mentor-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.mentor-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.mentor-bio-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 0.75rem;
}

.mentor-bio-wrap .mentor-bio {
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  max-height: calc(1.4em * 3);
  transition: max-height 0.35s ease;
}

.mentor-bio-wrap.expanded .mentor-bio {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  max-height: 600px;
}

.mentor-bio-toggle {
  background: transparent;
  border: 0;
  color: var(--flutter-light);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-top: 0.1rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-bottom: 0.9rem;
}

.mentor-bio-toggle:hover {
  color: var(--firebase-amber);
}

.mentor-bio-toggle + .mentor-socials,
.mentor-bio-wrap + .mentor-socials {
  margin-top: 0.5rem;
}

@media (max-width: 420px) {
  .mentors-grid {
    grid-template-columns: 1fr;
  }

  .mentor-card {
    max-width: 100%;
  }
}

.mentor-socials {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.mentor-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.mentor-social-link:hover {
  background: var(--bg-card-hover);
  color: #f8fafc;
  border-color: #f8fafc;
  transform: translateY(-2px);
}

/* Ensure social icons are outlines (stroke) and visible on the dark background.
   Keep fills removed and force stroke to currentColor so hover color works.
*/
.mentor-social-link svg,
.mentor-social-link svg * {
  fill: none !important;
  stroke: currentColor !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mentor-social-link i,
.footer-social-link i,
.social-icon-svg {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.social-icon-svg {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Make text-based SVG icons (stroked 'G') thinner and same visual size as other icons */
.mentor-social-link svg text {
  stroke-width: 1 !important;
  font-weight: 400 !important;
  font-size: 12px !important;
  dominant-baseline: middle;
}

/* ==========================================================================
   ORGANIZER & PARTNERS SECTION
   ========================================================================== */
.organizer-section {
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6rem;
  margin-bottom: 0;
  color: var(--text-primary);
}

#partenaires {
  background: var(--bg-darker) !important;
  color: var(--text-primary);
}

.organizer-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: center;
}

.organizer-photo-frame {
  width: 130px;
  height: 130px;
  border-radius: 1.2rem;
  position: relative;
  padding: 3px;
  background: linear-gradient(135deg, var(--flutter-light) 0%, var(--firebase-amber) 100%);
  transform: rotate(-3deg);
  transition: var(--transition-smooth);
}

.organizer-photo-frame:hover {
  transform: rotate(0deg) scale(1.03);
}

.organizer-photo {
  width: 100%;
  height: 100%;
  border-radius: 1.3rem;
  background: var(--bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid var(--bg-darker);
}

/* Added styling for actual organizer image */
.organizer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.1rem;
}

.organizer-info-badge {
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--firebase-amber);
  margin-bottom: 0.75rem;
}

.organizer-name {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.organizer-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.organizer-bio {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.organizer-bio a {
  color: var(--flutter-light);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition-smooth);
}

.organizer-bio a:hover {
  color: var(--firebase-amber);
}


.partners-wrapper {
  padding-top: 6rem;
  padding-bottom: 1rem;
}

.partners-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

/* Partner logo card: reserve a clear 16:9 tile and make logos more visible */
.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  aspect-ratio: 16 / 9;
  background: #fff;
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.partner-logo:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.24);
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.partner-logo img,
.partner-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  padding: 4rem 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.faq-group-card {
  padding: 1.5rem;
  border-radius: 1rem;
}

.faq-group-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq-item[open] {
  border-color: var(--border-color-hover);
  background: rgba(255, 255, 255, 0.035);
}

.faq-item + .faq-item {
  margin-top: 0.75rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--flutter-light);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item a {
  color: var(--flutter-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  aspect-ratio: 16 / 9;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.partner-logo img,
.partner-logo svg {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  display: block;
}

/* Responsive: reduce partner logo height on small screens */
@media (max-width: 768px) {
  .hero-stats {
    gap: 1.25rem 0.9rem;
  }

  .stat-number {
    font-size: clamp(1.35rem, 5vw, 1.9rem);
  }

  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
  }

  .partner-logo {
    width: 100%;
    max-width: 128px;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
  }

  .partner-logo img,
  .partner-logo svg {
    height: 52px;
    max-height: 52px;
  }

  .partner-logo:hover img,
  .partner-logo:hover svg {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-item,
  .hero-stats.is-visible .stat-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.partner-logo:hover img,
.partner-logo:hover svg {
  transform: translateY(-4px);
}

/* ==========================================================================
   FINAL CALL TO ACTION
   ========================================================================== */
.final-cta-section {
  padding: 4rem 0;
}

.cta-banner {
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner-title {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.cta-banner-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  line-height: 1.5;
  font-size: 0.9rem;
}

.footer-links-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 2rem;
}

.footer-bottom p {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.75;
}

.footer-socials {
  display: flex;
  gap: 1.25rem;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.footer-social-link:hover {
  background: var(--bg-card-hover);
  color: #f8fafc;
  border-color: #f8fafc;
  transform: translateY(-2px);
}

.footer-social-link svg,
.footer-social-link svg * {
  fill: none !important;
  stroke: currentColor !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social-link[aria-label="Medium"] svg {
  display: block;
  transform: translateY(1px);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 4.2rem;
  }
  
  .hero-grid {
    gap: 2rem;
  }

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

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: calc(100svh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 1.5rem;
  }

  .desktop-br {
    display: none;
  }


  section:not(.hero-section) {
    padding: 5rem 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: rgba(4, 5, 10, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.75rem;
    padding: 7.5rem 3.5rem;
    z-index: 1000;
    transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links .nav-link {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-transform: none;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
  }

  .nav-links .nav-link:hover,
  .nav-links .nav-link.active {
    color: var(--text-primary);
  }

  .burger-btn {
    display: flex;
  }

  .burger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .burger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }
  .burger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .header-cta .btn {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding-top: 0;
    align-items: center;
    justify-items: center;
  }

  .hero-content {
    margin: 0 auto;
    width: 100%;
    max-width: 680px;
  }

  .hero-tagline {
    font-size: 0.78rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.25rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    padding: 0 0.5rem;
  }

  .hero-ctas {
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero-ctas .btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.75rem;
    max-width: 420px;
    margin: 0 auto;
    padding-top: 1.5rem;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.72rem;
    margin-top: 0.25rem;
  }

  .hero-graphic-container {
    display: none;
  }

  .vision-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .vision-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .v-feature-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .vision-svg-wrapper {
    grid-row: 1;
  }

  .timeline-track, .timeline-progress {
    left: 20px;
    transform: none;
  }

  .timeline-step {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-left: 45px;
    margin-bottom: 4rem;
  }

  .timeline-card-wrapper {
    justify-content: flex-start;
    order: 2;
  }

  .timeline-info-wrapper {
    order: 1;
  }

  .timeline-step:nth-child(even) .timeline-card-wrapper {
    grid-column: 1;
  }

  .timeline-step:nth-child(even) .timeline-info-wrapper {
    grid-column: 1;
    text-align: left;
  }

  .timeline-dot {
    left: 21px;
    top: 30px;
    transform: translate(-50%, 0);
  }

  .timeline-step.active .timeline-dot {
    transform: translate(-50%, 0) scale(1.2);
  }

  .timeline-month-badge {
    font-size: 2.2rem;
  }

  .organizer-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }

  .organizer-wrapper .mentor-socials {
    justify-content: center;
  }

  .organizer-photo-frame {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .faq-group-card {
    padding: 1.25rem;
  }

  .faq-item summary {
    font-size: 0.95rem;
    line-height: 1.4;
    padding-right: 1.2rem;
  }
}

/* Compact layout for screens with smaller heights (laptops, minimized windows) */
@media (max-height: 850px) and (min-width: 769px) {
  .hero-section {
    padding-top: 4.5rem;
    padding-bottom: 1.5rem;
  }
  .hero-tagline {
    margin-bottom: 1.25rem;
  }
  .hero-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
  }
  .hero-ctas {
    margin-bottom: 1.5rem;
  }
  .hero-stats {
    padding-top: 1rem;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .hero-graphic {
    max-width: 280px;
  }
}

/* ==========================================================================
   BLOG PAGE STYLES
   ========================================================================== */
.blog-hero {
  padding-top: 8rem;
  padding-bottom: 2.5rem;
  text-align: center;
  position: relative;
}

.blog-hero h1.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.blog-controls-section {
  padding: 1rem 0;
}

.blog-grid-section {
  padding-top: 1rem;
}

.blog-controls {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .blog-controls {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
}

/* Mobile Spacing Optimizations for Blogs Page */
@media (max-width: 768px) {
  section.blog-hero {
    padding-top: 5.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  section.blog-hero h1.hero-title {
    font-size: 1.65rem !important;
  }
  section.blog-controls-section {
    padding: 0.5rem 0 !important;
  }
  .blog-controls {
    margin-bottom: 1rem;
    gap: 0.85rem;
  }
  section.blog-grid-section {
    padding-top: 0.25rem !important;
  }
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1.25rem 0.75rem 2.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--flutter-light);
  background: rgba(30, 41, 59, 0.6);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.search-btn {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border-radius: 50%;
  transition: var(--transition-smooth);
  z-index: 10;
}

.search-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.search-btn img {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.search-btn:hover img {
  opacity: 1;
}

.filter-tabs {
  display: flex;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.3);
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 450px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.filter-tabs::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.filter-tab {
  flex: 1;
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--text-primary);
}

.filter-tab.active[data-category="all"] {
  color: #04050a;
  background: linear-gradient(135deg, var(--flutter-light) 0%, var(--firebase-amber) 100%);
}

.filter-tab.active[data-category="Dart"] {
  color: #04050a;
  background: var(--flutter-light);
}

.filter-tab.active[data-category="Flutter"] {
  color: #ffffff;
  background: #0284c7;
}

.filter-tab.active[data-category="Firebase"] {
  color: #04050a;
  background: var(--firebase-amber);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.blog-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Ratio */
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--border-color);
  border-radius: 1rem 1rem 0 0;
}

.blog-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.blog-category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.badge-dart {
  background: rgba(56, 189, 248, 0.1);
  color: var(--flutter-light);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.badge-flutter {
  background: rgba(2, 86, 155, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(2, 86, 155, 0.3);
}

.badge-firebase {
  background: rgba(245, 124, 0, 0.1);
  color: var(--firebase-amber);
  border: 1px solid rgba(245, 124, 0, 0.2);
}

.blog-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3rem;
}

.blog-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--flutter-light);
  text-decoration: none;
  margin-top: auto;
  transition: var(--transition-smooth);
}

.blog-card-link:hover {
  color: var(--firebase-amber);
  transform: translateX(4px);
}

.blog-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.blog-no-results svg {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

