/* =============================================
   ROOT DESIGN TOKENS
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #050318;
  --bg-card: #0d0b2a;
  --border-glow: rgba(120, 60, 200, 0.45);
  --border-box: rgba(100, 60, 180, 0.3);

  --purple: #a855f7;
  --blue: #60a5fa;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --green: #34d399;
  --yellow: #f7df1e;
  --orange: #f97316;

  --text-primary: #e2d9ff;
  --text-secondary: #c4b5fd;
  --text-muted: #9ca3af;

  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* =============================================
   BODY
   ============================================= */
html,
body {
  min-height: 100vh;
  font-family: var(--font);
  background:
    radial-gradient(ellipse at 15% 50%, #1a0533 0%, var(--bg-deep) 55%),
    radial-gradient(ellipse at 85% 20%, #0a1a4a 0%, transparent 50%);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* =============================================
   ANIMATED PARTICLES
   ============================================= */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-particles span {
  position: absolute;
  border-radius: 50%;
  animation: float-up linear infinite;
  opacity: 0;
}
.bg-particles span:nth-child(1) {
  width: 3px;
  height: 3px;
  background: var(--purple);
  left: 8%;
  animation-duration: 13s;
  animation-delay: 0s;
}
.bg-particles span:nth-child(2) {
  width: 2px;
  height: 2px;
  background: var(--blue);
  left: 22%;
  animation-duration: 17s;
  animation-delay: 2s;
}
.bg-particles span:nth-child(3) {
  width: 3px;
  height: 3px;
  background: var(--pink);
  left: 38%;
  animation-duration: 15s;
  animation-delay: 4s;
}
.bg-particles span:nth-child(4) {
  width: 2px;
  height: 2px;
  background: var(--cyan);
  left: 54%;
  animation-duration: 19s;
  animation-delay: 1s;
}
.bg-particles span:nth-child(5) {
  width: 4px;
  height: 4px;
  background: var(--purple);
  left: 68%;
  animation-duration: 14s;
  animation-delay: 3s;
}
.bg-particles span:nth-child(6) {
  width: 2px;
  height: 2px;
  background: var(--blue);
  left: 82%;
  animation-duration: 16s;
  animation-delay: 5s;
}
.bg-particles span:nth-child(7) {
  width: 3px;
  height: 3px;
  background: var(--green);
  left: 14%;
  animation-duration: 21s;
  animation-delay: 6s;
}
.bg-particles span:nth-child(8) {
  width: 2px;
  height: 2px;
  background: var(--pink);
  left: 33%;
  animation-duration: 12s;
  animation-delay: 7s;
}
.bg-particles span:nth-child(9) {
  width: 3px;
  height: 3px;
  background: var(--cyan);
  left: 58%;
  animation-duration: 18s;
  animation-delay: 2s;
}
.bg-particles span:nth-child(10) {
  width: 2px;
  height: 2px;
  background: var(--purple);
  left: 76%;
  animation-duration: 15s;
  animation-delay: 8s;
}
.bg-particles span:nth-child(11) {
  width: 4px;
  height: 4px;
  background: var(--blue);
  left: 89%;
  animation-duration: 20s;
  animation-delay: 0s;
}
.bg-particles span:nth-child(12) {
  width: 2px;
  height: 2px;
  background: var(--yellow);
  left: 5%;
  animation-duration: 23s;
  animation-delay: 4s;
}

@keyframes float-up {
  0% {
    transform: translateY(110vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-10vh) scale(1.5);
    opacity: 0;
  }
}

/* =============================================
   MAIN WRAPPER & CARD  —  2-column layout
   ============================================= */
.card-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  width: 100%;
  max-width: 1100px;
  display: grid;
  /* Left panel takes ~48%, right panel takes ~52% – no separate QR column */
  grid-template-columns: 1fr 1.1fr;
  grid-template-rows: auto;
  gap: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 11, 42, 0.93) 0%,
    rgba(10, 8, 32, 0.96) 50%,
    rgba(15, 12, 50, 0.93) 100%
  );
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.12),
    0 24px 80px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: entrance 0.6s ease-out both;
}

@keyframes entrance {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* The QR mobile block is hidden on desktop */
.qr-mobile-block {
  display: none;
}

/* =============================================
   LEFT PANEL
   ============================================= */
.left-panel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border-box);
}

