/* --- VARIABLES --- */
:root {
  --bg-dark: #050505;
  --bg-card: #0e0f14;
  --primary: #00f0ff; /* Neon Cyan */
  --accent: #bf00ff; /* Neon Purple */
  --text-main: #ffffff;
  --text-muted: #8b9bb4;

  --font-head: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;

  --gap-xs: 8px;
  --gap-sm: 16px;
  --gap-md: 32px;
  --gap-lg: 64px;
  --gap-xl: 120px;

  --container-width: 1280px;
}

/* --- RESET & GLOBAL --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  /* Grid background effect */
  background-image: linear-gradient(
      rgba(0, 240, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  text-transform: uppercase;
  color: var(--text-main);
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 20px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo-text {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav__list {
  display: flex;
  gap: 40px;
}

.nav__link {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  color: var(--text-muted);
}

.nav__link:hover {
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav__link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger__line {
  width: 100%;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s ease-in-out;
  z-index: 999;
}

.mobile-menu--active {
  right: 0;
}

.mobile-menu__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.mobile-menu__link {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--text-main);
}

.mobile-menu__link--accent {
  color: var(--primary);
}

/* --- FOOTER --- */
.footer {
  background: #000;
  padding-top: var(--gap-lg);
  border-top: 1px solid rgba(191, 0, 255, 0.3);
  position: relative;
  clip-path: polygon(0 0, 100% 50px, 100% 100%, 0 100%);
  margin-top: -50px; /* Slight overlap effect */
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: var(--gap-lg);
  padding-top: 60px;
}

.footer__logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-main);
  display: inline-block;
  margin-bottom: 20px;
}

.footer__dot {
  color: var(--accent);
}

.footer__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.footer__socials {
  display: flex;
  gap: 15px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%; /* Mix of sharp and round */
  color: var(--text-muted);
  transition: 0.3s;
}

.footer__social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.footer__title {
  font-size: 1.1rem;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: 0.3s;
}

.footer__links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer__icon {
  color: var(--primary);
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.footer__bottom {
  background: #020202;
  padding: 20px 0;
  text-align: center;
  color: #444;
  font-size: 0.85rem;
  border-top: 1px solid #111;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .header__logo-text {
    font-size: 1.2rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer {
    clip-path: none;
    margin-top: 0;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px; /* Offset for fixed header */
  overflow: hidden;
  background: radial-gradient(
    circle at 80% 20%,
    #1a0b2e 0%,
    var(--bg-dark) 60%
  );
}

/* Background Grid & Decor */
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(0, 240, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero__bg-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.4;
}

.hero__bg-element--1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  right: -100px;
}

.hero__bg-element--2 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  bottom: -100px;
  left: -200px;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--gap-lg);
  position: relative;
  z-index: 1;
  align-items: center;
}

/* Content Side */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px; /* Tech looking */
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__badge-icon {
  width: 8px;
  height: 8px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.hero__title {
  font-size: clamp(3rem, 5vw, 5.5rem); /* Responsive giant text */
  line-height: 1;
  margin-bottom: 30px;
  font-weight: 900;
}

.hero__title--highlight {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-main);
  position: relative;
  font-family: "Rajdhani", sans-serif; /* Contrast font */
  font-weight: 700;
}

/* Glitch effect style applied via JS logic mostly, but base style here */
.hero__title--highlight::after {
  content: attr(data-value);
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--primary);
  opacity: 0.6;
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  animation: glitch-anim 3s infinite alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}

.hero__desc strong {
  color: var(--text-main);
}

.hero__actions {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
}

.btn--primary {
  background: var(--primary);
  color: var(--bg-dark);
}

.btn--outline {
  border-color: var(--text-muted);
  color: var(--text-muted);
}
.btn--outline:hover {
  border-color: var(--text-main);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.hero__stats {
  display: flex;
  gap: 40px;
}

.hero__stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.hero__stat-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Visual Side - Breaking the Grid */
.hero__visual {
  position: relative;
  height: 500px; /* Fixed height for composition */
}

.hero__img-wrapper {
  position: absolute;
  top: 0;
  right: 20px;
  width: 90%;
  height: 90%;
  z-index: 2;
  clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) contrast(1.2);
  transition: 0.5s;
}

