container {
    width: 100%;
    height: 60vh;
    background: black;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

span {
    color: yellow;
    font-family: 'Avenir';
}
/* General page styling (legacy block neutralized by modern theme above) */

/* legacy nav hidden; replaced by .topnav */
nav { display: none; }

/* Ensure space between each navbar item */
.navbar-item { color: inherit; margin-right: 20px; display: flex; align-items: center; }

.navbar-item i { font-size: 24px; color: inherit; }

/* Footer styling legacy block removed; handled below */

/* Link styling legacy removed; see theme overrides below */

/* Typed.js text styling legacy removed; see theme overrides below */


/* duplicate link block removed */

.fixed-area {
    position: fixed;
    padding: 10px;
    z-index: 100;
}

/* duplicate typed block removed */

/* Updated resume button */
.resume-button {
    display: inline-block;
    background-color: #f2ff00; /* Button color */
    color: #ffffff;
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.resume-button:hover {
    background-color: turquoise; /* Change color on hover */
}

.resume-button i {
    margin-right: 8px; /* Spacing between icon and text */
}

/* ---- New layout and theme (overrides below) ---- */

:root {
  --bg: #f7f7f5;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #0ea5e9;
  --accent-contrast: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.dark {
  --bg: #0f172a;
  --panel: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22d3ee;
  --accent-contrast: #0f172a;
  --border: #1f2937;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Raleway', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Allow proper scrolling on mobile */
html, body { 
  min-height: 100vh; 
  overflow-x: hidden; 
  overscroll-behavior: none;
}

.layout {
  min-height: 100vh;
}

/* Subtle, centered top navigation */
.topnav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.dark .topnav {
  background: rgba(17, 24, 39, 0.5);
}

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

.brand { justify-self: center; }
.controls { justify-self: end; display: flex; align-items: center; gap: 12px; }

.layout {
  display: grid;
  grid-template-columns: 35% 65%;
  min-height: 100vh;
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 40% 60%;
  }
}

@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
}

.sidebar {
  background: rgba(255, 255, 255, 0.4);
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start; /* place items at top */
  align-items: center;
  text-align: center;
}

.dark .sidebar {
  background: rgba(17, 24, 39, 0.4);
}

@media (max-width: 1024px) {
  .sidebar {
    padding: 20px 16px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    padding: 12px 16px;
    gap: 8px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: var(--accent-contrast);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.brand-text .name {
  font-weight: 600;
  font-size: 16px;
}

.brand-text .subtitle {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 480px) {
  .brand-text .name {
    font-size: 14px;
  }
  .brand-text .subtitle {
    font-size: 11px;
  }
}

.sidebar .toggle {
  align-self: center;
  margin-top: 8px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0;
  position: relative;
}

.sidebar .toggle .icon-sun,
.sidebar .toggle .icon-moon { position: absolute; transition: opacity 160ms ease; }
.sidebar .toggle .icon-sun { opacity: 0; }
.dark .sidebar .toggle .icon-sun { opacity: 1; }
.dark .sidebar .toggle .icon-moon { opacity: 0; }

.sidebar-main { display: flex; flex-direction: column; gap: 20px; align-items: center; margin-top: 30vh; }

/* Animate nav raise on open (desktop/tablet) */
.sidebar-main { transition: margin-top 220ms ease; }
.sidebar-main.nav-raised { margin-top: 8vh; }

@media (max-width: 1024px) {
  .sidebar-main { margin-top: 20vh; }
}

@media (max-width: 768px) {
  .sidebar-main { 
    margin-top: 0; 
    flex-direction: row;
    gap: 12px;
  }
  /* On mobile keep it flush; raising handled by in-flow dropdown expansion */
  .sidebar-main.nav-raised { margin-top: 0; }
}

@media (max-width: 480px) {
  .sidebar-main { 
    gap: 8px;
  }
}

/* Legacy icon color override */
.navbar-item i { color: inherit; }

/* Make social/menu icons neutral (black in light, light in dark) */
.dropdown-menu i,
.dropdown-toggle i,
.navbar-item i {
  color: #111827;
}

.dark .dropdown-menu i,
.dark .dropdown-toggle i,
.dark .navbar-item i {
  color: #e5e7eb;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.toggle:hover {
  filter: brightness(0.98);
}

.toggle .toggle-label {
  font-size: 14px;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  min-height: 44px; /* minimum touch target */
  transition: all 0.2s ease;
}

.dropdown-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .dropdown-toggle {
    min-height: 48px; /* larger touch target on mobile */
    padding: 12px 14px;
  }
}

/* Nudge the accounts button a little higher in the sidebar stack */
.sidebar .controls { margin-top: 12px; }

.dropdown-toggle .caret {
  margin-left: auto;
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--shadow);
  z-index: 60; /* above footer */
  pointer-events: none; /* closed by default; enabled when open */
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

/* Burst animation for opening the dropdown */
.burst {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.dropdown.open .burst {
  animation: burst-pop 450ms ease-out forwards;
}

/* Open state shows menu and nudges toggle up */
.dropdown.open .dropdown-menu {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(-4px);
}

.dropdown.open .dropdown-toggle {
  transform: translateY(-12px);
}

/* Mobile: make menu expand in-flow (push content) */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    left: auto;
    top: auto;
    min-width: 100%;
    box-shadow: none;
    border-radius: 10px;
    margin-top: 8px;
    pointer-events: auto;
    opacity: 1;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 220ms ease;
  }

  .dropdown.open .dropdown-menu {
    max-height: 320px; /* enough space for several items */
  }

  .dropdown.open .dropdown-toggle {
    transform: none; /* keep button in-place on mobile */
  }
}

@keyframes burst-pop {
  0% { transform: translateY(-50%) scale(0); opacity: 0.6; }
  60% { transform: translateY(-50%) scale(8); opacity: 0.15; }
  100% { transform: translateY(-50%) scale(10); opacity: 0; }
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  min-height: 44px; /* minimum touch target */
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .dropdown-menu a {
    min-height: 48px; /* larger touch target on mobile */
    padding: 12px 10px;
  }
}

.dropdown-menu a:hover {
  background: rgba(0, 0, 0, 0.04);
}

.dark .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.content {
  max-width: unset;
  margin: 0;
  padding: 40px 28px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
}

@media (max-width: 768px) {
  .content {
    padding: 32px 20px 60px;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 24px 16px 50px;
    gap: 20px;
  }
}

main.content { flex: 1; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center; /* center greeting and lead */
  gap: 20px;
}

.greeting {
  margin: 0;
  font-size: 48px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  min-height: 1.1em; /* prevents layout shift while typing */
  white-space: nowrap; /* avoid wrapping */
  margin-bottom: 4px; /* minimal spacing below greeting */
}

@media (max-width: 768px) {
  .greeting { font-size: 42px; }
}

@media (max-width: 640px) {
  .greeting { font-size: 36px; }
}

@media (max-width: 480px) {
  .greeting { 
    font-size: 32px;
    white-space: normal; /* allow wrapping on very small screens */
  }
}

.auto-type {
  color: var(--text);
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

/* Ensure all hero paragraphs align and match the lead width/style */
.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media (max-width: 768px) {
  .image-wrap {
    margin: 0 auto;
  }
}

#gradImage {
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-width: 100%;
  height: auto;
  width: 370px;
  max-height: 380px;
  object-fit: cover;
}

@media (max-width: 768px) {
  #gradImage {
    width: min(320px, 90vw);
    max-height: 340px;
  }
}

@media (max-width: 480px) {
  #gradImage {
    width: min(280px, 85vw);
    max-height: 300px;
    border-radius: 12px;
  }
}

