/* ==========================================================================
   Bug Bash 2026 — Combined Stylesheet
   Order: reset → variables → typography → layout → sections
   ========================================================================== */

/* --- reset.css --- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* --- variables.css --- */

:root {
  /* === Core Palette === */

  /* Purple */
  --purple:              #BB77FF;
  --deep-purple:         #3E074B;
  --light-purple:        #E4C9FF;

  /* Tangerine */
  --tangerine:           rgb(255, 135, 117);
  --bordeaux:            #46002A;
  --light-tangerine:     #FFE1DC;

  /* Sky */
  --sky:                 #99CCFF;
  --night-sky:           #002448;
  --light-sky:           #CCE5FF;

  /* Citron */
  --citron:              #DDED00;
  --olive:               #1A3007;

  /* === Typography === */
  --font-display-bold:    'F37 Judge Bold', 'Impact', sans-serif;
  --font-display-bold-medium: 'F37 Judge Medium', 'Impact', sans-serif;
  --font-body:       'Interphases', Helvetica, Arial, sans-serif;

  /* Scale */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.25rem;
  --text-xl:    1.5rem;

  /* Weights */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-bold:     700;

  /* Line heights */
  --leading-none:    0.9;
  --leading-tight:   1.1;
  --leading-snug:    1.25;
  --leading-normal:  1.5;

  /* Letter spacing */
  --tracking-tight:    -0.02em;
  --tracking-normal:   0;
  --tracking-wide:     0.05em;
  --tracking-wider:    0.1em;

  /* === Layout === */
  --container-max: 1200px;

  /* === Spacing === */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
}

/* --- typography.css --- */

@font-face {
  font-family: 'F37 Judge Bold';
  src: url('assets/fonts/F37Judge-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'F37 Judge Medium';
  src: url('assets/fonts/F37Judge-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--deep-purple);
  background-color: var(--purple);
}

/* --- layout.css --- */

html, body {
  width: 100%;
}

.container {
  width: 100%;
}

section {
  width: 100%;
}


.section-headline {
  height: 160px;
  width: 100%;
  border-bottom: currentColor 2px solid;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-headline-inner {
  --section-inner-height: 60px;
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 16px;
  max-width: var(--container-max);
  height: fit-content;
  width: 100%;
  padding-inline: 20px;
}

.section-icon-wrapper {
  height: var(--section-inner-height);
  width: var(--section-inner-height);
  aspect-ratio: 1/1;
}

.section-headline svg {
  height: 100%;
  width: 100%;
  flex-shrink: 0;
}

.section-title  {
  font-family: var(--font-display-bold);
  font-size: calc(var(--section-inner-height) * 1.33);
  text-transform: uppercase;
  line-height: 0.5;
}

@media (max-width: 768px) {

  .section-headline {
    height: 80px;
  }
  .section-headline-inner {
    --section-inner-height: 30px;
    padding-inline: 10px;
  }
}


.fade-in {
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- sections/nav.css --- */

.site-header {
  z-index: 100;
  background: var(--purple);
  position: relative;
  width: 100%;
  height: 80px;
}

.nav {
  height: 80px;
  border-bottom: var(--bordeaux) 2px solid;
  position: fixed;
  top: 0;
  background-color: var(--purple);
}

.inner-nav {
  max-width: var(--container-max);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 80px;
  margin: 0 auto;
}

/* === Logo === */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 20px;
}

.nav__logo-letter {
  height: 28px;
  width: auto;
  display: block;
}

/* === Nav Links === */
.nav__links {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.nav__links > li:not(.nav-panel__close-wrapper) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-element {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-inline: var(--space-8);
  font-family: var(--font-display-bold);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--deep-purple);
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav__links .nav-element:hover {
  background: var(--deep-purple);
  color: var(--purple);
}

/* === Nav Link Icons (inline SVG with currentColor) === */
.nav-element-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.nav-element-short {
  display: none;
}

/* === Hamburger & Close — hidden on desktop === */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--deep-purple);
}

.nav-panel__close-wrapper {
  display: none;
  justify-content: space-between;
}

.nav__close {
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  color: var(--purple);
}

section.scroll-to {
  scroll-margin-top: 80px;
}

@media (max-width: 1080px) {
  .nav {
    height: auto;
  }
  .inner-nav {
    height: 60px;
  }
  .nav-element {
    padding-inline: 8px;
    font-size: 1.25rem;
  }
}

/* === Mobile === */
@media (max-width: 830px) {
  .nav {
    height: auto;
    gap: 0;
  }

  .inner-nav {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 60px;
  }

  .nav__logo {
    justify-content: flex-start;
    padding-block: var(--space-4);
    margin-left: 10px;
  }

  .nav__logo-letter {
    height: 20px;
  }

  /* Hamburger button */
  .nav__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--deep-purple);
    padding: var(--space-2);
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .nav__hamburger:hover {
    background: var(--deep-purple);
    color: var(--purple);
  }

  /* Nav panel — hidden by default, slides down from top of page */
  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--deep-purple);
    padding: 0;
    padding-bottom: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Header row: mirrors .inner-nav exactly */
  .nav-panel__close-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    grid-column: 1 / -1;
    height: 60px;
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
  }

  .nav__close {
    color: var(--purple);
    font-size: 40px;
    font-family: var(--font-body);
    margin-right: 18px;
  }

  .nav-element {
    flex: unset;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding-inline: var(--space-2);
    padding-block: var(--space-2);
    font-size: var(--text-lg);
    letter-spacing: var(--tracking-wide);
    color: var(--purple);
  }

  .nav-element-icon {
    width: 28px;
    height: 28px;
  }

  .nav-element:hover {
    background: var(--purple);
    color: var(--deep-purple);
  }

  .nav-element-full {
    display: none;
  }

  .nav-element-short {
    display: block;
  }
  section.scroll-to {
  scroll-margin-top: 60px;
}
}

