/* ==========================================================================
   Patrick Schoebel - Portfolio Theme
   Light + Minimal Design System
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F9FAFB;
  --color-text: #111827;
  --color-text-secondary: #6B7280;
  --color-accent: #2563EB;
  --color-accent-hover: #1D4ED8;
  --color-border: #E5E7EB;
  --color-tag-bg: #F3F4F6;
  --color-card-shadow: rgba(0, 0, 0, 0.04);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --max-width: 1080px;
  --max-width-text: 720px;
  --section-padding: 80px;
  --section-padding-mobile: 48px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: 0.2s ease;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:visited {
  color: var(--color-accent);
}

a:hover,
a:visited:hover {
  color: var(--color-accent-hover);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

h1 {
  font-size: 3rem;
  line-height: 1.17;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

li {
  margin-bottom: 0.35em;
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25em;
  margin: 1.5em 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

code {
  background: var(--color-tag-bg);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-xs);
  font-size: 0.9em;
}

pre {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1.25em;
  overflow-x: auto;
  margin-bottom: 1.5em;
}

pre code {
  background: none;
  padding: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5em 0;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.text-content {
  max-width: var(--max-width-text);
}

.text-center {
  text-align: center;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 0.938rem;
  line-height: 1;
}

.nav__logo {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav__logo:hover {
  color: var(--color-text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: auto;
}

.nav__links li {
  margin: 0;
}

.nav__link {
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
}

.nav__lang {
  color: var(--color-text-secondary);
  margin-left: 90px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__lang a {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.nav__lang a:hover {
  color: var(--color-text);
}

.nav__lang .active {
  color: var(--color-text);
  font-weight: 600;
}

.nav__lang .separator,
.nav__mobile-lang .separator,
.footer__lang .separator {
  margin: 0 8px;
  opacity: 0.4;
}

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.nav__hamburger svg {
  width: 24px;
  height: 24px;
  display: block;
}

.nav__mobile {
  display: none;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px 24px;
}

.nav__mobile.is-open {
  display: block;
}

.nav__mobile-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__mobile-links li {
  margin: 0;
}

.nav__mobile-links a {
  display: block;
  padding: 12px 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.nav__mobile-lang {
  padding-top: 16px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.nav__mobile-lang a {
  display: inline;
  padding: 0;
  font-size: 0.875rem;
  border: none;
  color: var(--color-text-secondary);
}

.nav__mobile-lang a:hover,
.nav__mobile-lang a.active {
  color: var(--color-text);
}

/* --- Hero Section --- */
.hero {
  padding: 80px 0 60px;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero__portrait {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-alt);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  flex: 1;
}

