:root {
  --bg:       #0a0e0f;
  --surface:  #111618;
  --border:   #1e2d2f;
  --accent:   #00e5a0;
  --accent2:  #00b8ff;
  --text:     #e8f4f0;
  --muted:    #5a7a74;
  --mono:     'Space Mono', monospace;
  --sans:     'Syne', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  cursor: none;
}

/* ─── CURSOR ─── */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .1s, width .2s, height .2s, background .2s;
}
.cursor.big {
  width: 40px; height: 40px;
  background: transparent;
  border: 2px solid var(--accent);
}

/* ─── GRID OVERLAY ─── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,160,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,160,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 3rem;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  background: rgba(10,14,15,.7);
}
.nav-logo {
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--accent);
  letter-spacing: .1em;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .08em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 3rem 5rem;
  overflow: hidden;
}

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.hero-bg-circle.c1 {
  width: 500px; height: 500px;
  background: var(--accent);
  top: -100px; right: -100px;
}
.hero-bg-circle.c2 {
  width: 300px; height: 300px;
  background: var(--accent2);
  bottom: 50px; left: 10%;
  animation-delay: -4s;
}
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
}

.hero-tag {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp .6s .2s forwards;
}

.hero-name {
  font-size: clamp(2.8rem, 10vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .7s .4s forwards;
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero-name .accent { color: var(--accent); }

.hero-desc {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp .7s .6s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .7s .8s forwards;
}

/* ─── BUTTONS ─── */
.btn {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  display: inline-block;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,229,160,.35);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 3rem;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .12em;
  display: flex; align-items: center; gap: .6rem;
  opacity: 0;
  animation: fadeUp .6s 1.2s forwards;
}
.scroll-hint::before {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--muted));
}

/* ─── SECTIONS ─── */
section { position: relative; z-index: 1; padding: 6rem 3rem; }
.section-label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 3rem;
}

/* ─── ABOUT ─── */
#about { max-width: 1100px; margin: 0 auto; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

.about-text p {
  font-family: var(--mono);
  font-size: .9rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 1rem;
}
.about-text p strong { color: var(--text); }

.skills-list {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: 1.5rem;
}
.skill-tag {
  font-family: var(--mono);
  font-size: .72rem;
  padding: .4rem .9rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  letter-spacing: .08em;
  transition: border-color .2s, color .2s;
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent); }

.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.stat-card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 6px;
  background: var(--surface);
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.stat-card::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s;
}
.stat-card:hover::after { transform: scaleY(1); }
.stat-num {
  font-size: 2.5rem; font-weight: 800;
  color: var(--accent); line-height: 1;
  margin-bottom: .3rem;
}
.stat-label {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .1em;
}

/* ─── APP SHOWCASE ─── */
#apps { background: var(--surface); }
.apps-inner { max-width: 1100px; margin: 0 auto; }
.app-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  background: var(--bg);
  transition: transform .3s, box-shadow .3s;
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,229,160,.12);
}
@media (max-width: 700px) { .app-card { grid-template-columns: 1fr; } }

.app-visual {
  background: linear-gradient(135deg, #0a2e22 0%, #003d2e 50%, #001f18 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem;
  position: relative; overflow: hidden;
  min-height: 280px;
}
.app-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,229,160,.15) 0%, transparent 70%);
}

.app-icon-wrap {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.app-icon {
  width: 110px; height: 110px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,229,160,.4);
  animation: iconPulse 3s ease-in-out infinite;
}
.app-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes iconPulse {
  0%,100% { box-shadow: 0 20px 50px rgba(0,229,160,.4); }
  50%      { box-shadow: 0 20px 70px rgba(0,229,160,.65); }
}
.app-badge {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .15em;
  color: var(--accent);
  background: rgba(0,229,160,.1);
  border: 1px solid rgba(0,229,160,.3);
  padding: .3rem .8rem;
  border-radius: 20px;
}

.app-info { padding: 2.5rem; }
.app-name {
  font-size: 2.2rem; font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.app-tagline {
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.app-desc {
  font-family: var(--mono);
  font-size: .85rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 2rem;
}
.app-features {
  display: flex; flex-direction: column; gap: .5rem;
  margin-bottom: 2rem;
}
.feature-item {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  display: flex; align-items: center; gap: .7rem;
}
.feature-item::before {
  content: '→';
  color: var(--accent);
  font-size: .7rem;
}

/* ─── CONTACT ─── */
#contact { max-width: 1100px; margin: 0 auto; text-align: center; }
.contact-sub {
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.social-links {
  display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap;
  margin-top: 2rem;
}
.social-link {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: .7rem 1.5rem;
  border-radius: 4px;
  transition: border-color .2s, color .2s, transform .2s;
}
.social-link:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-3px);
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  position: relative; z-index: 1;
}
footer p {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .08em;
}
footer .accent { color: var(--accent); }

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

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

/* ─── RESPONSIVE MOBILE ─── */
@media (max-width: 600px) {

  /* Cursor off en touch */
  body { cursor: auto; }
  .cursor { display: none; }

  /* NAV */
  nav {
    padding: 1rem 1.2rem;
    gap: .8rem;
  }
  .nav-logo { font-size: .78rem; }
  .nav-links { gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
  .nav-links a { font-size: .7rem; }

  /* HERO */
  #hero {
    padding: 5.5rem 1.4rem 4rem;
    min-height: 100svh;
    align-items: flex-start;
  }
  .hero-inner {
    max-width: 100%;
    width: 100%;
  }
  .hero-tag {
    font-size: .65rem;
    letter-spacing: .1em;
    white-space: normal;
    margin-bottom: 1rem;
  }
  .hero-name {
    font-size: clamp(2.4rem, 13vw, 3.2rem);
    line-height: 1;
    margin-bottom: 1.2rem;
  }
  .hero-name br { display: inline; }
  .hero-desc {
    font-size: .82rem;
    max-width: 100%;
    margin-bottom: 2rem;
    overflow-wrap: break-word;
  }
  .hero-cta {
    flex-direction: column;
    gap: .7rem;
  }
  .btn {
    width: 100%;
    text-align: center;
    padding: .9rem 1rem;
  }
  .scroll-hint { left: 1.4rem; }

  /* SECTIONS */
  section { padding: 4rem 1.2rem; }
  .section-title { font-size: clamp(1.6rem, 7vw, 2.2rem); margin-bottom: 2rem; }

  /* ABOUT */
  #about { padding: 4rem 1.2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-text p { font-size: .82rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-card { padding: 1.2rem; }
  .stat-num { font-size: 2rem; }

  /* APPS */
  #apps { padding: 4rem 1.2rem; }
  .app-card { grid-template-columns: 1fr; }
  .app-visual { min-height: 200px; padding: 2rem; }
  .app-icon { width: 90px; height: 90px; }
  .app-info { padding: 1.5rem; }
  .app-name { font-size: 1.8rem; }

  /* CONTACT */
  #contact { padding: 4rem 1.2rem; }
  .contact-sub { font-size: .82rem; }
  .social-links { gap: .7rem; }
  .social-link { font-size: .72rem; padding: .6rem 1rem; }

  /* FOOTER */
  footer {
    padding: 1.5rem 1.2rem;
    flex-direction: column;
    text-align: center;
    gap: .5rem;
  }
}
