
/* Global */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 200px; /* відступ зверху для фіксованого navbar */
}

body {
  margin: 0;
  background-color: #000;
  color: #fff;
}

/* ШРИФТИ*/
body {
    font-family: "Exo 2", sans-serif;
}

.h2,
.h1 {
    font-family: 'Orbitron', sans-serif;
}

/* Прозорий Canvas під усім */
#drawCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* завжди під контентом */
  pointer-events: none; /* вмикається тільки при малюванні */
  background-color: transparent;
}

/* Кнопка і навбар завжди поверх */
#toggleDraw,
.bottom-navbar,
.bottom-navbar-hint {
  position: relative;
  z-index: 10;
}

/* Кнопка малювання */
#toggleDraw {
  position: fixed;
  top: auto;
  bottom: 80px;
  right: 20px;
  z-index: 10;
  background-color: #7300ff;
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #7300ff;
  transition: background-color 0.3s;
}

#toggleDraw:hover {
  background-color: #5c00cc;
}


/* Смужка-підказка внизу */
.bottom-navbar-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: #7300ff;
  border-radius: 999px;
  z-index: 15;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

/* Ховаємо смужку, коли на неї або на navbar наводять */
.bottom-navbar-hint:hover,
.bottom-navbar:hover ~ .bottom-navbar-hint {
  opacity: 0;
  pointer-events: none;
}

/* Прозорий navbar з початковим зсувом вниз */
.bottom-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px); /* Зсув вниз */
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 20;
  background: transparent; /* Прозорий фон */
  backdrop-filter: blur(8px); /* Легке розмиття */
}

/* Показати navbar при наведенні — плавно виїжджає знизу */
.bottom-navbar-hint:hover + .bottom-navbar,
.bottom-navbar:hover {
  opacity: 1;
  transform: translateY(0); /* Повертаємо на місце */
  pointer-events: auto;
}

/* Стилізація пунктів navbar */
.bottom-navbar ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.bottom-navbar li a {
  text-decoration: none;
  color: #ccc;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.bottom-navbar li a:hover {
  color: #7300ff;
}

/* Плавний перехід для navbar і смужки */
.bottom-navbar,
.bottom-navbar-hint {
  transition: all 0.3s ease;
}

/* Коли футер на екрані — navbar зверху */
.navbar-top {
  position: fixed !important;
  top: 0 !important;
  bottom: auto !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important; /* Без зсуву */
}

/* Прихована смужка */
.hint-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}



section {
  height: 100vh;
}

/* Hero Section with Parallax */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero-title {
  font-size: 3rem;
  color: #7300ff;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #cccccc;
  max-width: 600px;
}


/* About Section */
.about {
  padding: 80px 20px;
  text-align: center;
  background-color: #000;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #7300ff;
}

.section-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.3rem;
  color: #cccccc;
}

/* Subsidiaries Section */
.subsidiaries {
  padding: 80px 20px;
  background-color: #000;
  text-align: center;
}

.subsidiary-grid {
  display: grid;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.subsidiary-card {
  display: block;
  text-decoration: none;
  background-color: #1a1a1a;
  padding: 20px;
  border: 1px solid #a366ff;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  color: inherit;
}

.subsidiary-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 10px #7300ff;
}

.subsidiary-title {
  font-size: 1.5rem;
  color: #7300ff;
  margin-bottom: 10px;
}

/* Footer */
footer {
  bottom: 0;
  left: 0;
  right: 0;
  justify-content: center;
  align-items: center;
  color: #888;
  padding: 15px;
  text-align: center;
  font-size: 1.2em;
}

footer a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

footer:hover {
  color: #9000ff;
}


/* Планшети та великі телефони */
@media (max-width: 768px) {
  /* Hero */
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 95%;
    line-height: 1.4;
  }

  /* Заголовки секцій */
  .section-title {
    font-size: 1.8rem;
  }

  .section-text {
    font-size: 1rem;
    padding: 0 12px;
    line-height: 1.5;
  }

  /* Subsidiaries */
  .subsidiary-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
  }

  .subsidiary-card {
    padding: 15px;
    font-size: 0.95rem;
  }

  /* Navbar */
  .bottom-navbar ul {
    gap: 20px;
  }

  .bottom-navbar li a {
    font-size: 1rem;
    padding: 6px 10px;
  }

  /* Кнопка toggleDraw */
  #toggleDraw {
    top: auto;
    bottom: 80px;
    right: 16px;
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* Дуже малі екрани (телефони) */
@media (max-width: 480px) {
  /* Hero */
  .hero-title {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Заголовки */
  .section-title {
    font-size: 1.5rem;
  }

  .section-text {
    font-size: 0.95rem;
    padding: 0 8px;
  }

  /* Сітка в одну колонку */
  .subsidiary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .subsidiary-card {
    padding: 12px;
    font-size: 0.9rem;
  }

  /* Navbar вертикально */
  .bottom-navbar ul {
    flex-direction: column;
    gap: 8px;
  }

  .bottom-navbar li a {
    font-size: 1.1rem;
    padding: 6px;
  }

  /* Кнопка toggleDraw */
  #toggleDraw {
    bottom: 65px;
    right: 12px;
    font-size: 13px;
    padding: 8px 12px;
  }

  /* Смужка-підказка */
  .bottom-navbar-hint {
    bottom: 12px;
    width: 50px;
    height: 4px;
  }
}
