@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&family=Fira+Code:wght@400;600&display=swap");

:root {
  /* Цветовая палитра */
  --bg-color: #0d1117;
  --bg-gradient: radial-gradient(
    circle at 50% 0%,
    rgba(88, 166, 255, 0.08) 0%,
    transparent 60%
  );
  --card-bg: #161b22;
  --border-color: #30363d;

  /* Текст */
  --text-main: #c9d1d9;
  --text-muted: #8b949e;

  /* Акценты */
  --accent-blue: #58a6ff;
  --accent-yellow: #e3b341;
  --accent-green: #3fb950;
  --accent-purple: #bc8cff;

  /* Технологии (для архитектуры) */
  --color-docker: #2496ed;
  --color-nginx: #009639;
  --color-nextjs: #ffffff;
  --color-spring: #6db33f;
  --color-mariadb: #c08b5c;

  --glow: rgba(88, 166, 255, 0.15);
}

/* Базовые стили */
body {
  margin: 0;
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Кастомный скроллбар для длинных слайдов */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Контейнер презентации */
.presentation-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide {
  width: 100%;
  max-width: 1200px;
  height: 85vh;
  max-height: 750px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.5s ease-out;
  position: relative;
  overflow: hidden;
}

.slide-content {
  flex: 1;
  padding: 40px 60px;
  overflow-y: auto; /* Позволяет скроллить длинный контент (CJM, Roadmap) */
  display: flex;
  flex-direction: column;
}

/* Типографика */
h1 {
  color: #fff;
  font-size: 2.4rem;
  margin: 0 0 30px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}
.center-title {
  text-align: center;
  border-bottom: none;
}
h2 {
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 0 0 20px 0;
  font-weight: 600;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #fff;
}
p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 15px 0;
}
.accent {
  color: var(--accent-blue);
  font-weight: 600;
}
.accent-gold {
  color: var(--accent-yellow);
}
.accent-green {
  color: var(--accent-green);
}

/* Списки */
ul {
  padding: 0;
  margin: 0 0 20px 0;
  list-style: none;
}
li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-main);
}
li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: bold;
}

/* Сетки и Карточки */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}
.info-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 25px;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.info-card:hover {
  border-color: var(--accent-blue);
  background: rgba(88, 166, 255, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Навигация (подвал слайда) */
.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
}
.nav-center {
  justify-content: center;
}
.nav-btn {
  text-decoration: none;
  color: var(--accent-blue);
  font-family: "Fira Code", monospace;
  font-weight: bold;
  padding: 10px 24px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--card-bg);
  transition: all 0.3s;
}
.nav-btn:hover {
  background: var(--accent-blue);
  color: var(--bg-color);
  box-shadow: 0 0 15px var(--glow);
  transform: scale(1.05);
}

/* =========================================
   СПЕЦИФИЧНЫЕ КОМПОНЕНТЫ ДЛЯ СЛАЙДОВ
========================================= */

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* UI Showcase (Слайды 9) */
.ui-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}
.ui-image-container {
  width: 100%;
  height: 380px;
  display: flex;
  justify-content: center;
}
.ui-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.ui-features {
  display: flex;
  gap: 20px;
  width: 100%;
}
.ui-feature-card {
  flex: 1;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 12px;
}

/* Roadmap (Слайд 8) */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.roadmap-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  transition: transform 0.3s;
}
.roadmap-card:hover {
  transform: translateY(-8px);
}
.roadmap-card.active {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 20px rgba(227, 179, 65, 0.15);
}
.roadmap-header {
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 15px;
}
.roadmap-header .version {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}
.roadmap-header .date {
  color: var(--accent-blue);
  font-size: 0.9rem;
  text-transform: uppercase;
}
.roadmap-card.active .date {
  color: var(--accent-yellow);
}

/* Теги */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: "Fira Code", monospace;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  margin-top: 5px;
}
.tag-full {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  margin-bottom: 15px;
}
.tag-blue {
  background: rgba(88, 166, 255, 0.1);
  color: var(--accent-blue);
  border-color: rgba(88, 166, 255, 0.3);
}
.tag-green {
  background: rgba(63, 185, 80, 0.1);
  color: var(--accent-green);
  border-color: rgba(63, 185, 80, 0.3);
}
.tag-gold {
  background: rgba(227, 179, 65, 0.1);
  color: var(--accent-yellow);
  border-color: rgba(227, 179, 65, 0.3);
}

/* Timeline CJM (Слайд 7) */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  background: linear-gradient(
    to bottom,
    var(--accent-blue),
    var(--accent-purple),
    var(--accent-yellow)
  );
  border-radius: 2px;
}
.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 30px;
}
.timeline-item.left {
  left: 0;
}
.timeline-item.right {
  left: 50%;
}
.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  right: -12px;
  background: var(--bg-color);
  border: 4px solid var(--accent-yellow);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
}
.timeline-item.right::after {
  left: -12px;
}
.content-card {
  padding: 20px;
  background: var(--bg-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}
.content-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
}
.content-card h3 {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-row {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}
.detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 3px;
}

/* Архитектура (Слайд 10) */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}
.docker-box {
  border: 2px dashed var(--color-docker);
  border-radius: 16px;
  padding: 40px 30px 30px;
  position: relative;
  background: rgba(13, 17, 23, 0.5);
  text-align: center;
}
.docker-label {
  position: absolute;
  top: -14px;
  left: 30px;
  background: var(--bg-color);
  color: var(--color-docker);
  padding: 0 15px;
  border: 1px solid var(--color-docker);
  border-radius: 20px;
  font-weight: bold;
}
.arch-node {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
}
.arch-node:hover {
  transform: translateY(-5px);
}
.arch-node.nginx {
  border-top: 4px solid var(--color-nginx);
}
.arch-node.next {
  border-top: 4px solid var(--color-nextjs);
  height: 100%;
  box-sizing: border-box;
}
.arch-node.spring {
  border-top: 4px solid var(--color-spring);
}
.arch-node.db {
  border-top: 4px solid var(--color-mariadb);
  margin-top: 20px;
}
.arch-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 24px;
  animation: bounce 2s infinite;
  margin: 10px 0;
}

/* План разработки (Слайд 11) */
.time-block {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 25px;
  overflow: hidden;
}
.time-header {
  background: rgba(48, 54, 61, 0.3);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.task-col {
  padding: 20px;
  border-right: 1px solid var(--border-color);
}
.task-col:last-child {
  border-right: none;
}
.role-title {
  font-weight: bold;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

/* Карусель (Слайд 6) */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.carousel-container {
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel-slide {
  min-width: 100%;
  padding: 40px;
  box-sizing: border-box;
}
.box-number {
  background: var(--card-bg);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: "Fira Code";
  margin-right: 10px;
}
.carousel-button {
  position: absolute;
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}
.carousel-button:hover {
  background: var(--accent-blue);
  color: #000;
  border-color: var(--accent-blue);
}
.carousel-button.prev {
  left: 50px;
}
.carousel-button.next {
  right: 50px;
}
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.dot {
  width: 10px;
  height: 10px;
  background: var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: var(--accent-blue);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--glow);
}