/* ── Header ── */
.header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.logo-box {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border: 1.5px solid var(--border-glow);
  border-radius: 10px;
  background: rgba(100, 50, 180, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.2);
}
.logo-box svg {
  width: 100%;
  height: 100%;
}

.title-group h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #fff 20%, #c4b5fd 60%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-align: center;
}
.starts-line {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-align: center;
}
.date-highlight {
  color: var(--pink);
  text-shadow: 0 0 12px rgba(236, 72, 153, 0.6);
}

/* ── Tech Stack Box ── */
.tech-box {
  border: 1px solid var(--border-box);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  background: rgba(7, 5, 25, 0.6);
  flex: 1;
}

.tech-box-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: clamp(0.82rem, 1.3vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

/* Two-column inside the tech box: list + illustration */
.tech-layout {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

/* 2-column auto grid for 13 items */
.tech-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 0.5rem;
  flex: 1;
  min-width: 0;
}

/* Each row in the tech list */
.tech-item {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-size: clamp(0.78rem, 1.2vw, 0.9rem);
  color: var(--text-primary);
  position: relative;
  padding-left: 0.4rem;
  min-width: 0;
}
.tech-item::before {
  content: "";
  position: absolute;
  left: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 6px var(--purple);
}

.tech-name {
  flex-shrink: 0;
}

/* ── SQL inline chip ── */
.sql-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  font-size: clamp(0.58rem, 0.95vw, 0.7rem);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.sql-label {
  background: linear-gradient(135deg, #1a6aff, #0044cc);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── Tech badges ── */
.tech-badge {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  flex-shrink: 0;
  overflow: hidden;
}
.tech-badge svg {
  width: 18px;
  height: 18px;
}

.tech-badge.js {
  background: #f7df1e;
  color: #000;
}
.tech-badge.react {
  background: #0d1a2e;
  border: 1px solid #61dafb44;
}
.tech-badge.node {
  background: #0a1f0a;
  border: 1px solid #68a06344;
}
.tech-badge.nodedark {
  background: #1a1a2a;
  border: 1px solid #88888844;
}
.tech-badge.mongo {
  background: #0f1f0a;
  border: 1px solid #4db33d44;
}
.tech-badge.sql-db {
  background: #04122e;
  border: 1px solid #1a6aff55;
}
.tech-badge.redux {
  background: #1a0a2e;
  border: 1px solid #764abc55;
}
.tech-badge.zustand {
  background: #1c1200;
  border: 1px solid #f59e0b55;
}
.tech-badge.tailwind {
  background: #001a2e;
  border: 1px solid #38bdf855;
}
.tech-badge.scss {
  background: #2a0015;
  border: 1px solid #cd679955;
}
.tech-badge.mui {
  background: #000f2e;
  border: 1px solid #007fff55;
}
.tech-badge.git {
  background: #2a0800;
  border: 1px solid #f0503255;
}
.tech-badge.linux {
  background: #1a1200;
  border: 1px solid #f5c51855;
}

/* ── Hero illustration (developer at desk) ── */
.hero-illustration {
  flex-shrink: 0;
  width: clamp(90px, 11vw, 130px);
  align-self: center;
}
.hero-illustration svg {
  width: 100%;
  height: auto;
}

/* ── Apply Now ── */
.apply-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.apply-btn {
  display: inline-block;
  padding: 0.65rem 2.4rem;
  background: transparent;
  border: 2px solid var(--purple);
  border-radius: 6px;
  color: var(--purple);
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow:
    0 0 18px rgba(168, 85, 247, 0.3),
    inset 0 0 18px rgba(168, 85, 247, 0.05);
  animation: glow-pulse 2.5s ease-in-out infinite;
}
.apply-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.15),
    rgba(59, 130, 246, 0.15)
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.apply-btn:hover {
  color: #fff;
  border-color: var(--blue);
  box-shadow:
    0 0 32px rgba(168, 85, 247, 0.6),
    0 0 8px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}
.apply-btn:hover::before {
  opacity: 1;
}
.apply-btn:active {
  transform: translateY(0);
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow:
      0 0 18px rgba(168, 85, 247, 0.3),
      inset 0 0 18px rgba(168, 85, 247, 0.05);
  }
  50% {
    box-shadow:
      0 0 30px rgba(168, 85, 247, 0.55),
      inset 0 0 24px rgba(168, 85, 247, 0.1);
  }
}

.screening-note {
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.queries-line {
  font-size: clamp(0.78rem, 1.15vw, 0.9rem);
  color: var(--text-secondary);
  margin-top: auto;
}
.queries-email {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.queries-email:hover {
  color: var(--purple);
}

/* ── Shared small icon ── */
.icon-sm {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--purple);
}

/* =============================================
   RIGHT PANEL
   ============================================= */
.right-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.75rem 1.4rem;
}

/* ── QR Block (desktop: top of right panel) ── */
.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-box);
}

