@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800;900&family=Lora:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  /* Metacognition Palette (Dark, Cyan/Blue Accent) */
  --brand-1: #00BCD4; /* Primary Accent: Bright Cyan/Blue */
  --brand-2: #F5F5F5; /* Light Background (White/Off-White) */
  --brand-3: #121212; /* Darkest Background (Black-ish) */
  --brand-4: #333333; /* Dark Grey for subtle elements */
  --brand-5: #050505; /* Black for header/footer */
  scroll-behavior: smooth;
}

/* Updated Color Utilities */
.bg-brand-1 { background-color: var(--brand-1); }
.bg-brand-1\/90 { background-color: rgba(0, 188, 212, 0.9); }
.bg-brand-1\/70 { background-color: rgba(0, 188, 212, 0.7); }
.bg-brand-1\/20 { background-color: rgba(0, 188, 212, 0.2); }
.bg-brand-1\/10 { background-color: rgba(0, 188, 212, 0.1); }

.bg-brand-2 { background-color: var(--brand-2); }
.bg-brand-2\/50 { background-color: rgba(245, 245, 245, 0.5); }
.bg-brand-2\/10 { background-color: rgba(245, 245, 245, 0.1); }

.bg-brand-3 { background-color: var(--brand-3); }
.text-brand-3 { color: var(--brand-3); }

.text-brand-4 { color: var(--brand-4); }

.bg-brand-5 { background-color: var(--brand-5); }
.bg-brand-5\/90 { background-color: rgba(5, 5, 5, 0.9); }
/* Text colors for dark backgrounds (brand-5, brand-3) - now based on white */
.text-brand-5\/80 { color: rgba(255, 255, 255, 0.8); }
.text-brand-5\/70 { color: rgba(255, 255, 255, 0.7); }
.text-brand-5\/50 { color: rgba(255, 255, 255, 0.5); }
.border-brand-5\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-brand-5\/30 { border-color: rgba(255, 255, 255, 0.3); }


/* Text colors for light backgrounds (brand-2) */
.text-brand-1 { color: var(--brand-1); }
.text-brand-2 { color: var(--brand-2); }

.border-brand-1\/10 { border-color: rgba(0, 188, 212, 0.1); }
.border-brand-1 { border-color: var(--brand-1); }
.border-brand-2 { border-color: var(--brand-2); }


/* Font Update */
body {
  font-family: 'Lora', serif; /* Body text: intellectual/readable serif */
  color: var(--brand-3); /* Default text color on light backgrounds */
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif; /* Headings: modern/strong sans-serif */
}

/* --- ГАРАНТИЯ ЧЕРНОГО ФУТЕРА --- */
/* Используем класс Tailwind bg-brand-5, но гарантируем, что он черный */
.bg-brand-5, footer {
    background-color: var(--brand-5) !important;
    color: white !important; /* Убедимся, что текст остается белым */
}

/* Принудительная установка черного цвета для футера, если класс не сработал */
footer {
    background-color: #000000 !important;
    color: white !important;
}
/* ------------------------------- */

.parallax-container {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130%;
  z-index: -1;
  transform: translateZ(0);
}

.animated-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animated-element.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-item:nth-child(5) { transition-delay: 0.5s; }
.stagger-item:nth-child(6) { transition-delay: 0.6s; }

.decorative-line {
  position: relative;
  overflow: hidden;
}

.decorative-line::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: var(--brand-1);
  bottom: 0;
  left: -100%;
  transition: left 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.decorative-line.visible::before {
  left: 0;
}

.circular-element {
  position: absolute;
  border: 1px solid var(--brand-1);
  border-radius: 50%;
  opacity: 0.15;
  z-index: -1;
}

.noise-texture {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.1 0'/%3E%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.course-path {
  position: relative;
}

.course-path::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  width: 1px;
  height: 100%;
  background-color: rgba(0, 188, 212, 0.4); /* Updated color */
  z-index: -1;
}

.course-item::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -25px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--brand-1);
  background-color: var(--brand-3);
}

.notification {
  position: fixed;
  bottom: -100px;
  right: 20px;
  background-color: var(--brand-1);
  color: white;
  padding: 15px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: bottom 0.5s ease-in-out;
}

.notification.show {
  bottom: 20px;
}

@media (max-width: 768px) {
  .parallax-bg {
    height: 120%;
  }
}