:root {
  --bg: #050505;
  --text: #f5f5f5;
  --muted: #a1a1aa;
  --accent: #62d4ff;
  --accent2: #7c5cff;
  --radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #000000;
  color: var(--text);
  line-height: 1.5;
}

.container {
  width: min(1200px, 92%);
  margin: auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgb(5, 5, 5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
}

.logo {
  width: 50px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-cta {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #001018;
  padding: 10px 22px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.nav-cta:hover {
  background: white;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links a:hover {
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
}

.hero {
  padding: 40px 0;
  display: flex;
  align-items: center;
  width: min(1200px, 92%);
  margin: auto;
  background-color: #000000;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: 64px;
  line-height: 1;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  margin-top: 20px;
  color: var(--muted);
}

.animation-gif {
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 40px;
  margin-top: 25px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), #9be7ff);
  color: #001018;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  margin-left: 10px;
}

.section-heading {
  margin-bottom: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 26px;
  border-radius: var(--radius);
  transition: 0.4s;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
}

.tech-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.tech-pill {
  padding: 12px 18px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-box {
  padding: 60px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 60px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  justify-content: center;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 1s;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

#projects {
  margin-top: 20px;
}

#stack {
  margin-top: 60px;
  margin-bottom: 100px;
}

#contact {
  margin-top: 60px;
}

#stack .container {
  display: block;
  text-align: center; /* centers inline / inline-block children horizontally */
}

/* If children are blocks and have a fixed width, center them with auto margins */
#stack .container > .card {
  width: 600px; /* set appropriate width */
  margin: 0 auto;
}

.project-link {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .nav-links {
    display: none;
  }

  .grid-3 {
    justify-content: center;
    grid-template-columns: 1fr;
  }

  .grid-2 {
    justify-content: center;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero {
    display: block;
  }

  .hero-grid {
    display: block;
  }
}
