*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #07080f;
  --bg2: #0d0f1a;
  --bg3: #12152a;
  --blue: #4f8eff;
  --purple: #9b6dff;
  --teal: #00d4aa;
  --text: #e2e8f0;
  --muted: #64748b;
  --border: rgba(255,255,255,0.07);
  --glass: rgba(255,255,255,0.04);
  --glow: rgba(79,142,255,0.15);
}

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ── */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; mix-blend-mode: difference;
}
#cursor-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: white; position: absolute;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s, opacity .15s;
}
#cursor-ring {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  position: absolute; transform: translate(-50%,-50%);
  transition: width .2s, height .2s;
}
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring { width: 56px; height: 56px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 60px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(12px);
  background: rgba(7,8,15,0);
  transition: background .4s, padding .4s;
}
nav.scrolled {
  background: rgba(7,8,15,0.85);
  padding: 14px 60px;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase; font-weight: 500;
  transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--blue);
  transition: width .3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ── HERO ── */
#hero {
  position: relative; height: 100vh; min-height: 700px;
  display: flex; align-items: center; justify-content: center;
  max-width: 100%;
  padding:0;
  margin:0;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  width: 100%;
  padding-left: 60px;
  text-align: left;
  pointer-events: none;
}
.hero-content a { pointer-events: auto; }
.hero-tag {
  display: inline-block; margin-bottom: 28px;
  padding: 6px 18px; border-radius: 100px;
  border: 1px solid rgba(79,142,255,0.35);
  background: rgba(79,142,255,0.08);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); font-weight: 600;
  opacity: 0;
}
.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 4vw, 72px);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -0.02em; margin-bottom: 16px;
  overflow: hidden;
  color: var(--text);
}
.hero-name .char {
  display: inline-block; opacity: 0;
  transform: translateY(80px) rotate(8deg);
}
.hero-name .space { display: inline-block; width: .25em; }

