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

:root {
  --bg-primary: #0B1630;
  --bg-secondary: #0F1D3D;
  --bg-card: #162850;
  --accent: #368EFF;
  --accent-dim: rgba(54, 142, 255, 0.14);
  --accent-glow: rgba(54, 142, 255, 0.3);
  --accent-light: #5ea3ff;
  --highlight: #FFF338;
  --highlight-dim: rgba(255, 243, 56, 0.10);
  --highlight-glow: rgba(255, 243, 56, 0.25);
  --mint: #6ADEC2;
  --mint-dim: rgba(106, 222, 194, 0.12);
  --text-primary: #EFF3FA;
  --text-secondary: #8DA0C2;
  --font-ar: 'Noto Sans Arabic', sans-serif;
  --font-en: 'Inter', sans-serif;

  /* Light section tokens */
  --bg-light: #F0F4FA;
  --bg-light-card: #ffffff;
  --bg-light-card-border: #D8E0EE;
  --text-light-primary: #0B1630;
  --text-light-secondary: #3D5070;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ar);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 16px;
  direction: rtl;
  text-align: right;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(54, 142, 255, 0.25) 1px, transparent 1px),
    radial-gradient(circle, rgba(106, 222, 194, 0.20) 1.5px, transparent 1.5px),
    linear-gradient(rgba(54, 142, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 142, 255, 0.04) 1px, transparent 1px);
  background-size:
    40px 40px,
    80px 80px,
    40px 40px,
    40px 40px;
  background-position:
    0 0,
    20px 20px,
    0 0,
    0 0;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

/* ── Section themes ── */
.section-dark {
  background: rgba(15, 29, 61, 0.85);
}

.section-light {
  background: var(--bg-light);
  color: var(--text-light-primary);
}

.section-light .section-label {
  color: var(--accent);
}

.section-light .section-title {
  color: var(--text-light-primary);
}

.section-light .about-text {
  color: var(--text-light-secondary);
}

.section-light .stat-card {
  background: var(--bg-light-card);
  border-color: var(--bg-light-card-border);
}

.section-light .stat-label {
  color: var(--text-light-secondary);
}

.section-light .speaker-card {
  background: var(--bg-light-card);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.section-light .speaker-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.section-light .speaker-name {
  color: var(--text-light-primary);
}

.section-light .speaker-role {
  color: var(--text-light-secondary);
}

.section-light .speaker-bio {
  color: var(--text-light-secondary);
}

.section-light .speaker-card--keynote {
  background: linear-gradient(180deg, rgba(255, 243, 56, 0.08) 0%, var(--bg-light-card) 40%);
}

.section-light .speaker-photo {
  border-color: var(--bg-light-card-border);
}


.section-label {
  color: var(--mint);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 48px;
}

/* ── Navigation ── */
body {
  padding-top: 70px;
}

.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 70px;
  background: rgba(11, 22, 48, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(54, 142, 255, 0.15);
  z-index: 1000;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logos {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logos a {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 42px;
  width: auto;
  border-radius: 6px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--highlight);
  color: var(--bg-primary) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 700 !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--highlight-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--accent-dim);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
  }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 40%, rgba(54, 142, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(106, 222, 194, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 243, 56, 0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(54, 142, 255, 0.18) 0%, transparent 60%);
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-label {
  color: var(--mint);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 40px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  direction: ltr;
}

.countdown-box {
  background: rgba(22, 40, 80, 0.5);
  border: 1px solid var(--mint-dim);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 80px;
  text-align: center;
}

.countdown-value {
  display: block;
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--highlight);
}

.countdown-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.hero-cta {
  display: inline-block;
  background: var(--highlight);
  color: var(--bg-primary);
  padding: 14px 40px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--highlight-glow);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 30px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 8px;
  }

  .countdown-box {
    min-width: 64px;
    padding: 12px 10px;
  }

  .countdown-value {
    font-size: 24px;
  }
}

/* ── Patronage ── */
.patronage {
  background: var(--bg-light);
}

.patronage-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.patronage-uni-logo {
  height: 80px;
  width: auto;
  margin-bottom: 12px;
}

.patronage-uni-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--bg-primary);
  margin-bottom: 32px;
}

.patronage-label {
  font-size: 15px;
  font-weight: 600;
  color: #6B7FA0;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.patronage-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--bg-light-card-border);
  max-width: 700px;
  text-align: right;
}

.patronage-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  flex-shrink: 0;
}

.patronage-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patronage-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--bg-primary);
}

.patronage-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.patronage-bio {
  font-size: 14px;
  color: var(--text-light-secondary);
  line-height: 1.7;
}

.patronage-hosted {
  margin-top: 28px;
  font-size: 15px;
  color: var(--text-light-secondary);
}

.patronage-hosted strong {
  color: var(--bg-primary);
  font-weight: 700;
}

@media (max-width: 640px) {
  .patronage-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
    gap: 20px;
  }

  .patronage-photo {
    width: 110px;
    height: 110px;
  }

  .patronage-name {
    font-size: 20px;
  }

  .patronage-uni-logo {
    height: 56px;
  }

  .patronage-uni-name {
    font-size: 22px;
  }
}

