:root {
  --text: #ffffff;
  --panel-bg: rgba(10, 10, 20, 0.55);
  --panel-border: rgba(255, 255, 255, 0.12);
  --accent: rgba(190, 120, 255, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);

  /* Background */

  background-image: url("../img/bk.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 32px 24px 16px;
  display: flex;
  justify-content: center;
}

header img {
  width: min(520px, 90vw);
  height: auto;
}

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

.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding-bottom: 20px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  border-color: var(--accent);
}

/* =========================
   Main content
   ========================= */

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.content-box {
  width: min(900px, 92vw);
  padding: 32px 28px;
  border-radius: 18px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(8px);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

h2 {
  margin: 0 0 16px;
  font-weight: 500;
  font-size: clamp(18px, 2.3vw, 26px);
  opacity: 0.95;
}

p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
}

/* =========================
   Quiz styles
   ========================= */

.quiz-container {
  margin-top: 28px;
}

#progress {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.quiz-question {
  font-size: 18px;
  margin-bottom: 18px;
}

.quiz-options {
  display: grid;
  gap: 12px;
}

.quiz-option {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.quiz-option:hover {
  border-color: rgba(190, 120, 255, 0.6);
}

.quiz-option.selected {
  border-color: var(--accent);
  background: rgba(190, 120, 255, 0.15);
}

#quiz-actions {
  margin-top: 20px;
}

/* Form Filling */

/* Speaker form */
.speaker-form { margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 16px 0 18px; }
.form-field.full { grid-column: 1 / -1; }
.field {
  width: 100%;
  max-width: 620px;

  padding: 12px 14px;
  margin: 6px 0 0 0;

  font-size: 14px;
  font-weight: 500;
  color: #232f3e;

  background-color: #ffffff;

  border: 2px solid #d1d5db;
  border-radius: 4px;

  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field::placeholder { color: #9ca3af; }
.field:focus {
  border-color: #ff9900; /* AWS orange */
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

textarea.field { max-width: 820px; resize: vertical; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.small-note { margin-top: 10px; font-size: 14px; opacity: 0.9; }


#email {
  width: 100%;
  max-width: 420px;

  padding: 12px 14px;
  margin: 16px 0 20px 0;

  font-size: 14px;
  font-weight: 500;
  color: #232f3e;

  background-color: #ffffff;

  border: 2px solid #d1d5db;
  border-radius: 4px;

  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#email::placeholder {
  color: #9ca3af;
}

/* Focus state */
#email:focus {
  border-color: #ff9900; /* AWS orange */
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}


/* Buttons */

button {
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#next-btn {
display:none;
}

/* Result */

.result-image {
  display: block;
  max-width: 250px;
  width: 100%;
  height: auto;
  margin: 18px auto; /* auto = centered */
  border-radius: 14px;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

#result h2 {
  text-align: center;
}

#result p {
  text-align: center;
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  text-decoration: none;
}

.cta-button:hover {
  opacity: 0.95;
}

.secondary-button {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 22px;
  border-radius: 14px;
  background: #574095;
  color: #FFF;
  font-weight: 700;
  text-decoration: none;
}

.secondary-button:hover {
 opacity: 0.95;
}

/* Utility */

.hidden {
  display: none;
}

/* =========================
   Community Links
   ========================= */

.community-links {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.community-links h3 {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.link-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 14px;

  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);

  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.icon-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(180, 120, 255, 0.55);
}

.icon-link:active {
  transform: translateY(0px);
}

.icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.icon svg {
  width: 22px;
  height: 22px;
}

.label {
  font-size: 14px;
  font-weight: 500;
}

/* =========================
   Sponsors
   ========================= */

.sponsors {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sponsors h3 {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.sponsor-logos {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.sponsor-logos img {
  height: 46px;
  width: auto;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================
   Footer
   ========================= */

footer {
  padding: 18px 24px;
  text-align: center;
  font-size: 13px;
  opacity: 0.85;
}


/* =========================
   Blog
   ========================= */
.blog-shell {
  width: min(960px, 92vw);
}

.blog-header-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.blog-intro {
  max-width: 720px;
}

.blog-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.blog-card {
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card h2 {
  margin-bottom: 10px;
}

.blog-meta {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.72;
  margin-bottom: 10px;
}

.blog-link,
.blog-back-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.blog-link:hover,
.blog-back-link:hover {
  opacity: 0.9;
}

.markdown-body {
  line-height: 1.75;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.markdown-body li {
  margin-bottom: 8px;
}

.markdown-body p,
.markdown-body li {
  font-size: 16px;
  opacity: 0.96;
}

.markdown-body code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.markdown-body img {
  max-width: 500px;
  height: auto;
  border-radius: 6px;
  margin: 20px 0;
}

.markdown-body a {
  color: #2b6cb0;
  text-decoration: none;
}

.markdown-body a:hover {
  text-decoration: underline;
}


@media (max-width: 720px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 14px 18px;
    padding: 0 18px 20px;
  }

.markdown-body img {
  max-width: 250px;
  height: auto;
  border-radius: 6px;
  margin: 20px 0;
}


  main {
    align-items: start;
  }
}
