/* ============================================================
   ev★rst hackaton — styles.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080810;
  --bg2: #0d0d1a;
  --purple: #6c5ce7;
  --purple2: #a29bfe;
  --cyan: #00cec9;
  --pink: #fd79a8;
  --yellow: #fdcb6e;
  --text: #e8e8f0;
  --text2: #8888aa;
  --glow: rgba(108,92,231,0.4);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ──────────────────────────────────────────────── */
.cursor {
  position: fixed; width: 12px; height: 12px;
  background: var(--purple2); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid var(--purple); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.2s;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 20px; height: 20px; background: var(--cyan); }
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 52px; height: 52px; border-color: var(--cyan); }

/* ── NOISE ───────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1; opacity: 0.4;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s, backdrop-filter 0.3s;
}
nav.scrolled {
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108,92,231,0.2);
}
.nav-logo { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 18px; color: var(--text); }
.nav-logo span { color: var(--purple2); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: var(--text2); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1px;
  background: var(--purple2); transform: scaleX(0); transition: transform 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 2rem;
}

.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(108,92,231,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,92,231,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(60px); }
}

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.25;
  animation: orbFloat linear infinite;
}
.orb1 { width: 500px; height: 500px; background: var(--purple); top: -100px; left: -100px; animation-duration: 18s; }
.orb2 { width: 400px; height: 400px; background: var(--cyan); bottom: -50px; right: -50px; animation-duration: 22s; animation-delay: -8s; }
.orb3 { width: 300px; height: 300px; background: var(--pink); top: 40%; left: 60%; animation-duration: 15s; animation-delay: -4s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  25%  { transform: translate(30px,-40px) scale(1.05); }
  50%  { transform: translate(-20px,30px) scale(0.95); }
  75%  { transform: translate(40px,20px) scale(1.02); }
}

.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle {
  position: absolute; border-radius: 50%;
  background: var(--purple2);
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-20px) translateX(var(--dx)); opacity: 0; }
}

.hero-logo {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(56px, 14vw, 140px);
  font-weight: 900; letter-spacing: -4px; line-height: 1;
  position: relative; z-index: 2;
  animation: logoReveal 1.2s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes logoReveal {
  from { opacity: 0; transform: translateY(60px) scale(0.8); filter: blur(20px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.hero-logo .star {
  color: transparent; -webkit-text-stroke: 3px var(--purple2);
  display: inline-block;
  filter: drop-shadow(0 0 20px var(--purple2));
  animation: starPulse 4s ease-in-out infinite;
}
@keyframes starPulse {
  0%,100% { filter: drop-shadow(0 0 20px var(--purple2)); }
  50%     { filter: drop-shadow(0 0 50px var(--cyan)) drop-shadow(0 0 100px var(--purple)); }
}

.hero-sub {
  font-size: clamp(11px,2vw,14px); color: var(--text2);
  letter-spacing: 6px; text-transform: uppercase;
  margin-top: 1.5rem; position: relative; z-index: 2;
  animation: fadeUp 1s 0.4s both;
}
.hero-tagline {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(13px,3vw,18px); font-weight: 300;
  color: var(--purple2); margin-top: 1rem;
  position: relative; z-index: 2;
  animation: fadeUp 1s 0.6s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

/* ── TEAM NAME BADGE ─────────────────────────────────────── */
.team-name-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 18px;
  border: 1px solid rgba(108,92,231,0.4);
  background: rgba(108,92,231,0.08);
  margin-bottom: 1.5rem;
  font-size: 11px; letter-spacing: 3px; color: var(--purple2);
  text-transform: uppercase;
}
.team-name-badge .dot-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,206,201,0.4); }
  50%     { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0,206,201,0); }
}

/* ── MARQUEE ─────────────────────────────────────────────── */
.marquee-section {
  padding: 3rem 0; overflow: hidden;
  border-top: 1px solid rgba(108,92,231,0.2);
  border-bottom: 1px solid rgba(108,92,231,0.2);
}
.marquee-track {
  display: flex; gap: 3rem; width: max-content;
  animation: marquee 20s linear infinite;
}
.marquee-track.reverse { animation-direction: reverse; animation-duration: 28s; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 300;
  color: var(--text2); white-space: nowrap; letter-spacing: 2px;
  display: flex; align-items: center; gap: 3rem;
}
.marquee-item::after { content: '★'; color: var(--purple2); }

/* ── SECTIONS GENERIC ────────────────────────────────────── */
section { padding: 8rem 2rem; position: relative; }
.container { max-width: 1400px; margin: 0 auto; }

