@font-face{
  font-family:'Manrope';
  src:url('../fonts/manrope.woff2') format('woff2');
  font-weight:500 800;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Open Sans';
  src:url('../fonts/opensans.woff2') format('woff2');
  font-weight:400 600;
  font-style:normal;
  font-display:swap;
}
:root{
  --bg: #12131a;
  --bg-elevated: #181a24;
  --text: #ffffff;
  --muted: #9a9eb3;
  --accent: #206dc5;
  --accent-light: #4a90e2;
  --border: rgba(154,158,179,0.2);
  --radius: 6px;

  --sun-core: #ffd479;
  --sun-gold: #f5a623;
  --sun-glow: rgba(245,166,35,0.4);
  --moon-core: #eef1f8;
  --moon-silver: #c7cfe0;
  --moon-glow: rgba(147,181,253,0.32);
  --star: #eef1f8;

  --rain-cloud: #a9c2f0;
  --rain-glow: rgba(122,151,214,0.45);
  --drop-color: #cddcfa;
  --snow-cloud: #ffffff;
  --snow-glow: rgba(255,255,255,0.4);
  --flake-color: #ffffff;

  --overcast-cloud: #a8adb8;
  --overcast-glow: rgba(168,173,184,0.25);
  --storm-cloud: #565c70;
  --storm-glow: rgba(86,92,112,0.5);
  --bolt-color: #ffe066;
  --bolt-glow: rgba(255,224,102,0.55);
  --wind-cloud: #c3cad6;
  --wind-glow: rgba(195,202,214,0.3);
  --wind-icon: #d7dee8;
}
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Open Sans', sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.brand{
  font-family:'Manrope', sans-serif;
  font-weight:800;
  letter-spacing:-0.02em;
}
a{color:inherit;text-decoration:none;}
.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:0 24px;
}
/* NAV */
header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(18,19,26,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
}
.brand{font-size:20px;color:var(--text);}
.brand span{color:var(--accent-light);}
.nav-links{
  display:flex;
  gap:32px;
  font-size:14px;
  font-weight:600;
  color:var(--muted);
}
.nav-links a:hover{color:var(--text);}
.nav-links a.active{color:var(--text);}
.nav-toggle{
  display:none;
  background:none;
  border:none;
  color:var(--text);
  font-size:22px;
  line-height:1;
  cursor:pointer;
  padding:4px 8px;
}
.mobile-menu{
  display:none;
  flex-direction:column;
  gap:4px;
  padding:8px 0 20px;
  border-top:1px solid var(--border);
}
.mobile-menu a{
  padding:12px 10px;
  font-size:15px;
  font-weight:600;
  color:var(--muted);
  border-radius:6px;
}
.mobile-menu a:hover,
.mobile-menu a.active{
  color:var(--text);
  background:var(--bg-elevated);
}
.mobile-menu.open{display:flex;}
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 20px;
  border-radius:var(--radius);
  font-weight:600;
  font-size:14px;
  border:1px solid transparent;
  cursor:pointer;
  transition:all .15s ease;
}
.btn-primary{background:var(--accent);color:#fff;}
.btn-primary:hover{background:var(--accent-light);}
.btn-outline{background:transparent;color:var(--text);border-color:var(--border);}
.btn-outline:hover{border-color:var(--accent-light);color:var(--accent-light);}

/* FOOTER */
footer{padding:56px 0 40px;}
.footer-top{
  display:flex;
  justify-content:space-between;
  gap:40px;
  flex-wrap:wrap;
  padding-bottom:40px;
  border-bottom:1px solid var(--border);
  margin-bottom:24px;
}
.footer-brand{
  max-width:280px;
}
.footer-tagline{
  color:var(--muted);
  font-size:14px;
  margin-top:12px;
}
.footer-cols{
  display:flex;
  gap:64px;
  flex-wrap:wrap;
}
.footer-col h4{
  font-family:'Manrope', sans-serif;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  margin-bottom:16px;
}
.footer-col a{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  color:var(--text);
  margin-bottom:10px;
}
.footer-col a:hover{color:var(--accent-light);}
.copyright{
  color:var(--muted);
  font-size:13px;
  text-align:center;
}
.made-by{
  color:var(--muted);
  font-size:13px;
  text-align:center;
  margin-top:6px;
}
.made-by .bi-heart-fill{
  color:#e5484d;
  display:inline-block;
  animation:heart-pulse 1.2s ease-in-out infinite;
}
@keyframes heart-pulse{
  0%,100%{transform:scale(1);}
  50%{transform:scale(1.25);}
}
/* HERO (Home) */
.hero{
  padding:100px 0 80px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  top:-200px;
  left:50%;
  transform:translateX(-50%);
  width:900px;
  height:500px;
  background:radial-gradient(closest-side, rgba(32,109,197,0.25), transparent);
  z-index:0;
}
.hero-inner{position:relative;z-index:1;}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 14px;
  border-radius:20px;
  border:1px solid var(--border);
  color:var(--muted);
  font-size:13px;
  font-weight:600;
  margin-bottom:24px;
}
.eyebrow .dot{width:6px;height:6px;border-radius:50%;background:#3ddc84;}
.hero h1{
  font-size:52px;
  line-height:1.1;
  margin-bottom:20px;
}
.hero h1 .accent{color:var(--accent-light);}
.hero p.lead{
  max-width:600px;
  margin:0 auto 36px;
  color:var(--muted);
  font-size:18px;
}
.hero-actions{
  display:flex;
  gap:16px;
  justify-content:center;
  margin-bottom:64px;
}
.stats{
  display:flex;
  justify-content:center;
  gap:64px;
  flex-wrap:wrap;
}
.stat b{
  display:block;
  font-family:'Manrope', sans-serif;
  font-size:28px;
  font-weight:800;
}
.stat span{color:var(--muted);font-size:13px;text-transform:uppercase;letter-spacing:.05em;}
.stat-live-dot{
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#3ddc84;
  margin-right:6px;
  animation:live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse{
  0%,100%{opacity:1;}
  50%{opacity:.35;}
}

/* PAGE HEADER (sub-pages) */
.page-header{
  padding:72px 0 48px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.page-header::before{
  content:"";
  position:absolute;
  top:-220px;
  left:50%;
  transform:translateX(-50%);
  width:700px;
  height:400px;
  background:radial-gradient(closest-side, rgba(32,109,197,0.2), transparent);
  z-index:0;
}
.page-header-inner{position:relative;z-index:1;}
.page-header h1{font-size:38px;margin-bottom:14px;}
.page-header p{color:var(--muted);font-size:16px;max-width:520px;margin:0 auto;}
.tracking-since{color:var(--muted);font-size:13px;max-width:520px;margin:10px auto 0;opacity:.75;}

/* SECTION TAG */
section{padding:88px 0;}
.section-tag{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:16px;
}
.tag-icon{
  width:28px;height:28px;
  display:flex;align-items:center;justify-content:center;
  border-radius:4px;
  border:1px solid var(--border);
  background:radial-gradient(64.12% 64.12%, rgba(154,158,179,0.2) 0%, rgba(154,158,179,0) 100%);
  animation:tag-icon-glow 3s ease-in-out infinite;
}
@keyframes tag-icon-glow{
  0%{box-shadow:0 0 0 0 rgba(255,255,255,0);}
  50%{box-shadow:0 0 14px 4px rgba(255,255,255,0.55);}
  100%{box-shadow:0 0 0 0 rgba(255,255,255,0);}
}
.section-header{
  max-width:560px;
  margin-bottom:48px;
}
.section-header h2{font-size:34px;margin-bottom:14px;}
.section-header p{color:var(--muted);font-size:16px;}

/* GRID / CARDS */
.grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.live-stats-section{
  background:var(--bg-elevated);
}
.stat-row{
  display:flex;
  align-items:stretch;
  justify-content:center;
  flex-wrap:wrap;
  gap:16px;
  max-width:1060px;
  margin:0 auto;
}
.stat-row-item{
  display:flex;
  align-items:center;
  gap:14px;
  width:240px;
  padding:16px 24px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--bg);
  transition:border-color .15s ease, transform .15s ease;
}
.stat-row-item:hover{border-color:var(--accent-light);transform:translateY(-2px);}
.stat-row-item i{
  width:48px;
  height:48px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  color:var(--accent-light);
  border-radius:50%;
  background:radial-gradient(64.12% 64.12%, rgba(32,109,197,0.3) 0%, rgba(32,109,197,0) 100%);
}
.stat-row-item h3{
  font-family:'Manrope', sans-serif;
  font-size:26px;
  font-weight:800;
  margin-bottom:2px;
}
.stat-row-item p{color:var(--muted);font-size:13px;white-space:nowrap;}
.card{
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:10px;
  padding:28px;
  transition:border-color .15s ease, transform .15s ease;
}
.card:hover{border-color:var(--accent-light);transform:translateY(-2px);}
.card .icon{
  width:44px;height:44px;
  border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  font-size:20px;
  background:radial-gradient(64.12% 64.12%, rgba(32,109,197,0.35) 0%, rgba(32,109,197,0) 100%);
  border:1px solid var(--border);
  margin-bottom:18px;
}
.card h3{font-size:17px;margin-bottom:10px;}
.card p{color:var(--muted);font-size:14px;}

/* PROJECT CARDS */
.project-card .tech-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:16px 0;
}
.project-card .tech-tags span{
  font-size:12px;
  font-weight:600;
  color:var(--muted);
  border:1px solid var(--border);
  border-radius:20px;
  padding:4px 10px;
}
.project-card .project-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  font-weight:600;
  color:var(--accent-light);
}

