/* === Style: Dusk — Purple/violet accents, deep surfaces, modern === */

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #131110;
  --color-surface: #1c1917;
  --color-border: #2e2724;
  --color-text: #ede8e4;
  --color-text-muted: #a39e99;
  --color-accent: #38bdf8;
  --color-accent-hover: #7dd3fc;
  --color-accent-alt: #0ea5e9;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --max-width: 860px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--color-accent-hover);
}

/* === Header === */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
  background: rgba(12, 10, 18, 0.8);
  backdrop-filter: blur(12px);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
}
.site-brand:hover {
  color: var(--color-accent);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-alt));
  transition: width 0.3s;
  border-radius: 1px;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}
.external-icon {
  font-size: 0.75em;
  opacity: 0.6;
  margin-left: 0.15em;
}
.external-link:hover .external-icon {
  opacity: 1;
}

/* === Main Content === */
.content-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  flex: 1;
  width: 100%;
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 1rem 0 0;
}
.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tagline {
  font-size: 1.35rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.tagline-bold {
  font-weight: bold;
}

/* === Page Content === */
.page-content {
  line-height: 1.8;
}
.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.page-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.page-content p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.page-content ul, .page-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}
.page-content li {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.page-content li::marker {
  color: var(--color-accent);
}
.page-content strong {
  color: var(--color-text);
}

/* === About Image === */
.about-image {
  text-align: center;
  margin: 2rem 0;
}
.about-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}
.about-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* === Presentations === */
.presentation-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
a.presentation-card {
  display: block;
  color: inherit;
  cursor: pointer;
}
.presentation-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.15s, box-shadow 0.3s;
}
.presentation-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.1);
}
.presentation-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.presentation-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.presentation-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

/* === Presentation Detail === */
.presentation-detail .back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.presentation-detail .back-link:hover {
  color: var(--color-accent);
}
.presentation-body {
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}
.presentation-links {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.presentation-links li a {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.presentation-links li a:hover {
  border-color: var(--color-accent);
  background: rgba(56, 189, 248, 0.06);
}

/* === Video Embed === */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface);
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* === Project Grid === */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
a.project-card {
  display: block;
  color: inherit;
  cursor: pointer;
}
.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.15s, box-shadow 0.3s;
}
.project-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.1);
}
.project-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.project-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.tag {
  display: inline-block;
  background: rgba(56, 189, 248, 0.1);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-right: 0.4rem;
}

/* === Project Detail === */
.project-detail .back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.project-detail .back-link:hover {
  color: var(--color-accent);
}
.project-tags {
  margin-bottom: 1.5rem;
}
.project-links {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.project-links li a {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.project-links li a:hover {
  border-color: var(--color-accent);
  background: rgba(56, 189, 248, 0.06);
}
.project-body {
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem;
  text-align: center;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-footer p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* === Responsive === */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .tagline {
    font-size: 1rem;
  }
  .nav-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .content-container {
    padding: 2rem 1rem;
  }
}
