/* ================================================
   SAM FRIEDMAN — PROFESSIONAL SITE
   4-state theme: (professional|creative) × (light|dark)
   ================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

strong {
  font-weight: 700;
}


/* --- THEME VARIABLES --- */

/* ==============================================
   FONT CONFIGURATION — edit these two lines to
   experiment with different font pairings:
   ============================================== */
:root {
  --font-professional: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-creative: "Georgia", "Times New Roman", "Times", serif;
}

/* Professional + Light (default) — blue accent */
:root,
[data-mode="professional"] {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --text: #1A1D26;
  --text-muted: #6B7084;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-subtle: rgba(37, 99, 235, 0.07);
  --highlight: #2563EB;
  --border: rgba(26, 29, 38, 0.1);
  --shadow: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
  --header-bg: rgba(247, 248, 250, 0.85);
  --toggle-bg: #E8EAF0;
  --toggle-indicator: var(--accent);
  --toggle-active-text: #FFFFFF;
  --toggle-inactive-text: var(--text-muted);
  --placeholder-bg: #E8EAF0;
  --font-body: var(--font-professional);
  --font-heading: var(--font-professional);
}

/* Professional + Dark */
@media (prefers-color-scheme: dark) {
  :root,
  [data-mode="professional"] {
    --bg: #12151C;
    --surface: #1A1E28;
    --text: #E8EAF0;
    --text-muted: #8B8FA3;
    --accent: #3B82F6;
    --accent-hover: #60A5FA;
    --accent-subtle: rgba(59, 130, 246, 0.1);
    --highlight: #3B82F6;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.3);
    --header-bg: rgba(18, 21, 28, 0.9);
    --toggle-bg: #252A36;
    --toggle-indicator: var(--accent);
    --toggle-active-text: #FFFFFF;
    --toggle-inactive-text: var(--text-muted);
    --placeholder-bg: #252A36;
  }
}

/* Creative + Light — red-purple accent */
[data-mode="creative"] {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --text: #1A1D26;
  --text-muted: #6B7084;
  --accent: #B5345A;
  --accent-hover: #9A2C4D;
  --accent-subtle: rgba(181, 52, 90, 0.07);
  --highlight: #B5345A;
  --border: rgba(26, 29, 38, 0.1);
  --shadow: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
  --header-bg: rgba(247, 248, 250, 0.85);
  --toggle-bg: #E8EAF0;
  --toggle-indicator: var(--accent);
  --toggle-active-text: #FFFFFF;
  --toggle-inactive-text: var(--text-muted);
  --placeholder-bg: #E8EAF0;
  --font-body: var(--font-creative);
  --font-heading: var(--font-creative);
}

/* Creative + Dark */
@media (prefers-color-scheme: dark) {
  [data-mode="creative"] {
    --bg: #12151C;
    --surface: #1A1E28;
    --text: #E8ECFF;
    --text-muted: #8B90A8;
    --accent: #D4607E;
    --accent-hover: #E8809A;
    --accent-subtle: rgba(212, 96, 126, 0.1);
    --highlight: #D4607E;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.4);
    --header-bg: rgba(18, 21, 28, 0.9);
    --toggle-bg: #252A36;
    --toggle-indicator: var(--accent);
    --toggle-active-text: #FFFFFF;
    --toggle-inactive-text: var(--text-muted);
    --placeholder-bg: #252A36;
  }
}

/* Manual theme overrides (applied via JS) */
[data-theme="light"] {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --text: #1A1D26;
  --text-muted: #6B7084;
  --border: rgba(26, 29, 38, 0.1);
  --shadow: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
  --placeholder-bg: #E8EAF0;
}

[data-theme="light"][data-mode="professional"] {
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-subtle: rgba(37, 99, 235, 0.07);
  --highlight: #2563EB;
  --header-bg: rgba(247, 248, 250, 0.85);
  --toggle-bg: #E8EAF0;
}

[data-theme="light"][data-mode="creative"] {
  --accent: #B5345A;
  --accent-hover: #9A2C4D;
  --accent-subtle: rgba(181, 52, 90, 0.07);
  --highlight: #B5345A;
  --header-bg: rgba(247, 248, 250, 0.85);
  --toggle-bg: #E8EAF0;
}

[data-theme="dark"] {
  --bg: #12151C;
  --surface: #1A1E28;
  --text: #E8EAF0;
  --text-muted: #8B8FA3;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.3);
  --placeholder-bg: #252A36;
}

[data-theme="dark"][data-mode="professional"] {
  --accent: #3B82F6;
  --accent-hover: #60A5FA;
  --accent-subtle: rgba(59, 130, 246, 0.1);
  --highlight: #3B82F6;
  --header-bg: rgba(18, 21, 28, 0.9);
  --toggle-bg: #252A36;
}

[data-theme="dark"][data-mode="creative"] {
  --accent: #D4607E;
  --accent-hover: #E8809A;
  --accent-subtle: rgba(212, 96, 126, 0.1);
  --highlight: #D4607E;
  --header-bg: rgba(18, 21, 28, 0.9);
  --toggle-bg: #252A36;
  --placeholder-bg: #252A36;
}


/* --- SKIP LINK --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  z-index: 1000;
  font-size: 14px;
}

.skip-link:focus {
  top: 16px;
}


/* --- LAYOUT --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}


/* --- CONTENT VISIBILITY --- */
[data-mode="professional"] .creative-only {
  display: none !important;
}

