:root {
  --color-bg: #faf9f6;
  --color-surface: #ffffff;
  --color-text: #171717;
  --color-text-muted: #6b7280;
  --color-accent-primary: #374151;
  --color-accent-secondary: #d1d5db;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-overlay: rgba(0, 0, 0, 0.03);
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

:root[data-theme="dark"] {
  --color-bg: #1a1a1a;
  --color-surface: #262626;
  --color-text: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-accent-primary: #d1d5db;
  --color-accent-secondary: #4b5563;
  --color-border: rgba(255, 255, 255, 0.10);
  --color-overlay: rgba(255, 255, 255, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent-primary); text-decoration: none; transition: opacity 0.15s ease; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: hidden;
}
@media (min-width: 480px) { .container { padding: 0 24px; } }
@media (min-width: 768px) { .container { padding: 0 48px; } }
@media (min-width: 1024px) { .container { padding: 0 80px; } }

/* Prevent horizontal overflow globally */
html, body { overflow-x: hidden; max-width: 100%; }

/* Typography */
h1 { font-size: 26px; font-weight: 500; line-height: 1.2; margin-top: 0; margin-bottom: 40px; display: flex; align-items: center; }
h1::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: #EAB308;
  margin-right: 16px;
  flex-shrink: 0;
}
h2 { font-size: 21px; font-weight: 500; line-height: 1.3; margin-top: 0; margin-bottom: 20px; }
h3 { font-size: 18px; font-weight: 500; line-height: 1.4; margin-top: 0; margin-bottom: 16px; }

@media(min-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
}
@media(min-width: 1024px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}

/* Hero name: start at comfortable mobile size */
.text-hero-name { font-size: 28px; font-weight: 500; line-height: 1.15; margin-bottom: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.text-hero-name::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background-color: #EAB308;
  margin-right: 16px;
  flex-shrink: 0;
}
.text-hero-statement { font-size: 16px; font-weight: 400; line-height: 1.8; color: var(--color-text-muted); max-width: 680px; }
@media(min-width: 480px) {
  .text-hero-name { font-size: 32px; margin-bottom: 32px; }
  .text-hero-statement { font-size: 17px; }
}
@media(min-width: 768px) {
  .text-hero-name { font-size: 40px; margin-bottom: 40px; }
  .text-hero-statement { font-size: 19px; }
}
@media(min-width: 1024px) {
  .text-hero-name { font-size: 52px; margin-bottom: 48px; }
  .text-hero-statement { font-size: 22px; }
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-text);
  margin-top: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
@media(min-width: 768px) {
  .section-title { font-size: 18px; margin-top: 72px; }
}
.section-title::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background-color: #EAB308;
  margin-right: 16px;
  flex-shrink: 0;
}

.reading-width {
  max-width: 680px;
}

/* Section block: consistent readable text container */
.section-block {
  max-width: 680px;
}
.section-block p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 15px;
}
.section-block p:last-child { margin-bottom: 0; }

.body-lg { font-size: 18px; }
.text-muted { color: var(--color-text-muted); }
.text-micro { font-size: 11px; }

/* Layout / Spacing */
section { padding: 48px 0; }
@media(min-width: 768px) { section { padding: 72px 0; } }
@media(min-width: 1024px) { section { padding: 120px 0; } }

/* Header & Nav */
.site-header {
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: transparent;
  transition: background-color 0.25s ease-out, box-shadow 0.25s ease-out;
  border-top: 3px solid #EAB308;
}
.site-header.is-sticky {
  background-color: var(--color-bg);
  box-shadow: 0 1px 0 var(--color-border);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { font-weight: 500; font-size: 18px; }

.main-nav { display: none; }
.lang-switcher { font-size: 12px; font-weight: 500; }
.lang-switcher a { color: var(--color-text-muted); text-decoration: none; padding: 4px; }
.lang-switcher a.active { color: var(--color-text); font-weight: 600; }

.theme-toggle {
  background: none; border: none; color: var(--color-text); font-size: 18px; cursor: pointer;
  margin-left: 16px; padding: 4px; display: flex; align-items: center; justify-content: center;
}

.menu-toggle, .menu-toggle-close {
  background: none; border: none; color: var(--color-text); font-size: 24px; cursor: pointer;
  display: block; padding: 8px; min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}

@media(min-width: 1024px) {
  .main-nav {
    display: flex; gap: 24px; flex-wrap: wrap;
  }
  .main-nav a {
    color: var(--color-text); font-size: 14px; font-weight: 500; text-decoration: none;
  }
  .main-nav a:hover { color: var(--color-accent-primary); text-decoration: none; }
  .main-nav a.active { color: var(--color-accent-primary); }
  .menu-toggle { display: none; }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-bg); z-index: 200; padding: 24px;
  flex-direction: column;
}
.mobile-nav-overlay.is-open { display: flex; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 24px; font-size: 24px; font-weight: 500; }
.mobile-nav-links a { color: var(--color-text); text-decoration: none; }