.scan-label {
  font-size: clamp(0.75rem, 1.2vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.qr-frame {
  border: 2px solid rgba(168, 85, 247, 0.5);
  border-radius: 10px;
  padding: 7px;
  background: #fff;
  width: clamp(110px, 13vw, 155px);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.35);
  transition: box-shadow 0.3s;
}
.qr-frame:hover {
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.65);
}
.qr-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ── Info Boxes ── */
.info-box {
  border: 1px solid var(--border-box);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  background: rgba(7, 5, 25, 0.6);
  margin-bottom: 0.75rem;
}
.info-box:last-child {
  margin-bottom: 0;
}

.box-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: clamp(0.82rem, 1.3vw, 0.98rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  padding-bottom: 0.4rem;
}

/* ── Learning Model ── */
.learning-content {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
}
.learning-left {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.learning-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: clamp(0.82rem, 1.25vw, 0.94rem);
  color: var(--text-secondary);
  line-height: 1.3;
}
.lrn-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--purple);
  margin-top: 1px;
}

/* ── Collaboration illustration ── */
.collab-illustration {
  flex-shrink: 0;
  width: clamp(75px, 10vw, 115px);
}
.collab-illustration svg {
  width: 100%;
  height: auto;
}

/* ── Feature list ── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.feature-list li {
  font-size: clamp(0.8rem, 1.2vw, 0.92rem);
  color: var(--text-secondary);
  position: relative;
  padding-left: 0.95rem;
}
.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--purple);
}

/* ── Curriculum list ── */
.curriculum-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.curriculum-list li {
  font-size: clamp(0.8rem, 1.2vw, 0.92rem);
  color: var(--text-secondary);
  position: relative;
  padding-left: 0.95rem;
  line-height: 1.35;
}
.curriculum-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* =============================================
   RESPONSIVE — TABLET  ≤ 860px
   ============================================= */
@media (max-width: 860px) {
  .card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .left-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-box);
    padding-bottom: 1.25rem;
  }

  /* On tablet, hide online QR — show mobile block */
  .qr-block {
    display: none;
  }

  .right-panel {
    padding-top: 1.25rem;
  }

  /* Mobile qr block shows between left and right sections */
  .qr-mobile-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-box);
    order: 2; /* renders between left (order 1) and right (order 3) */
  }

  /* reorder grid children */
  .left-panel {
    order: 1;
  }
  .right-panel {
    order: 3;
  }
  .qr-mobile-block {
    order: 2;
  }

  .qr-frame {
    width: clamp(130px, 38vw, 170px);
  }

  .tech-layout {
    gap: 0.8rem;
  }
  .tech-list {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   RESPONSIVE — MOBILE  ≤ 580px
   ============================================= */
@media (max-width: 580px) {
  .card-wrapper {
    padding: 0.75rem;
  }

  .card {
    padding: 0;
  }

  .left-panel {
    padding: 1.2rem 1rem 1rem;
  }
  .right-panel {
    padding: 1rem;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tech-layout {
    flex-direction: column;
  }
  .hero-illustration {
    width: 100px;
    align-self: center;
  }

  .learning-content {
    flex-direction: column;
  }
  .collab-illustration {
    width: 100px;
    align-self: center;
  }

  .qr-frame {
    width: clamp(130px, 50vw, 160px);
  }
}

/* =============================================
   VERY SMALL  ≤ 360px
   ============================================= */
@media (max-width: 360px) {
  .logo-box {
    width: 54px;
    height: 54px;
  }
  .apply-btn {
    padding: 0.55rem 1.5rem;
  }
}