.hero__visual:hover .hero__img {
  filter: grayscale(0%);
}

.hero__frame {
  position: absolute;
  top: 40px;
  right: 0;
  width: 90%;
  height: 90%;
  border: 2px solid var(--accent);
  z-index: 1;
  clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

/* Floating Code Card */
.hero__code-card {
  position: absolute;
  bottom: -20px;
  left: -40px;
  background: rgba(14, 15, 20, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  width: 280px;
  z-index: 3;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.code-header {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}

.code-body {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: #fff;
}
.var {
  color: var(--accent);
}
.type {
  color: var(--primary);
}
.func {
  color: #f0f;
}
.comment {
  color: #555;
  display: block;
  margin-top: 5px;
}

/* Responsive Hero */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .hero {
    min-height: auto;
  }
  .hero__title {
    font-size: 3rem;
  }
  .hero__visual {
    display: none; /* Hide complex visual on mobile or simplify */
  }
}

/* --- COURSES SECTION --- */
.courses {
  padding: var(--gap-xl) 0;
  position: relative;
}

.section-header {
  margin-bottom: var(--gap-lg);
  max-width: 600px;
}

.section-subtitle {
  color: var(--primary);
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.text-accent {
  color: var(--accent);
}

.section-desc {
  color: var(--text-muted);
}

/* Grid Layout - Asymmetric Masonry */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 20px;
}

/* Base Card Style */
.course-card {
  background: rgba(14, 15, 20, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Hover Effect: Border Glow & Lift */
.course-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0, 240, 255, 0.15);
}

/* Grid Spans */
.course-card--large {
  grid-column: span 2;
  grid-row: span 1;
}

.course-card--tall {
  grid-column: span 1;
  grid-row: span 2;
  background: linear-gradient(
    180deg,
    rgba(14, 15, 20, 0.6) 0%,
    rgba(191, 0, 255, 0.1) 100%
  );
  border-color: rgba(191, 0, 255, 0.3);
}

.course-card--wide {
  grid-column: span 2;
}

.course-cta {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--text-muted);
  padding: 20px;
  transition: 0.3s;
}

.course-cta:hover {
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.05);
}

/* Card Internals */
.course-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.course-card__num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.1);
  font-weight: 900;
}

.course-card__icon {
  color: var(--primary);
  width: 32px;
  height: 32px;
}

.course-card--tall .course-card__icon {
  color: var(--accent);
}

.course-card__title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.course-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.course-card__tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.course-card__tags li {
  font-size: 0.8rem;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: var(--text-main);
}