/* --- sections/hero.css --- */

.hero {
  background: var(--purple);
  padding-top: var(--space-10);
  padding-bottom: var(--space-16);
  text-align: center;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 20px;
}

/* === Giant SVG Wordmark === */
.hero__wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.25rem, 1vw, 1.5rem);
}

.hero__wordmark-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.25rem, 0.8vw, 1.5rem);
}

.hero__wordmark-line img {
  height: clamp(80px, 18vw, 200px);
  width: auto;
}

/* === Subtitle === */
.hero__subtitle {
  font-family: var(--font-display-bold);
  font-size: 1.5rem;
  color: var(--deep-purple);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-tight);
  margin-top: var(--space-6);
}

/* === Video === */
.hero__video {
  width: 100%;
  max-width: 1280px;
  margin-top: var(--space-10);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
}

.hero__video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === Mobile === */
@media (max-width: 768px) {
  .hero {
    padding-top: var(--space-8);
    padding-bottom: var(--space-10);
  }

  .hero__wordmark-line img {
    height: clamp(50px, 16vw, 100px);
  }

  .hero__subtitle {
    font-size: 1rem;
    margin-top: var(--space-4);
    padding-inline: var(--space-6);
  }

  .hero__video {
    margin-top: var(--space-8);
  }
}

/* --- sections/what.css --- */

.what {
  background: var(--tangerine);
  color: var(--bordeaux);
  position: relative;
  overflow: hidden;
}

.what-wrapper {
  max-width: var(--container-max);
  aspect-ratio: 1.7/1;
  margin: 0 auto;
  position: relative;
  isolation: isolate;
}

/* === Headline === */
.what__headline {
  font-family: var(--font-display-bold);
  font-size: 160px;
  text-transform: uppercase;
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tight);
  text-align: center;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  position: relative;
}

/* === Body Content === */
.what__body {
  margin-right: 5%;
  margin-left: 50%;
}

.what__description {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: var(--weight-medium);
  line-height: 32px;
  text-align: left;
  position: relative;
}

