*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #080014;
  --bg-secondary: #0d0820;
  --bg-card: #141030;
  --bg-card-alt: #1a1240;
  --purple-deep: #2d1b69;
  --purple-mid: #7c3aed;
  --purple-light: #a855f7;
  --purple-bright: #c084fc;
  --cyan: #00e5c0;
  --cyan-dim: #00b89a;
  --text-primary: #f0eef6;
  --text-secondary: #9892ab;
  --text-muted: #5d5677;
  --border-color: rgba(124, 58, 237, 0.2);
  --border-hover: rgba(124, 58, 237, 0.5);
  --font: 'Tajawal', sans-serif;
  --gold: #e5a91a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

.stars-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--max-opacity); }
}

.shooting-star {
  position: absolute;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.6), transparent);
  transform: rotate(-35deg);
  animation: shoot 4s ease-in-out infinite;
  opacity: 0;
}

@keyframes shoot {
  0% { opacity: 0; transform: translateX(0) translateY(0) rotate(-35deg); }
  5% { opacity: 1; }
  15% { opacity: 0; transform: translateX(-300px) translateY(200px) rotate(-35deg); }
  100% { opacity: 0; }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-cyan {
  color: var(--cyan);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(8, 0, 20, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 36px;
  height: 42px;
}

.logo-img {
  height: 48px;
  width: auto;
}

.logo-text {
  color: white;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--cyan) !important;
  border: none !important;
  border-radius: 8px;
  padding: 8px 20px;
  color: #080014 !important;
  font-weight: 700 !important;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--cyan-dim) !important;
  color: #080014 !important;
  box-shadow: 0 0 20px rgba(0, 229, 192, 0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 100px 0 60px;
}

.hero-content {
  text-align: center;
  position: relative;
}

.hero-title {
  position: relative;
  margin-bottom: 32px;
}

.hero-title-ar {
  display: block;
  font-size: clamp(48px, 10vw, 100px);
  font-weight: 900;
  color: white;
  letter-spacing: 4px;
  line-height: 1.1;
}

.hero-title-en {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 12px;
  text-transform: lowercase;
  pointer-events: none;
}

.hero-quote {
  background: rgba(20, 16, 48, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 36px;
  max-width: 680px;
  margin: 0 auto 36px;
  backdrop-filter: blur(10px);
}

.quote-text {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 500;
  line-height: 1.9;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.quote-highlight {
  color: var(--cyan);
  font-weight: 700;
}

.quote-author {
  font-size: 15px;
  color: var(--text-secondary);
}

.hero-info {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-label {
  font-size: 13px;
  color: var(--text-muted);
}

.info-value {
  font-size: 16px;
  font-weight: 700;
}

.hero-countdown-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hero-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  direction: ltr;
}

.countdown-item {
  text-align: center;
}

.countdown-value {
  display: block;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}

.countdown-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-cta {
  display: inline-block;
  padding: 16px 48px;
  border: 1.5px solid var(--cyan);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.3s ease;
  background: transparent;
}

.hero-cta:hover {
  background: rgba(0, 229, 192, 0.08);
  box-shadow: 0 0 30px rgba(0, 229, 192, 0.15);
}

.stats {
  padding: 80px 0;
  position: relative;
  z-index: 1;
  background: rgba(13, 8, 32, 0.7);
}

.stats-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-value {
  display: block;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 15px;
  color: var(--text-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  background: rgba(0, 229, 192, 0.08);
  color: var(--cyan);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(0, 229, 192, 0.2);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 16px;
}

.section-title-mt {
  margin-top: 64px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.9;
}

.domains {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.domain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.domain-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.domain-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: rgba(124, 58, 237, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.domain-icon svg {
  width: 28px;
  height: 28px;
}

.domain-card span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.audience-card:hover {
  border-color: var(--border-hover);
}

.audience-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: rgba(124, 58, 237, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.audience-icon svg {
  width: 28px;
  height: 28px;
}

.audience-card span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tracks {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.track-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.track-card:hover {
  border-color: var(--border-hover);
}

.track-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.track-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
}

.track-btn {
  display: inline-block;
  padding: 12px 36px;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-bright));
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
}

.track-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.timeline {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.timeline-wrapper {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan-dim), var(--purple-mid), var(--cyan-dim));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 45%;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-right {
  margin-right: auto;
  margin-left: 55%;
}

.timeline-left {
  margin-left: auto;
  margin-right: 55%;
}

.timeline-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--cyan);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.timeline-right .timeline-dot {
  right: calc(100% + 43px);
}

.timeline-left .timeline-dot {
  left: calc(100% + 43px);
}

.timeline-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  width: 24px;
  height: 24px;
}

.timeline-right .timeline-arrow {
  right: calc(100% + 12px);
}

.timeline-left .timeline-arrow {
  left: calc(100% + 12px);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px 28px;
  text-align: center;
}

.timeline-date {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
}

.timeline-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.timeline-deco {
  position: absolute;
  width: 36px;
  height: 36px;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-deco svg {
  width: 100%;
  height: 100%;
}

.timeline-right .timeline-deco-left {
  left: -60px;
}

.timeline-left .timeline-deco-right {
  right: -60px;
}

.timeline-right .timeline-deco-right {
  right: -60px;
}

.timeline-left .timeline-deco-left {
  left: -60px;
}

.prizes {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.prizes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: end;
}

.prize-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.prize-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.prize-card-first {
  padding: 48px 24px;
  border-color: rgba(124, 58, 237, 0.3);
}

.prize-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prize-icon svg {
  width: 44px;
  height: 44px;
}

.prize-gold {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.prize-silver {
  background: linear-gradient(135deg, #4a2280, #6d3bbd);
}

.prize-bronze {
  background: linear-gradient(135deg, #4a2280, #6d3bbd);
}

.prize-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.prize-amount {
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  direction: ltr;
}

.prize-amount-gold {
  font-size: 40px;
}

.faq {
  padding: 80px 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(20, 16, 48, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--purple-mid);
  background: rgba(124, 58, 237, 0.1);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.15);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: right;
}

.faq-num {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--purple-mid);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.faq-toggle {
  margin-right: auto;
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.faq-item.active .faq-toggle {
  color: var(--text-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px 24px;
  padding-right: 76px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.faq-decoration {
  position: absolute;
  color: var(--cyan);
  opacity: 0.5;
}

.faq-deco-1 {
  left: 5%;
  bottom: 35%;
  width: 18px;
  transform: rotate(-15deg);
}

.faq-deco-2 {
  right: 8%;
  top: 28%;
  width: 20px;
  transform: rotate(10deg);
}

.faq-deco-3 {
  right: 4%;
  bottom: 10%;
  width: 16px;
  transform: rotate(25deg);
}

.faq-deco-4 {
  left: 8%;
  top: 35%;
  width: 14px;
  transform: rotate(-30deg);
  opacity: 0.3;
}

.footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
  background: rgba(8, 0, 20, 0.8);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo-icon {
  width: 60px;
  height: 70px;
}

.footer-logo-img {
  height: 80px;
  width: auto;
}

.footer-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-social a:hover {
  border-color: var(--purple-mid);
  background: rgba(124, 58, 237, 0.25);
}

.footer-nav {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.about {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.about-section-img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.about-desc-img {
  margin-bottom: 0;
}

.partners {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.partners-grid-single {
  grid-template-columns: 1fr;
  max-width: 300px;
}

.partner-card {
  background: rgba(20, 16, 48, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
}

.partner-card:hover {
  border-color: var(--border-hover);
}

.partner-logo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo svg,
.partner-logo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  object-fit: contain;
}

.partners-subtitle {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  margin: 40px 0 20px;
}

.partner-card-tech {
  background: rgba(20, 16, 48, 0.5);
}

.team {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 550px;
  margin: 0 auto 36px;
}

.team-grid .card-flip {
  perspective: 800px;
  cursor: pointer;
  position: relative;
  min-height: 160px;
  outline: none;
}

.team-grid .card-flip:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 14px;
}

.team-grid .card-front,
.team-grid .card-back {
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  inset: 0;
}

.team-grid .card-front {
  z-index: 2;
}

.team-grid .card-back {
  z-index: 1;
  transform: rotateY(180deg);
  gap: 6px;
}

.team-grid .card-flip.flipped .card-front {
  transform: rotateY(180deg);
}

.team-grid .card-flip.flipped .card-back {
  transform: rotateY(0deg);
  z-index: 3;
}

.team-grid .card-front h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  color: white;
}

.team-grid .card-front p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.team-grid .card-back h3 {
  font-size: 16px;
  font-weight: 800;
  color: white;
  margin-top: 4px;
}

.team-grid .card-back p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.team-grid .card-back .card-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.3);
  margin-top: 2px;
  transition: background 0.2s;
}

.team-grid .card-back .card-linkedin:hover {
  background: rgba(124, 58, 237, 0.5);
}

.team-grid .card-back .card-linkedin svg {
  width: 16px;
  height: 16px;
  fill: #a78bfa;
}

.team-grid .card-back .card-linkedin-lg {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(168, 139, 250, 0.35);
  margin-top: 6px;
}

.team-grid .card-back .card-linkedin-lg:hover {
  background: rgba(168, 139, 250, 0.5);
}

.team-grid .card-back .card-linkedin-lg svg {
  width: 20px;
  height: 20px;
  fill: #1e1245;
}

.team-grid .card-initials {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.team-grid .purple-init {
  background: linear-gradient(135deg, #4a2280, #2d1b69);
  border: 3px solid rgba(124, 58, 237, 0.35);
}

.team-grid .teal-init {
  background: linear-gradient(135deg, #1a5c55, #134e4a);
  border: 3px solid rgba(0, 229, 192, 0.35);
}

.team-grid .card-purple {
  background: linear-gradient(145deg, #2d1b69, #1a1040);
  border: 2px solid rgba(124, 58, 237, 0.4);
}

.team-grid .card-teal {
  background: linear-gradient(145deg, #1a5c55, #0d3b38);
  border: 2px solid rgba(0, 229, 192, 0.4);
}

.team-grid .card-purple-back {
  background: linear-gradient(145deg, #1a1040, #130c30);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.team-grid .card-teal-back {
  background: linear-gradient(145deg, #0d3b38, #0a2e2c);
  border: 1px solid rgba(0, 229, 192, 0.2);
}

.team-cta {
  display: block;
  max-width: 550px;
  margin: 0 auto;
  padding: 16px 36px;
  border: 1.5px solid var(--cyan);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  background: transparent;
}

.team-cta:hover {
  background: rgba(0, 229, 192, 0.08);
  box-shadow: 0 0 30px rgba(0, 229, 192, 0.15);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .domains-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .prizes-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
    align-items: stretch;
  }

  .prize-card-first {
    order: -1;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 80px 28px 28px;
    gap: 0;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links .nav-cta {
    display: inline-block;
    text-align: center;
    margin-top: 10px;
    border-bottom: none !important;
    border: none !important;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-info {
    gap: 24px;
  }

  .hero-countdown {
    gap: 16px;
  }

  .domains-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tracks-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    width: 80%;
  }

  .timeline-right {
    margin-left: auto;
    margin-right: 0;
  }

  .timeline-left {
    margin-right: auto;
    margin-left: 0;
  }

  .timeline-line {
    left: 90%;
  }

  .timeline-right .timeline-dot,
  .timeline-left .timeline-dot {
    right: auto;
    left: calc(100% + 20px);
  }

  .timeline-right .timeline-arrow,
  .timeline-left .timeline-arrow {
    display: none;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .team-cta {
    max-width: 300px;
  }

  .footer-top {
    flex-direction: column-reverse;
    align-items: center;
    gap: 32px;
    text-align: center;
  }

  .footer-nav {
    gap: 40px;
  }

  .faq-decoration {
    display: none;
  }

  .timeline-deco {
    display: none;
  }
}

@media (max-width: 480px) {
  .domains-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .countdown-value {
    font-size: 32px;
  }

  .hero-title-ar {
    letter-spacing: 1px;
  }

  .hero-quote {
    padding: 20px 20px;
  }

  .footer-nav {
    gap: 28px;
  }
}
.card-img-back{
  position:relative;
  overflow:hidden;
  padding:0;
}

.card-img-back img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* اسم الشخص */
.card-img-back h3{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  color:white;
  font-weight:800;
  font-size:16px;
}

/* زر لينكدان */
.card-linkedin-overlay{
  position:absolute;
  bottom:10px;
  left:10px;
  width:30px;
  height:30px;
  background:rgba(124,58,237,0.8);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.card-linkedin-overlay svg{
  width:14px;
  fill:white;
}
/* الكارد الخلفي */
.card-profile{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
}

/* الصورة */
.card-profile img{
  width:70px;
  height:70px;
  object-fit:cover;
  border-radius:50%;
}

/* الاسم + لينكدان */
.card-info{
  display:flex;
  align-items:center;
  gap:8px;
}

.card-info h3{
  font-size:14px;
  margin:0;
}

/* ايقونة لينكدان */
.linkedin-icon{
  width:22px;
  height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#7c3aed;
  border-radius:50%;
}

.linkedin-icon svg{
  width:12px;
  fill:white;
}
/* ===== Team cards in home page ===== */
.card-flip {
  position: relative;
  height: 120px;
  cursor: pointer;
  perspective: 1000px;
  outline: none;
  transition: transform 0.3s ease;
}

.card-flip:hover {
  transform: translateY(-5px);
}

.card-flip .card-front,
.card-flip .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-flip .card-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.card-flip .card-back {
  z-index: 1;
  transform: rotateY(180deg);
}

.card-flip.flipped .card-front,
.card-flip:hover .card-front {
  transform: rotateY(180deg);
}

.card-flip.flipped .card-back,
.card-flip:hover .card-back {
  transform: rotateY(0deg);
  z-index: 3;
}

.card-purple {
  background: linear-gradient(145deg, #251850, #1a1240);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.card-teal {
  background: linear-gradient(145deg, #1a6b63, #0f5550);
  border: 1px solid rgba(0, 229, 192, 0.3);
}

.card-back.card-purple-back {
  background: linear-gradient(145deg, #1a1040, #130c30);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.card-back.card-teal-back {
  background: linear-gradient(145deg, #0d3b38, #0a2e2c);
  border: 1px solid rgba(0, 229, 192, 0.2);
}

.card-front h3 {
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  position: center;
}

.card-front p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 5px 0 0;
}

.card-back.leader-back {
  display: grid;
  grid-template-areas:
    "photo content"
    "photo footer";
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.card-back.leader-back .card-photo-lg {
  grid-area: photo;
  width: auto;
  height: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.card-photo-lg img {
  width: 80%;
  height: 80%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-back.leader-back h3 {
  grid-area: content;
  align-self: end;
  padding: 10px 14px 2px;
  font-size: 0.85rem;
}

.card-back.leader-back .card-back-footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 14px 10px;
  align-self: start;
}

.card-back .card-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.5);
  transition: background 0.2s;
  flex-shrink: 0;
}

.card-back .card-linkedin:hover {
  background: rgba(124, 58, 237, 0.7);
}

.card-back .card-linkedin svg {
  width: 13px;
  height: 13px;
  fill: #c4b5fd;
}

.card-back-footer span {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
}
.member-card{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:6px;
text-align:center;
padding:15px;
}

/* الصورة */
.member-photo{
width:70px;
height:70px;
overflow:hidden;
border-radius:0px; /* مربع بزوايا خفيفة */
}

.member-photo img{
width:100%;
height:100%;
object-fit:cover;
}

/* الاسم */
.member-name{
font-size:14px;
font-weight:700;
margin:0;
}

/* المنصب */
.member-role{
font-size:12px;
color:rgba(255,255,255,0.6);
margin:0;
}

/* لينكدان */
.member-linkedin{
display:flex;
align-items:center;
justify-content:center;
width:28px;
height:28px;
border-radius:50%;
background:#7c3aed;
margin-top:4px;
}

.member-linkedin svg{
width:14px;
height:14px;
fill:white;
}
.leaders-row{
display:flex;
justify-content:center;
gap:20px;
flex-wrap:wrap;
}
/* صف القادة */
.leaders-row{
display:flex;
justify-content:center;
align-items:center;
gap:30px;
margin-top:40px;
flex-wrap:wrap;
}

/* حجم الكارد */
.leaders-row .card-flip{
width:220px;
height:220px;
position:relative;
perspective:1000px;
cursor:pointer;
}

/* الوجهين */
.card-front,
.card-back{
position:absolute;
width:100%;
height:100%;
border-radius:14px;
backface-visibility:hidden;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;
transition:transform 0.6s;
padding:20px;
}

/* الخلف */
.card-back{
transform:rotateY(180deg);
}

/* القلب */
.card-flip:hover .card-front{
transform:rotateY(180deg);
}

.card-flip:hover .card-back{
transform:rotateY(0);
}

/* ألوان */
.card-purple{
background:linear-gradient(145deg,#251850,#1a1240);
border:1px solid rgba(124,58,237,0.3);
}

.card-teal{
background:linear-gradient(145deg,#1a6b63,#0f5550);
border:1px solid rgba(0,229,192,0.3);
}

.card-purple-back{
background:linear-gradient(145deg,#1a1040,#130c30);
}

.card-teal-back{
background:linear-gradient(145deg,#0d3b38,#0a2e2c);
}

/* ترتيب العناصر */
.member-card{
display:flex;
flex-direction:column;
align-items:center;
gap:8px;
}

/* الصورة */
.member-photo{
width:90px;
height:90px;
border-radius:10px;
overflow:hidden;
}

.member-photo img{
width:100%;
height:100%;
object-fit:cover;
}

/* الاسم */
.member-name{
font-size:16px;
font-weight:700;
margin:0;
color:white;
}

/* المنصب */
.member-role{
font-size:13px;
color:rgba(255,255,255,0.7);
margin:0;
}

/* لينكدان */
.member-linkedin{
display:flex;
align-items:center;
justify-content:center;
width:30px;
height:30px;
border-radius:50%;
background:#7c3aed;
margin-top:6px;
}

.member-linkedin svg{
width:14px;
height:14px;
fill:white;
}
.leaders-row{
display:grid;
grid-template-columns:repeat(2,220px);
gap:30px;
margin-top:40px;
justify-content:center;
}
@media (max-width:600px){

.leaders-row{
grid-template-columns:1fr;
}

} 
.prizes-grid{
  display:flex;
  justify-content:center;
} 
/* ===== Universities Slider ===== */

.universities-slider{
  overflow: hidden;
  position: relative;
  margin-top: 40px;
  width: 100%;
}

.universities-track{
  display: flex;
  width: max-content;
  animation: universitiesMarquee 35s linear infinite;
  will-change: transform;
}

.universities-group{
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  padding-inline-end: 24px;
}

.universities-group img{
  height: 90px;
  width: auto;
  object-fit: contain;
  background: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.universities-group img:hover{
  transform: scale(1.06);
}

@keyframes universitiesMarquee{
  from{
    transform: translateX(0);
  }
  to{
    transform: translateX(-50%);
  }
}
.universities-slider,
.universities-track,
.universities-group{
  direction: ltr;
}