/* ========== RESET / BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background: #2d3394;
}

/* ========== NAVBAR ========== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #2b0b88;
  padding: 1rem 2rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
}

.nav-logo a {
  font-size: 1.6rem;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(90deg, #d60270, #9b4f96, #4a6cf7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background: linear-gradient(90deg, #d60270, #9b4f96, #4a6cf7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.register-btn {
  background: linear-gradient(90deg, #d60270, #9b4f96, #4a6cf7);
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.register-btn:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

/* Hamburger (base) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== HERO SECTION ========== */
#home {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 0 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #210c75 0%, #180b5978 100%);
  z-index: 0;
}

#home::before {
  content: none !important;
}

/* dashed/grid layer */
.quantum-grid {
  position: absolute;
  inset: 0;
  background-color: transparent;
  background-image:
    linear-gradient(rgb(255 255 255 / 10%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 10%) 1px, transparent 1px);
  background-size: 25px 25px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}

/* particles (hero) */
#home .quantum-particles {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

/* waves (hero) - scoped so calendar waves can differ */
#home .quantum-waves {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.02) 50%, transparent 60%);
  animation: wave 8s linear infinite;
  z-index: 3;
  pointer-events: none;
}

/* glass overlay */
.glass-wave {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  animation: glassMove 20s linear infinite;
  filter: blur(80px);
  mix-blend-mode: screen;
  z-index: 4;
  pointer-events: none;
}

/* hero title / content */
#home h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  font-weight: 900;
  background: linear-gradient(90deg, #d60270, #9b4f96, #4a6cf7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 1;
  color: #ffffff;
}

.date-box {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #9d7dff;
  z-index: 1;
  display: inline-block;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: glow 3s ease-in-out infinite;
}

#home p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  color: white;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  z-index: 1;
}

.cta-btn {
  background: linear-gradient(90deg, #d60270, #9b4f96, #4a6cf7);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 999px;
  font-weight: bold;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.cta-btn:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

/* Countdown */
#countdown {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  z-index: 1;
}

.count-box {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  width: 95px;
  height: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  color: #fff;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  padding: 12px 0;
}

.count-box span {
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0;
  line-height: 1;
}

.count-box p {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.85;
  line-height: 1.1;
  display: block;
}

/* ========== ANIMATIONS ========== */
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes wave {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

@keyframes glassMove {
  0%   { transform: translateX(-20%) translateY(-20%) rotate(0deg); }
  50%  { transform: translateX(20%) translateY(20%) rotate(180deg); }
  100% { transform: translateX(-20%) translateY(-20%) rotate(360deg); }
}

@keyframes glowMove {
  from { transform: translate(-10%, -10%); }
  to   { transform: translate(10%, 10%); }
}

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

@keyframes glow {
  0% { filter: drop-shadow(0 0 5px rgba(155, 79, 150, 0.4)); }
  50% { filter: drop-shadow(0 0 20px rgba(214, 2, 112, 0.9)); }
  100% { filter: drop-shadow(0 0 5px rgba(155, 37, 147, 0.4)); }
}

/* Slightly stronger fadeIn kept (single definition) */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* popUp used in timeline */
@keyframes popUp {
  from { opacity: 0; transform: translate(-50%, -6px) scale(0.98); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* ========== LOGO / BRAND ========== */
.atom-logo {
  width: 140px;
  display: block;
  margin: 0 auto 1rem auto;
  z-index: 1;
  animation: float 4s ease-in-out infinite, glow 3s ease-in-out infinite;
}

/* ========== ABOUT SECTION ========== */
#about ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

#about li {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
}

.about-qff {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.about-header { text-align: center; }

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.highlight-text {
  background: linear-gradient(90deg, #d60270, #9b4f96, #4a6cf7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-description {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text ul { list-style: none; padding: 0; }

.about-text li {
  background: #ffffff;
  border-left: 4px solid #7c3aed;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #334155;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-showcase {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
}

.about-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170px;
  height: 170px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  padding: 1.2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  object-fit: contain;
  z-index: 2;
}

.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  padding: 1rem;
  object-fit: contain;
  z-index: 3;
}

.orbit-1 { animation: circular-orbit-1 8s linear infinite; }
.orbit-2 { animation: circular-orbit-2 8s linear infinite; }
.orbit-3 { animation: circular-orbit-3 8s linear infinite; }

@keyframes circular-orbit-1 {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(140px) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(140px) rotate(-360deg); }
}
@keyframes circular-orbit-2 {
  0% { transform: translate(-50%, -50%) rotate(120deg) translateX(140px) rotate(-120deg); }
  100% { transform: translate(-50%, -50%) rotate(480deg) translateX(140px) rotate(-480deg); }
}
@keyframes circular-orbit-3 {
  0% { transform: translate(-50%, -50%) rotate(240deg) translateX(140px) rotate(-240deg); }
  100% { transform: translate(-50%, -50%) rotate(600deg) translateX(140px) rotate(-600deg); }
}

/* ========== SCHEDULE / CALENDAR ========== */
#schedule { background: #f9f9f9; }

.agenda { display: flex; flex-direction: column; gap: 1rem; }

.agenda-item {
  background: white;
  padding: 1rem;
  border-left: 4px solid #00bfff;
  border-radius: 5px;
}

.calendar-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f7f7fc 0%, #ece9f9 100%);
  color: #1e1b4b;
  position: relative;
  overflow: hidden;
}

.calendar-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.13) 0%, #f8eaf7);
  filter: blur(32px);
  z-index: 2;
  pointer-events: none;
}

