/* ================================================================
   LXMUN · tech-group.css
   Page-specific styles for the Tech Group subpage.
   Theme: Dark / Purple / Violet
   Requires: global.css, components.css
   ================================================================ */

/* ── Theme Tokens ── */
:root {
  --tg-bg:           #0D0D12;
  --tg-bg-card:      #16161F;
  --tg-bg-card-2:    #1C1C28;
  --tg-purple:       #7C5CDB;
  --tg-purple-light: #A689F5;
  --tg-purple-pale:  #C4B0FF;
  --tg-purple-glow:  rgba(124, 92, 219, 0.18);
  --tg-purple-dark:  #4A3490;
  --tg-violet:       #9B6DFF;
  --tg-border:       rgba(124, 92, 219, 0.22);
  --tg-border-card:  rgba(124, 92, 219, 0.30);
  --tg-text:         #E8E4FF;
  --tg-text-muted:   #8B85A8;
  --tg-text-dim:     #5C5675;
  --tg-white:        #ffffff;
  --tg-shadow:       0 4px 24px rgba(124, 92, 219, 0.15);
  --tg-shadow-lg:    0 12px 48px rgba(124, 92, 219, 0.28);
  --tg-radius:       10px;
}

/* ── Global dark background for this page ── */
body {
  background: var(--tg-bg);
  color: var(--tg-text);
}


/* ════════════════════════════════════════════
   NAVBAR — dark variant
   ════════════════════════════════════════════ */
.tg-navbar {
  background: rgba(13, 13, 18, 0.92);
  border-bottom: 1px solid var(--tg-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tg-navbar .navbar__logo {
  color: var(--tg-purple-pale);
}

.tg-navbar .navbar__links a {
  color: var(--tg-text-muted);
}

.tg-navbar .navbar__links a:hover {
  color: var(--tg-purple-light);
  text-decoration: underline;
}

.tg-navbar .navbar__toggle span {
  background: var(--tg-text-muted);
}

.tg-navbar.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

/* Mobile nav dark */
@media (max-width: 768px) {
  .tg-navbar .navbar__nav {
    background: rgba(13, 13, 18, 0.98);
    border-bottom: 1px solid var(--tg-border);
  }
}


/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.tg-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-h);
  overflow: hidden;
  background: var(--tg-bg);
}

/* SVG geometric background */
.tg-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.tg-hero__bg svg {
  width: 100%;
  height: 100%;
}

/* Radial glow blobs */
.tg-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.tg-hero__glow::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 15%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(124,92,219,0.22) 0%, transparent 70%);
  border-radius: 50%;
}

.tg-hero__glow::after {
  content: '';
  position: absolute;
  bottom: 5%;
  left: 5%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(155,109,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.tg-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

/* Left: text */
.tg-hero__text {}

.tg-hero__eyebrow {
  font-family: var(--font-latin);
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tg-purple-light);
  margin-bottom: var(--space-sm);
}

.tg-hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  color: var(--tg-white);
  line-height: 1.12;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}

.tg-hero__title span {
  color: var(--tg-purple-light);
}

.tg-hero__desc {
  font-size: var(--fs-sm);
  color: var(--tg-text-muted);
  line-height: 1.9;
  max-width: 480px;
  margin-bottom: var(--space-lg);
}

.tg-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 13px 30px;
  background: var(--tg-purple);
  color: #fff;
  font-family: var(--font-chinese);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: var(--tg-radius);
  border: 1px solid var(--tg-purple-light);
  transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.tg-hero__btn:hover {
  background: var(--tg-violet);
  box-shadow: 0 0 28px rgba(124, 92, 219, 0.55);
  transform: translateY(-2px);
}

/* Right: illustration placeholder */
.tg-hero__visual {
  aspect-ratio: 4/3;
  border-radius: 16px;
  background: var(--tg-bg-card-2);
  border: 1px solid var(--tg-border-card);
  box-shadow: var(--tg-shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tg-text-dim);
  font-size: var(--fs-sm);
  font-family: var(--font-latin);
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* Corner accent lines on visual */
.tg-hero__visual::before,
.tg-hero__visual::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--tg-purple);
  border-style: solid;
}

.tg-hero__visual::before {
  top: 12px;
  left: 12px;
  border-width: 2px 0 0 2px;
}

.tg-hero__visual::after {
  bottom: 12px;
  right: 12px;
  border-width: 0 2px 2px 0;
}


/* ════════════════════════════════════════════
   FUNCTIONS SECTION — "Stay focused" equivalent
   ════════════════════════════════════════════ */
.tg-functions {
  background: var(--tg-bg);
  border-top: 1px solid var(--tg-border);
}

.tg-functions__intro {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.tg-functions__heading {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--tg-white);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xs);
}

.tg-functions__sub {
  font-size: var(--fs-sm);
  color: var(--tg-text-muted);
  line-height: 1.8;
}

.tg-functions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.tg-func-card {
  background: var(--tg-bg-card);
  border: 1px solid var(--tg-border-card);
  border-radius: var(--tg-radius);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.tg-func-card:hover {
  border-color: var(--tg-purple);
  box-shadow: var(--tg-shadow);
  transform: translateY(-3px);
}

.tg-func-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--tg-purple-glow);
  border: 1px solid var(--tg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tg-func-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--tg-purple-light);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tg-func-card__title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--tg-white);
}

.tg-func-card__desc {
  font-size: var(--fs-sm);
  color: var(--tg-text-muted);
  line-height: 1.75;
  flex: 1;
}

.tg-func-card__link {
  font-size: var(--fs-xs);
  color: var(--tg-purple-light);
  font-family: var(--font-latin);
  letter-spacing: 0.06em;
  font-weight: 600;
  transition: color var(--transition-base);
  text-decoration: none;
}