.section-label {
  font-size: 11px; letter-spacing: 5px; color: var(--purple2);
  text-transform: uppercase; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-label::before { content: ''; width: 40px; height: 1px; background: var(--purple2); }
.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(32px,6vw,72px); font-weight: 700; line-height: 1.1;
  margin-bottom: 1.5rem;
}

/* ── TEAM ────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px; background: rgba(108,92,231,0.2);
  max-width: 1400px; margin: 4rem auto 0;
}

.member-card {
  background: var(--bg2); padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.6s, transform 0.6s, background 0.3s;
}
.member-card.visible { opacity: 1; transform: none; }
.member-card:hover { background: #12122a; }
.member-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--purple) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.member-card:hover::before { opacity: 0.05; }

.member-photo {
  width: 96px; height: 96px; border-radius: 50%;
  border: 2px solid rgba(108,92,231,0.4);
  margin-bottom: 1.5rem; position: relative; z-index: 1;
  background: var(--bg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Unbounded', sans-serif; font-size: 32px; font-weight: 700;
  color: var(--purple2);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.member-card:hover .member-photo {
  border-color: var(--purple2);
  box-shadow: 0 0 30px var(--glow);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }

.member-name {
  font-family: 'Unbounded', sans-serif; font-size: 18px; font-weight: 700;
  margin-bottom: 0.25rem; position: relative; z-index: 1;
}
.member-handle { font-size: 12px; color: var(--purple2); margin-bottom: 0.75rem; position: relative; z-index: 1; }
.member-role {
  font-size: 11px; letter-spacing: 2px; color: var(--text2);
  text-transform: uppercase; margin-bottom: 1.25rem; position: relative; z-index: 1;
}
.member-desc { font-size: 13px; color: var(--text2); line-height: 1.7; position: relative; z-index: 1; }

.member-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.25rem; position: relative; z-index: 1; }
.tag {
  font-size: 10px; padding: 3px 10px;
  border: 1px solid rgba(108,92,231,0.3); color: var(--purple2); letter-spacing: 1px;
  transition: background 0.2s, border-color 0.2s;
}
.member-card:hover .tag { border-color: rgba(108,92,231,0.6); background: rgba(108,92,231,0.1); }

/* ── SETKA FULL-WIDTH CARD ───────────────────────────────── */
.team-grid {
  /* переопределяем: последняя карточка растягивается на всю ширину */
}
.member-card.setka-card {
  grid-column: 1 / -1;          /* растянуть на все колонки */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative; overflow: hidden;
  padding: 3.5rem 4rem;
  border-top: 1px solid rgba(108,92,231,0.3);
  background: var(--bg2);
  min-height: 320px;
}

/* фоновое фото с blur */
.setka-card-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../photos/generated/setka-matrix/back.jpg") center/cover no-repeat;
  filter: blur(8px) brightness(0.25) saturate(1.4);
  transform: scale(1.05); /* убирает белые края от blur */
  transition: filter 0.5s;
}
.member-card.setka-card:hover .setka-card-bg {
  filter: blur(6px) brightness(0.32) saturate(1.6);
}

/* затемняющий оверлей поверх фото */
.setka-card-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(
    120deg,
    rgba(8,8,16,0.75) 0%,
    rgba(108,92,231,0.15) 50%,
    rgba(0,206,201,0.1) 100%
  );
}

/* всё содержимое поверх фона */
.setka-card-content {
  position: relative; z-index: 1;
}
.setka-card-visual {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}

/* большой логотип справа */
.setka-logo-big {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(32px, 5vw, 64px); font-weight: 900;
  line-height: 1; letter-spacing: -2px;
  background: linear-gradient(135deg, var(--purple2), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  user-select: none;
}

.member-card.setka-card:hover { background: var(--bg2); }

.ad-label {
  font-size: 9px; letter-spacing: 3px; color: var(--text2);
  text-transform: uppercase; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px; opacity: 0.6;
}
.ad-label::before {
  content: 'реклама';
  padding: 1px 6px; border: 1px solid rgba(255,255,255,0.15);
  font-size: 8px; letter-spacing: 1px;
}

.setka-card-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px; font-weight: 900; line-height: 1.1;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--purple2), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative; z-index: 1;
}
.setka-card-desc {
  font-size: 12px; color: var(--text2); line-height: 1.7;
  margin-bottom: 1.5rem; position: relative; z-index: 1;
}

