/*
  ================================================================================
  style.css
  Стили для сайта YPF Argentina - Futuro
  Дизайн-система: Футуристический, Гиперреалистичные текстуры
  Цветовая схема: Аналоговая (Темная база с акцентами циана)
  ================================================================================
*/

/*
  1. CSS-переменные и базовые стили
  --------------------------------------------------------------------------------
*/

:root {
  /* Цветовая палитра */
  --color-primary: #06b6d4; /* Cyan 500 */
  --color-primary-light: #22d3ee; /* Cyan 400 */
  --color-bg-dark: #0a0a14; /* Очень темный сине-серый */
  --color-bg-secondary: #0d1117; /* Чуть светлее, как у GitHub */
  --color-bg-card: rgba(23, 31, 42, 0.5); /* Полупрозрачный для эффекта стекла */
  --color-text-light: #E0E0E0; /* Светло-серый для основного текста */
  --color-text-white: #FFFFFF;
  --color-text-muted: #8b949e; /* Приглушенный текст, как у GitHub */
  --color-border: rgba(6, 182, 212, 0.3); /* Полупрозрачная граница циана */
  --color-border-hover: rgba(34, 211, 238, 0.7);

  /* Типографика */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;

  /* Переходы */
  --transition-fast: all 0.3s ease-in-out;
  --transition-slow: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Плавная прокрутка */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Стили заголовков */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

/* Стили ссылок */
a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-text-white);
  text-decoration: underline;
}

/*
  2. Глобальные компоненты и утилиты
  --------------------------------------------------------------------------------
*/

/* Контейнер для статических страниц (Privacy, Terms) */
.static-page-content {
    padding-top: 120px; /* Отступ от фиксированного хедера */
    padding-bottom: 60px;
    min-height: calc(100vh - 150px); /* Чтобы футер не прилипал */
}

.static-page-content h1 {
    color: var(--color-primary-light);
    margin-bottom: 1.5rem;
}

.static-page-content h2 {
    color: var(--color-text-white);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

/* Стили для страницы успеха */
.success-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--color-bg-dark);
    padding: 2rem;
}

.success-page-container h1 {
    color: var(--color-primary-light);
    text-shadow: 0 0 15px var(--color-primary);
}

/* Общие стили кнопок */
.btn-futuristic, button[type="submit"] {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-text-white);
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-futuristic:hover, button[type="submit"]:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.2);
}

/* Параллакс секции */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*
  3. Стили для конкретных секций
  --------------------------------------------------------------------------------
*/

/* Header */
#main-header {
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

#main-header.scrolled {
    background-color: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--color-border);
}

/* Hero Section */
#hero {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
#hero h1 {
  color: var(--color-text-white); /* Строго белым */
}

/* Cards (Общие стили для Community, Team и т.д.) */
.card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%; /* Для одинаковой высоты в гриде */
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 191, 255, 0.15);
  border-color: var(--color-border-hover);
}

.card-image, .image-container {
  width: 100%;
  height: 220px; /* Фиксированная высота для контейнера изображения */
  overflow: hidden;
  flex-shrink: 0;
}

.card-image img, .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Изображение заполняет контейнер без искажений */
  transition: transform 0.4s ease;
}

.card:hover .card-image img, .card:hover .image-container img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1; /* Контент занимает оставшееся место */
  display: flex;
  flex-direction: column;
}

.card-content h3 {
    color: var(--color-primary-light);
}

/* Team Section - круглые аватары */
#equipo .card {
    align-items: center; /* Центрирование содержимого по горизонтали */
    text-align: center;
    background-color: transparent;
    border: none;
    box-shadow: none;
}
#equipo .card:hover {
    transform: none;
}
#equipo .image-container {
    height: 12rem; /* 192px */
    width: 12rem;  /* 192px */
    border-radius: 50%;
    border: 4px solid var(--color-border);
    transition: var(--transition-fast);
    margin: 0 auto; /* Центрирование */
}
#equipo .card:hover .image-container {
    border-color: var(--color-primary-light);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* Timeline (Research Section) */
.right-timeline, .left-timeline {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 0;
    transform: translateY(30px);
}

.timeline-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Form */
#contacto input[type="text"],
#contacto input[type="email"],
#contacto textarea {
  background-color: #1c232e;
  border: 1px solid var(--color-border);
  color: var(--color-text-white);
  transition: var(--transition-fast);
  border-radius: 8px;
}

#contacto input[type="text"]:focus,
#contacto input[type="email"]:focus,
#contacto textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

/* Toggle Switch */
#toggle:checked ~ .dot {
  transform: translateX(1.5rem); /* 24px */
  background-color: var(--color-primary-light);
}

#toggle:checked ~ .block {
  background-color: var(--color-primary);
}

/* Footer */
footer {
    background-color: #000000;
    border-top: 1px solid var(--color-border);
}

footer h4 {
    color: var(--color-text-white);
    margin-bottom: 1rem;
}

footer ul li a {
    color: var(--color-text-muted);
}

footer ul li a:hover {
    color: var(--color-primary-light);
    text-decoration: none;
    padding-left: 5px;
}

/* Social Links в футере (текстовые) */
footer a[target="_blank"] {
    /* Дополнительные стили, если нужны */
    font-weight: bold;
}

/* Анимации (если не используется JS-библиотека) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

/* Анимация для счетчиков статистики */
.stat-number {
    transition: var(--transition-slow);
}

/* Page Transition Overlay */
#page-transition-overlay {
    transition: transform 0.7s cubic-bezier(0.86, 0, 0.07, 1);
}

#page-transition-overlay.is-active {
    transform: translateY(0);
}

/*
  4. Адаптивность
  --------------------------------------------------------------------------------
*/
@media (max-width: 768px) {
  /* Уменьшаем отступы на мобильных */
  section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  h1 {
    font-size: 2.5rem; /* 40px */
  }

  h2 {
    font-size: 2rem; /* 32px */
  }

  /* Timeline на мобильных */
  .timeline-container {
    padding-left: 0;
    padding-right: 0;
  }
  
  #investigacion .border {
      left: 20px !important;
  }
  
  #investigacion .right-timeline,
  #investigacion .left-timeline {
      justify-content: flex-start;
      flex-direction: row !important;
  }
  
  #investigacion .right-timeline .w-5\/12,
  #investigacion .left-timeline .w-5\/12 {
      width: 80% !important;
      margin-left: 40px;
  }
  
  #investigacion .right-timeline .order-1,
  #investigacion .left-timeline .order-1 {
      order: 2;
  }
  
  #investigacion .z-20 {
      order: 1;
      position: absolute;
      left: 6px;
  }

  /* Контактная форма на мобильных */
  #contacto form > div:last-child {
      flex-direction: column;
      align-items: stretch;
      gap: 1rem;
  }
  #contacto form button[type="submit"] {
      width: 100%;
  }

}