/* ==========================================================================
     Navigation
    ============================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(5, 2, 18, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  .container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 26px 0;
  }

  .brand img {
    width: clamp(160px, 14vw, 210px);
    height: auto;
    display: block;
  }

  .menu {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .list {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;

    a {
      text-transform: uppercase;
      letter-spacing: 0.12em;
      font-size: 12px;
      color: rgba(255, 255, 255, 0.8);
      position: relative;
      transition: color 0.3s ease;

      &::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -10px;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, #6b1bff, #ff1f7e);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
      }

      &:hover {
        color: white;

        &::after {
          transform: scaleX(1);
        }
      }
    }

    .current-menu-item > a {
      color: white;

      &::after {
        transform: scaleX(1);
      }
    }
  }

  .actions {
    display: flex;
    align-items: center;
  }

  .toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;

    span {
      display: block;
      width: 26px;
      height: 2px;
      background: white;
      border-radius: 999px;
      transition:
        transform 0.3s ease,
        opacity 0.3s ease;
    }
  }

  &.is-open {
    .toggle span:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }

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

    .toggle span:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }
  }
}

.body--nav-open {
  overflow: hidden;
}

/* ===================================================
     Hero
     =================================================== */

.hero {
  padding: 180px 0 100px;

  .media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
  }

  .video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    display: none;
    z-index: 2;
  }

  .image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.9;
    z-index: 1;

    &--desktop {
      display: block;
    }

    &--mobile {
      display: none;
    }
  }

  /* Desktop: When video exists, show video and hide desktop image */
  .media .video {
    display: block;
  }

  .media .video ~ .image--desktop {
    display: none;
  }

  .container,
  .content {
    position: relative;
    z-index: 1;
    text-align: center;

    > .inner {
      max-width: 700px;
      margin: 0 auto;
    }
  }

  .powered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 24px;
  }

  .powered-text {
    color: white;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 26px;
    letter-spacing: 3px;
  }

  .powered-logo {
    max-height: 72px;
    width: auto;
  }

  .subheading {
    color: white;
    font-size: 16px;
    font-weight: 700;
    line-height: 26px;
    letter-spacing: 3px;
    margin-bottom: 25px;
    text-transform: uppercase;
  }

  .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
  }
}

/* ===================================================
     Banner
     =================================================== */

.banner {
  padding: 20px 0;
  background: black;
  text-align: center;
}

/* ===================================================
     About
     =================================================== */

.graphic {
  position: absolute;
  left: -75px;
  transform: translateY(-40%);
  pointer-events: none;

  img {
    width: 100%;
    height: auto;
    display: block;
  }
}

