/* ==========================================
   PROFESSIONAL CYBER MINIMAL THEME
   Deep Indigo + Soft Electric Blue
========================================== */

/* ===============================
   COLOR SYSTEM
================================ */
:root {
  --bg-main: #0f172a;
  --bg-surface: #111827;
  --accent: #5b6cff;
  --accent-soft: rgba(91, 108, 255, 0.35);
  --accent-glow: rgba(91, 108, 255, 0.45);
  --text-main: #d1d5db;
  --text-muted: #9ca3af;
  --border-subtle: rgba(255, 255, 255, 0.05);
}

/* ===============================
   GLOBAL RESET
================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  letter-spacing: 0.3px;
}

/* ===============================
   ANIMATED BACKGROUND GRID
================================ */
.cyber-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--accent-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-soft) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 25s linear infinite;
  opacity: 0.4;
}

@keyframes gridMove {
  from { transform: translateY(0); }
  to { transform: translateY(40px); }
}

/* ===============================
   MAIN CONTAINER
================================ */
#main {
  max-width: 850px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: var(--bg-surface);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.8s ease forwards;
}

/* ===============================
   HERO SECTION
================================ */
.hero {
  text-align: center;
  margin-bottom: 3rem;
}

#title {
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
}

.subtitle {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1rem;
}

/* ===============================
   IMAGE SECTION
================================ */
#img-div {
  text-align: center;
  margin-bottom: 3rem;
}

#image {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  filter: grayscale(100%) contrast(110%);
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

#image:hover {
  filter: grayscale(0%) contrast(105%);
  transform: scale(1.02);
  box-shadow: 0 0 35px var(--accent-glow);
}

#img-caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===============================
   TIMELINE SECTION
================================ */
#tribute-info {
  margin-top: 2rem;
}

#tribute-info h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
}

.timeline {
  list-style: none;
}

.timeline li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--accent-soft);
  transition: all 0.3s ease;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.5rem;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline li strong {
  color: var(--accent);
}

.timeline li:hover {
  border-left-color: var(--accent);
  background: rgba(91, 108, 255, 0.05);
  padding-left: 2rem;
  border-radius: 6px;
}

/* Highlighted Event */
.timeline li.highlight {
  background: rgba(91, 108, 255, 0.08);
  padding: 1rem 1rem 1rem 2rem;
  border-radius: 10px;
}

/* ===============================
   LINKS / BUTTONS
================================ */
.links {
  text-align: center;
  margin-top: 3rem;
}

.links a {
  display: inline-block;
  margin: 0.6rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.links a:hover {
  background: var(--accent);
  color: var(--bg-main);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ===============================
   FOOTER
================================ */
footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===============================
   ACCESSIBILITY
================================ */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Skip Link (if added) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--accent);
  color: var(--bg-main);
  padding: 8px 12px;
  border-radius: 6px;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 10px;
}

/* ===============================
   FADE ANIMATION
================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 600px) {
  #main {
    margin: 1.5rem;
    padding: 1.5rem;
  }

  #title {
    font-size: 2rem;
  }

  .timeline li {
    padding-left: 1.5rem;
  }
}