.course-card__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.course-card__badge {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.course-card__link {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-card__link:hover {
  color: var(--primary);
  gap: 10px; /* animated arrow move */
}

/* Glitch deco element inside card */
.course-card__bg-glitch {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.03));
  clip-path: polygon(20% 0%, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

/* Animations Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Grid */
@media (max-width: 992px) {
  .courses-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .course-card--large,
  .course-card--tall,
  .course-card--wide,
  .course-cta {
    grid-column: span 1;
    grid-row: auto;
  }

  .course-card--tall {
    min-height: 300px;
  }
}

/* --- METHODOLOGY (Circuit Board Style) --- */
.methodology {
  padding: var(--gap-xl) 0;
  position: relative;
  overflow: hidden; /* Hide overflowing lines */
}

/* Container for the steps */
.circuit-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 60px;
  margin-bottom: 60px;
}

/* Individual Step */
.circuit-step {
  flex: 1;
  position: relative;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  group: step; /* For hover logic reference if needed, usually simplified below */
}

/* The Marker System (Dot + Connecting Line) */
.circuit-step__marker {
  position: relative;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.marker-dot {
  width: 20px;
  height: 20px;
  background: var(--bg-dark);
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  transition: 0.3s;
  box-shadow: 0 0 0 4px var(--bg-dark); /* Spacing from line */
}

/* Connecting Line */
.marker-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%; /* Connects to next element */
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
  transition: 0.3s;
}

/* Hide line for last element */
.circuit-step:last-child .marker-line {
  display: none;
}

/* Content Box */
.step-icon {
  width: 60px;
  height: 60px;
  background: rgba(14, 15, 20, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
  transform: rotate(45deg); /* Diamond shape */
  transition: 0.3s;
}

.step-icon i {
  transform: rotate(-45deg); /* Fix icon rotation */
  width: 28px;
  height: 28px;
}

.step-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.highlight-text {
  color: var(--primary);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* --- HOVER EFFECTS --- */
.circuit-step:hover .marker-dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary);
}

.circuit-step:hover .marker-line {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.circuit-step:hover .step-icon {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(45deg) scale(1.1);
  box-shadow: 0 0 20px rgba(191, 0, 255, 0.2);
}

/* Info Box Footer */
.methodology-footer {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.info-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(
    90deg,
    rgba(0, 240, 255, 0.05) 0%,
    transparent 100%
  );
  padding: 20px 30px;
  border-left: 3px solid var(--primary);
}

.info-icon {
  color: var(--primary);
  flex-shrink: 0;
}

/* --- RESPONSIVE TIMELINE --- */
@media (max-width: 992px) {
  .circuit-container {
    flex-direction: column;
    gap: 0;
    margin-left: 20px; /* Offset for vertical line */
  }

  .circuit-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding: 0 0 40px 30px;
  }

  .circuit-step__marker {
    width: auto;
    height: auto;
    position: absolute;
    left: -11px;
    top: 0;
    margin: 0;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
  }

  .marker-line {
    width: 2px;
    height: 100%;
    top: 20px; /* Start below dot */
    left: 50%;
    transform: translateX(-50%);
  }

  .step-icon {
    margin: 0 20px 0 0;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }
}

/* --- MENTORS SECTION --- */
.mentors {
  padding: var(--gap-xl) 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a0f 100%);
}

.mentors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Character Card */
.mentor-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 240, 255, 0.1);
  /* Slanted corners design */
  clip-path: polygon(
    20px 0,
    100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%,
    0 20px
  );
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.mentor-card:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-10px);
}

/* Visual / Avatar */
.mentor-card__visual {
  height: 250px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.mentor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Hologram look: grayscale + blue tint */
  filter: grayscale(100%) sepia(100%) hue-rotate(170deg) saturate(200%)
    contrast(1.2);
  transition: 0.4s;
}

.mentor-card:hover .mentor-img {
  /* Reveal real colors on hover */
  filter: grayscale(0%);
}

.hologram-effect {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    transparent 0px,
    transparent 2px,
    rgba(0, 240, 255, 0.1) 3px,
    rgba(0, 240, 255, 0.1) 4px
  );
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
  transition: 0.4s;
}

.mentor-card:hover .hologram-effect {
  opacity: 0;
}

.mentor-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 8px;
  z-index: 3;
  font-weight: 700;
  text-transform: uppercase;
}

/* Info & Stats */
.mentor-card__info {
  padding: 25px;
}

