:root {
  --violet: #8B5CF6;
  --cyan: #06B6D4;
  --bg: #080812;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: #F1F5F9;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 99px; }

/* ── Gradient text ── */
.text-gradient {
  background: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-r {
  background: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Neon glow ── */
.neon-violet { text-shadow: 0 0 20px rgba(139,92,246,.8), 0 0 60px rgba(139,92,246,.4); }
.neon-cyan   { text-shadow: 0 0 20px rgba(6,182,212,.8), 0 0 60px rgba(6,182,212,.4); }

/* ── Hero canvas ── */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #080812;
}

/* ── Wave SVG curves ── */
.wave-curve {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* ── Nav ── */
#navbar {
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}
#navbar.scrolled {
  background: rgba(8,8,18,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139,92,246,.15);
}
.nav-link {
  position: relative;
  color: #94A3B8;
  transition: color .3s;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .04em;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width .3s ease;
}
.nav-link:hover { color: #F1F5F9; }
.nav-link:hover::after { width: 100%; }

/* ── Buttons ── */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #8B5CF6, #06B6D4);
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: transform .2s, box-shadow .3s;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #06B6D4, #8B5CF6);
  opacity: 0;
  transition: opacity .3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139,92,246,.4); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary span { position: relative; z-index: 1; }

.btn-outline {
  border: 1px solid rgba(139,92,246,.5);
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: all .3s;
  background: transparent;
  color: #A78BFA;
}
.btn-outline:hover {
  border-color: rgba(139,92,246,.9);
  background: rgba(139,92,246,.08);
  box-shadow: 0 0 25px rgba(139,92,246,.2);
  color: #C4B5FD;
}

/* ── Cards 3D ── */
.card-3d {
  transform-style: preserve-3d;
  transition: box-shadow .4s ease;
  will-change: transform;
  background: hsl(240 27% 12% / 1);
  border: 1px solid #1A1A2E;
}
.card-3d:hover {
  box-shadow:
    0 20px 50px rgba(0,0,0,.5),
    0 0 0 1px rgba(139,92,246,.3),
    0 0 40px rgba(139,92,246,.08),
    inset 0 1px 0 rgba(255,255,255,.04);
}
.card-inner { pointer-events: none; }

/* ── Skill tags ── */
.tech-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(139,92,246,.1);
  border: 1px solid rgba(139,92,246,.25);
  color: #A78BFA;
  transition: all .2s;
}
.tech-tag:hover {
  background: rgba(139,92,246,.2);
  border-color: rgba(139,92,246,.5);
  box-shadow: 0 0 12px rgba(139,92,246,.2);
}
.tech-tag.cyan {
  background: rgba(6,182,212,.1);
  border-color: rgba(6,182,212,.25);
  color: #67E8F9;
}

/* ── Section headers ── */
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ── Filter tabs ── */
.filter-btn {
  padding: 8px 20px;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid #1A1A2E;
  color: #64748B;
  transition: all .25s;
  background: transparent;
  cursor: pointer;
}
.filter-btn:hover { border-color: rgba(139,92,246,.4); color: #A78BFA; }
.filter-btn.active {
  background: linear-gradient(135deg, rgba(139,92,246,.2), rgba(6,182,212,.1));
  border-color: rgba(139,92,246,.5);
  color: #C4B5FD;
  box-shadow: 0 0 20px rgba(139,92,246,.15);
}

/* ── Grid dot pattern ── */
.dot-grid {
  background-image: radial-gradient(rgba(139,92,246,.2) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ── Fade animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Stats counter ── */
.stat-value {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8B5CF6, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ── Project card shimmer on hover ── */
.card-3d::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: skewX(-15deg);
  transition: left .6s ease;
  pointer-events: none;
}
.card-3d:hover::after { left: 125%; }

/* ── Contact form ── */
.form-field {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: #F1F5F9;
  transition: border-color .3s, box-shadow .3s;
  width: 100%;
  padding: 14px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .925rem;
  outline: none;
}
.form-field:focus {
  border-color: rgba(139,92,246,.5);
  box-shadow: 0 0 0 3px rgba(139,92,246,.08);
}
.form-field::placeholder { color: #475569; }

/* ── Availability dot ── */
@keyframes pulse-ring {
  0% { transform: scale(.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.available-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22C55E;
}
.available-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse-ring 1.8s ease-out infinite;
}

/* ── Logo SVG ── */
.logo-wave path { transition: all .4s; }

/* ── Mobile menu ── */
#mobile-menu {
  position: absolute;
  top: calc(100% - 15px);
  left: 1rem;
  right: 1rem;
  width: calc(100% - 2rem);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
#mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* ── Noise overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .025;
  pointer-events: none;
  z-index: 9998;
}

@media (max-width: 768px) {
  #navbar{
    top: 0;
  }
}

@media (max-width: 680px) {
}
@media (max-width: 500px) {
}
@media (max-width: 400px) {
  .text-xs {
    font-size: 0.6rem !important;
  }
  #hero{
  }
}

/*
@media (max-width: 680px) {
  .stat-value { font-size: 2rem; }
}
@media (max-width: 480px) {
  .stat-value { font-size: 1.2rem; }
}
*/
#modal-title{

}
#modal-slideshow{
  height: 65vh;
}
#modal-container{
  max-height: 85vh;
}