:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --card: #f5f5f5;
  --border: rgba(0,0,0,0.08);
  --accent: #4f46e5;
  --nav-bg: rgba(255,255,255,0.7);
  --shadow: 0 4px 14px rgba(0,0,0,0.08);
}

[data-theme="dark"] {
  --bg: #0b0b0c;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --card: #151518;
  --border: rgba(255,255,255,0.08);
  --accent: #8b5cf6;
  --nav-bg: rgba(15,15,18,0.7);
  --shadow: 0 6px 20px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: var(--nav-bg);
  box-shadow: var(--shadow);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 12px 20px;
}

.nav-center { display: flex; gap: 22px; justify-content: center; width: 100%; }
.nav-link { opacity: 0.85; }
.nav-link:hover { color: var(--accent); opacity: 1; }

.theme-toggle {
  justify-self: end;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.theme-toggle:hover { box-shadow: var(--shadow); }

main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 80px; flex: 1 0 auto; width: 100%; }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  min-height: 85vh;
  align-items: center;
  padding: 40px 0 20px;
}

@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
}

.hero h1 { font-size: 46px; line-height: 1.1; margin: 0 0 14px; }
@media (min-width: 860px) { .hero h1 { font-size: 62px; } }
.hero p { color: var(--muted); font-size: 18px; margin: 0 0 22px; }

.btn {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  border-radius: 12px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  transition: transform 150ms ease, background 150ms ease;
}
.btn:hover { transform: translateY(-1px); background: var(--accent); }

.avatar {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, var(--card), transparent);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  place-items: center;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 680px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.card.visible { opacity: 1; transform: translateY(0); }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0 0 10px; color: var(--muted); }
.card .links { display: flex; gap: 12px; }
.card .links a { color: var(--accent); }

.section-title { font-size: 28px; margin: 26px 0 12px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 20px;
  margin-top: auto;
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; }

.social { display: flex; gap: 14px; }
.icon-link { color: var(--muted); }
.icon-link:hover { color: var(--accent); }

.fade-in { opacity: 0; transform: translateY(8px); transition: opacity 600ms ease, transform 600ms ease, font-size 250ms ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
h1.fade-in.visible { font-size: 52px; }
p.fade-in.visible { font-size: 22px; }
@media (min-width: 860px) { h1.fade-in.visible { font-size: 68px; } }

.preview-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preview-object {
  width: 100%;
  height: 800px;
  border: none;
}

.contact-list-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.icon-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1em;
}
.icon-link:hover {
  color: var(--accent);
}