/* Same gradient style as .nav-logo, but applied per-char after split */
.hero-gradient { display: inline-block; }
.hero-gradient .char {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title {
  font-size: clamp(16px, 2.5vw, 22px); color: var(--muted);
  font-weight: 400; margin-bottom: 36px; opacity: 0;
}
.hero-title span { color: var(--blue); }
.hero-cta {
  display: flex; gap: 16px; justify-content: flex-start;
  flex-wrap: wrap; opacity: 0;
}
.btn {
  padding: 12px 30px; border-radius: 8px; font-size: 14px;
  font-weight: 500; cursor: none; transition: all .25s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; letter-spacing: .02em;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 0 30px rgba(79,142,255,0.35);
}
.btn-primary:hover { background: #5f9fff; box-shadow: 0 0 50px rgba(79,142,255,0.5); transform: translateY(-2px); }
.btn-outline {
  border: 1px solid var(--border); color: var(--text);
  background: var(--glass);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.scroll-hint {
  position: absolute; bottom: 36px; left: 60px; transform: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  opacity: 0;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── SECTIONS ── */
section { padding: 120px 60px; max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue); font-weight: 600; margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: ''; display: block; width: 32px; height: 1px; background: var(--blue);
}
.section-title {
  font-family: 'Syne', sans-serif; font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; line-height: 1.15; margin-bottom: 60px;
  color: var(--text);
}

/* ── ABOUT ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-text p {
  color: var(--muted); margin-bottom: 20px; font-size: 16px; line-height: 1.8;
}
.about-text p strong { color: var(--text); font-weight: 500; }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.stat-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; text-align: center;
  position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.stat-card:hover { border-color: rgba(79,142,255,0.3); transform: translateY(-4px); }
.stat-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--glow), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.stat-card:hover::before { opacity: 1; }
.stat-num {
  font-family: 'Syne', sans-serif; font-size: 42px; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ── SKILLS ── */
#skills { background: var(--bg2); max-width: 100%; padding: 120px 0; }
#skills .inner { max-width: 1100px; margin: 0 auto; padding: 0 60px; }
.skills-grid { display: flex; flex-direction: column; gap: 24px; }
.skill-row {
  display: flex; align-items: flex-start; gap: 32px;
  padding: 24px 0; border-bottom: 1px solid var(--border);
}
.skill-row:last-child { border-bottom: none; }
.skill-cat {
  min-width: 140px; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); padding-top: 4px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 6px 16px; border-radius: 100px;
  background: var(--glass); border: 1px solid var(--border);
  font-size: 13px; color: var(--text); font-weight: 400;
  transition: all .25s; opacity: 0; transform: translateY(12px);
}
.tag:hover {
  background: rgba(79,142,255,0.12);
  border-color: rgba(79,142,255,0.4);
  color: var(--blue); transform: translateY(-2px);
}
.tag.highlight {
  background: rgba(79,142,255,0.1); border-color: rgba(79,142,255,0.3);
  color: var(--blue);
}

/* ── EXPERIENCE ── */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, var(--blue), transparent);
}
.timeline-item {
  position: relative; margin-bottom: 56px;
  opacity: 0; transform: translateX(-20px);
}
.timeline-item::before {
  content: ''; position: absolute; left: -36px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 16px var(--blue);
  border: 2px solid var(--bg);
}
.timeline-period {
  font-size: 12px; color: var(--blue); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px;
}
.timeline-role {
  font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700;
  margin-bottom: 4px;
}
.timeline-company { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.timeline-desc { color: var(--muted); font-size: 14px; line-height: 1.7; }
.timeline-bullets { list-style: none; margin-top: 12px; }
.timeline-bullets li {
  color: var(--muted); font-size: 14px; padding: 4px 0 4px 20px;
  position: relative; line-height: 1.6;
}
.timeline-bullets li::before {
  content: '→'; position: absolute; left: 0; color: var(--blue); font-size: 12px;
}
.timeline-stack {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.stack-tag {
  padding: 3px 12px; border-radius: 4px; font-size: 12px;
  background: rgba(79,142,255,0.08); border: 1px solid rgba(79,142,255,0.2);
  color: var(--blue); font-weight: 500;
}

/* ── PROJECTS ── */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s;
  opacity: 0; transform: translateY(30px);
  display: flex; flex-direction: column;
}
.project-card:hover { border-color: rgba(79,142,255,0.3); transform: translateY(-6px); }
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  opacity: 0; transition: opacity .3s;
}
.project-card:hover::before { opacity: 1; }
.project-num {
  font-family: 'Syne', sans-serif; font-size: 56px; font-weight: 800;
  color: var(--border); line-height: 1; margin-bottom: 16px;
  transition: color .3s;
}
.project-card:hover .project-num { color: rgba(79,142,255,0.15); }
.project-name {
  font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700;
  margin-bottom: 8px;
}
.project-url {
  font-size: 12px; color: var(--blue); text-decoration: none;
  letter-spacing: .04em; margin-bottom: 16px; display: inline-block;
  opacity: .7; transition: opacity .2s;
}
.project-url:hover { opacity: 1; }
.project-desc { color: var(--muted); font-size: 13px; line-height: 1.7; flex: 1; }
.project-footer { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }

/* ── HOBBIES ── */
.hobbies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hobby-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 28px;
  transition: border-color .3s, transform .3s;
  opacity: 0; transform: translateY(20px);
}
.hobby-card:hover { border-color: rgba(155,109,255,0.3); transform: translateY(-4px); }
.hobby-icon { font-size: 40px; margin-bottom: 20px; display: block; }
.hobby-name {
  font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700;
  margin-bottom: 12px;
}
.hobby-desc { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ── CONTACT ── */
#contact { text-align: center; padding-bottom: 80px; }
.contact-email {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 4vw, 48px); font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; text-decoration: none;
  display: inline-block; margin: 32px 0;
  transition: opacity .2s;
}
.contact-email:hover { opacity: .8; }
.contact-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.contact-link {
  padding: 10px 24px; border-radius: 100px;
  border: 1px solid var(--border); color: var(--muted);
  text-decoration: none; font-size: 13px; font-weight: 500;
  transition: all .25s; background: var(--glass);
}
.contact-link:hover {
  border-color: var(--blue); color: var(--blue); transform: translateY(-2px);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 60px; text-align: center;
  color: var(--muted); font-size: 13px;
}

/* ── DIVIDER ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 60px;
}

/* ── REVEAL UTIL ── */
.reveal { opacity: 0; transform: translateY(30px); }

@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  section { padding: 80px 24px; }
  #skills .inner { padding: 0 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .projects-grid { grid-template-columns: 1fr; }
  .hobbies-grid { grid-template-columns: 1fr; }
  .skill-row { flex-direction: column; gap: 12px; }
  .hero-content{padding-left: 24px; padding-right: 24px;}
}