.quantum-calendar-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.quantum-particles-calendar {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(125, 211, 252, 0.15) 0%, transparent 50%);
  animation: pulse 6s ease-in-out infinite;
}

/* waves (calendar) — different animation timing, scoped to calendar-section */
.calendar-section .quantum-waves {
  position: absolute;
  width: 100%;
  z-index: 1;
  height: 100%;
  background: linear-gradient(45deg, transparent 40%, rgba(59, 130, 246, 0.08) 50%, transparent 60%);
  animation: wave 12s linear infinite;
}

/* circuit/grid pattern in calendar */
.circuit-patterns {
  position: absolute;
  width: 100%;
  z-index: 1;
  height: 100%;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: slide 20s linear infinite;
}

.calendar-content { text-align: center; position: relative; z-index: 10; }

.calendar-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, #d60270, #9b4f96, #4a6cf7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.daily-schedule {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

.calendar-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45,51,148,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,51,148,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}

.schedule-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-item:hover {
  transform: translateX(6px);
  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.55),
    0 0 60px rgba(139, 92, 246, 0.25);
}

.time-slot {
  font-size: 1.125rem;
  font-weight: 700;
  color: #551c62;
  display: flex;
  align-items: center;
}

.event-details h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #87339a;
}

.event-details p {
  color: #49334b;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.speaker {
  font-size: 0.875rem;
  color: #2d3394;
  font-weight: 600;
}

/* day schedule blocks */
.day-schedule {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.4s ease;
  padding: 2rem;
}

.day-schedule.active { display: flex; }

.day-group { display: flex; flex-direction: column; gap: 1rem; }

.day-card {
  cursor: pointer;
  background: linear-gradient(135deg, #fffeff, #ffeffe);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.day-card:hover {
  transform: translateX(6px);
  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.55),
    0 0 60px rgba(139, 92, 246, 0.25);
}

/* ========== TIMELINE ========== */
.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.7rem 2rem;
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  box-shadow: 0 2px 12px rgba(124,58,237,0.08);
  width: fit-content;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.timeline-section {
  text-align: center;
  padding: 7rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f4f2f8 100%);
  position: relative;
}

.timeline-content {
  position: relative;
  overflow: visible;
  transition: padding-bottom 180ms ease;
}

/* desktop baseline */
.timeline-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 2.5rem;
  justify-content: center;
}

/* horizontal baseline (desktop) */
.timeline-container::before {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  height: 4px;
  bottom: 40px;
  background: linear-gradient(90deg, #d60270, #9b4f96, #4a6cf7);
  border-radius: 2px;
  z-index: 2;
}


.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 10;
  width: auto;
}

.timeline-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(124,58,237,0.15);
  border: 4px solid #9b4f96;
  position: relative;
  z-index: 60;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.timeline-icon:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 36px rgba(124,58,237,0.22);
}

.timeline-icon::after {
  content: attr(data-year);
  position: absolute;
  bottom: -42px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 800;
  color: #6b2b7a;
  background: transparent;
  font-size: 1rem;
  z-index: 61;
  white-space: nowrap;
}

