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

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #0a0c12;
  --bg-card: #111520;
  --bg-card2: #161b28;
  --accent: #00f0ff;
  --accent2: #7f5af0;
  --accent3: #ff4d6d;
  --text-main: #e8eaf0;
  --text-muted: #8a8fa8;
  --border: rgba(0, 240, 255, 0.18);
  --glow: 0 0 18px rgba(0, 240, 255, 0.35);
  --glow2: 0 0 18px rgba(127, 90, 240, 0.35);
  --nav-h: 60px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: var(--nav-h);
  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.18em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  filter: drop-shadow(0 0 8px rgba(0,240,255,0.4));
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }

/* ── WRAPPER ── */
.site-wrapper {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* ── HEADER ── */
header {
  text-align: center;
  margin-bottom: 52px;
}

.name-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(0,240,255,0.5));
  margin-bottom: 10px;
}

.subtitle {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.75rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.subtitle span { color: var(--accent); }

.header-divider {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ── SOCIAL BOX ── */
.social-box {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  box-shadow: var(--glow);
}

.social-link:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 28px rgba(0,240,255,0.55);
  transform: translateY(-2px);
  color: #fff;
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── SUMMARY ── */
.summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent2);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 52px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #c8cce0;
  line-height: 1.75;
  box-shadow: var(--glow2);
  letter-spacing: 0.02em;
}

/* ── SECTION LABEL ── */
.section-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent2);
  white-space: nowrap;
  margin: 0;
  padding-top: 2px;
}

/* ── SECTION HEADER ROW ── */
.section-header-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.section-blurb {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* ── FEATURED GRID ── */
.featured-section {
  margin-bottom: 52px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
}

.featured-tile {
  position: relative;
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  aspect-ratio: 1 / 1;
  text-decoration: none;
}

.featured-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
  border-color: var(--accent);
}

.featured-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-tile--last .featured-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.78));
  padding: 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  pointer-events: none;
}

/* ── VIDEO EDITING SECTION ── */
.video-section {
  margin-bottom: 60px;
}

.video-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.channel-card:hover {
  box-shadow: var(--glow2);
  border-color: var(--accent2);
}

.channel-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px 16px;
}

.channel-logo {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.channel-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 5px;
  line-height: 1.3;
}

.channel-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.video-embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}

.video-embed-wrap.video-embed-shorts {
  padding-bottom: 177.78%;
  max-height: 500px;
  overflow: hidden;
}

.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── GALLERY PAGES ── */
.gallery-header {
  text-align: center;
  margin-bottom: 48px;
}

.gallery-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-item {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
  border-color: var(--accent);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.gallery-item img:hover { opacity: 0.88; }

.gallery-caption {
  padding: 10px 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--glow);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  font-size: 2rem;
  color: var(--accent);
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  line-height: 1;
  transition: color 0.2s;
  z-index: 1001;
}

.lightbox-close:hover { color: #fff; }

/* ── WRITING PAGE ── */
.book-section { margin-bottom: 52px; }

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--glow2);
}

.book-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.book-icon {
  width: 52px;
  height: 52px;
  color: var(--accent2);
  flex-shrink: 0;
}

.book-icon svg { width: 100%; height: 100%; }

.book-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-main);
}

.book-description {
  font-size: 1.1rem;
  color: #c0c4d8;
  line-height: 1.75;
  margin-bottom: 24px;
  font-weight: 500;
}

.book-description em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

.pdf-container {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg-card2);
}

.pdf-container iframe {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(127, 90, 240, 0.15);
  border: 1px solid var(--accent2);
  border-radius: 6px;
  color: var(--accent2);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.22s ease;
}

.pdf-download-btn:hover {
  background: rgba(127, 90, 240, 0.3);
  box-shadow: var(--glow2);
  color: #fff;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  margin-top: 64px;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  .video-channels { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { gap: 14px; }
  .nav-link { font-size: 0.58rem; }
}

@media (max-width: 600px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .gallery-item img { height: 140px; }
  .section-header-row { flex-direction: column; gap: 6px; }
  .site-nav { padding: 0 16px; }
  .book-card { padding: 20px; }
}