/* CONTACT */
.contact-section{
  text-align:center;
}
.contact-section .section-header{margin:0 auto 40px;text-align:center;}
.contact-links{
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
}
.contact-tile{
  display:flex;
  align-items:center;
  gap:16px;
  width:280px;
  padding:20px 24px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--bg-elevated);
  text-align:left;
  transition:border-color .15s ease, transform .15s ease;
}
.contact-tile:hover{border-color:var(--accent-light);transform:translateY(-2px);}
.contact-tile-icon{
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  background:radial-gradient(64.12% 64.12%, rgba(32,109,197,0.35) 0%, rgba(32,109,197,0) 100%);
  border:1px solid var(--border);
  flex-shrink:0;
}
.contact-tile-info h3{font-size:16px;margin-bottom:4px;}
.contact-tile-info p{color:var(--muted);font-size:13px;}
.discord-avatar-wrap{position:relative;flex-shrink:0;}
.discord-avatar{
  width:56px;
  height:56px;
  border-radius:50%;
  object-fit:cover;
  background:var(--bg);
}
.discord-status-cutout{
  position:absolute;
  bottom:2px;
  right:2px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--bg-elevated);
}
.discord-status-dot{
  position:absolute;
  bottom:5px;
  right:5px;
  width:12px;
  height:12px;
  border-radius:50%;
}
.discord-status-dot.online{background:#23a55a;}
.discord-status-dot.idle{background:#f0b232;}
.discord-status-dot.dnd{background:#f23f43;}
.discord-status-dot.offline{background:#80848e;}

/* STAT CAROUSEL (mobile) */
.stat-carousel-progress{display:none;}
.stat-carousel-controls{display:none;}

@media (max-width:900px){
  .grid{grid-template-columns:1fr;}
  .hero h1{font-size:36px;}
  .nav-links{display:none;}
  .stats{gap:32px;}
  .nav-toggle{display:block;}
  nav > .btn-primary{display:none;}
  .stat-row{flex-direction:column;gap:20px;align-items:center;}
  .stat-row-item{width:100%;max-width:280px;}

  .stat-carousel{justify-content:center;touch-action:pan-y;}
  .stat-carousel > *:not(.active){display:none;}
  .stat-carousel > .active{
    animation:stat-carousel-in .5s ease;
  }

  .stat-carousel-controls{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    margin-top:20px;
  }
  .stat-carousel-arrow{
    display:flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    flex-shrink:0;
    border-radius:50%;
    border:1px solid var(--border);
    background:none;
    color:var(--text);
    font-size:14px;
    cursor:pointer;
    transition:border-color .15s ease, opacity .15s ease;
  }
  .stat-carousel-arrow:hover:not(:disabled){border-color:var(--accent-light);}
  .stat-carousel-arrow:disabled{opacity:.3;cursor:default;}

  .stat-carousel-progress{
    display:block;
    width:120px;
    height:3px;
    border-radius:2px;
    background:var(--border);
    overflow:hidden;
    position:relative;
  }
  .stat-carousel-progress::after{
    content:"";
    position:absolute;
    inset:0;
    left:0;
    width:0%;
    background:var(--muted);
  }
  .stat-carousel-progress.running::after{
    animation:stat-carousel-fill 4s linear forwards;
  }
}
@keyframes stat-carousel-in{
  from{opacity:0;transform:translateX(14px);}
  to{opacity:1;transform:translateX(0);}
}
@keyframes stat-carousel-fill{
  from{width:0%;}
  to{width:100%;}
}
/* WEATHER EFFECTS (confetti/rain/snow canvases + sun/moon/cloud corner widget) */
#confetti-canvas{
  position:fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  pointer-events:none;
  z-index:50;
  display:none;
}
#rain-canvas{
  position:fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  pointer-events:none;
  z-index:40;
  display:none;
}
.sun-moon-wrap{
  position:relative;
  width:38px;
  height:38px;
  flex-shrink:0;
  margin:36px 0 8px 14px;
  pointer-events:none;
}
.sun-moon-orb{
  position:absolute;
  inset:0;
  border-radius:50%;
  transition:background .6s ease, box-shadow .6s ease, opacity .6s ease, transform .6s ease;
}
.sun-moon-day{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .6s ease, transform .6s ease;
}
.sun-moon-day .disk{fill:var(--sun-gold);filter:drop-shadow(0 0 6px var(--sun-glow));}
.sun-moon-day .ray{
  stroke:var(--sun-gold);
  stroke-width:1.6;
  stroke-linecap:round;
  opacity:.55;
  animation:sun-moon-ray-shine 6s ease-out infinite;
  animation-delay:calc(var(--i) * 0.75s);
}
@keyframes sun-moon-ray-shine{
  0%{opacity:1;stroke:var(--sun-core);filter:drop-shadow(0 0 3px var(--sun-core));}
  18%{opacity:.55;stroke:var(--sun-gold);filter:none;}
  100%{opacity:.55;stroke:var(--sun-gold);filter:none;}
}
.sun-moon-stars{position:absolute;inset:-6px;opacity:0;}
.sun-moon-stars i{
  position:absolute;
  width:2px;height:2px;
  background:var(--star);
  border-radius:50%;
  animation:sun-moon-twinkle 3.2s ease-in-out infinite;
}
.sun-moon-stars i:nth-child(1){top:1px;left:0;animation-delay:.2s;}
.sun-moon-stars i:nth-child(2){top:9px;left:33px;animation-delay:1.1s;}
.sun-moon-stars i:nth-child(3){top:30px;left:3px;animation-delay:.6s;}
.sun-moon-stars i:nth-child(4){top:37px;left:40px;animation-delay:1.8s;}
.sun-moon-stars i:nth-child(5){top:20px;left:50px;animation-delay:.9s;}

.sun-moon-wrap[data-mode="day"] .sun-moon-day{opacity:1;}
.sun-moon-wrap[data-mode="cloudy"] .sun-moon-day{
  opacity:.9;
  transform:translate(-22%,-34%) scale(0.8);
}
.sun-moon-wrap[data-mode="cloudy"] .sun-moon-day .ray{animation:none;opacity:.7;}
.sun-moon-wrap[data-mode="night"] .sun-moon-orb{
  background:radial-gradient(circle at 32% 30%, var(--moon-core), var(--moon-silver) 75%);
  box-shadow:0 0 13px 2px var(--moon-glow);
  -webkit-mask:radial-gradient(circle at 62% 38%, transparent 40%, #000 41%);
  mask:radial-gradient(circle at 62% 38%, transparent 40%, #000 41%);
}
.sun-moon-wrap[data-mode="night"] .sun-moon-stars{opacity:1;}

.sun-moon-cloud{position:absolute;inset:0;opacity:0;transition:opacity .5s ease;filter:drop-shadow(0 2px 3px rgba(5,6,10,0.5));}
.sun-moon-cloud-shape{position:absolute;}
.sun-moon-cloud-body{
  width:88%;height:38%;left:6%;top:44%;
  border-radius:50% 50% 35% 35% / 100% 100% 45% 45%;
}
.sun-moon-cloud-bump-l{width:42%;height:42%;left:2%;top:22%;border-radius:50%;}
.sun-moon-cloud-bump-m{width:64%;height:64%;left:20%;top:-6%;border-radius:50%;}
.sun-moon-cloud-bump-r{width:46%;height:46%;left:52%;top:16%;border-radius:50%;}

.sun-moon-wrap[data-mode="rain"] .sun-moon-cloud{opacity:1;}
.sun-moon-wrap[data-mode="snow"] .sun-moon-cloud{opacity:1;}
.sun-moon-wrap[data-mode="cloudy"] .sun-moon-cloud{opacity:1;}
.sun-moon-wrap[data-mode="storm"] .sun-moon-cloud{opacity:1;}
.sun-moon-wrap[data-mode="windy"] .sun-moon-cloud{opacity:1;}
.sun-moon-wrap[data-mode="rain"] .sun-moon-cloud-shape{background:var(--rain-cloud);}
.sun-moon-wrap[data-mode="snow"] .sun-moon-cloud-shape{background:var(--snow-cloud);}
.sun-moon-wrap[data-mode="cloudy"] .sun-moon-cloud-shape{background:var(--overcast-cloud);}
.sun-moon-wrap[data-mode="storm"] .sun-moon-cloud-shape{background:var(--storm-cloud);}
.sun-moon-wrap[data-mode="windy"] .sun-moon-cloud-shape{background:var(--wind-cloud);}
.sun-moon-wrap[data-mode="rain"] .sun-moon-cloud-body{box-shadow:0 0 11px 2px var(--rain-glow);}
.sun-moon-wrap[data-mode="snow"] .sun-moon-cloud-body{box-shadow:0 0 11px 2px var(--snow-glow);}
.sun-moon-wrap[data-mode="cloudy"] .sun-moon-cloud-body{box-shadow:0 0 10px 1px var(--overcast-glow);}
.sun-moon-wrap[data-mode="storm"] .sun-moon-cloud-body{box-shadow:0 0 11px 2px var(--storm-glow);}
.sun-moon-wrap[data-mode="windy"] .sun-moon-cloud-body{box-shadow:0 0 10px 1px var(--wind-glow);}

.sun-moon-wrap[data-mode="cloudy"] .sun-moon-cloud-shape,
.sun-moon-wrap[data-mode="storm"] .sun-moon-cloud-shape,
.sun-moon-wrap[data-mode="windy"] .sun-moon-cloud-shape{
  animation:sun-moon-cloud-brighten 3.5s ease-in-out infinite;
}

.sun-moon-bolt-wrap{position:absolute;inset:0;opacity:0;transition:opacity .5s ease;}
.sun-moon-wrap[data-mode="storm"] .sun-moon-bolt-wrap{opacity:1;}
.sun-moon-bolt{
  position:absolute;
  top:58%;
  left:40%;
  width:20%;
  height:38%;
  background:var(--bolt-color);
  clip-path:polygon(55% 0%, 15% 55%, 42% 55%, 30% 100%, 85% 42%, 50% 42%);
  filter:drop-shadow(0 0 4px var(--bolt-glow));
  animation:sun-moon-bolt-flash 2.6s ease-in-out infinite;
}

.sun-moon-wind{
  position:absolute;
  bottom:-6%;
  right:-10%;
  font-size:14px;
  color:var(--wind-icon);
  opacity:0;
  filter:drop-shadow(0 0 4px var(--wind-glow));
}
.sun-moon-wrap[data-mode="windy"] .sun-moon-wind{animation:sun-moon-wind-gust 2s ease-in-out infinite;}

.sun-moon-drops, .sun-moon-flakes{position:absolute;top:80%;left:14%;width:72%;height:18%;opacity:0;}
.sun-moon-drops i{
  position:absolute;width:2px;height:9px;border-radius:2px;
  background:var(--drop-color);
  animation:sun-moon-drop-fall 1.3s ease-in infinite;
}
.sun-moon-drops i:nth-child(1){left:14%;animation-delay:0s;}
.sun-moon-drops i:nth-child(2){left:46%;animation-delay:.45s;}
.sun-moon-drops i:nth-child(3){left:76%;animation-delay:.9s;}
.sun-moon-wrap[data-mode="rain"] .sun-moon-drops{opacity:1;}

.sun-moon-flakes i{
  position:absolute;width:3px;height:3px;border-radius:50%;
  background:var(--flake-color);
  animation:sun-moon-flake-fall 2.1s ease-in-out infinite;
}
.sun-moon-flakes i:nth-child(1){left:12%;animation-delay:0s;}
.sun-moon-flakes i:nth-child(2){left:44%;animation-delay:.7s;}
.sun-moon-flakes i:nth-child(3){left:76%;animation-delay:1.4s;}
.sun-moon-wrap[data-mode="snow"] .sun-moon-flakes{opacity:1;}

@keyframes sun-moon-twinkle{0%,100%{opacity:.25;}50%{opacity:1;}}
@keyframes sun-moon-drop-fall{
  0%{transform:translateY(0);opacity:0;}
  15%{opacity:.85;}
  80%{opacity:.35;}
  100%{transform:translateY(15px);opacity:0;}
}
@keyframes sun-moon-flake-fall{
  0%{transform:translate(0,0);opacity:0;}
  20%{opacity:.9;}
  100%{transform:translate(5px,17px);opacity:0;}
}
@keyframes sun-moon-cloud-brighten{
  0%,100%{filter:brightness(1);}
  50%{filter:brightness(1.35);}
}
@keyframes sun-moon-bolt-flash{
  0%,100%{opacity:0;}
  3%{opacity:1;}
  7%{opacity:.15;}
  11%{opacity:1;}
  16%{opacity:0;}
}
@keyframes sun-moon-wind-gust{
  0%{transform:translateX(0) scale(1);opacity:0;}
  25%{opacity:1;}
  70%{transform:translateX(9px) scale(1.08);opacity:1;}
  100%{transform:translateX(15px) scale(1.08);opacity:0;}
}

@media (prefers-reduced-motion: reduce){
  .sun-moon-day .ray{animation:none;opacity:.85;}
  .sun-moon-stars i{animation:none;opacity:.7;}
  .sun-moon-drops i, .sun-moon-flakes i{animation:none;opacity:.7;}
  .sun-moon-cloud-shape{animation:none;}
  .sun-moon-bolt{animation:none;opacity:.9;}
  .sun-moon-wrap[data-mode="windy"] .sun-moon-wind{animation:none;opacity:.8;}
}

#snow-canvas{
  position:fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  pointer-events:none;
  z-index:40;
  display:none;
}
/* BIRTHDAY PAGE */
.birthday-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:48px;
}
.progress-circle-wrap{
  position:relative;
  width:220px;
  height:220px;
}
.progress-ring{
  width:220px;
  height:220px;
  transform:rotate(-90deg);
}
.progress-ring-bg{
  fill:none;
  stroke:var(--border);
  stroke-width:12;
}
.progress-ring-fg{
  fill:none;
  stroke:var(--accent-light);
  stroke-width:12;
  stroke-linecap:round;
  transition:stroke-dashoffset .5s ease;
}
.progress-circle-center{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.progress-circle-center b{
  font-family:'Manrope', sans-serif;
  font-size:48px;
  font-weight:800;
}
.progress-circle-center span{
  color:var(--muted);
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.countdown-grid{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  justify-content:center;
}
.countdown-box{
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:10px;
  padding:20px 24px;
  text-align:center;
  min-width:90px;
}
.countdown-box b{
  display:block;
  font-family:'Manrope', sans-serif;
  font-size:32px;
  font-weight:800;
}
.countdown-box span{
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.05em;
}

/* STATUS PAGE */
.status-banner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:16px 24px;
  border-radius:10px;
  font-weight:700;
  font-size:16px;
  margin-bottom:40px;
  border:1px solid var(--border);
}
.status-banner.up{
  background:rgba(34,197,94,0.1);
  border-color:rgba(34,197,94,0.35);
  color:#22c55e;
}
.status-banner.down{
  background:rgba(242,63,67,0.1);
  border-color:rgba(242,63,67,0.35);
  color:#f23f43;
}

.status-group{margin-bottom:16px;}
.status-group:last-child{margin-bottom:0;}
.status-group-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  gap:12px;
  padding:16px 20px;
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:10px;
  cursor:pointer;
  font-family:inherit;
  text-align:left;
  transition:border-color .15s ease;
}
.status-group-header:hover{border-color:var(--accent-light);}
.status-group-title{
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--text);
}
.status-group-chevron{
  color:var(--muted);
  font-size:14px;
  transition:transform .2s ease;
  flex-shrink:0;
}
.status-group-header.open .status-group-chevron{transform:rotate(180deg);}
.status-group-body{
  padding-top:16px;
}

.status-monitor-card{
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:10px;
  padding:18px 20px;
  margin-bottom:12px;
}
.status-monitor-card:last-child{margin-bottom:0;}
.status-monitor-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:28px;
}
.status-monitor-name{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
  font-size:15px;
}
.status-tag{
  display:inline-block;
  padding:2px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  color:#fff;
  line-height:1.6;
}
.status-monitor-right{
  display:flex;
  align-items:center;
  gap:16px;
  flex-shrink:0;
}
.status-indicator{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
}
.status-indicator-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  flex-shrink:0;
}
.status-indicator-dot.pulse{
  animation:live-pulse 2s ease-in-out infinite;
}
.status-uptime{
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
}
.status-uptime-period{color:var(--muted);}
.status-since{color:var(--muted);font-weight:400;}
.status-banner-since{font-weight:600;opacity:.85;}

