:root{
  --bg-overlay: rgba(10,12,20,0.35);
  --card-bg: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.12);
  --glass-blur: 14px;
  --accent: #4dd0e1; /* cyanish accent */
  --steam: #1b2838;
  --discord: #5865f2;
  --github: #24292e;
  --glass-shadow: 0 10px 30px rgba(2,6,23,0.55), inset 0 1px 0 rgba(255,255,255,0.03);
  --radius: 18px;
}

/* Page reset */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background:#071029;
  color:#eaf4ff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:grid;
  place-items:center;
  overflow:hidden;
}

.background-blur-overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0,0,0,0.35); /* затемнение */
    z-index: -1; /* остаётся под карточкой */
}

/* Background video / gif */
.bg-video{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:-2;
  filter:brightness(0.9) contrast(1.05);
}

/* optional subtle overlay to unify colors */
body::before{
  content:"";
  position:fixed;inset:0;z-index:0;
  background:linear-gradient(135deg, rgba(6,8,20,0.25), rgba(8,6,35,0.30));
}

/* Main card */
.card{
  width:min(680px,92vw);
  max-width:900px;
  padding:36px 34px;
  border-radius:calc(var(--radius) + 4px);
  background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border:1px solid var(--card-border);
  box-shadow:var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
  transform-origin:center;
  animation:float 8s ease-in-out infinite;
}

@keyframes float{
  0%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
  100%{transform:translateY(0)}
}

.name{
  margin:0;
  font-size:3rem;
  font-weight:700;
  letter-spacing:1.2px;
  color:#ffffff;
  font-family: 'SF Pro Display', 'Inter', system-ui, -apple-system, BlinkMacSystemFont;
  background:linear-gradient(180deg, #ffffff 0%, #e7ecff 45%, #cbd6ff 100%);
  -webkit-background-clip:text;
  color:transparent;
  text-shadow:0 4px 22px rgba(120,150,255,0.45);
  background-size:100% 100%;
  animation: iosPulse 6s ease-in-out infinite;
}

.subtitle{
  margin:0;
  font-weight:400;
  font-size:1.25rem;
  letter-spacing:0.6px;
  background: linear-gradient(90deg, #ff85f7, #7dd3fc, #a78bfa, #fda4af, #ff85f7);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradientFlow 7s ease-in-out infinite;
  text-shadow: 0 0 12px rgba(255,255,255,0.25);
}

/* Buttons container */
.buttons{
  display:flex;
  gap:14px;
  margin-top:18px;
}

/* Generic button look — glassy, rounded like old iOS/Win7 glossy buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  text-decoration:none;
  color:#f4f7ff; /* lighter button text */
  font-weight:600;
  font-size:0.95rem;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.08);
  background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  box-shadow: 0 6px 18px rgba(2,6,23,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
  transition:transform .18s cubic-bezier(.2,.9,.3,1), box-shadow .18s ease, opacity .12s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn:active{transform:translateY(1px) scale(.996)}
.btn:hover{transform:translateY(-3px)}

/* Icon circle on the left */
.btn .icon{
  display:inline-grid;
  place-items:center;
  width:34px;height:34px;
  border-radius:9px;
  font-size:18px;
  background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border:1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 10px rgba(2,6,23,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn .icon img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  pointer-events: none;
}

/* Per-service color accents */

.btn.steam .icon{background:linear-gradient(180deg,#e9eef4, #cdd7e6);}


.btn.discord .icon{
	background:linear-gradient(180deg,#eff3ff,#dbe6ff);
	
	}


.btn.github .icon{background:linear-gradient(180deg,#f6f6f7,#eaeaea);}

/* subtle glow outlines reminiscent of old OS highlighing */
.btn:focus{outline:none; box-shadow:0 0 0 3px rgba(77,208,225,0.14), 0 10px 30px rgba(2,6,23,0.55)}

/* Responsive tweaks */
@media (max-width:480px){
  .card{padding:22px; gap:8px}
  .name{font-size:1.5rem}
  .buttons{flex-direction:column;width:100%}
  .btn{width:100%; justify-content:center}
}

/* small accent corner 'window' vignette to sell the Windows 7 vibe */
.card::after{
  content:"";
  position:absolute;
  width:120px;height:80px;
  right:10%;top:-28px;
  background:linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-radius:10px;
  transform:rotate(6deg);
  filter:blur(14px);
  opacity:0.35;
  pointer-events:none;
}

/* fallback when video is not available: scale a gif or background image */
.bg-gif{
  position:fixed;inset:0;background-size:cover;background-position:center;z-index:-3;filter:brightness(0.95);
}

/* small vintage font-styled caption */
.caption{
  margin-top:8px;font-size:0.78rem;opacity:0.7;letter-spacing:0.4px
}