.about {
  background: linear-gradient(135deg, #0b0350 0%, #160070 100%);
  padding: 120px 0;

  .row {
    position: relative;
  }

  .title {
    text-align: left;
    position: relative;
    font-size: 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
    font-weight: 600;
    line-height: 1.3;
    max-width: 70%;
    z-index: 1;
  }

  .content {
    text-align: left;
    color: #f1eaff;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0.5px;
    font-weight: 400;

    p {
      margin-bottom: 22px;

      &:last-child {
        margin-bottom: 0;
      }
    }

    a {
      color: white;
      font-weight: 700;
    }
  }
}

/* ===================================================
     Who Should Attend Grid
     =================================================== */

.audience {
  .subtitle {
    text-align: center;
    font-size: 18px;
    margin-top: 16px;
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 0.05em;
  }

  .grid {
    margin-top: 14px;
  }

  .card {
    padding: 30px 25px;
    border-radius: 6px;
    border: 3px solid transparent;
    background:
      linear-gradient(black, black) padding-box,
      linear-gradient(180deg, #b526bc, #ff2e00) border-box;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
    min-height: 380px;

    &:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 30px rgba(255, 46, 0, 0.15);
    }

    .card-title {
      background: linear-gradient(90deg, #ff2e00 -43.33%, #b526bc 85.73%);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      text-align: center;
      text-shadow: 5px 5px 20px rgba(181, 38, 188, 0.3);
      font-size: 26px;
      font-weight: 700;
      line-height: normal;
      letter-spacing: 0.78px;
      text-transform: uppercase;
      margin-bottom: 30px;
    }

    .list {
      margin: 0;
      padding: 0;
      display: grid;
      gap: 12px;
      color: #e0d8ff;
      font-size: 16px;
      line-height: 1.6;
      text-align: left;
    }

    .item {
      display: block;
      padding-left: 26px;
      text-align: left;
      position: relative;

      &::after {
        content: "•";
        margin-left: 10px;
        left: 0;
        position: absolute;
        color: white;
        font-size: 21px;
        top: -4px;
      }
    }
  }
}

/* ===================================================
     Topics
     =================================================== */

.topics {
  background: #160070;

  .list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
  }

  .item {
    padding: 12px 0;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: white;
    font-size: 16px;
    line-height: 1.5;
    border-bottom: 1px solid white;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;

    span {
      margin-left: 10px;
    }

    &:last-child {
      border-bottom: none;
    }
  }
}

/* ===================================================
     Protector Pass
     =================================================== */

.pass {
  background: linear-gradient(100deg, #ff2e00 -5%, #b526bc 80%);
  padding: 50px 0;

  .inner {
    border-radius: 50px;
    background: linear-gradient(90deg, #0a1b6d -13.94%, #5b3df8 150.3%);
    padding: clamp(40px, 5vw, 40px) clamp(32px, 6vw, 80px);
    color: white;
  }

  .content {
    font-size: 18px;
    line-height: 28px;
    font-weight: 200;
    letter-spacing: 0.5px;

    p {
      margin-bottom: 16px;

      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  .actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
  }

  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: white;
    color: #1a1680;
    border-radius: 999px;
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
  }
}

/* ===================================================
     Speaker & Sponsor
     =================================================== */

.speaker {
  .inner {
    max-width: none;
  }

  .row {
    align-items: center;
  }

  .button {
    min-width: 200px;
  }

  .body p {
    margin-bottom: 18px;
  }
}

.sponsor {
  background: #3332ff;
  color: white;

  .body {
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0.5px;
    font-weight: 500;
    color: white;

    p {
      margin-bottom: 0;
    }
  }
}

/* ===================================================
     Schedule
     =================================================== */

.schedule {
  .panels {
    max-width: 900px;
    margin: auto;
  }

  .tabs {
    margin-top: 36px;
    text-align: center;
  }

  .tab {
    margin: auto;
    margin-right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 84px;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    width: 205px;

    &:hover,
    &.is-active {
      background: white;
      color: black;
      text-decoration: none;
    }
  }

  .panel {
    display: none;
    padding: 40px 36px 0 36px;
    width: 100%;

    &.is-active {
      display: block;
    }
  }

  .panel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;

    .event-title-date {
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0.5px;
      color: white;
      white-space: nowrap;
    }
  }

  .divider {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 1);
    display: block;
  }

  .list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
  }

  .item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 32px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;

    &:last-child {
      border-bottom: none;
    }

    &--break {
      opacity: 0.85;

      .details h3 {
        color: #ffa7ff;
      }
    }
  }

  .time {
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.5px;
  }

  .details h3 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 0.5px;
    margin: 0;
  }

  .location {
    font-size: 15px;
    color: #c8baff;
    font-style: italic;
  }

  .empty {
    margin: 0;
    color: #d7d4ff;
    text-align: center;
    padding: 40px 20px;
    font-size: 17px;
  }
}

.event-title-date {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 32px;
}

/* ===================================================
     Insider
     =================================================== */

.insider {
  background-color: #070012;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0;
  position: relative;

  .insider-form-container {
    align-items: center;

    p {
      margin-bottom: 0;
    }
  }

  .media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
  }

  .video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
  }

  .image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
  }

  .inner {
    display: grid;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  .copy {
    max-width: 800px;
    margin: auto;
    text-align: center;

    .heading {
      font-size: clamp(40px, 5vw, 56px);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 24px;
      color: white;
    }

    > div {
      font-size: 18px;
      color: rgba(255, 255, 255, 0.9);
      line-height: 1.6;
      margin-bottom: 16px;
    }
  }

  .body {
    font-size: 17px;
    color: #ede0ff;
    line-height: 1.7;

    p {
      margin-bottom: 16px;
    }
  }

  .form {
    margin-top: 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;

    form {
      display: flex;
      flex-direction: column;
      gap: 20px;
      align-items: center;
    }

    input[type="email"],
    input[type="text"] {
      padding: 14px 28px;
      border-radius: 8px;
      border: 2px solid white;
      background: transparent;
      color: white;
      text-align: center;
      font-weight: 700;
      text-align: center;
    }

    input[type="email"]::placeholder {
      color: white;
      text-align: center;
      letter-spacing: 4.2px;
      font-size: 16px;
      font-weight: 700;
    }

    input[type="submit"],
    button {
      color: black;
      border: 2px solid white;
      background: white;
      letter-spacing: 4.2px;
      font-size: 16px;
      font-weight: 700;
      line-height: 50px;
      width: fit-content;
      border-radius: 6px;
      padding: 0 15px;
    }

    .button {
      border: none;
    }
  }

  &--no-image {
    background:
      radial-gradient(
        circle at 50% 30%,
        rgba(255, 31, 126, 0.5),
        transparent 50%
      ),
      radial-gradient(
        circle at 50% 70%,
        rgba(107, 27, 255, 0.5),
        transparent 60%
      ),
      #070012;
  }

  .insider-form-container {
    display: inline-flex;

    .wpcf7-spinner {
      display: inline-block;
      width: 24px;
      height: 24px;
      vertical-align: middle;
      margin-left: 10px;
      display: none;
    }
  }
}