.timeline-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

/* content items (desktop) */

.timeline-content-item {
  display: none !important; /* per original: keep hidden — shared panel used */
  position: absolute;
  top: calc(100% + 40px);
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(17,17,17,0.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.04);
  z-index: 999;
}

.timeline-item.open .timeline-content-item {
  display: block;
  animation: popUp 0.18s ease;
}

.timeline-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #d60270, #9b4f96, #4a6cf7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline-description {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto 4rem;
  line-height: 1.7;
}

/* Shared timeline panel (single consolidated) */
#timeline-panel {
  max-width: 760px;
  margin: 3rem auto 0 auto;
  background: rgba(255,255,255,0.98);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(17,17,17,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 1.25rem 1.5rem;
  display: none;
  position: relative;
  left: 0;
  transform: none;
  z-index: 5;
  transition: all 0.25s ease;
}

#timeline-panel.open { display: block; }

.timeline-panel.collapsed {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  border-radius: 6px;
}

.timeline-panel.collapsed .timeline-year,
.timeline-panel.collapsed h3 {
  display: block;
  text-align: center;
  margin: 0 auto;
}

.timeline-panel.collapsed .timeline-panel-content p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0.4rem auto 0 auto;
  color: #64748b;
  max-width: 85%;
  text-align: center;
  font-size: 0.98rem;
}

.timeline-panel .timeline-panel-content p {
  text-align: center;
}

/* ensure cloned content inside shared panel has same styles */
.timeline-panel .timeline-year {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #d60270, #9b4f96, #4a6cf7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline-panel h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  text-align: center;
}

.timeline-panel p {
  color: #64748b;
  line-height: 1.6;
  font-size: 1rem;
  text-align: center;
}

.timeline-panel-toggle {
  display: inline-block;
  margin: 12px auto 0 auto;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, #d60270, #9b4f96);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(155,79,150,0.12);
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.timeline-panel-toggle:active { transform: translateY(1px); }

/* ========== TEAM / SPEAKERS / CONTRIBUTORS ========== */
.team-section {
  padding: 2.5rem 0 1.5rem 0;
  background: #f8fafc;
}

.team-content { text-align: center; }

.team-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, #d60270, #9b4f96, #4a6cf7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-category { margin-bottom: 4rem; }

.category-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #7c3aed;
  margin-bottom: 2rem;
}

.category-title i { font-size: 1.5rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-member {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(124,58,237,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.15);
}

#organizers-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.member-photo { margin-bottom: 1.5rem; }

.member-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #7c3aed;
  box-shadow: 0 2px 8px rgba(124,58,237,0.08);
}

.member-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.member-role {
  font-size: 1rem;
  font-weight: 600;
  color: #7c3aed;
}

#speakers-grid .member-role {
  color: #551a8b;
  margin-bottom: 1rem;
}

.member-bio {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

#speakers-grid,
#contributors-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

#speakers-grid .team-member,
#contributors-grid .team-member {
  flex: 0 1 250px;
  max-width: 250px;
}

/* ========== FOOTER ========== */
.footer {
  background: #1e293b;
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1 1 180px;
  min-width: 180px;
  text-align: center;
}

.footer-section h4 { margin-bottom: 0.8rem; font-weight: 600; }

.footer-section ul { list-style: none; padding: 0; margin: 0; }

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

