/* --- VARIABLES & RESET --- */
:root {
  --bg-color: #050505;
  --accent-color: #00ff88;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-main: "Inter", system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none;
}
body {
  background: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
}

/* --- CURSOR --- */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}
.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.1s ease-out;
}

/* --- 3D CANVAS --- */
#canvas-3d {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

/* --- HERO & NAV --- */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5%;
}
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0;
}
.decode-text {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--accent-color);
  margin-bottom: 20px;
}
.hero-subline {
  color: var(--text-secondary);
  margin-bottom: 60px;
  font-size: 1.2rem;
}

/* NAV GRID */
.nav-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.magnetic-area {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn {
  position: relative;
  padding: 15px 40px;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 2px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s;
  overflow: hidden;
  display: block;
}

.nav-btn:hover {
  border-color: var(--accent-color);
}

.btn-hover-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0%;
  height: 0%;
  background: var(--accent-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  transition:
    width 0.5s ease,
    height 0.5s ease;
}

.nav-btn:hover .btn-hover-bg {
  width: 300%;
  height: 500%;
}

.nav-btn:hover .btn-label {
  color: var(--bg-color);
}

.btn-label {
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

/* --- COMPONENTS --- */
.components-section {
  padding: 100px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card-inner {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 50px;
  border-radius: 20px;
  position: relative;
}
.icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .nav-grid {
    flex-direction: column;
    align-items: stretch;
  }
}
