@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #030712;
  --bg-2: #0a0f1e;
  --surface: rgba(6, 15, 35, 0.85);
  --surface-2: rgba(14, 25, 55, 0.6);
  --border: rgba(0, 200, 255, 0.12);
  --border-hover: rgba(0, 200, 255, 0.45);
  --primary: #00c8ff;
  --primary-dim: rgba(0, 200, 255, 0.15);
  --secondary: #7c3aed;
  --accent: #f0abfc;
  --accent-2: #34d399;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #334155;
  --glow: 0 0 30px rgba(0, 200, 255, 0.25);
  --glow-strong: 0 0 60px rgba(0, 200, 255, 0.4);
}

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

::selection {
  background: rgba(0, 200, 255, 0.3);
  color: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Syne', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: default;
}

/* ── Custom Scrollbar ─────────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 200, 255, 0.6);
}

/* ── Grid Background ──────────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}

/* ── Ambient Orbs ─────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  animation: drift 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -150px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 70%);
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -200px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.14), transparent 70%);
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  bottom: 20%;
  left: 30%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.08), transparent 70%);
  animation-delay: -14s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(40px, 30px) scale(1.1);
  }
}

/* ── Scan Line ────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 4px);
}

/* ── Header / Navbar ──────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 500;
  padding: 0 5%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}

header.scrolled {
  border-color: rgba(0, 200, 255, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.4), inset 0 0 8px rgba(0, 200, 255, 0.1);
}

.logo-icon i {
  font-size: 15px;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
}

.logo-sub {
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--primary);
  border-color: var(--border);
  background: var(--primary-dim);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.mobile-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 5% 60px;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-dim);
  border: 1px solid rgba(0, 200, 255, 0.25);
  padding: 6px 18px;
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.hero h2 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 28px;
}

.hero h2 .line-2 {
  display: block;
  margin-top: 4px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #818cf8 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #000;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 200, 255, 0.55);
  background: #33d4ff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: center;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Space Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  display: block;
  text-shadow: 0 0 20px rgba(0, 200, 255, 0.5);
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
}

/* ── Section ──────────────────────────────────────── */
.section {
  padding: 100px 5%;
  max-width: 1440px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 60px;
  gap: 12px;
}

.section-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.8;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
}

/* ── Category Pills ──────────────────────────────── */
.filter-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-pill {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 7px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover,
.filter-pill.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}

/* ── Card Grid ────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 18px;
}

/* ── Card ─────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
}

.card:hover {
  border-color: rgba(0, 200, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 200, 255, 0.1);
}

/* Spotlight Effect */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(0, 200, 255, 0.07),
      transparent 40%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

/* Glowing border on hover */
.card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(0, 200, 255, 0.4),
      transparent 50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.card:hover::after {
  opacity: 1;
}

.card-content {
  padding: 28px 24px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary-dim);
  border: 1px solid rgba(0, 200, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.3s;
}

.card:hover .card-icon-wrap {
  background: rgba(0, 200, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
}

.card-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 100px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color 0.2s;
}

.card:hover h3 {
  color: #fff;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-cta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.card:hover .card-cta {
  gap: 10px;
}

.card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 6px var(--accent-2);
}

/* ── Reveal Animation ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger */
.card:nth-child(2) {
  transition-delay: 0.05s;
}

.card:nth-child(3) {
  transition-delay: 0.10s;
}

.card:nth-child(4) {
  transition-delay: 0.15s;
}

.card:nth-child(5) {
  transition-delay: 0.20s;
}

.card:nth-child(6) {
  transition-delay: 0.25s;
}

.card:nth-child(7) {
  transition-delay: 0.30s;
}

.card:nth-child(8) {
  transition-delay: 0.35s;
}

/* ── Footer ───────────────────────────────────────── */
footer {
  padding: 50px 5%;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.visitor-counter img {
  height: 20px;
  display: block;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.visitor-counter:hover img {
  opacity: 1;
}

/* ── About Page ───────────────────────────────────── */
.about-section {
  max-width: 860px;
  margin: 40px auto 80px;
  padding: 0 5%;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s;
}

.about-card:hover {
  border-color: rgba(0, 200, 255, 0.25);
}

.about-card p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.about-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.about-name i {
  color: var(--primary);
  font-size: 1rem;
}

.about-name-ai i {
  color: #a6e3a1;
}

.about-name-ai {
  color: #a6e3a1;
}

/* ── Terminal Box ─────────────────────────────────── */
.terminal {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 10px;
  padding: 20px 24px;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 20px;
  position: relative;
}

.terminal::before {
  content: '● ● ●';
  position: absolute;
  top: 12px;
  left: 18px;
  font-size: 0.55rem;
  letter-spacing: 4px;
  color: var(--text-dim);
}

.terminal-body {
  margin-top: 22px;
  line-height: 2;
}

.terminal-body .prompt {
  color: var(--primary);
}

.terminal-body .value {
  color: var(--accent-2);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .hero h2 {
    letter-spacing: -1px;
  }

  .hero-stats {
    gap: 32px;
  }

  .stat-number {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0 4%;
  }

  .logo-sub {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
  }

  nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(3, 7, 18, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, border-color 0.3s;
    padding: 0;
  }

  nav.active {
    max-height: 300px;
    border-color: rgba(0, 200, 255, 0.15);
  }

  nav a {
    padding: 16px 24px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
  }

  nav a:last-child {
    border-bottom: none;
  }

  .hero {
    padding: 60px 5% 40px;
    min-height: calc(100vh - 70px);
  }

  .hero h2 {
    letter-spacing: -0.5px;
  }

  .hero-stats {
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
  }

  .section {
    padding: 70px 5%;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: row;
    gap: 24px;
    justify-content: space-around;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}