/* ─────────────────────────────────────────────
   AWS Student Builder Group @ Georgia Tech
   Global stylesheet
   ───────────────────────────────────────────── */

/* ── FONTS ── */
@font-face { font-family: 'Amazon Ember Display'; src: url('../assets/fonts/AmazonEmberDisplay-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; }
@font-face { font-family: 'Amazon Ember Display'; src: url('../assets/fonts/AmazonEmberDisplay-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Amazon Ember Display'; src: url('../assets/fonts/AmazonEmberDisplay-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; }
@font-face { font-family: 'Amazon Ember Display'; src: url('../assets/fonts/AmazonEmberDisplay-Heavy.ttf') format('truetype'); font-weight: 700; font-style: normal; }
@font-face { font-family: 'Amazon Ember Mono'; src: url('../assets/fonts/AmazonEmberMono-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Amazon Ember Mono'; src: url('../assets/fonts/AmazonEmberMono-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; }

:root {
  --bg: #161D26;
  --bg-alt: #1a222d;
  --card: #1d2630;
  --card2: #232e3c;
  --border: rgba(255,255,255,0.07);
  --purple: #B460EF;
  --cyan: #38d9f5;
  --lime: #b8ff3e;
  --lavender: #c4b5fd;
  --mono: 'Amazon Ember Mono', monospace;
  --sans: 'Amazon Ember Display', sans-serif;
  --grad-text: linear-gradient(90deg, var(--purple) 0%, #8ab8f8 55%, var(--cyan) 100%);
  --grad-multi: linear-gradient(135deg, var(--purple) 0%, #9e78f2 22%, var(--lavender) 45%, #8ab8f8 65%, var(--cyan) 82%, #9ef07a 95%, var(--lime) 100%);
  --glow-hover: 0 0 18px rgba(180,96,239,0.55), 0 0 36px rgba(56,217,245,0.3), 0 0 54px rgba(184,255,62,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 500;
  background: var(--bg);
  color: #e8ecf2;
  line-height: 1.6;
  overflow-x: hidden;
}

.gradient-text {
  background: var(--grad-multi);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NAV ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.3s;
  background: transparent;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(22,29,38,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 28px; width: 28px; flex-shrink: 0; }
.nav-brand-name { color: #fff; font-weight: 500; font-size: 18px; letter-spacing: -0.2px; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }

.nav-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

@media (max-width: 880px) { .nav-links { display: none; } }

.nav-mobile-toggle {
  display: none;
  color: rgba(255,255,255,0.7);
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 880px) { .nav-mobile-toggle { display: block; } }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px 1.5rem 20px;
  background: rgba(22,29,38,0.99);
  border-top: 1px solid var(--border);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}

/* ── GLOW BUTTON ── */
.glow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* filled: the multicolor gradient lives underneath at all times; a solid white
   layer sits on top and fades out on hover, giving a smooth white -> multicolor
   reveal. No border, so there is no edge/ring artifact. */
.glow-btn.filled {
  background: var(--grad-multi);
  color: #0a0a0e;
}
.glow-btn.filled::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: -1;
  transition: opacity 0.35s ease;
}
.glow-btn.filled:hover::before { opacity: 0; }

/* outline: 1px inner ring drawn with an inset shadow (does not affect layout,
   so it matches the filled button's size exactly) */
.glow-btn.outline {
  color: #fff;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border);
}
.glow-btn.outline:hover {
  background: rgba(180,96,239,0.08);
  box-shadow: inset 0 0 0 1px rgba(180,96,239,0.45);
}

.glow-btn svg { width: 14px; height: 14px; }

/* ── GRAD CARD ──
   The card face stays a static blue-gray (var(--card)) at ALL times.
   On hover: a soft multicolor glow appears ONLY behind the card (::before).
   NOTE: the stacking context is established on the GRID (.events-grid /
   .benefits-grid), not on the card, so the negative-z glow paints fully
   behind each card's opaque fill instead of bleeding over it. */
.grad-card {
  position: relative;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 20px;
}

/* backlit glow — sits behind the card, only its blurred spill is visible */
.grad-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-multi);
  filter: blur(20px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.grad-card:hover::before { opacity: 0.85; }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.032) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-inner h1 {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero-sub {
  color: rgba(255,255,255,0.55);
  font-size: 1.1875rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.cloud-graphic { position: relative; display: none; justify-content: flex-end; padding: 2rem 1rem 0 0; }
@media (min-width: 1024px) { .cloud-graphic { display: flex; } }

/* ── SECTION BASE ── */
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
section.padded { padding: 6rem 0; }

.eyebrow {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

/* ── ABOUT ── */
#about { background: var(--bg-alt); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

#about h2 {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

#about p:not(.eyebrow) { color: rgba(255,255,255,0.55); font-weight: 300; line-height: 1.75; margin-bottom: 1rem; font-size: 19px; }

.about-checklist { display: flex; flex-direction: column; gap: 12px; margin-bottom: 2rem; }
.about-checklist-item { display: flex; align-items: flex-start; gap: 12px; }
.about-checklist-item svg { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.about-checklist-item span { color: rgba(255,255,255,0.65); font-weight: 500; font-size: 17.5px; }

.about-visual { position: relative; }
.about-visual-frame {
  aspect-ratio: 16/9;
  border-radius: 3px;
  overflow: hidden;
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* toolbox gradient banner sits full-bleed behind Buzz */
/* warm + lighten the world icon to match the logo's purple */
/* light, cool lavender tone for the world icon */
.about-bg-icon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(2.1) saturate(0.55) hue-rotate(-14deg); }
/* Buzz, the GT mascot, layered on top */
.about-buzz { position: relative; z-index: 1; width: 54%; height: auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.32)); }

/* ── EVENTS ── */
#events { background: var(--bg); }

#events h2, #team h2 {
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  font-weight: 500;
  color: #fff;
}

.events-head { margin-bottom: 3rem; }

.events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; isolation: isolate; }
@media (max-width: 960px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .events-grid { grid-template-columns: 1fr; } }

.events-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.75rem; }

.event-card { display: flex; flex-direction: column; height: 100%; }

.event-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }

.event-card-type {
  font-size: 15px;
  font-weight: 300;
  padding: 2px 8px;
  border-radius: 100px;
}

.event-card-date { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.3); }

.event-card h3 { font-size: 18px; font-weight: 500; color: #fff; margin-bottom: 8px; }
.event-card p { font-size: 17.5px; font-weight: 300; color: rgba(255,255,255,0.48); line-height: 1.6; }

/* ── TEAM ── */
#team { background: var(--bg-alt); }

.team-head { margin-bottom: 3rem; }
.team-head p:not(.eyebrow) { color: rgba(255,255,255,0.45); font-weight: 300; font-size: 18px; max-width: 32rem; margin-top: 0.75rem; }

.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.team-member-filled .team-photo {
  aspect-ratio: 1/1;
  border-radius: 3px;
  margin-bottom: 12px;
  position: relative;
  isolation: isolate;
}

.team-member-filled .team-photo img {
  width: 100%; height: 100%; object-fit: cover; opacity: 1;
  border-radius: 3px;
  transition: transform 0.5s;
}

.team-member-filled:hover .team-photo img { transform: scale(1.05); }

/* backlit glow behind team tiles (same recipe as the cards) */
.team-member-filled .team-photo::after,
.team-member-open .team-open-box::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-multi);
  filter: blur(20px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.team-member-filled:hover .team-photo::after,
.team-member-open:hover .team-open-box::after {
  opacity: 0.8;
}

.team-photo-overlay {
  position: absolute; inset: 0;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.4s;
}

.team-member-filled:hover .team-photo-overlay { opacity: 1; }

.team-role { font-size: 16px; font-weight: 300; margin-bottom: 2px; }
.team-name { color: #fff; font-weight: 500; font-size: 17px; }
.team-major { color: rgba(255,255,255,0.38); font-weight: 300; font-size: 16px; margin-top: 2px; }

.team-member-open { display: block; text-decoration: none; }

.team-open-box {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1/1;
  border-radius: 3px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed;
  transition: all 0.3s;
}

/* plus glyph: inline SVG. Resting = original multicolor gradient,
   hover = navy (matches page bg) so it stays visible over the multicolor glow. */
.team-plus { width: 44px; height: 44px; flex-shrink: 0; }
.team-plus path { transition: fill 0.3s ease; }
.team-open-box span { font-size: 16px; font-weight: 300; transition: color 0.3s ease; }

.team-member-open:hover .team-plus path { fill: var(--bg-alt); }
.team-member-open:hover .team-open-box span { color: var(--bg-alt) !important; }

.team-open-status { color: rgba(255,255,255,0.4); font-weight: 300; font-size: 17px; }

/* ── RESOURCES / BENEFITS ── */
#resources { background: var(--bg); }

.benefits-block { margin-bottom: 4rem; }
.benefits-block h2 { font-size: clamp(1.6rem, 3vw, 1.9rem); font-weight: 500; color: #fff; margin-bottom: 0.75rem; }
.benefits-block > p:not(.eyebrow) { color: rgba(255,255,255,0.5); font-weight: 300; font-size: 19px; max-width: 36rem; margin-bottom: 2rem; }

.benefits-eyebrow-row { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.exclusive-pill {
  font-size: 15px;
  font-weight: 300;
  padding: 2px 10px;
  border-radius: 100px;
  background: rgba(180,96,239,0.1);
  border: 1px solid rgba(180,96,239,0.27);
  color: var(--purple);
}

.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; isolation: isolate; }
@media (max-width: 960px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .benefits-grid { grid-template-columns: 1fr; } }

.benefit-icon-box {
  width: 36px; height: 36px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.benefit-icon-box svg { width: 16px; height: 16px; }

.benefit-card h3 { color: #fff; font-weight: 500; font-size: 17px; margin-bottom: 6px; }
.benefit-card p { color: rgba(255,255,255,0.48); font-weight: 300; font-size: 16.5px; line-height: 1.6; }

.resources-divider { height: 1px; margin-bottom: 4rem; background: linear-gradient(to right, transparent, rgba(180,96,239,0.33), rgba(56,217,245,0.27), transparent); }

/* ── JOIN ── */
#join { position: relative; padding: 7rem 0; overflow: hidden; background: var(--bg-alt); }

.join-top-line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(180,96,239,0.53), rgba(56,217,245,0.4), transparent); }

.join-inner { position: relative; max-width: 42rem; margin: 0 auto; padding: 0 1.5rem; text-align: center; }

.join-logo { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.join-logo img { height: 56px; width: 56px; filter: drop-shadow(0 0 24px rgba(180,96,239,0.53)); }

#join h2 { font-family: var(--mono); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 400; margin-bottom: 1rem; }
#join h2 .white { color: #fff; }

.join-desc { color: rgba(255,255,255,0.55); font-weight: 300; line-height: 1.7; margin-bottom: 1rem; font-size: 19px; }
.join-roles { color: rgba(255,255,255,0.38); font-weight: 500; font-size: 17.5px; line-height: 1.7; margin-bottom: 2.5rem; }
.join-roles span { font-weight: 300; }

.join-note { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.2); margin-top: 1.5rem; }

/* ── FOOTER ── */
footer { background: #12181F; border-top: 1px solid var(--border); padding: 3rem 0; }

.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 2.5rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col-main { grid-column: span 2; }
@media (max-width: 560px) { .footer-col-main { grid-column: span 1; } }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-brand img { height: 28px; width: 28px; flex-shrink: 0; }
.footer-brand span { color: #fff; font-weight: 500; font-size: 14px; }

.footer-desc { color: rgba(255,255,255,0.35); font-weight: 300; font-size: 18px; line-height: 1.7; max-width: 20rem; margin-bottom: 1rem; }

.footer-socials { display: flex; gap: 10px; }

.footer-contact { margin-top: 1.5rem; }
.footer-email {
  display: inline-block;
  margin-top: 0.4rem;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  font-weight: 300;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-email:hover { color: var(--cyan); }
.footer-social {
  width: 32px; height: 32px;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: rgba(255,255,255,0.35);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.footer-social:hover { border-color: rgba(180,96,239,0.4); color: rgba(255,255,255,0.8); background: rgba(180,96,239,0.1); box-shadow: 0 0 10px rgba(180,96,239,0.3); }
.footer-social svg { width: 14px; height: 14px; }

.footer-label { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }

.footer-link-list { display: flex; flex-direction: column; gap: 10px; }
.footer-link-list a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-link-list a:hover { color: rgba(255,255,255,0.75); }
.footer-link-list a svg { width: 10px; height: 10px; opacity: 0.5; }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.2);
}