[data-mode="creative"] .professional-only {
  display: none !important;
}


/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.brand-mark:hover {
  color: var(--accent);
}


/* --- MODE TOGGLE --- */
.mode-toggle {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--toggle-bg);
  border-radius: 24px;
  padding: 4px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

.mode-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mode-toggle-label {
  position: relative;
  z-index: 1;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 20px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.mode-toggle-label[data-mode-label="creative"] {
  font-family: var(--font-creative);
}

.mode-toggle-label[data-mode-label="professional"] {
  font-family: var(--font-professional);
}

/* Default (professional): right label active. Creative mode: left label active. */
/* Order in DOM: Creative (left) | Professional (right) */

.mode-toggle-label[data-mode-label="professional"] {
  color: var(--toggle-active-text);
}

.mode-toggle-label[data-mode-label="creative"] {
  color: var(--toggle-inactive-text);
}

[data-mode="creative"] .mode-toggle-label[data-mode-label="professional"] {
  color: var(--toggle-inactive-text);
}

[data-mode="creative"] .mode-toggle-label[data-mode-label="creative"] {
  color: var(--toggle-active-text);
}

.mode-toggle-indicator {
  position: absolute;
  top: 4px;
  height: calc(100% - 8px);
  border-radius: 20px;
  background: var(--toggle-indicator);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
  /* left and width set by JS for precise centering */
}


/* --- SITE NAV --- */
.site-nav {
  display: flex;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--accent-subtle);
}


/* --- HEADER ACTIONS --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-btn:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--accent-subtle);
}

/* Show/hide sun/moon based on theme */
.icon-moon { display: none; }
.icon-sun { display: block; }

@media (prefers-color-scheme: dark) {
  .icon-moon { display: block; }
  .icon-sun { display: none; }
}

[data-theme="dark"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: block; }


/* --- HAMBURGER MENU --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px 6px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.menu-toggle:hover {
  background: var(--accent-subtle);
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* --- HERO --- */
.hero {
  padding: 100px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 60px;
  align-items: center;
}

/* Creative hero uses same grid as professional */

.hero-tagline {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-positioning {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.pill {
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--accent-subtle);
  border-radius: 20px;
  white-space: nowrap;
}

.hero-ctas {
  display: flex;
  gap: 12px;
}

.hero-media {
  display: flex;
  justify-content: flex-end;
}


/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-subtle);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  margin-top: 12px;
}


/* --- HERO HEADSHOT --- */
.hero-headshot {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

/* --- PLACEHOLDER IMAGES --- */
.placeholder-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--placeholder-bg);
  border-radius: 12px;
  max-width: 360px;
  transition: background-color 0.3s ease;
}

.placeholder-image--wide {
  aspect-ratio: 16 / 10;
  max-width: 100%;
}


/* --- SECTIONS --- */
.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 40px;
}

.section-intro {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 560px;
}

.section-intro a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* --- TIMELINE --- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  z-index: 1;
}

.timeline-item:first-child .timeline-marker {
  background: var(--accent);
}

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  transition: box-shadow 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
  box-shadow: var(--shadow-hover);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.timeline-org {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}

.timeline-date {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-details {
  list-style: disc;
  padding-left: 18px;
}

.timeline-details li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.timeline-details li:last-child {
  margin-bottom: 0;
}


/* --- CARDS --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-body {
  padding: 24px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-subtle);
  border-radius: 4px;
}


/* --- SKILLS --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.skills-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}


/* --- EDUCATION --- */
.education-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.education-school {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.education-degree {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
}

.education-detail {
  font-size: 14px;
  color: var(--text-muted);
}

.awards-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.awards-list {
  list-style: none;
}

.awards-list li {
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.awards-list li:last-child {
  border-bottom: none;
}


/* --- FLY MEDIA (Creative) --- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.feature-desc:last-child {
  margin-bottom: 0;
}


/* --- GALLERY (Creative) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
}

.gallery-item .placeholder-image {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
}


/* --- TOOLS (Creative) --- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.tool-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.tool-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.tool-detail {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}


/* --- ABOUT CREATIVE --- */
.about-creative-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-creative-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-creative-text p:last-child {
  margin-bottom: 0;
}

.about-creative-text strong {
  color: var(--text);
}


/* --- CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.contact-value:hover {
  color: var(--accent);
}

.contact-copy {
  text-align: left;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.contact-copy:hover .copy-hint {
  opacity: 1;
}


/* --- FOOTER --- */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--text);
}


/* --- TOAST --- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* --- SCROLL REVEAL --- */
.section,
.hero {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, background-color 0.3s ease;
}

.section.visible,
.hero.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Creative mode uses same layout as Professional — only accent color and font differ */


/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 920px) {
  .site-nav {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 99;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 4px;
  }

  .nav-links a {
    display: block;
    padding: 10px 12px;
    font-size: 16px;
  }

  .menu-toggle {
    display: flex;
  }

  .header-btn {
    display: none;
  }

  .hero-grid,
  .hero-grid--creative {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-media {
    justify-content: center;
  }

  .hero-headshot {
    max-width: 280px;
  }

  .placeholder-image {
    max-width: 280px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .education-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery-item--tall {
    grid-row: span 1;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-creative-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 0 16px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 72px 0 56px;
  }

  .hero-name {
    font-size: 36px;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 28px;
  }

  .mode-toggle-label {
    padding: 5px 12px;
    font-size: 12px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 4px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
