:root {
  color-scheme: light dark;
  --bg: #f6f7fb;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-strong: #ffffff;
  --text: #0b0f18;
  --muted: #667085;
  --border: rgba(15, 23, 42, 0.12);
  --accent: #0b0f18;
  --accent-contrast: #ffffff;
  --focus: #94a3b8;
  --focus-ring: rgba(148, 163, 184, 0.35);
  --shadow: 0 30px 80px -40px rgba(15, 23, 42, 0.35);
  --pill: rgba(15, 23, 42, 0.06);
  --blob-a: rgba(148, 163, 184, 0.35);
  --blob-b: rgba(226, 232, 240, 0.7);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f18;
    --surface: rgba(17, 24, 39, 0.85);
    --surface-strong: #111827;
    --text: #f8fafc;
    --muted: #9ca3af;
    --border: rgba(148, 163, 184, 0.22);
    --accent: #f8fafc;
    --accent-contrast: #0b0f18;
    --focus: #475569;
    --focus-ring: rgba(71, 85, 105, 0.5);
    --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.75);
    --pill: rgba(148, 163, 184, 0.12);
    --blob-a: rgba(30, 41, 59, 0.65);
    --blob-b: rgba(15, 23, 42, 0.9);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family:
    "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.page {
  position: relative;
  min-height: 100vh;
}

/*.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-blobs .blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
}

.bg-blobs .blob.a {
  width: 320px;
  height: 320px;
  right: -120px;
  top: -120px;
  background: var(--blob-b);
}

.bg-blobs .blob.b {
  width: 420px;
  height: 420px;
  left: -160px;
  bottom: -160px;
  background: var(--blob-a);
}*/

.container {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 48px 20px 120px;
}

.topbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.brand {
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: all 0.15s ease;
}

nav a:hover,
nav a.active {
  color: var(--text);
  background: var(--pill);
  border-color: var(--border);
}

@media (min-width: 640px) {
  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.welcome {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--muted);
}

.section-line {
  width: 64px;
  height: 2px;
  background: var(--border);
  margin-top: 10px;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  margin: 12px 0 0;
  letter-spacing: -0.02em;
}

.card {
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}

@supports (backdrop-filter: blur(14px)) {
  .card {
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    backdrop-filter: blur(18px);
  }
}

.form-grid {
  display: grid;
  gap: 16px;
}

label {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  padding: 14px 16px;
  font-size: 1rem;
  box-shadow: 0 6px 20px -18px rgba(15, 23, 42, 0.45);
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.btn {
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 14px 18px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 12px 24px -16px rgba(15, 23, 42, 0.45);
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

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

.captcha-shell {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: var(--surface-strong);
}

.section {
  margin-top: 24px;
}

.section h2 {
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.section h3 {
  font-size: 1.05rem;
  margin: 16px 0 6px;
}

.section p,
.section li {
  color: var(--muted);
  line-height: 1.6;
}

.section ul {
  padding-left: 18px;
  margin: 8px 0 0;
}

.footer {
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  padding: 16px;
  z-index: 50;
}

.cookie-inner {
  width: min(100%, 980px);
  margin: 0 auto;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}

.cookie-text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-actions .btn {
  width: auto;
  min-width: 180px;
}

@media (min-width: 720px) {
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Portfolio Styles */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.portfolio-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--focus) 0%, var(--muted) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.placeholder-image {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-contrast);
  text-align: center;
}

.portfolio-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-content h3 {
  margin: 0 0 12px 0;
  font-size: 1.2rem;
  color: var(--accent);
}

.portfolio-description {
  margin: 0 0 16px 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

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

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--pill);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