.status-heartbeat-bar{
  display:flex;
  align-items:stretch;
  gap:3px;
  height:34px;
}
.status-beat-wrap{
  position:relative;
  flex:1;
  min-width:3px;
  display:flex;
}
.status-beat{
  flex:1;
  border-radius:2px;
  transition:opacity .15s ease;
}
.status-beat-wrap:hover .status-beat{opacity:.7;}
.status-beat-tip{
  position:absolute;
  bottom:calc(100% + 6px);
  left:50%;
  transform:translateX(-50%);
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:8px;
  padding:5px 9px;
  font-size:11px;
  line-height:1.2;
  white-space:nowrap;
  color:var(--text);
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease;
  z-index:10;
  box-shadow:0 4px 12px rgba(0,0,0,0.35);
}
.status-beat-tip-status{color:var(--muted);}
.status-beat-wrap:hover .status-beat-tip{opacity:1;}

.status-monitor-bottom{
  display:flex;
  justify-content:space-between;
  margin-top:8px;
  font-size:12px;
  color:var(--muted);
}

@media(max-width:640px){
  .status-monitor-top{flex-wrap:wrap;}
  .status-monitor-name{font-size:14px;flex-wrap:wrap;}
  .status-monitor-right{gap:12px;}
  .status-heartbeat-bar{height:28px;}
}

