/* G-TEC Premium GSAP Hero — Global Learning Ecosystem */
.gtec-hero {
  --gtec-bg: #050505;
  --gtec-primary: #ff1e1e;
  --gtec-white: #ffffff;
  --gtec-accent: rgba(255, 30, 30, 0.15);
  --gtec-glass: rgba(255, 255, 255, 0.04);
  --gtec-glass-border: rgba(255, 255, 255, 0.08);
  position: relative;
  background: var(--gtec-bg);
  overflow: hidden;
  color: var(--gtec-white);
  font-family: Manrope, Urbanist, system-ui, sans-serif;
  isolation: isolate;
}

.gtec-hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.gtec-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.gtec-hero__video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.45) 0%, rgba(5, 5, 5, 0.68) 50%, rgba(5, 5, 5, 0.92) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 30, 30, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.gtec-hero__stage {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gtec-hero__main {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gtec-hero__map-wrap {
  display: none;
}

.gtec-hero__map-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(18deg) scale(1);
  filter: drop-shadow(0 0 40px rgba(255, 30, 30, 0.12));
}

.gtec-hero__map-svg,
.gtec-hero__lines-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gtec-hero__map-svg {
  opacity: 0.85;
}

.gtec-hero__continent {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 0.8;
}

.gtec-hero__hub {
  fill: var(--gtec-primary);
  filter: drop-shadow(0 0 8px rgba(255, 30, 30, 0.8));
}

.gtec-hero__connection {
  fill: none;
  stroke: url(#gtecLineGrad);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.7;
}

.gtec-hero__orbit-ring {
  display: none;
}

.gtec-hero__orbit-item {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  will-change: transform;
}

.gtec-hero__orbit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gtec-glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--gtec-white);
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}

.gtec-hero__orbit-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gtec-primary);
  box-shadow: 0 0 10px var(--gtec-primary);
}

.gtec-hero__orbit-pill:hover {
  border-color: rgba(255, 30, 30, 0.45);
  box-shadow: 0 12px 40px rgba(255, 30, 30, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.gtec-hero__content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 860px;
  padding: 0 12px;
}

.gtec-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gtec-accent);
  border: 1px solid rgba(255, 30, 30, 0.25);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.gtec-hero__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--gtec-white) !important;
}

.gtec-hero__word {
  display: inline-block;
  margin-right: 0.18em;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

.gtec-hero__word--accent {
  background: linear-gradient(135deg, #ffffff 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

.gtec-hero__sub {
  margin: 0 auto 28px;
  max-width: 640px;
  font-size: clamp(0.9rem, 1.8vw, 1.125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72) !important;
}

.gtec-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.gtec-hero__tags {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  max-width: 420px;
}

.gtec-hero__tag {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gtec-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}

.gtec-btn--primary {
  background: var(--gtec-primary);
  color: var(--gtec-white) !important;
  box-shadow: 0 12px 40px rgba(255, 30, 30, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.gtec-btn--primary:hover {
  box-shadow: 0 16px 48px rgba(255, 30, 30, 0.5);
}

.gtec-btn--ghost {
  background: var(--gtec-glass);
  color: var(--gtec-white) !important;
  border: 1px solid var(--gtec-glass-border);
  backdrop-filter: blur(12px);
}

.gtec-btn--ghost:hover {
  border-color: rgba(255, 30, 30, 0.35);
  background: rgba(255, 30, 30, 0.08);
}

.gtec-hero__stats {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 980px;
  margin: 40px auto 0;
  padding: 0 12px;
}

.gtec-stat {
  padding: 20px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid var(--gtec-glass-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.gtec-stat__value {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--gtec-white) !important;
}

.gtec-stat__num {
  color: var(--gtec-primary) !important;
}

.gtec-stat__label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gtec-hero__cards {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 0 12px 48px;
}

.gtec-course-card {
  padding: 20px 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--gtec-glass-border);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.gtec-course-card__tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gtec-primary);
}

.gtec-course-card__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff !important;
}

.gtec-course-card__meta {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* Hidden until GSAP runs — fallback shows content after timeout via .is-ready */
.gtec-hero:not(.is-ready) .gtec-hero__eyebrow,
.gtec-hero:not(.is-ready) .gtec-hero__word,
.gtec-hero:not(.is-ready) .gtec-hero__sub,
.gtec-hero:not(.is-ready) .gtec-hero__cta,
.gtec-hero:not(.is-ready) .gtec-stat,
.gtec-hero:not(.is-ready) .gtec-course-card {
  opacity: 0;
}

.gtec-hero.is-ready .gtec-hero__eyebrow,
.gtec-hero.is-ready .gtec-hero__word,
.gtec-hero.is-ready .gtec-hero__sub,
.gtec-hero.is-ready .gtec-hero__cta,
.gtec-hero.is-ready .gtec-stat,
.gtec-hero.is-ready .gtec-course-card {
  opacity: 1;
  transform: none;
}

@media (max-width: 991px) {
  .gtec-hero__orbit-ring {
    display: none;
  }

  .gtec-hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .gtec-hero__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .gtec-hero__map-wrap {
    opacity: 0.25 !important;
    height: 240px;
  }
}

@media (max-width: 767px) {
  .gtec-hero__stage {
    padding: 88px 16px 16px;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .gtec-hero__main {
    min-height: auto;
    padding: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .gtec-hero__map-wrap,
  .gtec-hero__orbit-ring {
    display: none !important;
  }

  .gtec-hero__content {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
  }

  .gtec-hero__eyebrow {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    text-align: center;
  }

  .gtec-hero__title {
    width: 100%;
    font-size: clamp(1.65rem, 8.5vw, 2.25rem);
    line-height: 1.18;
    text-align: center !important;
  }

  .gtec-hero__word {
    text-align: center;
  }

  .gtec-hero__sub {
    font-size: 0.88rem;
    margin-bottom: 22px;
    line-height: 1.55;
    text-align: center !important;
    width: 100%;
  }

  .gtec-hero__cta {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .gtec-btn {
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    transform: none !important;
  }

  .gtec-hero__tags {
    display: flex;
    width: 100%;
    max-width: 360px;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }

  .gtec-hero__stats {
    margin-top: 16px;
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    justify-items: stretch;
  }

  .gtec-stat {
    padding: 12px 8px;
    text-align: center;
  }

  .gtec-stat__value {
    font-size: 1.35rem;
  }

  .gtec-stat__label {
    font-size: 9px;
    line-height: 1.3;
  }

  .gtec-hero__cards {
    display: none !important;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gtec-hero__orbit-ring,
  .gtec-hero__connection {
    animation: none !important;
  }

  .gtec-hero.is-ready .gtec-hero__word,
  .gtec-hero.is-ready .gtec-stat,
  .gtec-hero.is-ready .gtec-course-card {
    transform: none !important;
  }
}
