/* 
====================================================
 🎬 EclipseFilmStudio — Главный CSS Файл
 Содержит стили для всех страниц сайта:
 - Главная (параллакс, миссия)
 - Фильмы, Команда, Контакты
 - Сотрудничают с нами
 - Навигация, футер, анимации
 Автор: Рауль ✊
====================================================
*/

/* ---------- БАЗОВАЯ СБРОСКА И ОБЩИЕ СТИЛИ ---------- */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #111;
  font-family: 'Segoe UI', sans-serif;
  color: #f5f5f5;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

main {
  flex: 1 0 auto;
  padding-bottom: 80px;
}

/* ---------- СЕКЦИЯ "О НАС" ---------- */
.about-section {
  background-color: #111;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
}

.about-section h2 {
  font-size: 36px;
  margin-bottom: 25px;
  color: #00d4ff;
}

/* ---------- СЕКЦИЯ КОМАНДЫ ---------- */
.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 20px;
}

.team-member {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 20px;
  width: 320px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  text-align: center;
}

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

.team-member img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

.team-member h3 {
  margin: 0;
  color: #00bcd4;
}

/* ---------- СЕКЦИЯ ПАРТНЁРОВ ---------- */
.partners-section {
  padding: 60px 20px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.partners-section h2 {
  font-size: 28px;
  margin-bottom: 40px;
}

.partners-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 40px;
}

.partner-card {
  background-color: #1a1a1a;
  padding: 15px 15px 10px; /* уменьшили отступы */
  border-radius: 12px;
  width: 240px; /* стало чуть уже */
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* выравнивание по верху */
  align-items: center;
}

.partner-card img {
  width: 100%;
  max-height: 180px; /* ограничиваем высоту! */
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 10px;
}

.partners-container {
  align-items: stretch; /* все карточки одной высоты */
}

.partner-card h3 {
  color: #00bcd4;
  font-size: 17px;
  margin: 8px 0 4px;
}

.partner-card p {
  font-size: 13px;
  color: #bbb;
  margin: 0;
}

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

.partner-card img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
}

.partner-card h3 {
  color: #00bcd4;
  margin: 10px 0 5px;
}

.partner-card p {
  color: #bbb;
  font-size: 14px;
}

/* ---------- СЕКЦИЯ ФИЛЬМОВ ---------- */
.movies-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 20px;
}

.movie-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 20px;
  width: 320px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

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

.movie-card img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

.movie-card h3 {
  margin-top: 0;
  color: #00bcd4;
}

.movie-card video {
  width: 100%;
  margin: 10px 0;
}

/* ---------- ОБОЛОЧКА ДЛЯ ВИДЕО ---------- */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  margin-top: 15px;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/* ---------- КОНТАКТНАЯ ФОРМА ---------- */
.contact-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.email-form,
.contact-form {
  max-width: 600px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}

.email-form input,
.email-form textarea,
.contact-form input,
.contact-form textarea {
  padding: 10px;
  background-color: #222;
  border: none;
  border-radius: 5px;
  color: #fff;
  width: 100%;
}

.email-form textarea,
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.email-form button,
.contact-form button {
  background-color: #00bcd4;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  color: #000;
  transition: background-color 0.3s ease;
}

.email-form button:hover,
.contact-form button:hover {
  background-color: #0097a7;
}

/* ---------- КАРТА В БЛОКЕ СТУДИИ ---------- */
.map-container {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.2);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

/* ---------- СТУДИЯ: АДРЕС И КОНТАКТЫ ---------- */
.studio-contact {
  max-width: 800px;
  margin: 60px auto;
  padding: 30px;
  background-color: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.15);
  color: #f5f5f5;
}

.studio-contact h2 {
  color: #00bcd4;
  text-align: center;
  margin-bottom: 20px;
}

.studio-contact p {
  margin: 10px 0;
  font-size: 1.1em;
  text-align: center;
}

.studio-contact a {
  color: #00bcd4;
  text-decoration: none;
}

.studio-contact a:hover {
  text-decoration: underline;
}

/* ---------- НАВИГАЦИЯ ---------- */
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #111;
  padding: 15px 0;
  text-align: center;
  z-index: 999;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav ul li a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
  background-color: #00bcd4;
  color: #000;
}

/* ---------- ПАРАЛЛАКС-БЛОК ---------- */
.parallax {
  background-image: url('../img/your-background.jpg');
  height: calc(100vh - 180px);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px;
}

.overlay h1 {
  font-size: 4em;
  margin: 0;
  animation: fadeUp 1s ease forwards;
}

.overlay p {
  font-size: 1.5em;
  animation: fadeUp 1s ease 0.3s forwards;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- ФУТЕР ---------- */
.cinema-footer {
  background-color: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(5px);
  padding: 40px 20px;
  text-align: center;
  color: #bbb;
  font-size: 14px;
  margin-top: 40px;
  box-shadow: none;
}

.footer-brand h3 {
  margin: 0;
  color: #00bcd4;
  font-size: 20px;
}

.footer-brand p {
  margin: 5px 0 15px;
  font-style: italic;
  color: #888;
}

.footer-copy {
  color: #666;
  margin-top: 10px;
  font-size: 12px;
}