.footer-section a {
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-section a:hover { opacity: 1; }

.footer-bottom { margin-top: 2rem; text-align: center; }

.footer-social a {
  color: #8a2be2;
  font-size: 1.4rem;
  margin: 0 12px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social a:hover { color: #b871ff; }

/* ========== UTILITIES ========== */
/* small helpers retained for layout consistency */
.hidden { display: none !important; }

/* ========== MEDIA QUERIES (CONSOLIDATED) ========== */
/* Note: mantive as mesmas condições e regras; consolidei blocos repetidos por breakpoint. */

/* <= 900px */
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* <= 800px */
@media (max-width: 800px) {
  /* hamburger visible, nav adaptations */
  .hamburger { display: flex !important; }

  /* hide desktop menu by default */
  nav ul { display: none; }

  nav ul.open { display: flex; }

  /* register button behavior */
  .register-btn { display: none !important; }

  nav ul.open + .register-btn {
    display: block !important;
    position: fixed;
    top: 38px;
    right: 0;
    margin: 0;
    width: 90px;
    text-align: center;
    font-size: 0.7rem;
    padding: 0.15rem 0.2rem;
    border-radius: 6px;
    background: #7c3aed;
    color: #fff;
    font-weight: 600;
    box-shadow: none;
    z-index: 1101;
    border: none;
    transition: background 0.2s;
  }
  nav ul.open + .register-btn:hover { background: #9b4f96; }

  /* mobile menu open styles */
  nav ul.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    position: fixed;
    top: 40px;
    right: 0;
    width: 110px;
    min-height: 175px;
    background: #2d3394;
    box-shadow: 0 4px 24px rgba(45,51,148,0.15);
    padding: 1.2rem 0.5rem 0.7rem 0.5rem;
    z-index: 1100;
  }

  nav ul.open li {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  nav ul.open + .register-btn {
    display: block !important;
    margin: 1.2rem auto 0 auto;
    width: 110px;
    text-align: center;
    font-size: 0.7rem;
    padding: 0.18rem 0.3rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #d60270, #9b4f96, #4a6cf7);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 1px 4px rgba(124,58,237,0.05);
  }

  /* alternate hamburger styling in tighter viewport */
  .hamburger {
    width: 22px;
    height: 22px;
    padding: 0;
    margin-left: 4px;
    background: none;
    border: none;
    box-shadow: none;
    outline: none;
  }

  .hamburger span {
    width: 14px;
    height: 2px;
    margin: 2px 0;
    background: #fff;
    border-radius: 1px;
    transition: 0.3s;
    display: block;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
    background: #7c3aed;
  }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    background: #7c3aed;
  }

  /* menu animation */
  @keyframes menuFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  /* timeline: make horizontal scrollable and keep panel relative */
  .timeline-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    position: relative;
  }

  #timeline-panel {
    position: relative;
    width: calc(100% - 2rem);
    margin: 1rem auto 2rem auto;
    left: auto;
    transform: none;
    top: auto;
  }

  .timeline-item { flex: 0 0 auto; }

  /* register btn behavior when menu open on small screens (different rule set) */
  nav ul.open + .register-btn {
    display: block !important;
    margin: 0.3rem auto 0 auto;
    width: 90px;
    text-align: center;
    font-size: 0.65rem;
    padding: 0.12rem 0.2rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #d60270, #9b4f96, #4a6cf7);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 1px 4px rgba(124,58,237,0.05);
  }

  /* adjustments to nav ul.open appearance in narrow mode */
  nav ul.open {
    gap: 0.5rem;
    padding: 0.5rem 0.2rem 0.2rem 0.2rem;
    border-radius: 0 0 0 8px;
    animation: menuFadeIn 0.25s;
  }

  nav ul.open li a {
    font-size: 0.8rem;
    padding: 0.2rem 0;
    border-radius: 4px;
    color: #fff;
    background: none;
    transition: background 0.2s, color 0.2s;
    display: block;
  }
  nav ul.open li a:hover {
    background: #7c3aed;
    color: #fff;
  }

  /* timeline items not stretch horizontally */
  .timeline-item { flex: 0 0 auto; }
}

/* <= 768px */
@media (max-width: 768px) {
  header h1, 
  header .main-title {
    -webkit-text-stroke: 0; 
    text-shadow: none;      
    font-size: 2rem;         
    line-height: 1.2;        
  }
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-showcase { margin-top: 2rem; }
}

/* <= 700px */
@media (max-width: 700px) {
  .schedule-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    text-align: left;
    padding: 1rem;
    overflow-wrap: break-word; 
    word-break: break-word;
  }

  .event-details h3 {
    font-size: 1rem;
  }

  .event-details p {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .time-slot {
    font-size: 0.9rem;
    color: #c084fc;
  }
  
  .day-card {
    width: 80%;            
    height: auto;          
    min-height: 70px;      
    padding: 1rem;         
    font-size: 0.95rem;    
    border-radius: 0.8rem; 
    margin: 0.5rem auto;   
  }

  .calendar-days {
    flex-direction: column; 
    align-items: center;
    gap: 0.8rem;
  }
}

/* <= 600px (consolidated block: contains all rules that were under 600px) */
@media (max-width: 600px) {
  /* NAVBAR adjustments */
  nav {
    flex-direction: row;
    padding: 0.2rem 0.5rem;
    height: 38px;
    min-height: 38px;
  }

  .nav-logo a {
    font-size: 0.85rem;
    padding: 0;
    margin: 0;
  }

  .hamburger {
    width: 28px;
    height: 28px;
    padding: 0;
    margin-left: 8px;
  }
  .hamburger span {
    width: 22px;
    height: 3px;
    margin: 3px 0;
  }

  nav ul {
    top: 38px;
    width: 120px;
    padding: 0.5rem 0.2rem;
    font-size: 0.85rem;
  }

  .register-btn {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    margin-top: 0;
    height: 28px;
    line-height: 28px;
  }

  /* HERO adjustments */
  #home { padding: 2.5rem 0.5rem 0 0.5rem; }

  .date-box {
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
    margin-bottom: 0.7rem;
  }

  #home h1 {
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
  }

  .about-showcase {
    width: 100%;
    height: 220px;
  }

  .about-center {
    width: 110px;
    height: 110px;
  }

  .orbit-item {
    width: 60px;
    height: 60px;
  }

  .calendar-title,
  .team-title,
  .timeline-title {
    font-size: 1.5rem;
  }

  .team-grid,
  #speakers-grid,
  #contributors-grid {
    grid-template-columns: 1fr !important;
    gap: 0.7rem;
  }

  .team-member {
    padding: 1.2rem 0.7rem;
    margin: 0.5rem 0;
    max-width: 250px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Footer adjustments */
  .footer {
    padding: 1.2rem 0 0.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
  }

  .footer-section {
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
  }

  .footer-section h3,
  .footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .footer-bottom {
    padding-top: 1rem;
    font-size: 0.8rem;
  }

  .footer-social a {
    font-size: 1.3rem !important;
    margin: 0 6px !important;
  }

  /* TIMELINE adjustments for narrow screens */
  .timeline-container {
    max-width: 100%;
    padding: 0 0.2rem;
  }

  .timeline-item {
    flex-direction: column !important;
    margin-bottom: 1.2rem;
    align-items: center;
  }

  .timeline-icon {
    margin-bottom: 0.7rem;
    width: 70px;
    height: 70px;
  }

  .timeline-image {
    width: 50px;
    height: 50px;
  }

  .timeline-content-item {
    margin: 0;
    padding: 0.7rem;
    max-width: 250px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .timeline-container::before {
    left: 50%;
    width: 2px;
    background: #9b4f96;
    top: 0;
    bottom: 0;
    height: 100%;
  }

  /* CTA / Countdown adjustments */
  .cta-buttons .cta-btn {
    font-size: 1rem;
    padding: 0.55rem 1.1rem;
    margin: 0.4rem;
  }

  .date-box {
    font-size: 1rem;
    padding: 0.45rem 1rem;
  }

  #countdown { gap: 0.6rem; }

  #countdown .count-box { padding: 0.5rem 0.8rem; }

  #countdown .count-box span { font-size: 1.8rem; }

  #countdown .count-box p { font-size: 0.8rem; }

  /* Countdown header compaction (separate block originally) */
  #countdown {
    gap: 0.3rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    overflow-x: unset;
  }

  #countdown .count-box {
    min-width: 70px;
    max-width: 90px;
    padding: 0.25rem 0.2rem;
    margin: 0;
  }

  #countdown .count-box span { font-size: 1.4rem; }
  #countdown .count-box p { font-size: 0.7rem; }

  /* hide about visual on small screens */
  .about-visual { display: none; }

  /* global title downscale */
  h1, .about-title, .calendar-title, .team-title, .timeline-title {
    font-size: 1.3rem;
    line-height: 1.2;
  }

  h2, h3, .category-title, .section-badge span { font-size: 1.1rem; }

  .atom-logo { max-width: 120px; height: auto; }
}

/* >= 801px (desktop-specific adjustments kept) */
@media (min-width: 801px) {
  .timeline-content {
    padding-bottom: var(--timeline-extra, 0);
    transition: padding-bottom 180ms ease;
  }

  .timeline-content-item {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    display: none;
    z-index: 50;
  }

  .timeline-item.open .timeline-content-item {
    display: block;
    animation: popUp 0.12s ease;
  }
}
