/* Cozy Dark theme for LinkInBio (Emirhan) */
/* Keeps layout/HTML intact — only styling */

:root{
  --bg: #0E111A;
  --text: #E9ECF1;
  --muted: rgba(233,236,241,.78);
  --primary: #8B7DFF; /* cozy violet */
  --accent: #F4C95D;  /* warm amber */

  --surface: rgba(255,255,255,.08);
  --surface2: rgba(255,255,255,.06);
  --pill: rgba(255,255,255,.09);
  --stroke: rgba(233,236,241,.14);
  --shadow: 0 18px 55px rgba(0,0,0,.45);
  --radius: 22px;
}

html, body{
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  color: var(--text);
}

body{
  /* Cozy background (stable) */
  background:
    radial-gradient(1200px 700px at 10% 5%, rgba(139,125,255,.18), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(244,201,93,.12), transparent 55%),
    radial-gradient(800px 500px at 35% 95%, rgba(76,189,255,.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* Keep your existing image subtle behind (optional) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: url(./images/2.png) no-repeat center center;
  background-size: cover;
  opacity: .10;
  filter: saturate(1.05) contrast(1.05);
  pointer-events: none;
  z-index: -3;
}

/* Vanta/video layers behind everything */
#vanta, video{
  z-index: -2;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

video{ object-fit: cover; }

main{
  position: relative;
  min-height: 100vh;
}

/* existing fade-in */
main.animated{
  opacity: 0;
  filter: blur(10px);
  transition: opacity 2s ease-in-out, filter 2s ease-in-out;
}

/* Header */
header{
  margin-top: 3em;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
}

/* Avatar */
header > img{
  width: 6.2em;
  height: 6.2em;
  border-radius: 100%;
  border: 1px solid rgba(233,236,241,.18);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.04);
}

/* Name pill */
header > h1{
  display: inline-block;
  font-size: .92em;
  font-weight: 700;
  letter-spacing: .2px;
  border-radius: 999px;
  padding: .55em .85em;
  background: linear-gradient(180deg, var(--surface), var(--surface2));
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* If you wrap a part in <span>, it becomes cozy accent */
header > h1 span{
  color: var(--accent);
}

/* List container */
ul{
  box-sizing: border-box;
  list-style: none;
  margin: 0 auto;
  padding: 1.8em 1.4em 2.4em;
  max-width: 520px;
}

/* Link pills */
ul > li{
  background: linear-gradient(180deg, var(--surface), var(--surface2));
  border: 1px solid rgba(233,236,241,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  margin: 1.05em 0;
  box-shadow: 0 14px 45px rgba(0,0,0,.40);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

ul > li:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 55px rgba(0,0,0,.52);
  border-color: rgba(139,125,255,.22);
}

/* Anchor */
ul > li > a{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.65em;
  padding: 1.05em 1.1em;
  color: var(--accent);
  text-decoration: none;
  font-weight: 650;
}

/* Icon */
ul > li > a img{
  width: 22px;
  height: 22px;
  border-radius: 8px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}

/* Default links elsewhere */
a{ color: var(--accent); text-decoration: none; }
a:hover{ color: #ffb84a; }

/* Nice selection */
::selection{ background: rgba(139,125,255,.28); }

/* Mobile spacing */
@media (max-width: 520px){
  header{ margin-top: 2.2em; }
  ul{ padding: 1.4em 1.0em 2.0em; }
  ul > li > a{ justify-content: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
