:root {
  --accent: #FFD700;
  --bg: #0a0a0f;
  --card-bg: rgba(22, 22, 26, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --btn-bg: rgba(255, 255, 255, 0.05);
  --ease: cubic-bezier(0.25, 1, 0.5, 1); 
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: #fff; overflow-x: hidden; }

/* Фон */
.particles { position: fixed; top: 0; left: 0; z-index: -1; pointer-events: none; }
.main-wrapper { width: 94%; max-width: 1600px; margin: 60px auto; }
.layout-grid { display: grid; grid-template-columns: 400px 1fr; gap: 60px; align-items: start; }

/* Сайдбар */
.sidebar { position: sticky; top: 40px; display: flex; flex-direction: column; gap: 30px; }
.hero-box h1 { font-size: 4.5rem; font-weight: 800; line-height: 0.85; margin-bottom: 20px; letter-spacing: -2px; }
.hero-subtitle { font-size: 0.75rem; letter-spacing: 4px; opacity: 0.5; text-transform: uppercase; }
.highlight { color: var(--accent); font-style: italic; }

/* Карточки */
.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 35px; padding: 40px;
  transition: transform 0.6s var(--ease), box-shadow 0.6s ease; backdrop-filter: blur(15px);
}
.card:hover { transform: scale(1.02); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }

/* Кнопки контактов */
.contact-stack { display: flex; flex-direction: column; gap: 20px; }
.btn {
  display: flex; align-items: center; gap: 15px; padding: 18px 25px; border-radius: 100px;
  text-decoration: none; color: #fff; background: var(--btn-bg); border: 1px solid var(--border); transition: 0.4s;
}

.content-side { display: flex; flex-direction: column; gap: 60px; }

/* Видео плеер */
.video-flex-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; }

.v-item {
  flex: 1 1 280px; max-width: 320px; aspect-ratio: 9/16;
  background: #000; border-radius: 25px; overflow: hidden;
  border: 1px solid var(--border); position: relative; cursor: pointer;
  transition: transform 0.6s var(--ease); transform: translateZ(0);
}

.video-tag { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }

/* Полноэкранный режим */
.v-item:fullscreen { display: flex !important; align-items: center; justify-content: center; background: #000; width: 100vw; height: 100vh; }
.v-item:fullscreen .video-tag { object-fit: contain; width: 100%; height: 100%; }
.v-item:-webkit-full-screen { display: flex !important; align-items: center; justify-content: center; background: #000; width: 100%; height: 100%; }
.v-item:-webkit-full-screen .video-tag { object-fit: contain; width: 100%; height: 100%; }

/* Интерфейс плеера */
.player-ui {
  position: absolute; bottom: 0; left: 0; width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.95));
  padding: 20px; opacity: 0; transition: 0.3s opacity; z-index: 10;
}
.v-item:hover .player-ui, .v-item:not(.playing) .player-ui { opacity: 1; }

.timeline-container { height: 12px; width: 100%; display: flex; align-items: center; cursor: pointer; margin-bottom: 10px; }
.timeline { height: 4px; width: 100%; background: rgba(255,255,255,0.2); border-radius: 2px; }
.bar { height: 100%; width: 0%; background: var(--accent); position: relative; }

.controls { display: flex; justify-content: space-between; align-items: center; }
.controls button { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; transition: 0.2s; padding: 5px; }
.controls button:hover { color: var(--accent); transform: scale(1.2); }
.controls .left { display: flex; gap: 15px; }

/* Иконка Play по центру */
.v-item::after {
  content: '\f04b'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 3rem; color: #fff; opacity: 0.7; transition: 0.3s; pointer-events: none; z-index: 5;
}
.v-item.playing::after { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }

/* Скиллы */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.skill-card {
  background: rgba(255, 255, 255, 0.02); border-radius: 25px; padding: 30px;
  display: flex; flex-direction: column; align-items: center; gap: 15px;
  border: 1px solid var(--border); transition: 0.5s var(--ease);
}
.skill-icon-box { width: 55px; height: 55px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; border-radius: 15px; }
.skill-icon-box img { width: 30px; transition: 0.4s; }
.skill-card:hover .skill-icon-box img { transform: rotate(15deg) scale(1.1); }

/* Анимации появления */
.animate-item { 
  opacity: 0; 
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s var(--ease); 
  will-change: opacity, transform;
}
.animate-item.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.card h2, .card p, .card div, .card .btn {
  opacity: 0; transform: translateY(15px); transition: 1s var(--ease);
}
.is-visible h2, .is-visible p, .is-visible div, .is-visible .btn { opacity: 1; transform: translateY(0); }
.is-visible h2 { transition-delay: 0.1s; }
.is-visible .name-badge { transition-delay: 0.2s; }
.is-visible .description, .is-visible .video-flex-container, .is-visible .skills-grid { transition-delay: 0.3s; }

.name-badge { background: var(--accent); color: #000; padding: 6px 16px; border-radius: 100px; font-weight: 700; margin-bottom: 20px; display: inline-block; }
.tagline { font-size: 1.4rem; font-weight: 700; color: var(--accent); margin-bottom: 15px; }

/* Ховеры */
.btn:hover, .skill-card:hover, .v-item:hover, .card:hover { transform: scale(1.05); z-index: 10; }
.contact-stack .btn:hover { transform: translateY(-5px) scale(1.05); }
.card, .btn, .skill-card, .v-item, .skill-icon-box img { transition: transform 0.5s var(--ease), box-shadow 0.5s ease, opacity 0.5s ease !important; }

/* Адаптивность */
@media (max-width: 1100px) { 
  .layout-grid { grid-template-columns: 1fr; } 
  .sidebar { position: static; } 
  .hero-box h1 { font-size: 3.5rem; } 
}
