:root {
  --bg: #0a0e17;
  --bg-soft: #101625;
  --card: #141c2e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6eaf2;
  --text-muted: #8b93a7;
  --accent: #5b8cff;
  --accent-2: #a06bff;
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo__dot {
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: 64px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(91, 140, 255, 0.18), transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  text-align: center;
  padding: 80px 0;
}

.hero__tag {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(91, 140, 255, 0.35);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 28px;
}

.hero__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(120deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
}

.hero__subtitle {
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(91, 140, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(91, 140, 255, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

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

/* ---------- Sections ---------- */
section {
  padding: 96px 0;
}

.section__label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.section__hint {
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ---------- About ---------- */
.about {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__text {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.about__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.about__card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 140, 255, 0.4);
}

.about__card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.about__card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Projects ---------- */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(160, 107, 255, 0.5);
}

.card__tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(160, 107, 255, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
}

.card__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  margin-bottom: 12px;
  padding-right: 70px;
}

.card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact__text {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.contact__email {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

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

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.form input,
.form textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  padding: 14px 16px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--accent);
}

.form input::placeholder,
.form textarea::placeholder {
  color: #5a6173;
}

.form .btn {
  align-self: flex-start;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-soft);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__mail {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__mail:hover {
  color: var(--accent);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav__links {
    gap: 20px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  section {
    padding: 72px 0;
  }
}
