:root{
  --bg:#ffffff;
  --text:#101218;
  --muted:rgba(16,18,24,.72);

  --purple:#7a5cff;
  --blue:#57b6ff;
  --blue2:#a7dcff;
  --green:#00ff88;

  --card:#f5f7fb;
  --card2:#eef2ff;
  --border:rgba(122,92,255,.16);

  --radius:18px;
  --shadow:0 14px 35px rgba(0,0,0,.12);
  --shadow2:0 22px 65px rgba(0,0,0,.16);

  --btn:#7a5cff;

  --header-h:118px;
  --container:1160px;
}

body.dark{
  --bg:#0b0c10;
  --text:#ffffff;
  --muted:rgba(255,255,255,.74);
  --card:#14161c;
  --card2:#1a1d25;
  --border:rgba(122,92,255,.26);
  --shadow:0 18px 45px rgba(0,0,0,.55);
  --shadow2:0 26px 75px rgba(0,0,0,.7);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

html{scroll-behavior:smooth}

body{
  background:var(--bg);
  color:var(--text);
  transition:.25s;
  padding-top:var(--header-h);
  overflow-x:hidden;
}

/* links */
a{
  color:var(--blue);
  text-decoration:none;
  font-weight:750;
  text-shadow:0 0 10px rgba(87,182,255,.25);
  transition:.2s ease;
}
a:hover{
  color:var(--blue2);
  text-shadow:0 0 14px rgba(167,220,255,.35);
}

/* container */
.container{
  max-width:var(--container);
  margin:3rem auto;
  padding:0 1.25rem;
}
@media (min-width: 900px){
  .container{padding:0 2rem}
}

/* header */
header.top-bar{
  position:fixed;
  inset:0 0 auto 0;
  width:100%;
  min-height:var(--header-h);
  z-index:10000;

  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:1rem;

  padding:1.1rem 1.25rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.30)),
    url("/assets/bannerphoto-1.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  border-bottom:1px solid rgba(122,92,255,.22);
  box-shadow:0 8px 26px rgba(0,0,0,.12);
  transition:
    opacity .45s ease,
    transform .45s ease,
    box-shadow .35s ease,
    filter .45s ease;
  transform-origin:top center;
  will-change:opacity, transform, filter;
}

header.top-bar.header-scrolled{
  opacity:.95;
  transform:translateY(-6px) scale(.995);
  filter:none;
  box-shadow:0 12px 30px rgba(0,0,0,.18);
}

header.top-bar *{
  text-shadow:0 2px 10px rgba(0,0,0,.38);
}

.logo-section{
  display:flex;
  align-items:center;
  gap:.8rem;
  min-width:220px;
}

.logo-img{
  height:46px;
  width:46px;
  border-radius:50%;
  box-shadow:0 10px 22px rgba(0,0,0,.25);
}

.logo-stack{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.logo-text{
  font-weight:950;
  font-size:1.02rem;
  color:#fff;
}

.brand-subline{
  margin-top:.28rem;
  font-size:.98rem;
  font-weight:950;
  color:var(--blue2);
  text-shadow:0 0 16px rgba(167,220,255,.55);
}

/* nav */
.nav-links{
  justify-self:center;
  display:flex;
  gap:1.35rem;
  list-style:none;
  padding:.62rem 1.05rem;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(10px);
  flex-wrap:wrap;
  justify-content:center;
}
body.dark .nav-links{
  background:rgba(0,0,0,.25);
  border-color:rgba(255,255,255,.12);
}

.nav-links li a{
  color:#fff;
  font-weight:900;
  font-size:1.05rem;
  position:relative;
  padding:.3rem .25rem .55rem;
  transition:.2s ease;
}
.nav-links li a:hover{
  color:var(--blue2);
  transform:translateY(-1px);
}

.nav-links li a.active{
  color:var(--blue2);
  text-shadow:0 0 16px rgba(167,220,255,.55);
}
.nav-links li a.active::after{
  content:"";
  position:absolute;
  left:-6px;
  right:-6px;
  bottom:-10px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--blue),var(--green),var(--blue2));
  box-shadow:0 0 18px rgba(87,182,255,.45),0 0 16px rgba(0,255,136,.25);
  z-index:10;
}
.nav-links li a.active::before{
  content:"▲";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:-30px;
  font-size:1.3rem;
  color:var(--blue2);
  text-shadow:0 0 14px rgba(167,220,255,.6);
  z-index:10;
}

/* theme toggle */
#themeToggle{
  justify-self:end;
  background:rgba(122,92,255,.92);
  color:#fff;
  border:1px solid rgba(255,255,255,.25);
  border-radius:12px;
  padding:.55rem .9rem;
  cursor:pointer;
  font-size:1rem;
  transition:.2s ease;
  box-shadow:0 14px 26px rgba(122,92,255,.25);
}
#themeToggle:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(122,92,255,.32);
}

/* responsive header */
@media (max-width: 980px){
  :root{--header-h:148px}

  header.top-bar{
    grid-template-columns:1fr auto;
    grid-template-rows:auto auto;
    padding:.95rem 1rem 1.3rem;
    row-gap:.8rem;
  }

  .nav-links{
    grid-column:1 / -1;
    width:100%;
  }
}