/* ── About ── */
.about-text {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 2;
  max-width: 800px;
  margin-bottom: 48px;
}

.about-text strong {
  color: var(--mint);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--mint-dim);
  border-radius: 16px;
  padding: 32px 16px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--mint);
}

.stat-value {
  display: block;
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 700;
  color: var(--highlight);
}

.stat-label {
  display: block;
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 8px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Speakers ── */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.speaker-card {
  background: var(--bg-card);
  border-top: 3px solid var(--accent);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.speaker-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(5, 10, 25, 0.5);
}

.speaker-card--keynote {
  border-top: 4px solid var(--highlight);
  background: linear-gradient(180deg, rgba(255, 243, 56, 0.07) 0%, var(--bg-card) 40%);
}

.speaker-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  border: 3px solid var(--accent-dim);
  overflow: hidden;
  flex-shrink: 0;
}

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

.speaker-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.speaker-role {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.speaker-bio {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
  opacity: 0.85;
}

.speaker-talk {
  font-size: 13px;
  color: var(--mint);
  line-height: 1.6;
  border-top: 1px solid var(--mint-dim);
  padding-top: 12px;
  margin-top: auto;
}

@media (max-width: 1024px) {
  .speakers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .speakers-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ── Agenda Timeline ── */
.agenda-period {
  font-size: 22px;
  font-weight: 700;
  color: var(--highlight);
  margin-bottom: 24px;
  margin-top: 48px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--highlight-dim);
}

.agenda-period:first-of-type {
  margin-top: 0;
}

.timeline {
  display: grid;
  grid-template-columns: auto 24px 1fr;
  gap: 0 20px;
  margin-bottom: 40px;
}

.timeline-item {
  display: contents;
}

.timeline-time {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: var(--mint);
  background: var(--mint-dim);
  padding: 6px 14px;
  border-radius: 8px;
  text-align: center;
  direction: ltr;
  align-self: start;
  margin-top: 16px;
  white-space: nowrap;
}

.timeline-dot {
  position: relative;
  align-self: stretch;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
  z-index: 1;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% - 34px);
  background: var(--accent-dim);
}

.timeline-item:last-child .timeline-dot::after {
  display: none;
}

.timeline-content {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 8px 0;
  border: 1px solid var(--accent-dim);
}

.timeline-duration {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.5;
}

/* Break items */
.timeline-item--break .timeline-content {
  border-style: dashed;
  border-color: var(--mint-dim);
  background: rgba(11, 22, 48, 0.5);
}

.timeline-item--break .timeline-dot::before {
  background: var(--bg-secondary);
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline-dot {
    display: none;
  }

  .timeline-time {
    margin-top: 16px;
    justify-self: start;
  }

  .timeline-content {
    margin: 4px 0 16px;
  }
}

/* ── Partners ── */
#partners .section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
}

.partner-divider {
  width: 1px;
  height: 60px;
  background: rgba(0, 0, 0, 0.2);
}

.partners-logos a {
  display: flex;
  align-items: center;
}

.partner-logo {
  height: 110px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.partner-logo:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .partners-logos {
    gap: 40px;
  }

  .partner-logo {
    height: 80px;
  }
}

/* ── Footer ── */
.footer {
  background: rgba(15, 29, 61, 0.85);
  border-top: 1px solid var(--accent-dim);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.footer-logos a {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-tagline {
  font-size: 14px;
  color: var(--mint);
  font-weight: 600;
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.footer-social-link:hover {
  background: var(--mint);
  color: var(--bg-primary);
  border-color: var(--mint);
}

.footer-bottom {
  border-top: 1px solid var(--accent-dim);
  text-align: center;
  padding: 20px 24px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-logos {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ── Registration ── */
.register-section {
  background: rgba(15, 29, 61, 0.85);
}

.register-container {
  max-width: 600px;
}

.register-container .section-title {
  text-align: center;
}

.register-container .section-label {
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-ar);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  font-family: var(--font-ar);
  font-size: 18px;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--highlight);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--highlight-glow);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-error {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
  min-height: 20px;
}

/* ── Ticket ── */
.ticket-container {
  margin-top: 40px;
  text-align: center;
}

.ticket-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.ticket-header {
  background: var(--bg-primary);
  padding: 24px 20px;
  text-align: center;
}

.ticket-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--highlight);
  margin-bottom: 6px;
}

.ticket-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

.ticket-body {
  padding: 32px 20px;
  background: #ffffff;
  text-align: center;
}

.ticket-attendee {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.ticket-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.ticket-uuid {
  font-family: var(--font-en);
  font-size: 12px;
  color: #666666;
  word-break: break-all;
  direction: ltr;
}

.ticket-footer {
  background: #f5f5f5;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #555555;
}

.download-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 32px;
  font-family: var(--font-ar);
  font-size: 16px;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--highlight);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--highlight-glow);
}

.ticket-note {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 16px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .ticket-footer {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}
