* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #000000;
  color: #E8E8E8;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}
::selection {
  background: #8B5CF6;
  color: #000000;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #8B5CF6; border-radius: 2px; }

.cursor-dot {
  width: 8px; height: 8px;
  background: #8B5CF6;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  transition: transform 0.1s ease;
  transform: translate(-50%, -50%);
}
.cursor-dot.hovering {
  transform: translate(-50%, -50%) scale(0);
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, border-color 0.3s, transform 0.1s;
  transform: translate(-50%, -50%);
}
.cursor-ring.hovering {
  width: 64px; height: 64px;
  border-color: transparent;
  background: #fff;
  mix-blend-mode: difference;
}
.cursor-ring.clicking {
  transform: translate(-50%, -50%) scale(0.8);
  border-color: #8B5CF6;
  background: transparent;
  mix-blend-mode: normal;
}

.text-stroke {
  -webkit-text-stroke: 1.5px #E8E8E8;
  color: transparent;
}
.text-stroke-amethyst {
  -webkit-text-stroke: 1.5px #8B5CF6;
  color: transparent;
}

.glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.glass-card:hover {
  border-color: rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.03);
}

.reveal-line {
  overflow: hidden;
  display: inline-block;
}
.reveal-line span {
  display: inline-block;
  transform: translateY(110%);
}

.project-glimpse {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.project-card:hover .project-glimpse {
  opacity: 1;
  transform: scale(1);
}

.glimpse-card {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), -webkit-backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: backdrop-filter;
}
.project-card:hover .glimpse-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.noise-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.gradient-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #8B5CF6, transparent);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.float-anim { animation: float 6s ease-in-out infinite; }
.pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }

.split-line {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.tech-pill {
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}
.tech-pill:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.05);
  color: #8B5CF6;
}

.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-text-shadow {
  text-shadow: 0 0 80px rgba(139, 92, 246, 0.15);
}

.wireframe-to-real {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.wireframe-to-real:hover {
  filter: none;
}

.marquee-track {
  display: flex;
  animation: marquee 8s linear infinite;
}
@media (min-width: 768px) {
  .marquee-track {
    animation: marquee 30s linear infinite;
  }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.number-counter {
  font-variant-numeric: tabular-nums;
}

.section-divider {
  position: relative;
}
.section-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.2) 50%, transparent 100%);
}