@media (max-width: 560px){
  :root{--header-h:168px}

  .logo-section{min-width:unset}
  .logo-img{height:42px;width:42px}
  .logo-text{font-size:.98rem}
  .brand-subline{font-size:.95rem}
  .nav-links{gap:.9rem;padding:.55rem .8rem}
  .nav-links li a{font-size:1rem}
}

/* hero */
.hero{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:2.2rem;
  align-items:center;
}
.hero h1{
  font-size:clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing:-.6px;
  color:var(--purple);
}
.hero .hero-lead{
  font-size:clamp(1.05rem, 1.7vw, 1.25rem);
  margin:1.15rem 0;
  line-height:1.9;
  color:var(--muted);
}
.hero-img{
  max-width:560px;
  width:100%;
  border-radius:22px;
  box-shadow:var(--shadow2);
  transition:.25s ease;
}
.hero-img:hover{transform:scale(1.02)}
.typing{
  margin-top:.55rem;
  font-weight:950;
  color:var(--blue2);
  text-shadow:0 0 18px rgba(167,220,255,.55);
  min-height:1.4em;
}

@media (max-width: 900px){
  .hero{
    grid-template-columns:1fr;
    text-align:left;
  }
}

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:1.1rem;
  padding:.9rem 1.75rem;
  border-radius:14px;
  color:#fff;
  background:linear-gradient(135deg,var(--btn),#4e9bff);
  border:1px solid rgba(255,255,255,.22);
  font-weight:950;
  font-size:1rem;
  box-shadow:0 18px 40px rgba(122,92,255,.28);
  transition:.22s ease;
}
.btn:hover{
  transform:translateY(-3px);
  box-shadow:0 24px 55px rgba(122,92,255,.35);
  filter:brightness(1.05);
}

/* titles + text */
.section-title{
  margin-bottom:1.2rem;
  font-size:clamp(1.7rem, 3vw, 2.2rem);
  color:var(--purple);
  letter-spacing:-.2px;
}
.lead{
  font-size:1.12rem;
  line-height:1.85;
  color:var(--muted);
  max-width:1000px;
}

/* cards */
.card{
  background:linear-gradient(145deg,var(--card),var(--card2));
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.6rem;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
  transition:.22s ease;
}
body.dark .card{
  box-shadow:0 18px 45px rgba(0,0,0,.55);
}
.card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow);
}
.card h3{
  color:var(--purple);
  font-weight:950;
  margin-bottom:.5rem;
}
.card p{
  color:var(--muted);
  line-height:1.85;
}
.card .meta{
  margin-top:.75rem;
  font-size:.98rem;
  color:var(--muted);
}

/* stats */
.stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(210px,1fr));
  gap:1.1rem;
  max-width:940px;
  margin:2rem auto;
  justify-content:center;
}
.stat{
  width:100%;
  background:linear-gradient(145deg,var(--card),var(--card2));
  border:1px solid var(--border);
  border-radius:18px;
  padding:1.7rem;
  text-align:center;
  box-shadow:0 12px 28px rgba(0,0,0,.08);
  transition:.22s ease;
}
.stat h3{
  font-size:2.25rem;
  font-weight:1000;
  color:var(--green);
  text-shadow:0 0 18px rgba(0,255,136,.35);
  margin-bottom:.4rem;
}
.stat p{
  color:var(--muted);
  font-weight:850;
}
.stat:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow);
}
@media (max-width: 900px){
  .stats{
    grid-template-columns:1fr;
    max-width:520px;
  }
}

