/* Color palette */
:root {
  --bg: #0a0a0a;
  --fg: #e8e8e8;
  --muted: #a8a8a8;
  --primary: #7c5cff;
  --card: #151515;
  --border: #252525;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
}

:root.light {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #4a4a4a;
  --card: #f4f4f4;
  --border: #e3e3e3;
  --shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Base setup */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  background: color-mix(in oklab, var(--bg), transparent 30%);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
}

/* Simple theme toggle with moon icon */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--fg), var(--border) 70%);
}

/* Hero section */
.hero {
  min-height: 75svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem 1.5rem;
}

.photo-wrap {
  width: 168px;
  height: 168px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(10%) contrast(105%);
}

.title {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  margin: 0.2rem 0 0.2rem;
  font-weight: 700;
}

.subtitle {
  color: var(--muted);
  margin: 0 0 1rem;
}

/* Social icons */
.socials {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  align-items: center;
  margin: 0 0 0.9rem;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  transition: transform 0.08s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.icon:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--fg), var(--border) 70%);
  color: #ffffff;
}

/* Buttons */
.cta {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  background: linear-gradient(180deg, color-mix(in oklab, var(--card), transparent 30%), var(--card));
  transition: transform 0.08s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover { 
  transform: translateY(-1px); 
  border-color: color-mix(in oklab, var(--fg), var(--border) 70%); 
}

.btn:active { transform: translateY(0); }

.btn.primary {
  background: linear-gradient(180deg, color-mix(in oklab, var(--primary), #000 70%), var(--primary));
  border-color: color-mix(in oklab, var(--primary), #000 60%);
}

/* Neutral email button styling */
.btn.email-neutral {
  background: var(--card);
  border-color: var(--border);
  color: var(--fg);
}

.btn.email-neutral:hover {
  color: var(--fg);
  border-color: color-mix(in oklab, var(--fg), var(--border) 70%);
}

/* Sections */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.2rem 1rem;
}

/* Keep top border for all sections EXCEPT About */
.section:not(#about) {
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 1.5rem;
  margin: 0 0 0.7rem;
}

.section a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--fg), transparent 70%);
}

.section a:hover {
  text-decoration-color: var(--fg);
}

/* Compact footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 0.7rem 1rem 1.2rem;
  text-align: center;
  color: var(--muted);
}

/* Smooth entrance animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.hero, .section { 
  animation: fadeUp 420ms ease both; 
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

