/* Base theme variables */
:root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --card-color: #f2f2f2;
  --accent-color: #0d6efd;
}

/* Dark theme overrides */
body.dark {
  --bg-color: #1e1e1e;
  --text-color: #e4e4e4;
  --card-color: #2a2a2a;
}

/* Global resets */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transition: background 0.25s ease, color 0.25s ease;
  overflow: hidden;
}

/* Top navigation bar */
.top-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--card-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* GitHub link */
.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.github-link:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Dark mode: adjust border color */
body.dark .top-bar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark .github-link {
  background: rgba(255, 255, 255, 0.05);
}

body.dark .github-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Theme toggle button */
.theme-toggle {
  padding: 0.4rem 0.7rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

body.dark .theme-toggle {
  background: rgba(255, 255, 255, 0.05);
}

body.dark .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Main content */
.content {
  padding: 2rem 1rem;
  max-width: 60ch;
  margin: 0 auto;
}

/* Brand text */
.brand {
  font-weight: 700;
  font-size: 1rem;
}

/* Push nav and theme button to the right */
.top-bar nav {
  margin-left: auto;
}

/* Notifications section */
#notifications {
  margin-top: 3rem;
}

.notifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.notifications-grid img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notifications-grid figcaption {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Slide Navigation */
.slide-nav {
  position: fixed;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 900;
}

.nav-btn {
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: var(--card-color);
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover,
.nav-btn.active {
  background: var(--accent-color);
  color: white;
  transform: scale(1.1);
}

/* Slide Container */
.slide-container {
  height: 100vh;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Slides */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s ease-in-out;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.slide.prev {
  transform: translateX(-100%);
}

.slide-content {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

/* Hero Slide */
/* Hero Banner */
.hero-banner {
  width: 100%;
  margin-bottom: 2rem;
  text-align: center;
}

.banner-image {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.banner-image:hover {
  transform: scale(1.02);
}

.hero h1 {
  font-size: 4rem;
  margin: 0 0 1rem 0;
  background: linear-gradient(135deg, var(--accent-color), #6f42c1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h2 {
  font-size: 1.5rem;
  color: var(--text-color);
  opacity: 0.8;
  margin: 0 0 2rem 0;
}

.hero-description {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 3rem auto;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}

.cta-button,
.secondary-button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button {
  background: var(--accent-color);
  color: white;
}

.cta-button:hover {
  background: #0b5ed7;
  transform: translateY(-2px);
}

.secondary-button {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--accent-color);
}

.secondary-button:hover {
  background: var(--accent-color);
  color: white;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  padding: 2rem;
  background: var(--card-color);
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature h3 {
  margin: 0 0 1rem 0;
  color: var(--accent-color);
}

/* Architecture Flow */
.architecture {
  margin-top: 2rem;
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--card-color);
  border-radius: 1rem;
  min-width: 120px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flow-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.step-label {
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  color: var(--accent-color);
}

.flow-arrow {
  font-size: 1.8rem;
  color: var(--accent-color);
  font-weight: bold;
  margin: 0 0.5rem;
}

.architecture-details {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
  background: var(--card-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.architecture-details h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  font-size: 1.4rem;
}

.architecture-details ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.architecture-details li {
  padding: 1rem;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 0.5rem;
  border-left: 4px solid var(--accent-color);
}

/* Dashboard Showcase */
.dashboard-showcase {
  margin-top: 3rem;
  text-align: center;
}

.dashboard-showcase h3 {
  color: var(--accent-color);
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.dashboard-figure {
  margin: 0;
  background: var(--card-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.dashboard-figure:hover {
  transform: translateY(-5px);
}

.dashboard-figure img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dashboard-figure img:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}

.dashboard-figure figcaption {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-color);
  opacity: 0.8;
}

/* Notifications Showcase */
.notifications-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
  padding: 1rem 0;
}

.notification-group {
  background: var(--card-color);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification-group h3 {
  margin-bottom: 1rem;
  color: var(--accent-color);
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.notification-pair {
  display: flex;
  gap: 1.5rem;
}

.notification-pair figure {
  flex: 1;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
}

.notification-pair figure:hover {
  transform: scale(1.02);
}

.notification-pair img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.notification-pair img:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.notification-pair figcaption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-color);
}

/* Image Modal/Overlay */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.image-modal .close-button {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.image-modal .close-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsive modal */
@media (max-width: 768px) {
  .image-modal img {
    max-width: 95%;
    max-height: 85%;
  }

  .image-modal .close-button {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }
}

/* Deployment Steps */
.deployment-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  background: var(--card-color);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.step-number {
  background: linear-gradient(135deg, var(--accent-color), #6f42c1);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.step-content {
  text-align: center;
  flex: 1;
}

.step-content h3 {
  margin: 0 0 0.5rem 0;
  color: var(--accent-color);
}

.step-content code {
  background: rgba(0, 0, 0, 0.08);
  padding: 1rem;
  border-radius: 0.5rem;
  display: block;
  margin-top: 0.75rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  white-space: pre-wrap;
  font-size: 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.deployment-result {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--card-color), rgba(13, 110, 253, 0.05));
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(13, 110, 253, 0.1);
}

.deployment-result h3 {
  margin-bottom: 1rem;
  color: #28a745;
  font-size: 1.3rem;
}

.deployment-result p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.github-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.github-cta:hover {
  background: #0b5ed7;
  transform: translateY(-2px);
}

/* Slide Controls */
.slide-controls {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-color);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  z-index: 900;
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.3s ease;
}

.control-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.slide-indicator {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .slide-nav {
    display: none;
  }

  .banner-image {
    max-height: 200px;
    margin-bottom: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .flow-diagram {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .notifications-showcase {
    grid-template-columns: 1fr;
  }

  .notification-pair {
    flex-direction: column;
  }

  .deployment-steps .step {
    flex-direction: column;
    text-align: center;
  }

  .dashboard-figure {
    padding: 1rem;
  }

  .dashboard-figure img {
    max-width: 100%;
  }
}

/* AI Showcase Section */
.ai-showcase {
  margin: 1rem 0 2rem 0;
}

.ai-section {
  background: var(--card-color);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.ai-section h2 {
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.ai-image-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.ai-figure {
  margin: 0;
  text-align: center;
  max-width: 500px;
}

.ai-figure img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ai-figure img:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}

.ai-figure figcaption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-color);
  opacity: 0.8;
}

.prompt-reference {
  font-size: 0.85rem;
  opacity: 0.7;
}

.prompt-reference a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.prompt-reference a:hover {
  text-decoration: underline;
}

.ai-details {
  background: rgba(0, 0, 0, 0.03);
  padding: 1rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--accent-color);
}

.ai-details h3 {
  color: var(--accent-color);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.ai-process {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.ai-process li {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0.5rem;
  font-size: 0.85rem;
}

/* Notifications Section in AI slide */
.notifications-section {
  margin-top: 2rem;
}

.notifications-section h2 {
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

/* Mobile responsive for AI showcase */
@media (max-width: 768px) {
  .slide {
    padding: 1rem;
  }

  .slide-content {
    margin-top: 1rem;
    margin-bottom: 2rem;
  }

  .ai-section {
    padding: 1rem;
  }

  .ai-figure {
    max-width: 100%;
  }

  .ai-process li {
    font-size: 0.8rem;
    padding: 0.4rem;
  }

  .notifications-showcase {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .notification-pair {
    flex-direction: column;
    gap: 1rem;
  }
}