.hero__name {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero__title {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  font-weight: 400;
  margin-bottom: 20px;
}

.hero__tagline {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero__social {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.hero__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-text-secondary);
  transition: background var(--transition), color var(--transition);
}

.hero__social a:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.hero__social svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

/* Bluesky icon needs manual centering adjustment */
.hero__social a:last-child svg {
  transform: translate(2px, 2px);
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.938rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

/* Both buttons same style - dark bg, light text */
.btn--primary,
.btn--secondary {
  background: var(--color-text);
  color: var(--color-bg);
  border: 1px solid var(--color-text);
}

.btn--primary:hover,
.btn--secondary:hover {
  background: #374151;
  border-color: #374151;
}

/* Ensure button colors override link hover */
a.btn:hover,
a.btn--primary:hover,
a.btn--secondary:hover {
  color: var(--color-bg);
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* --- Tags --- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.813rem;
  font-weight: 500;
  background: var(--color-tag-bg);
  color: var(--color-text-secondary);
  border-radius: 100px;
  line-height: 1.5;
}

/* --- Cards --- */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: 0 8px 30px var(--color-card-shadow);
  transform: translateY(-2px);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 24px;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card__title a {
  color: var(--color-text);
  text-decoration: none;
}

.card__title a:hover {
  color: var(--color-accent);
}

.card__description {
  color: var(--color-text-secondary);
  font-size: 0.938rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.card__meta {
  font-size: 0.813rem;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

/* --- Featured Cards (large) --- */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
}

.featured-card:hover {
  box-shadow: 0 12px 40px var(--color-card-shadow);
  transform: translateY(-2px);
  color: inherit;
}

.featured-card__image {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.featured-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.featured-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.featured-card__description {
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.featured-card__tags {
  margin-bottom: 20px;
}

.featured-card__cta {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.featured-card__cta::after {
  content: '\2192';
  transition: transform var(--transition);
}

.featured-card:hover .featured-card__cta::after {
  transform: translateX(4px);
}

/* --- Secondary Projects Grid --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.project-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card:hover {
  box-shadow: 0 8px 30px var(--color-card-shadow);
  transform: translateY(-2px);
  color: inherit;
}

.project-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.project-card__when {
  font-size: 0.813rem;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.project-card__description {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
}

/* --- About Teaser --- */
.about-teaser {
  max-width: var(--max-width-text);
}

.about-teaser p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.about-teaser a {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
}

.about-teaser a::after {
  content: '\2192';
  transition: transform var(--transition);
}

.about-teaser a:hover::after {
  transform: translateX(4px);
}

/* --- Case Study --- */
.casestudy-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--color-border);
}

.casestudy-hero__title {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.casestudy-hero__subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.casestudy-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.casestudy-hero__meta-item {
  color: var(--color-text-secondary);
}

.casestudy-hero__meta-label {
  font-weight: 600;
  color: var(--color-text);
  display: block;
  margin-bottom: 2px;
}

.casestudy-hero__image {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  aspect-ratio: 16 / 9;
}

.casestudy-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.casestudy-content {
  max-width: var(--max-width-text);
  margin: 0 auto;
}

.casestudy-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.casestudy-content h2:first-child {
  border-top: none;
  padding-top: 0;
}

.casestudy-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.casestudy-content img {
  border-radius: var(--radius-sm);
  margin: 1.5em 0;
}

.casestudy-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 60px;
}

.casestudy-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.938rem;
}

/* --- Default Page Content --- */
.page-content {
  max-width: var(--max-width-text);
  padding: var(--section-padding) 0;
}

.page-content h1 {
  margin-bottom: 1.5rem;
}

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content img {
  border-radius: var(--radius-sm);
  margin: 1.5em 0;
  max-width: 320px;
}

.page-content a,
.form-section a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content a:hover,
.form-section a:hover {
  opacity: 0.7;
}

/* --- Blog --- */
.blog-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.blog-item {
  display: block;
  padding: 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
}

.blog-item:hover {
  box-shadow: 0 8px 30px var(--color-card-shadow);
  transform: translateY(-2px);
  color: inherit;
}

.blog-item__date {
  font-size: 0.813rem;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.blog-item__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-item__summary {
  font-size: 0.938rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- Forms --- */
.form-section {
  max-width: var(--max-width-text);
  padding: var(--section-padding) 0;
}

.form-section h1 {
  margin-bottom: 12px;
}

.form-section > p {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label,
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-input,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-input::placeholder,
input::placeholder,
textarea::placeholder {
  color: #9CA3AF;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* GRAV form plugin compatibility */
.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-data {
  display: block;
  width: 100%;
}

/* Form success message */
.form-messages {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.938rem;
}

.form-messages.success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}

.form-messages.error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

/* Thank you page */
.thankyou {
  text-align: center;
  padding: 80px 0;
}

.thankyou h1 {
  margin-bottom: 16px;
}

.thankyou p {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer__brand {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-text-secondary);
  transition: color var(--transition);
}

.footer__social a:hover {
  color: var(--color-text);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__links {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.footer__links a:hover {
  color: var(--color-text);
}

.footer__right {
  text-align: right;
}

.footer__lang {
  font-size: 0.813rem;
  color: var(--color-text-secondary);
  margin-top: 12px;
}

.footer__lang a {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.footer__lang a:hover,
.footer__lang a.active {
  color: var(--color-text);
}

.footer__copy {
  font-size: 0.813rem;
  color: var(--color-text-secondary);
  margin-top: 12px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  .hero__inner {
    gap: 48px;
  }

  .featured-card {
    grid-template-columns: 1fr 1fr;
  }

  .featured-card__body {
    padding: 28px;
  }
}

@media (max-width: 960px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: block;
  }

  .nav__lang {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 56px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .hero__portrait {
    width: 160px;
    height: 160px;
  }

  .hero__social {
    justify-content: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__name {
    font-size: 2rem;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card__image {
    aspect-ratio: 16 / 9;
  }

  .featured-card__body {
    padding: 24px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .casestudy-hero__title {
    font-size: 2rem;
  }

  .casestudy-hero__meta {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 48px;
  }

  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 48px 0 32px;
  }

  .hero__portrait {
    width: 120px;
    height: 120px;
  }

  .hero__name {
    font-size: 1.75rem;
  }

  .casestudy-hero__title {
    font-size: 1.75rem;
  }

  .featured-card__title {
    font-size: 1.25rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer__right {
    text-align: left;
  }

  .footer__links {
    justify-content: flex-start;
  }

  .btn {
    padding: 10px 24px;
  }

  .nav__lang {
    margin-left: auto;
  }
}

/* --- Utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }

/* ==========================================================================
   Dark Mode - All explicit colors, high specificity
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  /* Base colors */
  :root {
    --color-bg: #0F172A;
    --color-bg-alt: #1E293B;
    --color-text: #E2E8F0;
    --color-text-secondary: #94A3B8;
    --color-accent: #60A5FA;
    --color-accent-hover: #93C5FD;
    --color-border: #334155;
    --color-tag-bg: #334155;
    --color-card-shadow: rgba(0, 0, 0, 0.4);
  }

  body {
    background-color: #0F172A !important;
    color: #E2E8F0 !important;
  }

  /* All headings - force light color */
  h1, h2, h3, h4, h5, h6 {
    color: #E2E8F0 !important;
  }

  /* Main sections - force dark background */
  .hero,
  .section {
    background-color: #0F172A !important;
  }

  /* Containers should be transparent */
  .container {
    background-color: transparent !important;
  }

  /* Hero name - extra specific with maximum specificity */
  .hero__name,
  h1.hero__name,
  .hero .hero__name,
  .hero .hero__content .hero__name,
  .hero .hero__content h1,
  section.hero h1 {
    color: #E2E8F0 !important;
  }

  /* Links */
  a,
  a:visited {
    color: #60A5FA;
  }

  a:hover,
  a:visited:hover {
    color: #93C5FD;
  }

  /* But NOT button links */
  a.btn,
  a.btn:hover {
    color: inherit;
  }

  /* Navigation */
  .nav {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: #334155;
  }

  .nav__logo,
  .nav__logo:hover {
    color: #E2E8F0;
  }

  .nav__link {
    color: #94A3B8;
  }

  .nav__link:hover,
  .nav__link--active {
    color: #E2E8F0;
  }

  .nav__lang,
  .nav__lang a {
    color: #94A3B8;
  }

  .nav__lang a:hover {
    color: #E2E8F0;
  }

  .nav__mobile {
    background: #0F172A;
    border-bottom-color: #334155;
  }

  .nav__mobile-links a {
    color: #E2E8F0;
    border-bottom-color: #334155;
  }

  .nav__hamburger {
    color: #E2E8F0;
  }

  /* Hero section */
  .hero__name {
    color: #E2E8F0;
  }

  .hero__title,
  .hero__tagline {
    color: #94A3B8;
  }

  .hero__social a {
    background: #1E293B;
    color: #94A3B8;
  }

  .hero__social a:hover {
    background: #60A5FA;
    color: #0F172A;
  }

  .hero__portrait {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  /* Buttons - both same style */
  .btn--primary,
  a.btn--primary,
  .hero__actions .btn--primary,
  .btn--secondary,
  a.btn--secondary,
  .hero__actions .btn--secondary {
    background: #1E293B;
    color: #E2E8F0;
    border: 1px solid #475569;
  }

  .btn--primary:hover,
  a.btn--primary:hover,
  .hero__actions .btn--primary:hover,
  .btn--secondary:hover,
  a.btn--secondary:hover,
  .hero__actions .btn--secondary:hover {
    background: #334155;
    color: #F1F5F9;
    border-color: #64748B;
  }

  /* Section backgrounds */
  .section--alt {
    background-color: #1E293B !important;
  }

  /* Section headers */
  .section-header h2,
  .section-header p {
    color: #E2E8F0;
  }

  .section-header p {
    color: #94A3B8;
  }

  /* Cards */
  .card,
  .featured-card,
  .project-card,
  .blog-item {
    background: #1E293B;
    border-color: #334155;
  }

  .featured-card__body {
    background: #1E293B;
  }

  .featured-card__title,
  .project-card__title,
  .card__title,
  .card__title a {
    color: #E2E8F0;
  }

  .card__title a:hover {
    color: #60A5FA;
  }

  .featured-card__description,
  .project-card__description {
    color: #94A3B8;
  }

  .featured-card__cta {
    color: #60A5FA;
  }

  /* Tags */
  .tag {
    background: #334155;
    color: #94A3B8;
  }

  /* About teaser */
  .about-teaser h2 {
    color: #E2E8F0;
  }

  .about-teaser a {
    color: #60A5FA;
  }

  /* Page content */
  .page-content h1,
  .page-content h2,
  .page-content h3 {
    color: #E2E8F0;
  }

  .page-content a,
  .form-section a {
    color: #60A5FA;
  }

  /* Case study */
  .casestudy-hero {
    border-bottom-color: #334155;
  }

  .casestudy-hero__title {
    color: #E2E8F0;
  }

  .casestudy-hero__subtitle {
    color: #94A3B8;
  }

  /* Forms */
  .form-input,
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="tel"],
  textarea,
  select {
    background: #1E293B;
    border-color: #334155;
    color: #E2E8F0;
  }

  .form-input::placeholder,
  input::placeholder,
  textarea::placeholder {
    color: #64748B;
  }

  .form-input:focus,
  input[type="text"]:focus,
  input[type="email"]:focus,
  input[type="url"]:focus,
  input[type="tel"]:focus,
  textarea:focus,
  select:focus {
    border-color: #60A5FA;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
  }

  .form-messages.success {
    background: #064E3B;
    border-color: #065F46;
    color: #6EE7B7;
  }

  .form-messages.error {
    background: #7F1D1D;
    border-color: #991B1B;
    color: #FCA5A5;
  }

  /* Footer */
  .footer {
    background: #1E293B;
    border-top-color: #334155;
  }

  .footer__brand {
    color: #E2E8F0;
  }

  .footer__tagline,
  .footer__copy,
  .footer__lang {
    color: #94A3B8;
  }

  .footer__social a {
    color: #94A3B8;
  }

  .footer__social a:hover {
    color: #E2E8F0;
  }

  .footer__links a,
  .footer__lang a {
    color: #94A3B8;
  }

  .footer__links a:hover,
  .footer__lang a:hover {
    color: #E2E8F0;
  }

  /* Code blocks */
  code {
    background: #334155;
  }

  pre {
    background: #1E293B;
    border-color: #334155;
  }

  /* Blockquotes */
  blockquote {
    border-left-color: #60A5FA;
    color: #94A3B8;
  }

  /* HR */
  hr {
    border-top-color: #334155;
  }
}
