
:root {
  --bg: #0d0d10;
  --bg-2: #131318;
  --bg-3: #1a1a22;
  --accent: #9fccff;
  --accent-dim: rgba(120, 217, 255, 0.12);
  --accent-hover: #6eb2ff;
  --text: #f0f0f0;
  --text-muted: #888898;
  --text-dim: #4a4a5a;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(120, 212, 255, 0.25);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 0 40px rgba(120, 192, 255, 0.15);
  --nav-h: 72px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: none; border: none; background: none; }

/* cursor */
.cursor {
  width: 36px; height: 36px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.05s ease;
}
.cursor.hovering { width: 64px; height: 64px; opacity: 0.7; }

@media (max-width: 768px) {
  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
}

/* scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }


.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.accent { color: var(--accent); }
.accent-text { color: var(--accent); }

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 48px;
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/*  buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: var(--accent);
  color: #0d0d10;
  font-weight: 700;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-accent); }

.btn-ghost {
  border: 1.5px solid var(--border-accent);
  color: var(--accent);
  background: transparent;
}
.btn-ghost:hover { background: var(--accent-dim); transform: translateY(-2px); }

.btn-full { width: 100%; justify-content: center; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: transparent;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(13,13,16,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* home */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--nav-h) 40px 0;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #78c8ff, #3b82f6);
  top: -200px; right: -100px;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #78c8ff, #3b82f6);
  bottom: -100px; left: -100px;
  animation-delay: -4s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-greeting {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.name-outline {
  -webkit-text-stroke: 2px var(--text);
  color: transparent;
}

.hero-role {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-family: var(--font-body);
}
.role-prefix { color: var(--text-muted); }
.typewriter {
  color: var(--accent);
  font-weight: 500;
}
.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* HERO VISUAL */
.hero-visual { display: flex; justify-content: center; align-items: center; }

.avatar-wrap {
  position: relative;
  width: 340px; height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring {
  position: absolute; inset: -20px;
  border-radius: 50%;
  border: 1.5px dashed rgba(120, 248, 255, 0.3);
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar-img {
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 2px solid var(--border-accent);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
}
.avatar-svg { width: 100%; height: 100%; }

.float-badge {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: floatBadge 4s ease-in-out infinite;
}
.float-badge i { color: var(--accent); margin-right: 6px; }
.badge-1 { top: 20px; right: -20px; animation-delay: 0s; }
.badge-2 { bottom: 50px; right: -30px; animation-delay: -1.5s; }
.badge-3 { bottom: 20px; left: -20px; animation-delay: -3s; }
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}


.scroll-hint {
  position: absolute;
  bottom: 32px; right: 40px;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  z-index: 0;
  pointer-events: none;
}
.scroll-line {
  width: 60px; height: 1px;
  background: var(--text-dim);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%; top: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scanLine 2s ease-in-out infinite;
}
@keyframes scanLine {
  0% { left: -100%; }
  100% { left: 100%; }
}




/* ─── FOOTER ─── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}
.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ─── BACK TO TOP ─── */
.back-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: var(--accent);
  color: #0d0d10;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 500;
}
.back-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { background: var(--accent-hover); transform: translateY(-3px); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-visual { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { flex-direction: column; grid-column: span 1; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background: rgba(13,13,16,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border);
    z-index: 1050;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1.1rem; }
  .hamburger { display: flex; }
  .hero { padding: 80px 20px 40px; }
  .section { padding: 72px 0; }
  .container { padding: 0 20px; }
  .scroll-hint { display: none; }
  .avatar-wrap { width: 260px; height: 260px; }
  .avatar-img { width: 200px; height: 200px; }
  .skills-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .float-badge { display: none; }
  .about-info { gap: 10px; }
}