/* CSS Variables & Base */
:root {
  --bg: #0b0d10;
  --text: #e6e9ef;
  --muted: #a0a6b2;
  --accent: #7c5cff;
  --surface: #141821;
  --border: #2a2f3a;
  --shadow: 0 10px 30px rgba(0,0,0,0.3);
}

[data-theme="light"] {
  --bg: #ffffff;
  --text: #0b0d10;
  --muted: #475069;
  --accent: #5b6cff;
  --surface: #f5f7fb;
  --border: #dfe3ea;
  --shadow: 0 10px 20px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -50%, rgba(124,92,255,0.15), transparent 60%), var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus { left: 12px; top: 12px; width: auto; height: auto; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,13,16,0.6); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
[data-theme="light"] .site-header { background: rgba(255,255,255,0.6); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.5px; border: 1px solid var(--border); padding: 8px 10px; border-radius: 10px; box-shadow: var(--shadow); background: linear-gradient(180deg, var(--surface), transparent); }

.site-nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--text); }

.nav-toggle { display: none; background: none; color: var(--text); border: none; font-size: 22px; }

.theme-toggle { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 6px 10px; cursor: pointer; }

/* Hero */
.hero { padding: 64px 0 32px; }
.hero .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.1; margin: 0 0 12px; }
.accent { color: var(--accent); }
.subtitle { color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.hero-cta { display: flex; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; border: 1px solid var(--border); }
.btn.primary { background: var(--accent); color: #fff; border: none; }
.btn.secondary { background: var(--surface); color: var(--text); }
.btn.tertiary { background: transparent; color: var(--text); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.hero-media { display: grid; place-items: center; }
.avatar { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 8px solid var(--surface); box-shadow: var(--shadow); background: var(--surface); }

/* Sections */
.section { padding: 56px 0; }
.section h2 { font-size: 28px; margin: 0 0 18px; }
.grid { display: grid; gap: 16px; }
.projects-grid { grid-template-columns: repeat(3, 1fr); }

.card { background: linear-gradient(180deg, var(--surface), transparent); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); }
.card-actions { display: flex; gap: 10px; margin-top: 10px; }

/* Project collapsible */
[data-collapsible] .project-summary { color: var(--muted); }
.project-toggle { display: inline-block; margin-top: 6px; color: var(--accent); text-decoration: none; font-weight: 600; }
.project-toggle:hover { text-decoration: underline; }
.project-details { margin-top: 10px; }

/* Paintings */
.paintings-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
.painting-item { display: grid; grid-template-columns: 1fr 0.9fr; align-items: start; gap: 14px; background: linear-gradient(180deg, var(--surface), transparent); border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.painting-img { width: 100%; height: auto; max-height: none; object-fit: cover; border-radius: 12px; }
.painting-caption { color: var(--text); font-size: 16px; line-height: 1.6; white-space: normal; word-break: break-word; }

/* Contact form */
.contact-form { display: grid; gap: 12px; max-width: 560px; }
.form-field { display: grid; gap: 6px; }
label { font-weight: 600; }
input, textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
input::placeholder, textarea::placeholder { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--muted); }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.socials { display: flex; gap: 14px; }
.socials a { color: var(--muted); text-decoration: none; }
.socials a:hover { color: var(--text); }

.accent-link, a[href*="scholar.google.com"] { color: var(--accent); }
.accent-link:hover, a[href*="scholar.google.com"]:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .paintings-grid { grid-template-columns: 1fr; }
  .painting-item { grid-template-columns: 1fr; }
  .painting-img { height: auto; max-height: none; }
}
@media (max-width: 640px) {
  .site-nav { position: fixed; inset: 56px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform .25s ease; }
  .site-nav.open { transform: translateY(0); }
  .site-nav ul { padding: 12px 16px; flex-direction: column; align-items: flex-start; }
  .nav-toggle { display: inline-block; }
  .projects-grid { grid-template-columns: 1fr; }
}