/* PROJECT DETAIL */
.back-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:14px;
  font-weight:600;
  margin-bottom:24px;
  transition:color .15s ease;
}
.back-link:hover{color:var(--text);}

.project-detail-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:40px;
  align-items:start;
}
.project-detail-main h2{font-size:22px;margin-bottom:14px;}
.project-detail-main p{color:var(--muted);font-size:15px;margin-bottom:24px;}
.project-detail-features{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.project-detail-features li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  color:var(--muted);
  font-size:15px;
}
.project-detail-features i{
  color:var(--accent-light);
  font-size:16px;
  margin-top:2px;
  flex-shrink:0;
}

.project-detail-card{
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:14px;
  padding:28px;
}
.project-detail-card h4{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  margin-bottom:14px;
}
.project-detail-card h4:not(:first-child){margin-top:24px;}
.project-status-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:600;
  color:var(--text);
}
.project-status-dot{
  width:8px;height:8px;
  border-radius:50%;
  background:#22c55e;
  animation:live-pulse 2s ease-in-out infinite;
}
.project-detail-card .tech-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.project-detail-card .tech-tags span{
  font-size:12px;
  font-weight:600;
  color:var(--muted);
  border:1px solid var(--border);
  border-radius:20px;
  padding:4px 10px;
}
.project-detail-card .btn{
  width:100%;
  justify-content:center;
  margin-top:24px;
}

