@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --bg:          #0d0d14;
  --surface:     #13131e;
  --card:        #1a1a28;
  --border:      #2a2a40;
  --accent:      #06b6d4;
  --accent-dim:  rgba(6, 182, 212, 0.12);
  --accent-glow: rgba(6, 182, 212, 0.25);
  --text:        #e8e8f0;
  --muted:       #7777aa;
  --white:       #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--white);
}

header .logo span {
  color: var(--accent);
}

header nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ── Hero ── */
.hero {
  padding: 7rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero .eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero .btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

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

.hero .btn-ghost {
  display: inline-block;
  color: var(--muted);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  margin-left: 0.75rem;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.hero .btn-ghost:hover {
  color: var(--white);
  border-color: var(--muted);
}

/* ── Sections ── */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

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

.section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section .subtitle {
  color: var(--muted);
  margin-bottom: 3rem;
  font-size: 1rem;
}

/* ── Project Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-dim);
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--accent-glow);
}

.card:hover::before {
  opacity: 1;
}

.card .icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  position: relative;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  position: relative;
}

.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  position: relative;
}

.card .arrow {
  margin-top: 1.25rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
}

.live-badge {
  display: inline-block;
  background: rgba(6,182,212,0.15);
  color: var(--accent);
  border: 1px solid rgba(6,182,212,0.3);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

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

.about-grid p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.skill-tag {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.contact-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.contact-box p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.contact-box a {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 0.65rem 1.5rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-box a:hover {
  opacity: 0.85;
}

@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Project Page ── */
.project-hero {
  padding: 4rem 2rem 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.project-hero .back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.project-hero .back:hover {
  color: var(--accent);
}

.project-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  max-width: 800px;
}

.project-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.7;
}

.project-body {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.project-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.project-body p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.coming-soon {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 3rem;
  text-align: center;
  margin-top: 2rem;
}

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

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.825rem;
  margin-top: auto;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}
