:root {
  --bg: #08080c;
  --bg-secondary: #0f0f15;
  --fg: #e8e8ed;
  --fg-muted: #7a7a8a;
  --accent: #00d4aa;
  --accent-warm: #ff6b35;
  --card: #111118;
  --border: #1e1e2a;
  --glow: rgba(0, 212, 170, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  min-height: 100vh;
}

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

.grid-bg {
  position: fixed; inset: 0;
  background-image: 
    linear-gradient(rgba(0, 212, 170, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none; z-index: 0;
}

.orb {
  position: fixed; border-radius: 50%;
  filter: blur(100px);
  pointer-events: none; z-index: 0;
}
.orb-1 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, transparent 70%);
  top: -300px; right: -300px;
  animation: float-1 25s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.06) 0%, transparent 70%);
  bottom: 0; left: -150px;
  animation: float-2 30s ease-in-out infinite;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.05) 0%, transparent 70%);
  bottom: 30%; right: 10%;
  animation: float-3 20s ease-in-out infinite;
}

@keyframes float-1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-80px, 80px) scale(1.1); } }
@keyframes float-2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(50px, -50px) scale(0.9); } }
@keyframes float-3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 30px); } }

.headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.mono-text { font-family: 'JetBrains Mono', monospace; }

.accent-line { position: relative; display: inline-block; }
.accent-line::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  border-radius: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #00b894 100%);
  color: var(--bg); font-weight: 600;
  padding: 14px 28px; border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
}

.btn-outline {
  border: 2px solid var(--border);
  color: var(--fg); font-weight: 500;
  padding: 12px 24px; border-radius: 8px;
  transition: all 0.3s;
  background: transparent;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 212, 170, 0.05);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover {
  border-color: rgba(0, 212, 170, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.card:hover::before { opacity: 1; }

.featured-project {
  background: linear-gradient(145deg, rgba(0, 212, 170, 0.08) 0%, var(--card) 100%);
  border: 2px solid rgba(0, 212, 170, 0.3);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; display: block; text-decoration: none;
}
.featured-project:hover {
  border-color: var(--accent);
  box-shadow: 0 0 80px rgba(0, 212, 170, 0.2);
  transform: translateY(-6px);
}

.coming-soon-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s;
  position: relative; cursor: pointer;
}
.coming-soon-card .card-content { transition: all 0.4s; }
.coming-soon-card .overlay-message {
  position: absolute; inset: 0;
  background: rgba(8, 8, 12, 0.95);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transition: all 0.4s;
  padding: 20px; text-align: center;
}
.coming-soon-card:hover .overlay-message { opacity: 1; }
.coming-soon-card:hover .card-content { filter: blur(4px); }

.nav-link {
  color: var(--fg-muted); transition: color 0.2s;
  position: relative; text-decoration: none;
}
.nav-link:hover { color: var(--fg); }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

.stagger-children > * { opacity: 0; transform: translateY(20px); }
.stagger-children.active > * {
  opacity: 1; transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.stagger-children.active > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.4s; }

.typing-cursor {
  display: inline-block; width: 3px; height: 1em;
  background: var(--accent); margin-left: 4px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 2.5rem;
  background: linear-gradient(135deg, var(--fg) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

#particles { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

.coming-soon-banner {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 212, 170, 0.05) 100%);
  border: 2px dashed rgba(255, 107, 53, 0.3);
  border-radius: 20px;
  position: relative; overflow: hidden;
}

.featured-badge {
  background: linear-gradient(135deg, var(--accent) 0%, #00b894 100%);
  color: var(--bg); font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
  display: inline-block;
}

#back-to-top {
  transition: opacity 0.3s, transform 0.2s;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 640px) {
  .stat-number { font-size: 1.75rem; }
}

/* ========================================= */
/* === ICON ANIMATIONS ==================== */
/* ========================================= */

/* 1. Generic Interactive Icon (Scale & Rotate) */
.icon-interactive {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card:hover .icon-interactive,
.btn-primary:hover .icon-interactive,
.btn-outline:hover .icon-interactive {
  transform: scale(1.1) rotate(5deg);
}

/* 2. Slide Right Animation (For Arrow Icons) */
.icon-slide-right {
  transition: transform 0.2s ease;
}
.btn-primary:hover .icon-slide-right,
.btn-outline:hover .icon-slide-right,
.featured-project:hover .icon-slide-right {
  transform: translateX(3px);
}

/* 3. Pulse Animation (For Construction/Warning Icons) */
@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}
.icon-pulse {
  animation: pulse-icon 2s infinite;
}

/* 4. Bounce Animation (For Social Icons) */
.icon-bounce {
  transition: transform 0.2s ease;
}
a:hover .icon-bounce {
  transform: translateY(-3px);
}

/* 5. Glow Effect for Featured Project Icon */
.featured-project:hover svg {
  filter: drop-shadow(0 0 8px var(--accent));
}