/* ============================================
   WB8IDY.com — Modern Redesign
   Ham Radio | Dark Tech Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── Reset & Base ─────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary:    #080c18;
  --bg-secondary:  #0f1526;
  --bg-card:       #141d35;
  --bg-card-hover: #1a2540;
  --accent:        #00d4aa;
  --accent-dim:    #00a882;
  --amber:         #f59e0b;
  --amber-dim:     #d97706;
  --text-primary:  #e2e8f0;
  --text-muted:    #94a3b8;
  --text-dim:      #4a5568;
  --border:        #1e2d4a;
  --border-glow:   rgba(0, 212, 170, 0.3);
  --nav-height:    64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--amber); }

img { max-width: 100%; height: auto; display: block; }

/* ── Scanline overlay ─────────────────────── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── Navigation ───────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(8, 12, 24, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-brand {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
}

.nav-brand span {
  color: var(--amber);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-color: var(--border-glow);
  background: rgba(0, 212, 170, 0.07);
  text-shadow: 0 0 10px rgba(0, 212, 170, 0.4);
}

/* ── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem 4rem;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 212, 170, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* grid lines */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,170,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.callsign {
  font-family: 'Orbitron', monospace;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-shadow:
    0 0 30px rgba(0, 212, 170, 0.6),
    0 0 60px rgba(0, 212, 170, 0.3),
    0 0 100px rgba(0, 212, 170, 0.15);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.hero-badges {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-badges img {
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
  filter: drop-shadow(0 0 8px rgba(0,212,170,0.2));
  max-height: 80px;
  width: auto;
}

.hero-badges a:hover img {
  opacity: 1;
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(0,212,170,0.4));
}

/* ── Page wrapper ─────────────────────────── */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ── Section headings ─────────────────────── */
.section-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 2.5rem;
}

/* ── Gallery Grid ─────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 4/3;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.gallery-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 212, 170, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,212,170,0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.75rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
}

/* ── Lightbox ─────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(0, 212, 170, 0.2);
  object-fit: contain;
}

.lightbox-caption {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.lightbox-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.lb-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  transition: all 0.2s;
}

.lb-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,212,170,0.07);
}

.lb-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.lb-close:hover { color: var(--amber); }

/* ── Affiliations strip ───────────────────── */
.affiliations {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.affiliations-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}

.affiliations-logos {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.affiliations-logos a {
  opacity: 0.7;
  transition: opacity 0.2s, filter 0.2s;
  filter: grayscale(30%);
}

.affiliations-logos a:hover {
  opacity: 1;
  filter: grayscale(0%) drop-shadow(0 0 8px rgba(0,212,170,0.4));
}

.affiliations-logos img {
  max-height: 70px;
  width: auto;
}

/* ── Contact Page ─────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.info-item:last-child { border-bottom: none; }

.info-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(0,212,170,0.1);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1rem;
}

.info-text-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.info-text-val {
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* ── Contact Form ─────────────────────────── */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.btn-submit {
  width: 100%;
  padding: 0.875rem;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 6px;
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-submit:hover {
  background: var(--accent-dim);
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.35);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ── Footer ───────────────────────────────── */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 2rem;
  text-align: center;
}

.footer-brand {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ── Status bar ───────────────────────────── */
.status-bar {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding: 1rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
  .site-nav { padding: 0 1rem; }
  .nav-brand { font-size: 1.1rem; }
  .nav-links a { padding: 0.4rem 0.6rem; font-size: 0.65rem; }
  .page-wrap { padding: 2rem 1rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.75rem; }
  .affiliations { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 0.4rem 0.5rem; font-size: 0.6rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
