/* TekExplorers Final Glow Styles */

/* ROOT PALETTE */
:root {
  --jamaica-green: #009b3a;
  --jamaica-gold: #fed100;
  --jamaica-black: #000;
  --tech-blue: #0f5fff;
  --bg-light: #f5f7fb;
  --text-dark: #0f172a;
  --muted: #6b7280;
  --radius-lg: 1.25rem;
  --shadow-lg: 0 24px 45px rgba(0,0,0,0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

.topbar {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: .03em;
}

.brand-tagline {
  font-size: .72rem;
  color: #e2e8f0;
  font-style: italic;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--jamaica-green), var(--tech-blue));
  transition: width .2s ease-out;
  border-radius: 999px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
}

/* HERO */

.hero {
  min-height: 75vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6.5rem 1rem 3.5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
    rgba(0,155,58,0.24) 0%,
    rgba(0,0,0,0.55) 50%,
    rgba(0,0,0,0.85) 100%);
  backdrop-filter: blur(2px);
  z-index: 0;
}

/* glowing jamaica circle */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
    rgba(0,155,58,0.25) 0%,
    rgba(254,209,0,0.25) 40%,
    rgba(0,0,0,0.6) 80%);
  animation: glowPulse 10s ease-in-out infinite alternate;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.5;
}

@keyframes glowPulse {
  0% { transform: scale(1) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.05) rotate(10deg); opacity: 0.7; }
  100% { transform: scale(1) rotate(-10deg); opacity: 0.5; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: #fff;
}

.hero-subtitle {
  text-transform: uppercase;
  font-weight: 600;
  color: var(--jamaica-gold);
  letter-spacing: .25em;
  margin-bottom: .75rem;
  font-size: .7rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1rem;
  text-shadow: 0 5px 32px rgba(0,0,0,.35);
}

.hero-text {
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto 1.8rem;
  color: #e2e8f0;
}

.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  background: linear-gradient(120deg, var(--tech-blue), var(--jamaica-green));
  border: none;
  color: #fff;
  padding: .65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 45px rgba(0,0,0,.18);
  text-decoration: none;
  transition: transform .15s ease-out;
}

.btn:hover { transform: translateY(-2px); }

.btn-outline {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.2);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.5rem 1rem 3.5rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.1rem;
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--jamaica-green), var(--jamaica-gold));
  border-radius: 999px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.program-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem;
  box-shadow: 0 16px 40px rgba(15,95,255,.04);
  border: 1px solid rgba(15,95,255,.08);
}

.program-card h3 {
  margin-bottom: .4rem;
}

.program-card span {
  display: inline-block;
  background: rgba(0,155,58,.1);
  color: var(--jamaica-green);
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .7rem;
  margin-bottom: .6rem;
  font-weight: 600;
}

.program-card p {
  font-size: .85rem;
  color: #4b5563;
}

.form-wrap {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem 1.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  max-width: 760px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
}

.form-group {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  margin-bottom: .85rem;
}

label {
  font-weight: 600;
  margin-bottom: .25rem;
}

input, textarea {
  border: 1px solid rgba(15,23,42,.12);
  border-radius: .6rem;
  padding: .55rem .6rem;
  font-size: .9rem;
  outline: none;
  transition: border .15s;
}

input:focus, textarea:focus {
  border: 1px solid var(--tech-blue);
  box-shadow: 0 0 0 4px rgba(15,95,255,.12);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-green {
  background: var(--jamaica-green);
}

footer {
  background: #020617;
  color: #cbd5f5;
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
  font-size: .78rem;
}

/* Workshop */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.workshop-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.04);
}

.workshop-card h3 {
  margin-bottom: .5rem;
}

.workshop-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: .5rem;
}

.workshop-photos img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: .65rem;
  cursor: pointer;
}

/* THANK YOU MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  text-align: center;
  max-width: 360px;
  animation: fadeInScale .4s ease;
}

.modal-content h2 {
  color: var(--jamaica-green);
  margin-bottom: .5rem;
}

@keyframes fadeInScale {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(255,255,255,0.25);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 820px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(2,6,23,.92);
    position: absolute;
    top: 64px;
    right: 1rem;
    width: min(240px, 100vw - 2rem);
    border-radius: 1rem;
    padding: 1.1rem 1rem;
    gap: .6rem;
  }
  .nav-links.show { display: flex; }
  .menu-toggle { display: block; }
  .brand-tagline { white-space: normal; }
  .hero { min-height: 68vh; }
}