.tg-func-card__link:hover {
  color: var(--tg-purple-pale);
  text-decoration: underline;
}


/* ════════════════════════════════════════════
   PHOTO CAROUSEL — "Built with VS" equivalent
   ════════════════════════════════════════════ */
.tg-gallery {
  background: var(--tg-bg-card);
  border-top: 1px solid var(--tg-border);
  border-bottom: 1px solid var(--tg-border);
  overflow: hidden;
}

.tg-gallery__heading {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--tg-white);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xs);
  text-align: center;
}

.tg-gallery__sub {
  font-size: var(--fs-sm);
  color: var(--tg-text-muted);
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Infinite scroll track */
.tg-carousel {
  position: relative;
  overflow: hidden;
  /* fade edges */
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.tg-carousel__track {
  display: flex;
  gap: var(--space-2xl);
  width: max-content;
  animation: tg-scroll 28s linear infinite;
}

.tg-carousel:hover .tg-carousel__track {
  animation-play-state: paused;
}

@keyframes tg-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tg-carousel__item {
  flex-shrink: 0;
  width: 280px;
  aspect-ratio: 4/3;
  border-radius: var(--tg-radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--tg-border-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.tg-carousel__item:hover {
  transform: scale(1.03);
  box-shadow: var(--tg-shadow-lg);
}

/* Placeholder tints for the 8 items (duplicated to 16 for infinite loop) */
.tg-carousel__item--1  { background-color: #2A1F4A; }
.tg-carousel__item--2  { background-color: #1F2A40; }
.tg-carousel__item--3  { background-color: #2D1F45; }
.tg-carousel__item--4  { background-color: #1A2035; }
.tg-carousel__item--5  { background-color: #251A42; }
.tg-carousel__item--6  { background-color: #1E2840; }
.tg-carousel__item--7  { background-color: #2C1E48; }
.tg-carousel__item--8  { background-color: #1C2238; }


/* ════════════════════════════════════════════
   DIRECTOR ADDRESS — "Roberto Perez" equivalent
   ════════════════════════════════════════════ */
.tg-address {
  background: var(--tg-bg);
}

.tg-address__inner {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-2xl) var(--container-pad);
}

.tg-address__icon {
  width: 52px;
  height: 52px;
  margin-inline: auto;
  margin-bottom: var(--space-md);
  background: var(--tg-purple-glow);
  border: 1px solid var(--tg-border-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-address__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--tg-purple-light);
}

.tg-address__quote {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--tg-text);
  line-height: 1.85;
  margin-bottom: var(--space-lg);
}

.tg-address__sig {
  font-size: var(--fs-sm);
  color: var(--tg-text-muted);
  font-weight: 600;
}

.tg-address__sig span {
  display: block;
  font-size: var(--fs-xs);
  font-family: var(--font-latin);
  color: var(--tg-purple-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 3px;
}


/* ════════════════════════════════════════════
   JOIN CTA — "Download VS" equivalent
   ════════════════════════════════════════════ */
.tg-cta {
  background: linear-gradient(135deg, #1A1040 0%, #2A1870 40%, #3D1F8A 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.tg-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(124,92,219,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.tg-cta__inner {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--container-pad);
}

.tg-cta__text {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--tg-white);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.tg-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 13px 32px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--font-chinese);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: var(--tg-radius);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.tg-cta__btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.tg-cta__btn__arrow {
  font-size: 1em;
  transition: transform var(--transition-base);
}

.tg-cta__btn:hover .tg-cta__btn__arrow {
  transform: translateX(3px);
}


/* ════════════════════════════════════════════
   FOOTER SUBSCRIBE — white, same as homepage
   ════════════════════════════════════════════ */
.tg-footer-subscribe {
  background: #fff;
  border-top: 1px solid #e6e6e6;
}

.tg-footer-subscribe .footer__subscribe-title {
  color: var(--color-primary);
}

.tg-footer-subscribe .footer__subscribe-desc {
  color: var(--color-text-muted);
}

.tg-footer .footer__subscribe-title {
  color: var(--tg-purple-dark);
}


/* ════════════════════════════════════════════
   FOOTER BOTTOM — deep purple
   ════════════════════════════════════════════ */
.tg-footer .footer__bottom {
  background: #1A1040;
  border-top: 1px solid rgba(124,92,219,0.25);
}

.tg-footer .footer__logo {
  color: var(--tg-purple-pale);
}

.tg-footer .footer__logo img {
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(220deg);
}

.tg-footer .footer__nav a {
  color: rgba(196, 176, 255, 0.6);
}

.tg-footer .footer__nav a:hover {
  color: var(--tg-purple-pale);
}


/* ════════════════════════════════════════════
   SECTION HEADER — purple variant
   ════════════════════════════════════════════ */
.tg-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.tg-section-header__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--tg-purple-pale);
  letter-spacing: 0.4em;
}

.tg-section-header__line {
  height: 3px;
  background: linear-gradient(to right, var(--tg-purple), var(--tg-purple-light), transparent);
  margin-bottom: var(--space-xl);
  border-radius: 2px;
}


/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .tg-hero__inner {
    grid-template-columns: 1fr;
    padding-block: var(--space-2xl);
    min-height: auto;
  }

  .tg-hero {
    min-height: auto;
    padding-block: var(--space-2xl);
  }

  .tg-functions__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tg-hero__visual {
    aspect-ratio: 16/9;
  }

  .tg-functions__grid {
    grid-template-columns: 1fr;
  }

  .tg-carousel__item {
    width: 220px;
  }
}
