/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0a0a0a;
  color: #ededed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  opacity: 0.8;
}

/* ===========================
   Nav
   =========================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #222;
}

.nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 600;
  font-size: 15px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  color: #888;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
  opacity: 1;
}

/* ===========================
   Hero
   =========================== */
.hero {
  padding-top: 160px;
  padding-bottom: 48px;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

#hero-bio {
  font-size: 18px;
  color: #888;
  margin-bottom: 8px;
}

.hero p {
  font-size: 16px;
  color: #888;
  margin-bottom: 16px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  color: #0a0a0a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.hero-buttons .btn:last-child {
  background: transparent;
  color: #fff;
  border: 1px solid #222;
}

.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #222;
}

.hero-stats span {
  font-size: 14px;
  color: #888;
}

.hero-stats strong {
  color: #ededed;
  font-weight: 600;
}

.hero-featured {
  margin-top: 32px;
}

.hero-featured h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 16px;
  font-weight: 600;
}

.featured-card {
  background: #141414;
  border: 1px solid #222;
  border-left: 3px solid #3ecf8e;
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
  border-color: #333;
  border-left-color: #3ecf8e;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
}

.featured-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.featured-card p {
  font-size: 14px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ===========================
   Projects Section
   =========================== */
#projects {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px;
}

#projects h2,
#tech h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 32px;
  font-weight: 600;
}

#projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.project-card {
  background: #141414;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  border-color: #333;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
}

.project-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 14px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 16px;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.topics span {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #888;
}

.project-links {
  display: flex;
  gap: 16px;
}

.project-links a {
  font-size: 13px;
  color: #888;
  transition: color 0.2s ease;
}

.project-links a:hover {
  color: #fff;
  opacity: 1;
}

.project-links a.live-link {
  color: #3ecf8e;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-links a.live-link::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ecf8e;
  box-shadow: 0 0 6px rgba(62, 207, 142, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

.project-links a.live-link:hover {
  color: #5dfaaf;
  opacity: 1;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===========================
   Tech Stack
   =========================== */
#tech {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pills span {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid #222;
  color: #888;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pills span:hover {
  border-color: #444;
  color: #fff;
}

/* ===========================
   Footer
   =========================== */
footer {
  border-top: 1px solid #222;
  text-align: center;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

.footer-inner p {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  font-size: 13px;
  color: #888;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  opacity: 1;
}

/* ===========================
   Animations
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive
   =========================== */
@media (min-width: 640px) {
  #projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
