:root {
  --bg: #0b0b0f;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --text: #ffffff;
  --muted: #b9b9c8;
  --pink: #d92b59;
  --cyan: #12b8c2;
  --purple: #282033;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 15%, rgba(217, 43, 89, 0.22), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(18, 184, 194, 0.2), transparent 34%),
    linear-gradient(135deg, #07070a 0%, #111018 48%, #07070a 100%);
  color: var(--text);
  font-family: "Cairo", system-ui, sans-serif;
  font-size: 18px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

.dev-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
}

.dev-modal.visible {
  display: grid;
}

.dev-modal-card {
  position: relative;
  width: min(620px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(18, 184, 194, 0.42);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    #111018;
  box-shadow: var(--shadow);
  transform: translateY(18px) scale(0.96);
  transition: transform 220ms ease;
}

.dev-modal.visible .dev-modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(217, 43, 89, 0.38);
  border-radius: 999px;
  background: rgba(217, 43, 89, 0.1);
  color: var(--pink);
  font-size: 0.95rem;
  font-weight: 900;
}

.dev-modal h2 {
  margin: 22px 0 12px;
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  line-height: 1.15;
}

.dev-modal p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.9;
}

.modal-action {
  width: 100%;
  margin-top: 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.25;
}

.brand strong {
  font-size: 1.12rem;
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 9, 12, 0.7);
}

.main-nav a {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  transition: 180ms ease;
}

.main-nav a:hover {
  background: var(--panel-strong);
  color: var(--text);
}

main {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  align-content: center;
  gap: 34px;
  padding: 64px 0 46px;
}

.status-pill {
  justify-self: start;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(217, 43, 89, 0.65);
  animation: pulse 1.8s infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 82px);
}

.eyebrow,
.detail-label {
  margin: 0;
  color: var(--cyan);
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  max-width: 980px;
  margin: 8px 0 20px;
  font-size: clamp(3.3rem, 7vw, 7rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  color: #fff;
  box-shadow: 0 16px 36px rgba(217, 43, 89, 0.22);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags span {
  padding: 10px 14px;
  border: 1px solid rgba(18, 184, 194, 0.28);
  border-radius: 999px;
  background: rgba(18, 184, 194, 0.075);
  color: #dcfbff;
  font-size: 0.92rem;
  font-weight: 800;
}

.academy-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(12, 12, 18, 0.78);
  box-shadow: var(--shadow);
}

.academy-panel::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.12), transparent 65%);
  transform: translateX(120%);
  animation: sheen 5s ease-in-out infinite;
}

.panel-top {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--pink);
}

.panel-top span:nth-child(2) {
  background: #ffc247;
}

.panel-top span:nth-child(3) {
  background: var(--cyan);
}

.panel-body {
  min-height: 320px;
  padding: clamp(24px, 3vw, 36px);
  direction: ltr;
  color: #ecfeff;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
}

.panel-body p {
  margin: 0 0 20px;
}

.panel-body span {
  color: var(--cyan);
}

.typing::after {
  content: "|";
  color: var(--cyan);
  animation: blink 0.85s steps(2, start) infinite;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 16px 16px;
}

.metrics div,
.internship-card,
.feature-card,
.step,
.field-detail {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  backdrop-filter: blur(20px);
}

.metrics div {
  padding: 22px;
}

.metrics strong {
  display: block;
  color: var(--pink);
  font-size: 2rem;
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: clamp(90px, 11vw, 150px) 0;
}

.section-heading {
  max-width: 830px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact-section h2 {
  margin: 8px 0 0;
  font-size: clamp(2.35rem, 4vw, 4.1rem);
  line-height: 1.2;
}

.section-heading p:last-child,
.wide-heading p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.24rem);
  line-height: 1.9;
}

.wide-heading {
  max-width: 980px;
}

.internship-grid,
.features-grid,
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.features-grid {
  grid-template-columns: repeat(3, 1fr);
}

.internship-card,
.feature-card,
.step {
  min-height: 245px;
  padding: clamp(24px, 3vw, 32px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.internship-card:hover,
.feature-card:hover,
.step:hover {
  transform: translateY(-6px);
  border-color: rgba(18, 184, 194, 0.5);
  background: rgba(18, 184, 194, 0.09);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: rgba(217, 43, 89, 0.12);
  color: var(--pink);
  font-size: 1.65rem;
}

.internship-card h3,
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  line-height: 1.3;
}

.internship-card p,
.feature-card p,
.step p,
.field-detail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.fields-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.field-item {
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 900;
  cursor: pointer;
  transition: 180ms ease;
}

.field-item:hover,
.field-item.active {
  border-color: rgba(217, 43, 89, 0.5);
  background: rgba(217, 43, 89, 0.13);
  color: var(--text);
}

.field-detail {
  padding: clamp(28px, 4vw, 44px);
}

.field-detail h3 {
  margin: 6px 0 8px;
  font-size: 2.1rem;
}

.feature-card span,
.step span {
  color: var(--cyan);
  font-weight: 900;
}

.feature-card h3 {
  margin-top: 20px;
}

.step strong {
  display: block;
  margin: 13px 0 7px;
  font-size: 1.35rem;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 50px 0 80px;
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid rgba(217, 43, 89, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(217, 43, 89, 0.14), rgba(18, 184, 194, 0.1)),
    rgba(255, 255, 255, 0.055);
}

.contact-section h2 {
  max-width: 850px;
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(9, 9, 12, 0.86);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: 180ms ease;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(217, 43, 89, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(217, 43, 89, 0);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes sheen {
  45%,
  100% {
    transform: translateX(-120%);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .internship-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .academy-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    border-radius: 16px;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding-inline: 12px;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-grid,
  .internship-grid,
  .features-grid,
  .timeline,
  .metrics {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 14vw, 4.15rem);
  }

  .panel-body {
    min-height: 250px;
  }

  .contact-section {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-section .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  main,
  .site-header {
    width: min(100% - 22px, 1320px);
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .dev-modal-card {
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}