:root{
  --bg: #12131a;
  --bg-elevated: #181a24;
  --text: #ffffff;
  --muted: #9a9eb3;
  --accent: #206dc5;
  --accent-light: #4a90e2;
  --border: rgba(154,158,179,0.2);
  --radius: 6px;
}
*{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);}
.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);}

/* 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;}

/* 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;}

/* 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%);
}
.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;
}
.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:16px;
  flex-wrap:wrap;
}
.contact-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 22px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg-elevated);
  font-weight:600;
  font-size:14px;
  transition:border-color .15s ease, color .15s ease;
}
.contact-card:hover{border-color:var(--accent-light);color:var(--accent-light);}

/* BIRTHDAY PAGE */
#confetti-canvas{
  position:fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  pointer-events:none;
  z-index:50;
  display:none;
}
.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;
}

/* SONG OF THE DAY */
.song-card{
  display:flex;
  align-items:center;
  gap:28px;
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:14px;
  padding:28px;
  max-width:520px;
  width:100%;
}
.song-cover{
  width:120px;
  height:120px;
  border-radius:10px;
  object-fit:cover;
  flex-shrink:0;
  background:var(--bg);
}
.song-info h3{font-size:20px;margin-bottom:6px;}
.song-artist{color:var(--muted);font-size:15px;margin-bottom:10px;}
.song-count{
  color:var(--accent-light);
  font-size:13px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:16px;
}
#song-state{color:var(--muted);}

/* 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-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:block;
  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;
}

@media (max-width:800px){
  .grid{grid-template-columns:1fr;}
  .hero h1{font-size:36px;}
  .nav-links{display:none;}
  .stats{gap:32px;}
}
