:root{
  --bg:#0b0f13;
  --card:#0f1620;
  --glass: rgba(255,255,255,0.04);
  --accent: #2ee6c2;
  --text: #e6f3f2;
  --muted: #9aa6a8;
}
:root[data-theme="light"]{
  --bg:#f5f7fb;
  --card:#ffffff;
  --glass: rgba(10,10,10,0.03);
  --accent: #0b8cff;
  --text:#0b1220;
  --muted:#5b6b73;
}

*{box-sizing:border-box}
html,body{height:100%}
body {
  background-color: #0a0a0a; /* dark base */
  background-image: radial-gradient(#222 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed; /* stays static when scrolling */
  color: #fff;
}

/* Optional subtle animation for a slow drift */
@keyframes moveDots {
  from { background-position: 0 0; }
  to { background-position: 40px 40px; }
}

body.animated-bg {
  animation: moveDots 60s linear infinite;
}


/* NAV */
.nav{
  position:fixed;
  top:12px;
  left:0;
  right:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 32px;
  z-index:50;
}
.nav a{ color:var(--text); text-decoration:none; margin:0 12px; opacity:.9}
.logo{font-weight:700; letter-spacing:0.6px}
.theme-toggle{
  background:transparent;
  border:1px solid rgba(255,255,255,0.06);
  padding:8px 10px;
  border-radius:8px;
  cursor:pointer;
  color:var(--text);
}

/* HERO */
.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background-image: url('/images/background.png');
  background-size:cover;
  background-position:center;
  overflow:hidden;
}
.bg-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(6,8,10,0.6), rgba(0,0,0,0.75));
  mix-blend-mode:multiply;
  backdrop-filter: blur(4px);
}
.hero-inner{
  position:relative;
  z-index:3;
  text-align:center;
  padding: 120px 20px;
  max-width:1100px;
  width:100%;
}

/* Typing */
.typing{
  font-size:48px;
  margin:0 0 8px;
  display:inline-block;
  white-space:nowrap;
  overflow:hidden;
  border-right:3px solid var(--accent);
  max-width:100%;
  animation: typing 3s steps(28,end), blink .8s infinite;
}
.typing span{ color:var(--accent) }
@keyframes typing { from{width:0} to{width:100%} }
@keyframes blink {50%{border-color:transparent}}

/* Sub */
.sub{ color:var(--muted); margin:12px 0 24px; font-size:18px }

/* Cards */
.hero-cards{ display:flex; gap:20px; justify-content:center; flex-wrap:wrap; margin-top:24px }
.card{ padding:18px; border-radius:14px; min-width:260px; max-width:360px; box-shadow: 0 10px 30px rgba(2,6,10,0.6); transform: translateY(0); transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s }
.glass{
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}

/* Skills bars */
.skills{ display:flex; flex-direction:column; gap:10px; margin-top:8px }
.skill{ display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:14px }
.skill .bar{
  width:100%;
  height:10px;
  background: rgba(255,255,255,0.06);
  border-radius:999px;
  margin-left:12px;
  position:relative;
  overflow:hidden;
}
.skill .bar::after{
  content:'';
  position:absolute;
  left:0; top:0; bottom:0;
  width:var(--value, 50%);
  background: linear-gradient(90deg, var(--accent), rgba(46,230,194,0.6));
  border-radius:999px;
  transform: translateX(-10%);
  animation: fill 1s ease forwards;
}
@keyframes fill{ from{transform:translateX(-10%)} to{transform:translateX(0)} }

/* Discord card */
.discord-status{ display:flex; gap:12px; align-items:center }
.discord-status img{ width:64px; height:64px; border-radius:12px; }

/* scroll down */
.scroll-down{ display:inline-block; margin-top:18px; color:var(--muted); text-decoration:none; transform:translateY(0); transition:transform .25s }
.scroll-down:hover{ transform:translateY(6px) }

/* Sections */
.section{ padding:80px 20px; }
.container{ max-width:1100px; margin:0 auto; }

/* Cards grid */
.cards{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:18px; margin-top:24px }

/* Reveal animation */
.reveal{ opacity:0; transform: translateY(18px); transition: all .6s cubic-bezier(.2,.9,.25,1) }
.reveal.active{ opacity:1; transform: translateY(0) }

/* Contact form */
.contact-form{ display:flex; flex-direction:column; gap:12px; max-width:600px; margin:18px auto 0 }
.contact-form input, .contact-form textarea{ padding:12px; border-radius:8px; border:1px solid rgba(255,255,255,0.06); background:transparent; color:var(--text) }
.btn{ background:var(--accent); color:#062022; padding:10px 14px; border-radius:10px; border:none; cursor:pointer; font-weight:600 }

/* Footer */
footer{ text-align:center; padding:28px 8px; color:var(--muted) }

/* Responsive */
@media(max-width:800px){
  .typing{ font-size:28px }
  .nav{ padding:0 14px }
}

/* Particles canvas */
#particles{ position:fixed; inset:0; z-index:1; pointer-events:none }

.discord-widget {
  padding: 18px;
  border-radius: 14px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}

.discord-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discord-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  flex-shrink: 0;
}

.discord-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discord-username {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.discord-activity {
  font-size: 14px;
  color: var(--muted);
}
