/* ── Reset & Base ── */
@font-face {
  font-family: 'Recline';
  src: url('../fonts/recline-regular-webfont.woff2') format('woff2'),
       url('../fonts/recline-regular-webfont.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Recline';
  src: url('../fonts/recline-medium-webfont.woff2') format('woff2'),
       url('../fonts/recline-medium-webfont.woff') format('woff');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Recline';
  src: url('../fonts/recline-bold-webfont.woff2') format('woff2'),
       url('../fonts/recline-bold-webfont.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Recline', 'Inter', system-ui, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Utilities ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.hidden { display: none !important; }
.accent { color: #0DA2EF; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: #0DA2EF;
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(13,162,239,0.4); }
.btn-sm { padding: 0.55rem 1.4rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 3rem; font-size: 1.1rem; }

/* ── Nav ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0.8rem 1.5rem;
  display: flex; align-items: center; gap: 2rem;
}
.logo { font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em; color: #1a1a1a; }
.nav-links { display: flex; gap: 1.5rem; flex: 1; }
.nav-links a { font-size: 0.85rem; color: #666; transition: color 0.2s; }
.nav-links a:hover { color: #1a1a1a; }
.hamburger { display: none; background: none; border: none; color: #1a1a1a; font-size: 1.5rem; cursor: pointer; margin-left: auto; }

/* ── Hero ── */
#hero {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.hero-bg {
  width: 100%;
  display: block;
}
.hero-bg.mobile { display: none; }
#hero::after {
  display: none;
}
.hero-content {
  position: absolute; inset: 0; z-index: 1;
}
.hero-berkeley, .hero-cal {
  position: absolute;
  font-size: 10.29vw; /* 140/1360 */
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 4px 4px 8px rgba(0,0,0,0.7);
}
.hero-berkeley {
  left: 11.4%;
  top: 34.24%;
  color: #0DA2EF;
}
.hero-cal {
  left: 52.3%;
  top: 34.24%;
  color: #fff;
}
.hero-date {
  position: absolute;
  left: 16.54%;
  top: 48.5%;
  font-size: 4.12vw;
  font-weight: 600;
  color: #000;
  margin: 0;
}
.hero-sub {
  position: absolute;
  left: 11.84%; /* 161/1360 */
  top: 68.75%; /* (508+20)/768 */
  font-size: 2.2vw; /* 30/1360 */
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 6px rgba(0,0,0,0.7);
  text-align: left;
  line-height: 1.4;
  margin: 0;
}
.btn-hero {
  position: absolute;
  left: 25.15%; /* 342/1360 */
  top: 82.94%;
  width: 19.26vw; /* 262/1360 */
  height: 5.59vw; /* 76/1360 */
  display: flex; align-items: center; justify-content: center;
  font-size: 1.87vw;
}

/* ── Hero Stats ── */
.hero-stats {
  display: flex; gap: 3rem; justify-content: center;
  padding: 1.5rem 1.5rem;
  color: #555; font-size: 0.9rem;
  background: #f5f5f5;
}
.hero-stats strong { display: block; font-size: 1.4rem; color: #1a1a1a; }

/* ── Sections ── */
section { padding: 6rem 0; }
section:nth-child(even) { background: #f5f5f5; }
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; letter-spacing: -0.03em;
  color: #1a1a1a; margin-bottom: 1rem;
}
.section-lead { font-size: 1.15rem; color: #555; max-width: 700px; margin-bottom: 3rem; }
.section-sub { font-size: 1rem; color: #666; margin-bottom: 2rem; }

/* ── Feature Grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { border-color: rgba(0,50,98,0.3); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.feature-card h3 { font-size: 1.15rem; color: #1a1a1a; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: #555; }

/* ── Program / Schedule ── */
.day-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.day-tab {
  padding: 0.6rem 1.5rem; border-radius: 50px;
  background: #fff; border: 1px solid rgba(0,0,0,0.15);
  color: #666; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.day-tab.active { background: #0DA2EF; color: #fff; border-color: #0DA2EF; }
.schedule-item {
  display: flex; gap: 1.5rem; padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 0.95rem; align-items: baseline;
}
.schedule-item .time { min-width: 120px; color: #0DA2EF; font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.schedule-item.break { color: #999; }
.schedule-item.break .time { color: #aaa; }
.schedule-item.keynote { color: #1a1a1a; }
.schedule-item.keynote .time { color: #0DA2EF; }

/* ── Speakers ── */
.speakers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.speaker-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 1.5rem; text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.speaker-card:hover { border-color: rgba(0,50,98,0.3); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.speaker-img {
  width: 200px; height: 200px; border-radius: 50%;
  object-fit: cover; object-position: top;
  margin: 0 auto 1rem;
  border: 3px solid rgba(0,50,98,0.2);
}
.speaker-card h4 { font-size: 0.95rem; color: #1a1a1a; margin-bottom: 0.25rem; }
.speaker-card p { font-size: 0.8rem; color: #666; }

/* ── Bio Tooltip (speech bubble) ── */
.bio-bubble {
  position: fixed;
  z-index: 200;
  max-width: 340px;
  padding: 1.2rem 1.4rem;
  background: #fff;
  border: 1px solid rgba(0,50,98,0.2);
  border-radius: 14px;
  color: #333;
  font-size: 0.82rem;
  line-height: 1.55;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}
.bio-bubble.visible { opacity: 1; transform: translateY(0); }
.bio-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: #fff;
  border-right: 1px solid rgba(0,50,98,0.2);
  border-bottom: 1px solid rgba(0,50,98,0.2);
}
.bio-bubble.below::after {
  bottom: auto; top: -6px;
  border-right: none; border-bottom: none;
  border-left: 1px solid rgba(0,50,98,0.2);
  border-top: 1px solid rgba(0,50,98,0.2);
}

/* ── Award ── */
.award-card {
  background: linear-gradient(135deg, rgba(0,50,98,0.08), rgba(59,126,161,0.04));
  border: 1px solid rgba(0,50,98,0.15);
  border-radius: 16px; padding: 2.5rem; max-width: 700px;
}
.award-card p { margin-bottom: 1rem; color: #333; }
.award-card p:last-child { margin-bottom: 0; }

/* ── Venue ── */
.venue-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px; padding: 2.5rem; max-width: 600px;
}
.venue-card h3 { font-size: 1.5rem; color: #1a1a1a; margin-bottom: 0.25rem; }
.venue-img { width: 100%; border-radius: 12px; margin-bottom: 1.5rem; }
.venue-card > p { color: #0DA2EF; margin-bottom: 1.5rem; }
.venue-details p { font-size: 0.9rem; color: #555; margin-bottom: 0.75rem; }
.venue-card .btn { margin-top: 1rem; }

/* ── Sponsors ── */
.sponsor-tiers { display: grid; gap: 2rem; }
.sponsor-tier h3 { font-size: 1rem; color: #0DA2EF; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.sponsor-slots { display: flex; gap: 1rem; flex-wrap: wrap; }
.sponsor-slots span {
  padding: 1rem 2rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px; font-size: 0.9rem; color: #666;
}

/* ── CTA ── */
#cta {
  text-align: center;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,50,98,0.08) 0%, transparent 60%);
  padding: 5rem 0;
}
#cta h2 { margin-bottom: 2rem; }

/* ── Contact ── */
.contact-form { max-width: 500px; display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea {
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px; color: #1a1a1a; font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: #0DA2EF;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #999; }

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 3rem 0;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.footer-brand p { font-size: 0.85rem; color: #999; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.85rem; color: #666; transition: color 0.2s; }
.footer-links a:hover { color: #1a1a1a; }
.copyright { font-size: 0.8rem; color: #aaa; width: 100%; text-align: center; margin-top: 1rem; }

/* ── Bio Modal (mobile) ── */
.bio-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.bio-modal-overlay.open { display: flex; }
.bio-modal {
  background: #fff;
  border: 1px solid rgba(0,50,98,0.2);
  border-radius: 16px;
  padding: 2rem 1.5rem 1.5rem;
  max-width: 400px; width: 100%;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}
.bio-modal h4 { color: #0DA2EF; font-size: 1rem; margin-bottom: 0.75rem; }
.bio-modal p { color: #333; font-size: 0.88rem; line-height: 1.6; }
.bio-modal-close {
  position: absolute; top: 0.75rem; right: 1rem;
  background: none; border: none;
  color: #666; font-size: 1.4rem; cursor: pointer;
  line-height: 1; transition: color 0.2s;
}
.bio-modal-close:hover { color: #1a1a1a; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(255,255,255,0.98); padding: 1rem 1.5rem; gap: 1rem; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .nav-inner .btn { display: none; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; gap: 1.5rem; text-align: center; justify-content: center; font-size: 0.75rem; }
  .hero-stats strong { font-size: 1.1rem; }
  .schedule-item { flex-direction: column; gap: 0.25rem; }
  .schedule-item .time { min-width: auto; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .bio-bubble { display: none !important; }
  .hero-bg.desktop { display: none; }
  .hero-bg.mobile { display: block; }
  .btn-hero { font-size: 2.55vw; width: auto; height: auto; padding: 0.56rem 1.5rem; box-shadow: 0 4px 15px rgba(13,162,239,0.4); left: 22%; }
}