.what__event-info {
  font-family: var(--font-display-bold-medium);
  font-size: 32px;
  text-transform: uppercase;
  line-height: var(--leading-tight);
  margin-top: var(--space-8);

  text-align: left;
}

/* === CTA Button === */
.what__cta {
  display: inline-block;
  margin-top: var(--space-8);
  margin-bottom: var(--space-16);
  padding: var(--space-3) var(--space-4);
  background: var(--bordeaux);
  color: var(--tangerine);
  font-family: var(--font-display-bold);
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  text-align: center;
  transition-duration: 100ms;
}

.what__cta:hover {
  background: var(--light-tangerine);
  color: var(--bordeaux);
}

/* === Decorative Bug === */
.what__bug {
  position: absolute;
  width: 80px;
  aspect-ratio: 1/1;
  pointer-events: none;
  transform: translate(155px, -95px) rotate(-75deg);
}

.bug-trail {
  position: absolute;
  pointer-events: none;
}

.trail-1-wrapper {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.trail-1 {
  transform: scale(2.3) translate(-45px, -10px) rotate(35deg);
}
.trail-2 {
  transform: scale(1.5) translate(-28px, 161px) rotate(0deg);
  right: 0;
}

.mobile-bug {
  display: none;
}

@media (max-width: 1320px) {
  .what__headline {
    font-size: 120px;
  }
  .trail-1 {
    transform: scale(1.8) translate(-70px, -15px) rotate(35deg);
  }
}

/* === Mobile === */
@media (max-width: 830px) {
  .mobile-bug {
    display: block;
    position: absolute;
    transform: scale(1.3) translate(184px, -110px)  rotate(45deg);
  }
  .what__headline {
    font-size: 60px;
    margin-top: 24px;
  }
  .what__body {
    margin: 0 auto;
    padding: 10px;
    max-width: 500px;
    text-wrap-style: pretty;
  }
  .what__description {
    text-align: center;
  }

  .trail-1 {
    display: none;
  }
  .trail-2 {
    transform: scale(0.6) translate(130px, 21px) rotate(0deg);
  }
}

/* --- sections/bugbash-banner.css --- */

.banner {
  background: var(--bordeaux);
  color: var(--tangerine);
  overflow: hidden;
  padding-block: var(--space-6);
}

.banner__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.banner__segment {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-right: var(--space-16);
  white-space: nowrap;
  flex-shrink: 0;
}

.banner__segment img {
  height: clamp(50px, 8vw, 90px);
  width: auto;
  display: block;
}

.banner__text {
  font-family: var(--font-display-bold);
  font-size: 100px;
  text-transform: uppercase;
  line-height: 0.5;
  letter-spacing: var(--tracking-tight);
}

.banner__logo__wrapper {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- sections/speakers.css --- */

.speakers {
  background: var(--purple);
  color: var(--deep-purple);
  padding-bottom: var(--space-16);
}

/* === Grid === */
.speakers__grid {
  --card-size: 272px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-size), 1fr));
  gap: var(--space-4);
  padding-inline: 60px;
  padding-top: var(--space-20);
  place-items: start center;
  max-width: 1400px;
  margin: 0 auto;
}

/* === Card === */
.speaker-card {
  text-align: left;
  opacity: 0;
  transform: translateY(24px);
  width: var(--card-size);
}

.speaker-card.is-visible {
  animation: fadeInUp 0.5s ease forwards;
}

/* === Headshot === */
.speaker-card__photo-wrap {
  width: var(--card-size);
  aspect-ratio: 1 / 1;
  background: var(--deep-purple);
  clip-path: polygon(
    30% 0%,
    100% 0%,
    100% 70%,
    70% 100%,
    0% 100%,
    0% 30%
  );
  overflow: hidden;
  margin-bottom: var(--space-3);
  border-radius: 24px;
}

.speaker-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Text === */
.speaker-card__name {
  font-family: var(--font-display-bold);
  font-size: 40px;
  text-transform: uppercase;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-normal);
  font-weight: var(--weight-medium);
}

