:root {
  --primary: #4f46e5;
  --bg: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1.5rem;
}

.header {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo {
  font-weight: bold;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
}

/* Sections */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.section.alt {
  background: #020617;
}

.hero {
  text-align: center;
}

h1 {
  font-size: 3rem;
}

h2 {
  margin-bottom: 1rem;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: #1e293b;
  padding: 2rem;
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 60px;
    right: 0;
    background: #020617;
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    display: none;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

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

  h1 {
    font-size: 2rem;
  }
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

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

button {
  transition: transform 0.1s ease;
}

button:active, .card:active {
  transform: scale(0.97);
}

nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: var(--primary);
}

body {
  scroll-behavior: smooth;
  overscroll-behavior: none;
}