@media(max-width:800px){
  .project-detail-grid{grid-template-columns:1fr;}
}

/* COOKIE BANNER */
.cookie-banner{
  position:fixed;
  left:24px;
  right:24px;
  bottom:24px;
  max-width:640px;
  margin:0 auto;
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:14px;
  padding:20px 24px;
  box-shadow:0 8px 30px rgba(0,0,0,0.4);
  z-index:100;
}
.cookie-banner p{
  color:var(--muted);
  font-size:14px;
  margin-bottom:16px;
}
.cookie-banner-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}
@media(max-width:640px){
  .cookie-banner{left:12px;right:12px;bottom:12px;padding:16px 18px;}
  .cookie-banner-actions{justify-content:stretch;}
  .cookie-banner-actions .btn{flex:1;justify-content:center;}
}

/* LIEBLINGSSONGS */
.range-tabs{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-bottom:32px;
}
.range-tab{
  padding:9px 18px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--bg-elevated);
  color:var(--muted);
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  font-family:inherit;
  transition:border-color .15s ease,color .15s ease,background .15s ease;
}
.range-tab:hover{border-color:var(--accent-light);color:var(--text);}
.range-tab.active{background:var(--accent);border-color:var(--accent);color:#fff;}

.now-playing-card{
  display:flex;
  align-items:center;
  gap:20px;
  background:var(--bg-elevated);
  border:1px solid var(--accent-light);
  border-radius:14px;
  padding:18px 24px;
  max-width:560px;
  width:100%;
  margin:0 auto 32px;
}
.now-playing-cover{
  width:64px;
  height:64px;
  border-radius:8px;
  object-fit:cover;
  flex-shrink:0;
  background:var(--bg);
}
.now-playing-info{flex:1;min-width:0;}
.now-playing-label{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--accent-light);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:4px;
}
.now-playing-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#22c55e;
  flex-shrink:0;
}
.now-playing-dot.pulse{animation:pulse-dot 1.5s ease-in-out infinite;}
@keyframes pulse-dot{
  0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,0.5);}
  50%{box-shadow:0 0 0 6px rgba(34,197,94,0);}
}
.now-playing-title{font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.now-playing-artist{color:var(--muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.now-playing-card a{color:var(--muted);font-size:20px;flex-shrink:0;}
.now-playing-card a:hover{color:var(--accent-light);}

.song-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-width:640px;
  width:100%;
  margin:0 auto;
}
.song-row{
  display:flex;
  align-items:center;
  gap:16px;
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 18px;
  text-decoration:none;
  color:var(--text);
  transition:border-color .15s ease,transform .15s ease;
}
.song-row:hover{border-color:var(--accent-light);transform:translateY(-1px);}
.song-row-rank{
  width:24px;
  flex-shrink:0;
  text-align:center;
  color:var(--muted);
  font-size:14px;
  font-weight:700;
}
.song-row-cover{
  width:48px;
  height:48px;
  border-radius:6px;
  object-fit:cover;
  flex-shrink:0;
  background:var(--bg);
}
.song-row-info{flex:1;min-width:0;}
.song-row-title{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.song-row-artist{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.song-row-count{
  flex-shrink:0;
  color:var(--accent-light);
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}
#music-state{color:var(--muted);text-align:center;}

@media(max-width:640px){
  .now-playing-card{padding:14px 18px;gap:14px;}
  .now-playing-cover{width:52px;height:52px;}
  .song-row{padding:10px 14px;gap:12px;}
  .song-row-cover{width:40px;height:40px;}
}
