/* Modern, Natural & Clean Tech Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --accent-emerald: #10b981;
  --accent-teal: #14b8a6;
  --accent-sky: #0ea5e9;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-emerald: rgba(16, 185, 129, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
}

code, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Clean Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* Subtle Natural Background Grid */
.cyber-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Natural Modern Glassmorphism */
.glass-panel {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
}

.glass-panel-subtle {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Soft Glow Accents */
.text-glow-emerald {
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.glow-emerald {
  box-shadow: 0 0 25px -4px rgba(16, 185, 129, 0.3);
}

/* Gentle Button Pulse */
@keyframes naturalPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.35), 0 0 30px rgba(16, 185, 129, 0.15);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.55), 0 0 40px rgba(16, 185, 129, 0.25);
    transform: scale(1.03);
  }
}

.animate-neon-pulse {
  animation: naturalPulse 3s infinite ease-in-out;
}

/* Floating animation */
@keyframes floatY {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: floatY 4.5s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatY 4.5s ease-in-out infinite 2.2s;
}

/* Hologram Scanning Beam - Soft Natural Mint */
@keyframes holoScan {
  0% {
    top: -20%;
  }
  100% {
    top: 120%;
  }
}

.hologram-beam {
  position: absolute;
  left: 0;
  width: 100%;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.15), transparent);
  pointer-events: none;
  animation: holoScan 4s linear infinite;
}

/* Marquee / Infinite Ticker */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: 200%;
  animation: marqueeScroll 32s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* 3D Perspective CSS Container */
.perspective-1000 {
  perspective: 1000px;
}

.transform-style-3d {
  transform-style: preserve-3d;
}

/* Clean 3D Cube for Tech Stack */
.cube-wrap {
  width: 160px;
  height: 160px;
  perspective: 900px;
  margin: 0 auto;
}

.cube-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-out;
  animation: rotateCube 22s infinite linear;
}

@keyframes rotateCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: rotateX(180deg) rotateY(180deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

.cube-face {
  position: absolute;
  width: 160px;
  height: 160px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(16, 185, 129, 0.35);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.08), 0 8px 24px rgba(0, 0, 0, 0.4);
  border-radius: 16px;
}

.face-front  { transform: translateZ(80px); }
.face-back   { transform: rotateY(180deg) translateZ(80px); }
.face-right  { transform: rotateY(90deg) translateZ(80px); }
.face-left   { transform: rotateY(-90deg) translateZ(80px); }
.face-top    { transform: rotateX(90deg) translateZ(80px); }
.face-bottom { transform: rotateX(-90deg) translateZ(80px); }

/* Typing cursor animation */
.typing-cursor::after {
  content: '|';
  color: #10b981;
  animation: blinkCursor 0.9s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Soft Ambient Radial Behind Hero */
.hero-glow-sphere {
  position: absolute;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(14, 165, 233, 0.08) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