/* Grid */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-5 { display: grid; grid-template-columns: 1fr; gap: 16px; }

@media(min-width: 480px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media(min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media(min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* Cards */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s ease;
  display: block;
  color: inherit;
}
.card:hover {
  border-color: var(--color-accent-primary);
  text-decoration: none;
}
.card-img-placeholder {
  background-color: var(--color-border);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); font-size: 14px;
}
.card-content { padding: 20px; }

.tag {
  display: inline-block;
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
  background-color: rgba(234,179,8,0.12); color: var(--color-accent-secondary);
  padding: 4px 10px; border-radius: 3px; margin-bottom: 12px;
}

/* Interest Cards */
.interest-card {
  padding: 0;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.interest-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.interest-img {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: #FFF;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.interest-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.5s ease;
}
.interest-card:hover .interest-img img {
  transform: scale(1.05);
}
.interest-card-content {
  padding: 16px;
  flex-grow: 1;
}
.interest-card h3 { 
  font-size: 14px; 
  font-weight: 600; 
  margin-bottom: 6px; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}
.interest-card p { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }

.process-step {
  padding: 32px 24px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.process-step:hover {
  transform: scale(1.05);
  border-color: #EAB308;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 10;
}
.process-step p { font-size: 14px; color: var(--color-text-muted); line-height: 1.65; margin: 0; }

/* Forms */
.form-group { margin-bottom: 24px; }
label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
input[type="text"], input[type="email"], textarea {
  width: 100%; padding: 12px 16px; font-size: 16px; font-family: inherit;
  background-color: var(--color-surface); color: var(--color-text);
  border: 1.5px solid var(--color-border); border-radius: 4px;
  transition: border-color 0.15s ease;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--color-accent-primary); outline: none; }

.btn {
  display: inline-block; padding: 12px 24px; font-size: 14px; font-weight: 500;
  border-radius: 4px; cursor: pointer; transition: background-color 0.15s ease, transform 0.1s ease;
  text-decoration: none; text-align: center; border: none;
}
.btn-primary {
  background-color: var(--color-accent-primary); color: #FFF;
}
.btn-primary:hover { opacity: 0.9; text-decoration: none; color: #FFF; }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background-color: transparent; border: 1.5px solid var(--color-accent-primary);
  color: var(--color-accent-primary);
}
.btn-secondary:hover { background-color: var(--color-overlay); text-decoration: none; }

/* Footer */
.site-footer {
  margin-top: 96px; padding: 48px 0;
  border-top: 1px solid var(--color-border);
}
.footer-content {
  display: flex; flex-direction: column; gap: 24px; align-items: center;
}
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: var(--color-text-muted); font-size: 14px; }
.copyright { color: var(--color-text-muted); font-size: 12px; }

@media(min-width: 768px) {
  .footer-content { flex-direction: row; justify-content: space-between; }
}

/* CV Layout */
.cv-row {
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}
.cv-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.cv-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
}
.cv-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
}
.cv-content strong { font-weight: 600; }
.cv-block { max-width: 760px; }

/* Architectural CV accents */
.cv-dot-list { list-style: none; padding: 0; margin: 0; }
.cv-dot-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}
.cv-dot-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background-color: #EAB308;
}
.cv-icon-wrap {
  color: #EAB308;
  opacity: 0.8;
}
.cv-icon-wrap svg { width: 16px; height: 16px; display: block; }

/* Project Cards */
.project-list { display: flex; flex-direction: column; gap: 0; max-width: 860px; }
.project-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}
@media(min-width: 720px) {
  .project-card { grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
}
.project-img {
  background-color: var(--color-border);
  aspect-ratio: 4/3;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 24px;
}
@media(min-width: 720px) { .project-img { margin-bottom: 0; } }
.project-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.project-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  padding: 3px 10px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
}
.project-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.3;
}
.project-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.project-result {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  padding-left: 12px;
  border-left: 2px solid #EAB308;
}
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.flex { display: flex; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.hidden { display: none; }
