@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-1: #0f172a;
  --bg-2: #0b1220;
  --card: rgba(255, 255, 255, 0.04);
  --muted: #94a3b8;
  --text: #f8fafc;
  --accent: #38bdf8;
  --accent-2: #fbbf24;
  --accent-3: #f472b6;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.12), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(244, 114, 182, 0.12), transparent 25%),
    radial-gradient(circle at 50% 70%, rgba(251, 191, 36, 0.12), transparent 26%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2));
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 22px 80px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent-2);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
  color: #0b1220;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(56, 189, 248, 0.35);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  align-items: center;
  margin-bottom: 48px;
  overflow: visible;
}

.image-frame {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.image-frame img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.image-frame:hover img {
  transform: translateY(-6px) scale(1.02);
  filter: saturate(1.05);
}

.image-frame:hover::after {
  opacity: 1;
}

.swirl {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
  transition: transform 0.45s ease, opacity 0.45s ease;
  z-index: 0;
}

.swirl-hero {
  right: -80px;
  top: -60px;
  width: 320px;
  max-width: 46vw;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.decor-wrap {
  position: relative;
}

.decor-wrap > * {
  position: relative;
  z-index: 1;
}

.swirl-projects {
  left: -110px;
  top: -70px;
  width: 260px;
  max-width: 44vw;
}

.swirl-contact {
  right: -110px;
  bottom: -60px;
  width: 300px;
  max-width: 48vw;
}

.hero:hover .swirl {
  opacity: 0.65;
  transform: rotate(2deg) scale(1.03);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}

h1 {
  font-size: clamp(38px, 7vw, 56px);
  margin: 10px 0 6px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 12px;
}

.lead {
  color: #e2e8f0;
  font-size: 18px;
  margin: 8px 0 14px;
}

.surface {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tag {
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.list {
  padding-left: 18px;
  color: var(--text);
}

.list li + li {
  margin-top: 6px;
}

.section-title {
  margin: 38px 0 10px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.project-card {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-top: 12px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
}

.project-card:hover img {
  transform: translateY(-6px) scale(1.02);
  filter: saturate(1.08);
}

.paragraphs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.para-highlight {
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.12), rgba(244, 114, 182, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 14px;
}

.para-outline {
  border: 1px dashed var(--accent-2);
  border-radius: 14px;
  padding: 14px;
  color: #fef3c7;
}

.para-muted {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 14px;
  color: var(--muted);
  font-style: italic;
}

.footer {
  margin-top: 48px;
  padding: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.quote {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-2);
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: start;
}

.contact-box {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.85));
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-right: 8px;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.contact-links a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.not-found {
  text-align: center;
  padding: 80px 16px;
}

.not-found h1 {
  font-size: clamp(48px, 8vw, 72px);
  margin-bottom: 12px;
}

.not-found p {
  color: var(--muted);
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    gap: 12px;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}