.mentor-name {
  font-size: 1.4rem;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mentor-lvl {
  font-size: 0.8rem;
  color: var(--primary);
  font-family: "Courier New", monospace;
  border: 1px solid var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
}

.mentor-role {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Skill Bars */
.stat-row {
  margin-bottom: 12px;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.stat-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
  position: relative;
  border-radius: 2px;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0; /* JS will animate this */
  transition: width 1s ease-out;
  box-shadow: 0 0 10px var(--primary);
}

.mentors-footer {
  text-align: center;
  margin-top: 30px;
}

/* --- FAQ SECTION --- */
.faq {
  padding: var(--gap-xl) 0;
  position: relative;
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* The Airlock Item */
.faq-item {
  background: rgba(14, 15, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Active State Design */
.faq-item.active {
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

/* The Clickable Header */
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 25px;
  background: none;
  border: none;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.faq-num {
  font-family: var(--font-head);
  color: var(--primary);
  font-size: 1.2rem;
  margin-right: 20px;
  opacity: 0.5;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  flex-grow: 1;
  padding-right: 20px;
  transition: 0.3s;
}

.faq-item.active .faq-question {
  color: var(--primary);
}

/* The Rotating Icon */
.faq-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--text-muted);
  transition: 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg); /* Turns plus to cross */
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 240, 255, 0.1);
}

/* The Content (Hidden by default) */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.faq-inner {
  padding: 0 25px 25px 60px; /* Aligned with text */
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  margin-top: -1px; /* Overlap border */
  padding-top: 20px;
}

.faq-inner strong {
  color: var(--text-main);
}

/* Decorative corner for active item */
.faq-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* Responsive adjustment */
@media (max-width: 576px) {
  .faq-trigger {
    padding: 20px 15px;
  }
  .faq-inner {
    padding: 0 15px 20px 15px;
  }
  .faq-num {
    display: none; /* Save space on mobile */
  }
}

/* --- CONTACT SECTION --- */
.contact {
  padding: var(--gap-xl) 0;
  position: relative;
  background: radial-gradient(
    circle at 0% 50%,
    rgba(0, 240, 255, 0.05),
    transparent 50%
  );
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.contact-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--primary);
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: blink 2s infinite;
}

@keyframes blink {
  50% {
    opacity: 0.3;
  }
}

/* Form Container */
.contact-form-box {
  background: rgba(14, 15, 20, 0.8);
  border: 1px solid rgba(191, 0, 255, 0.3);
  padding: 40px;
  position: relative;
  /* Tech corners */
  clip-path: polygon(
    20px 0,
    100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%,
    0 20px
  );
}

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

.form-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 12px 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

/* Custom Checkboxes */
.hidden-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

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

.custom-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.custom-checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.checkbox-box {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  flex-shrink: 0;
}

.checkbox-box i {
  width: 14px;
  height: 14px;
  color: var(--bg-dark);
  opacity: 0;
  transition: 0.2s;
}

/* Checked State */
.hidden-checkbox:checked + label .checkbox-box {
  background: var(--primary);
  border-color: var(--primary);
}

.hidden-checkbox:checked + label .checkbox-box i {
  opacity: 1;
}

/* CAPTCHA STYLES */
.captcha-container {
  background: #f9f9f9; /* Standard captcha look contrast or keep dark? Let's go Dark Tech Captcha */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 15px;
  width: fit-content;
  margin-bottom: 25px;
  min-width: 250px;
}

.captcha-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.captcha-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.captcha-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.captcha-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-left: 20px;
}

.captcha-logo i {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

.form-btn {
  width: 100%;
  margin-top: 10px;
}

.form-message {
  margin-top: 15px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 20px;
}
.form-message.success {
  color: var(--primary);
}
.form-message.error {
  color: #ff5f56;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background: rgba(14, 15, 20, 0.95);
  border: 1px solid var(--primary);
  padding: 20px;
  z-index: 9999;
  display: none; /* JS will show it */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.cookie-content a {
  color: var(--text-main);
  text-decoration: underline;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.8rem;
  width: 100%;
}

/* --- LEGAL PAGES STYLES (privacy.html etc) --- */
/* Ці стилі працюватимуть на окремих сторінках */
.pages {
  padding: 140px 0 80px; /* More top padding because of fixed header */
}

.pages h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.pages h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.pages p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.pages ul {
  margin-bottom: 1.5rem;
  padding-left: 20px;
  list-style: disc;
  color: var(--text-muted);
}

.pages li {
  margin-bottom: 0.5rem;
}

.pages a {
  color: var(--accent);
  text-decoration: underline;
}

/* Responsive Contact */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-info {
    text-align: center;
    margin-bottom: 30px;
  }
  .contact-status {
    justify-content: center;
  }
}