.speaker-card__title {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: var(--leading-snug);
  margin-top: var(--space-1);
  font-weight: var(--weight-medium);
}

/*== Tablet == */
@media (max-width: 1400px) {
  .speakers__grid {
    gap: var(--space-6);
    padding-inline: var(--space-6);
    padding-top: var(--space-8);
    max-width: var(--container-max);
    --card-size: 220px;
  }
  .speaker-card__name {
    font-size: 28px;
  }
  .speaker-card__title {
    font-size: 16px;
  }
}

/* === Mobile === */
@media (max-width: 715px) {
  .speakers__grid {
    padding-inline: var(--space-1);
    --card-size: 160px;
  }

  .speaker-card__name {
    font-size: 20px;
  }

  .speaker-card__title {
    font-size: 14px;
  }
}

/* --- sections/sessions.css --- */

.sessions {
  background: var(--sky);
  color: var(--night-sky);
  padding-bottom: var(--space-16);
}

.sessions__icon {
 width: 80px;
}

.sessions__watch-all {
  margin-left: auto;
  font-family: var(--font-display-bold);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--sky);
  background: var(--night-sky);
  text-decoration: none;
  padding: 0 12px;
  align-self: stretch;
  white-space: nowrap;
  display: flex;
  align-items: center;
  transition-duration: 100ms;
}

.sessions__watch-all:hover {
  background: var(--light-sky);
  color: var(--night-sky);
}

/* === Video Embed === */
.sessions__video-wrap {
  width: 100%;
  max-width: 1280px;
  margin: var(--space-12) auto 0;
  padding-inline: 80px;
  aspect-ratio: 16 / 9;
}

.sessions__video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.sessions__watch-all--mobile {
  margin-top: 20px;
  display: none;
  text-align: center;
}

/* === Mobile === */
@media (max-width: 768px) {
  .sessions__video-wrap {
    padding-inline: var(--space-4);
    margin-top: var(--space-8);
  }
  .sessions__watch-all--desktop {
    display: none;
  }
  .sessions__watch-all--mobile {
    display: block;
  }

  .sessions__watch-all {
    font-size: var(--text-xs);
    padding: 8px 16px;
  }
}

/* --- sections/updates.css --- */

.updates {
  background: var(--citron);
  color: var(--olive);
  padding-bottom: var(--space-16);
}

/* === Form Container === */
.updates__form-wrap {
  max-width: 1280px;
  margin: var(--space-12) auto 0;
  padding: var(--space-12) var(--space-12);
  border-radius: 4px;
}

/* === Mobile === */
@media (max-width: 768px) {
  .updates__form-wrap {
    margin: var(--space-8) var(--space-4) 0;
    padding: var(--space-8) var(--space-4);
  }
}

/* --- sections/footer.css --- */

.footer {
  background: var(--deep-purple);
  color: var(--purple);
  display: grid;
  place-items: center;
}

.footer__inner {
  width: fit-content;
  height: 100%;
  padding: 40px;
}

/* === Giant Headline === */
.footer__headline {
  font-family: var(--font-display-bold);
  font-size: clamp(60px, 15vw, 300px);
  text-transform: uppercase;
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-normal);
  text-wrap-mode: nowrap;
  text-align: center;
}

/* === Bottom Bar === */
.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-12);
}

.footer__copyright {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--purple);
}

/* === Back to Top Button === */
.footer__back-to-top {
  font-family: var(--font-display-bold);
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--deep-purple);
  background: var(--purple);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  transition-duration: 100ms;
}

.footer__back-to-top:hover {
  background: var(--light-purple);
  color: var(--deep-purple);
}

/* === Mobile === */
@media (max-width: 768px) {
  .footer__inner {
    padding: 10px;
  }

  .footer__bar {
    flex-direction: column;
    gap: 10px;
    margin-top: var(--space-4);
    align-items: flex-end;
  }
}