/* terminal box */
.terminal-box{
  position:relative;
  padding:2rem;
  border-radius:22px;
  color:#ffffff;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  line-height:2;
  background:linear-gradient(270deg,#7a5cff,#2aa8ff,#00ff88,#7a5cff);
  background-size:600% 600%;
  animation:rgbShift 10s ease infinite;
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 25px 80px rgba(0,0,0,.4);
  overflow:hidden;
}
@keyframes rgbShift{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
.terminal-box p{
  position:relative;
  z-index:2;
  font-weight:650;
  letter-spacing:.5px;
}

/* gallery */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1.2rem;
}
.gallery-grid img{
  width:100%;
  height:100%;
  border-radius:16px;
  object-fit:cover;
  box-shadow:0 12px 32px rgba(0,0,0,.14);
  transition:.25s ease;
}
.gallery-grid img:hover{
  transform:scale(1.03);
  box-shadow:0 20px 55px rgba(0,0,0,.25);
}

/* socials */
.social-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:1.2rem;
  margin-top:1.2rem;
}
.platform-card{
  border-radius:18px;
  padding:1.35rem;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 22px 60px rgba(0,0,0,.18);
  transition:.25s ease;
}
.platform-card:hover{
  transform:translateY(-7px);
  box-shadow:0 30px 80px rgba(0,0,0,.25);
}
.platform-card::after{
  content:"";
  position:absolute;
  top:-40%;
  left:-60%;
  width:80%;
  height:180%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);
  transform:rotate(25deg);
  transition:.6s ease;
  opacity:0;
}
.platform-card:hover::after{
  left:120%;
  opacity:1;
}
.platform-header img{
  width:44px;
  height:44px;
  object-fit:contain;
  background:transparent !important;
  filter:drop-shadow(0 10px 20px rgba(0,0,0,.35));
}
.platform-name{
  font-size:1.12rem;
  font-weight:1000;
  color:#fff;
}
.platform-handle{
  color:rgba(255,255,255,.92);
  font-weight:850;
  margin-bottom:.5rem;
  position:relative;
  z-index:1;
}
.platform-why{
  color:rgba(255,255,255,.92);
  font-weight:700;
  line-height:1.55;
  margin:.35rem 0 .9rem;
  position:relative;
  z-index:1;
}
.platform-actions{
  display:flex;
  gap:.65rem;
  flex-wrap:wrap;
  position:relative;
  z-index:1;
}
.social-pill{
  padding:.62rem 1rem;
  border-radius:999px;
  font-weight:950;
  border:1px solid rgba(255,255,255,.26);
  background:rgba(0,0,0,.18);
  color:#fff;
  text-shadow:none;
  transition:.2s ease;
}
.social-pill:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.4);
}
.platform-tiktok{
  background:linear-gradient(135deg,#000,#25F4EE,#FE2C55);
}
.platform-discord{
  background:linear-gradient(135deg,#5865F2,#404EED,#23272A);
}

.platform-discord .platform-name,
.platform-discord .platform-handle,
.platform-discord .platform-why{
  color:#fff;
}

.platform-discord .social-pill{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.28);
  color:#fff;
}

.platform-discord .social-pill:hover{
  background:rgba(255,255,255,.22);
  border-color:rgba(255,255,255,.42);
}
.platform-header img{
  width:44px;
  height:44px;
  object-fit:contain;
  background:transparent !important;
  filter:drop-shadow(0 10px 20px rgba(0,0,0,.35));
}

.platform-tiktok .platform-header img{
  border-radius:0;
  background:transparent !important;
  mix-blend-mode:normal;
}
.platform-youtube{
  background:linear-gradient(135deg,#ffffff,#ff2a2a);
}
.platform-youtube .platform-name,
.platform-youtube .platform-handle,
.platform-youtube .platform-why{
  color:#111;
}
.platform-youtube .social-pill{
  background:rgba(255,255,255,.78);
  border-color:rgba(0,0,0,.14);
  color:#111;
}
.platform-youtube .social-pill:hover{
  background:rgba(255,255,255,.95);
}
.platform-twitch{
  background:linear-gradient(135deg,#9146FF,#0b0b10);
}
.platform-kick{
  background:linear-gradient(135deg,#53fc18,#0c0c0c);
}
.platform-kick .platform-name,
.platform-kick .platform-handle,
.platform-kick .platform-why{
  color:#0b0b0b;
}
.platform-kick .social-pill{
  background:rgba(255,255,255,.68);
  border-color:rgba(0,0,0,.14);
  color:#0b0b0b;
}
.platform-kick .social-pill:hover{
  background:rgba(255,255,255,.92);
}
.platform-x{
  background:linear-gradient(135deg,#000,#2c2c2c);
}

/* email grid */
.email-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:1.1rem;
  margin-top:1.2rem;
}

.email-card{
  display:flex;
  align-items:center;
  gap:1rem;
  min-width:0;
  padding:1.25rem 1.35rem;
}

.email-card img{
  width:52px;
  height:52px;
  object-fit:contain;
  flex-shrink:0;
  filter:drop-shadow(0 10px 20px rgba(0,0,0,.25));
}

.email-card .email-meta{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.25rem;
  flex:1;
  min-width:0;
}

.email-card .email-label{
  font-weight:950;
  color:var(--purple);
  font-size:1.5rem;
  line-height:1.1;
}

.email-card .email-address{
  display:flex;
  flex-wrap:wrap;
  width:100%;
  max-width:100%;
  min-width:0;
  font-weight:850;
  font-size:1.05rem;
  line-height:1.35;
  word-break:break-word;
  overflow-wrap:anywhere;
  white-space:normal;
  gap:0;
}

.email-card .email-address span{
  display:inline;
  min-width:0;
}

/* lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  display:flex;
  justify-content:center;
  align-items:center;
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
  z-index:2000;
}
.lightbox img{
  max-width:92%;
  max-height:86%;
  border-radius:14px;
  box-shadow:0 20px 60px rgba(0,0,0,.6);
  transform:scale(.92);
  transition:transform .3s ease;
}
.lightbox.active{
  opacity:1;
  pointer-events:auto;
}
.lightbox.active img{
  transform:scale(1);
}

/* footer */
footer{
  text-align:center;
  padding:2.25rem 1.25rem;
  border-top:1px solid rgba(122,92,255,.22);
  margin-top:3rem;
}
footer p{
  margin:.4rem 0;
  color:var(--muted);
}

/* fade-in base */
.fade-in{
  opacity:0;
  transform:translateY(18px);
}

img{
  max-width:100%;
  height:auto;
}
