/* ========== WEL-T EDITS Website — Dark MLG Theme ========== */

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

:root {
  --bg-dark: #0a0f1a;
  --bg-nav: #0f1525;
  --bg-card: #111827;
  --accent: #00b4d8;
  --accent-dark: #0096c7;
  --accent-glow: rgba(0, 180, 216, 0.15);
  --text: #e0e0e0;
  --text-muted: #9ca3af;
  --text-heading: #ffffff;
  --border: #1a2540;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* --- Geometric background --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0, 180, 216, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 216, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* --- Typography --- */
h1, h2, h3, h4 { color: var(--text-heading); font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }

p { margin-bottom: 1rem; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

main {
  padding: 3rem 0;
  min-height: calc(100vh - 160px);
}

/* --- Navigation --- */
nav {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.5px;
}

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

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--text-heading), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 1rem auto 2rem;
}

.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-logos img {
  height: 50px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.hero-logos img:hover { opacity: 1; }

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.card h3 { margin-bottom: 0.5rem; }

.card .tag {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card p { color: var(--text-muted); font-size: 0.95rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Section --- */
.section { margin-bottom: 3rem; }

.section-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 1.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-dark);
}

.timeline-item .date {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* --- WP Bars (timeline visualization) --- */
.wp-timeline {
  margin: 2rem 0;
  overflow-x: auto;
}

.wp-bar-container {
  min-width: 600px;
}

.wp-bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.wp-bar-label {
  width: 60px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
}

.wp-bar-track {
  flex: 1;
  height: 32px;
  background: var(--bg-card);
  border-radius: 6px;
  position: relative;
  border: 1px solid var(--border);
}

.wp-bar {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bg-dark);
  min-width: 40px;
}

/* --- Video Grid --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.video-card .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-card .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card .video-info {
  padding: 1rem 1.25rem;
}

.video-card h3 { font-size: 1.1rem; }

/* --- PDF Viewer --- */
.pdf-viewer-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.pdf-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
}

.pdf-viewer-toolbar .pdf-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-heading);
}

.pdf-viewer-toolbar .pdf-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pdf-viewer-toolbar button {
  background: var(--accent-glow);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.pdf-viewer-toolbar button:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.pdf-viewer-toolbar .page-info {
  color: var(--text-muted);
  font-size: 0.85rem;
  min-width: 80px;
  text-align: center;
}

.pdf-canvas-wrapper {
  display: flex;
  justify-content: center;
  padding: 1rem;
  min-height: 400px;
  background: #000;
}

.pdf-canvas-wrapper canvas {
  max-width: 100%;
  height: auto;
}

/* --- Publications list --- */
.pub-list { list-style: none; }

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

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

.pub-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
}

.pub-item h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.pub-item p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0; }

/* --- Presentation Grid --- */
.presentation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.presentation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.3s;
}

.presentation-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.presentation-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.presentation-card .open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Footer --- */
footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer .footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

footer .footer-logos img {
  height: 35px;
  width: auto;
  opacity: 0.7;
}

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-wp1 { background: #0e4429; color: #3fb950; }
.badge-wp2 { background: #1a1e40; color: #6366f1; }
.badge-wp3 { background: #3b1a1a; color: #f87171; }
.badge-wp4 { background: #1a3040; color: #38bdf8; }
.badge-wp5 { background: #2d1b40; color: #c084fc; }
.badge-wp6 { background: #1a3030; color: #2dd4bf; }

/* --- Vision image --- */
.vision-img {
  display: block;
  max-width: 100%;
  margin: 2rem auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links.open { display: flex; }

  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 1rem; }

  .card-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .presentation-grid { grid-template-columns: 1fr; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }

  .container { padding: 0 1rem; }
}

@media (max-width: 480px) {
  .hero-logos { gap: 1.5rem; }
  .hero-logos img { height: 35px; }
  .wp-bar-label { width: 45px; font-size: 0.8rem; }
}