.setka-btn {
  position: relative; display: inline-flex;
  align-items: center; gap: 10px;
  padding: 0.8rem 1.6rem;
  font-family: 'Unbounded', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--bg); text-decoration: none;
  cursor: none; border: none; outline: none; overflow: hidden;
  background: linear-gradient(135deg, var(--purple2) 0%, var(--cyan) 100%);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}
.setka-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple2) 100%);
  opacity: 0; transition: opacity 0.4s;
}
.setka-btn::after {
  content: ''; position: absolute;
  top: -50%; left: -75%; width: 50%; height: 200%;
  background: rgba(255,255,255,0.25);
  transform: skewX(-20deg); transition: left 0.5s ease;
}
.setka-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 40px rgba(108,92,231,0.45); }
.setka-btn:hover::before { opacity: 1; }
.setka-btn:hover::after { left: 150%; }
.setka-btn:active { transform: scale(0.98); }
.setka-btn span { position: relative; z-index: 1; }
.setka-btn svg { position: relative; z-index: 1; transition: transform 0.3s; }
.setka-btn:hover svg { transform: translateX(3px); }

.setka-features {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1rem;
  position: relative; z-index: 1;
}
.setka-feature {
  font-size: 9px; color: var(--cyan); letter-spacing: 1px;
  display: flex; align-items: center; gap: 4px;
}
.setka-feature::before { content: '✓'; }

/* ── CONTACTS ────────────────────────────────────────────── */
.contacts-section { max-width: 1400px; margin: 0 auto; }
.contacts-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1px; background: rgba(108,92,231,0.2); margin-top: 3rem;
}
.contact-card {
  background: var(--bg2); padding: 1.75rem 2rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s, background 0.2s;
}
.contact-card.visible { opacity: 1; transform: none; }
.contact-card:hover { background: #12122a; }
.contact-type {
  font-size: 9px; letter-spacing: 3px; color: var(--text2);
  text-transform: uppercase;
}
.contact-value {
  font-size: 13px; color: var(--purple2);
  text-decoration: none; word-break: break-all;
  transition: color 0.2s;
}
.contact-value:hover { color: var(--cyan); }

/* ── HACKATHON ────────────────────────────────────────────── */
.hackathon-section {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
}
.hack-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(108,92,231,0.2); margin-top: 3rem;
}
.hack-stat {
  background: var(--bg2); padding: 2rem;
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.5s, transform 0.5s;
}
.hack-stat.visible { opacity: 1; transform: none; }
.hack-stat-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 48px; font-weight: 900; color: var(--purple2); line-height: 1; margin-bottom: 0.5rem;
}
.hack-stat-label { font-size: 11px; color: var(--text2); letter-spacing: 2px; text-transform: uppercase; }

.glitch-text {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(36px,8vw,96px); font-weight: 900;
  color: var(--text); animation: glitch 5s infinite;
}
@keyframes glitch {
  0%,88%,100% { text-shadow: none; transform: none; }
  90% { text-shadow: -3px 0 var(--cyan), 3px 0 var(--pink); transform: translate(-2px,0); }
  92% { text-shadow: 3px 0 var(--cyan), -3px 0 var(--pink); transform: translate(2px,0); }
  94% { text-shadow: -2px 0 var(--yellow); transform: none; }
}

/* ── SKILLS ──────────────────────────────────────────────── */
.skills-section { max-width: 1200px; margin: 0 auto; }
.skills-bars { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 3rem; }
.skill-row {
  opacity: 0; transform: translateX(-30px);
  transition: opacity 0.5s, transform 0.5s;
}
.skill-row.visible { opacity: 1; transform: none; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.skill-name { color: var(--text); }
.skill-pct { color: var(--purple2); }
.skill-bar { height: 3px; background: rgba(255,255,255,0.08); position: relative; overflow: hidden; }
.skill-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--purple2), var(--cyan));
  width: 0; transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
}
.skill-row.visible .skill-fill { width: var(--pct); }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  padding: 4rem 2rem;
  border-top: 1px solid rgba(108,92,231,0.2);
  text-align: center;
}
.footer-logo {
  font-family: 'Unbounded', sans-serif;
  font-size: 48px; font-weight: 900; margin-bottom: 1rem;
}
.footer-logo span { color: var(--purple2); }
footer p { color: var(--text2); font-size: 12px; letter-spacing: 2px; }

/* ── REVEAL ──────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── SECTION TRANSITIONS ─────────────────────────────────── */
.wave-divider { display: block; width: 100%; overflow: hidden; line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hackathon-section { grid-template-columns: 1fr; gap: 3rem; }
  .nav-links { display: none; }
  .hack-stat-num { font-size: 36px; }
  .setka-features { gap: 1rem; }
}
