/* ---- reset & base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --yellow: #ffd93d;
  --orange: #ff6b35;
  --pink: #ff3d9a;
  --teal: #00c9a7;
  --purple: #845ec2;
  --bg: #0d0d0d;
  --surface: #161616;
  --text: #f5f5f5;
  --muted: #999;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- nav ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}

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

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--yellow);
  top: -100px;
  left: -150px;
  animation: drift 8s ease-in-out infinite alternate;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--pink);
  bottom: -80px;
  right: -100px;
  animation: drift 10s ease-in-out infinite alternate-reverse;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: var(--teal);
  top: 40%;
  left: 55%;
  animation: drift 12s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(30px, 20px) scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
}

.hero-tag {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.dot {
  color: var(--yellow);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 1rem 0 2rem;
}

.hero-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition:
    transform 0.15s,
    opacity 0.15s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--yellow);
  color: #0d0d0d;
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

/* ---- sections ---- */
.section {
  padding: 6rem 2rem;
}
.section-alt {
  background: var(--surface);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.section-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 2.5rem;
  line-height: 1.1;
}

/* ---- about ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-text strong {
  color: var(--text);
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.stat-card:hover {
  border-color: var(--yellow);
  transform: translateY(-3px);
}

.stat-icon {
  font-size: 1.75rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
}

/* ---- projects ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.project-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}

.project-header {
  display: flex;
  justify-content: space-between;
}

.project-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 107, 53, 0.15);
  color: var(--orange);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-weight: 500;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.project-card p {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.project-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tech-pill {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
}

/* ---- footer ---- */
footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer a {
  color: var(--yellow);
  transition: opacity 0.2s;
}

footer a:hover {
  opacity: 0.7;
}

/* ---- responsive ---- */
@media (max-width: 700px) {
  nav ul {
    gap: 1.25rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}