.actions {
  display: flex;
  gap: 12px;
}

.resume-button {
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  font-weight: 700;
  font-size: 18px;
  padding: 12px 22px;
  border-radius: 10px;
  min-height: 44px; /* minimum touch target size */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.resume-button:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .resume-button {
    font-size: 16px;
    padding: 14px 24px;
    min-height: 48px; /* larger touch target on mobile */
  }
}

@media (max-width: 480px) {
  .resume-button {
    font-size: 15px;
    padding: 12px 20px;
    width: 100%;
    max-width: 280px;
  }
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 16px;
  text-align: center;
  z-index: 30;
}

.dark footer {
  background: rgba(17, 24, 39, 0.8);
}

@media (max-width: 768px) {
  footer {
    padding: 12px 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Make spans not forced yellow on light theme */
span { color: inherit; font-family: inherit; }

/* Link styling override for themes */
a, a:link {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

/* Book list styling */
.book-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  width: 100%;
}

.book-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.book-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.book-item h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.book-item .author {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .book-list {
    max-width: 100%;
  }
  
  .book-item {
    padding: 16px;
  }
  
  .book-item h3 {
    font-size: 16px;
  }
}

/* Photography page styling */
.photography-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.vsco-link {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .photography-showcase {
    gap: 24px;
  }
}
