/* ==========================================================================
   SAFRO.NET — Modern Minimalist Single Page Styles
   Themes: Nordic Sage, Warm Linen, Misty Lilac, Slate Breeze, Pearl & Gold
   Directional Animations strictly adhering to layout-idea.png
   ========================================================================== */

:root {
  /* Modern Fluent typography & transitions */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --radius-full: 9999px;
  --header-height: 64px;
}

/* ==========================================================================
   THEME DEFINITIONS (Soft, Modern, Minimalist)
   ========================================================================== */

/* 1. Nordic Sage (Default) */
html[data-theme="nordic-sage"][data-mode="light"] {
  --bg-app: #f6f8f6;
  --bg-strip-home: #eef3ee;
  --bg-strip-saflis: #f0f5f2;
  --bg-strip-rosa: #f5f0f3;
  --bg-strip-fatih: #edf3f7;
  --bg-strip-about: #f4f6f2;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.88);
  --bg-modal: #f8faf8;
  --text-primary: #1e2d27;
  --text-secondary: #52635b;
  --text-muted: #7e9188;
  --accent: #3d7560;
  --accent-soft: #e3ede7;
  --accent-hover: #2e5949;
  --border-light: #e0e9e3;
  --border-active: #b9d1c3;
  --border-gold: #c9a84a;
  --shadow-sm: 0 2px 8px rgba(30, 45, 39, 0.05);
  --shadow-md: 0 10px 30px rgba(30, 45, 39, 0.07);
  --shadow-lg: 0 24px 60px rgba(30, 45, 39, 0.12);
  --orb-color-1: rgba(61, 117, 96, 0.12);
  --orb-color-2: rgba(201, 168, 74, 0.10);
  --orb-color-3: rgba(126, 178, 155, 0.14);
}

html[data-theme="nordic-sage"][data-mode="dark"] {
  --bg-app: #131916;
  --bg-strip-home: #18201c;
  --bg-strip-saflis: #1b2420;
  --bg-strip-rosa: #221d23;
  --bg-strip-fatih: #1a2228;
  --bg-strip-about: #19211d;
  --bg-card: #1c2520;
  --bg-card-glass: rgba(28, 37, 32, 0.9);
  --bg-modal: #161e1a;
  --text-primary: #e6ede8;
  --text-secondary: #a3b5ab;
  --text-muted: #72847a;
  --accent: #5e9b83;
  --accent-soft: #23342d;
  --accent-hover: #7ab39c;
  --border-light: #25332c;
  --border-active: #3e584c;
  --border-gold: #d4b55c;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --orb-color-1: rgba(94, 155, 131, 0.18);
  --orb-color-2: rgba(212, 181, 92, 0.14);
  --orb-color-3: rgba(50, 90, 75, 0.22);
}

/* 2. Warm Linen & Terracotta */
html[data-theme="warm-linen"][data-mode="light"] {
  --bg-app: #fcf9f5;
  --bg-strip-home: #f7efe6;
  --bg-strip-saflis: #f4ecdf;
  --bg-strip-rosa: #faedf0;
  --bg-strip-fatih: #f2edf7;
  --bg-strip-about: #f8f1e7;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.9);
  --bg-modal: #fbf7f1;
  --text-primary: #2d231b;
  --text-secondary: #635345;
  --text-muted: #948272;
  --accent: #a85d3b;
  --accent-soft: #f7e8e0;
  --accent-hover: #8e4a2b;
  --border-light: #ece0d3;
  --border-active: #d6beaa;
  --border-gold: #c9933b;
  --shadow-sm: 0 2px 8px rgba(45, 35, 27, 0.05);
  --shadow-md: 0 10px 30px rgba(45, 35, 27, 0.08);
  --shadow-lg: 0 24px 60px rgba(45, 35, 27, 0.12);
  --orb-color-1: rgba(168, 93, 59, 0.12);
  --orb-color-2: rgba(201, 147, 59, 0.12);
  --orb-color-3: rgba(230, 180, 150, 0.15);
}

html[data-theme="warm-linen"][data-mode="dark"] {
  --bg-app: #1c1713;
  --bg-strip-home: #221c17;
  --bg-strip-saflis: #251e19;
  --bg-strip-rosa: #271c20;
  --bg-strip-fatih: #201c26;
  --bg-strip-about: #241d18;
  --bg-card: #28211b;
  --bg-card-glass: rgba(40, 33, 27, 0.92);
  --bg-modal: #1f1915;
  --text-primary: #f0e6dd;
  --text-secondary: #bcaa9b;
  --text-muted: #877567;
  --accent: #c97955;
  --accent-soft: #38251c;
  --accent-hover: #e09472;
  --border-light: #362c24;
  --border-active: #5c4a3c;
  --border-gold: #e2ab4c;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --orb-color-1: rgba(201, 121, 85, 0.16);
  --orb-color-2: rgba(226, 171, 76, 0.12);
  --orb-color-3: rgba(120, 60, 35, 0.22);
}

/* 3. Misty Lilac */
html[data-theme="misty-lilac"][data-mode="light"] {
  --bg-app: #f9f7fc;
  --bg-strip-home: #f2eef7;
  --bg-strip-saflis: #edf0f8;
  --bg-strip-rosa: #f8ecf4;
  --bg-strip-fatih: #edf3f7;
  --bg-strip-about: #f3eff9;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.9);
  --bg-modal: #faf8fd;
  --text-primary: #2b2336;
  --text-secondary: #5f516f;
  --text-muted: #8e7f9e;
  --accent: #6f5394;
  --accent-soft: #eee7f7;
  --accent-hover: #583f7a;
  --border-light: #e6dfef;
  --border-active: #cbbde0;
  --border-gold: #c79a42;
  --shadow-sm: 0 2px 8px rgba(43, 35, 54, 0.05);
  --shadow-md: 0 10px 30px rgba(43, 35, 54, 0.07);
  --shadow-lg: 0 24px 60px rgba(43, 35, 54, 0.12);
  --orb-color-1: rgba(111, 83, 148, 0.12);
  --orb-color-2: rgba(199, 154, 66, 0.10);
  --orb-color-3: rgba(175, 140, 210, 0.14);
}

html[data-theme="misty-lilac"][data-mode="dark"] {
  --bg-app: #18141f;
  --bg-strip-home: #1f1928;
  --bg-strip-saflis: #1b1c28;
  --bg-strip-rosa: #261924;
  --bg-strip-fatih: #181f28;
  --bg-strip-about: #201927;
  --bg-card: #231b2e;
  --bg-card-glass: rgba(35, 27, 46, 0.92);
  --bg-modal: #1b1624;
  --text-primary: #ebe5f5;
  --text-secondary: #b3a5c4;
  --text-muted: #827294;
  --accent: #9776c7;
  --accent-soft: #2e2040;
  --accent-hover: #b193dd;
  --border-light: #322642;
  --border-active: #543f70;
  --border-gold: #dbad4f;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --orb-color-1: rgba(151, 118, 199, 0.18);
  --orb-color-2: rgba(219, 173, 79, 0.14);
  --orb-color-3: rgba(75, 45, 115, 0.22);
}

/* 4. Slate Breeze */
html[data-theme="slate-breeze"][data-mode="light"] {
  --bg-app: #f5f8fb;
  --bg-strip-home: #eaf1f7;
  --bg-strip-saflis: #e6eef5;
  --bg-strip-rosa: #f5edf1;
  --bg-strip-fatih: #e7f2f7;
  --bg-strip-about: #ecf3f8;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.9);
  --bg-modal: #f7fafe;
  --text-primary: #192734;
  --text-secondary: #485c6f;
  --text-muted: #798e9f;
  --accent: #376a91;
  --accent-soft: #e2eef7;
  --accent-hover: #275273;
  --border-light: #dbe7f2;
  --border-active: #b4cde2;
  --border-gold: #c79e43;
  --shadow-sm: 0 2px 8px rgba(25, 39, 52, 0.05);
  --shadow-md: 0 10px 30px rgba(25, 39, 52, 0.07);
  --shadow-lg: 0 24px 60px rgba(25, 39, 52, 0.12);
  --orb-color-1: rgba(55, 106, 145, 0.13);
  --orb-color-2: rgba(199, 158, 67, 0.10);
  --orb-color-3: rgba(135, 185, 215, 0.16);
}

html[data-theme="slate-breeze"][data-mode="dark"] {
  --bg-app: #121820;
  --bg-strip-home: #17212b;
  --bg-strip-saflis: #192430;
  --bg-strip-rosa: #221a22;
  --bg-strip-fatih: #172632;
  --bg-strip-about: #18222c;
  --bg-card: #1b2633;
  --bg-card-glass: rgba(27, 38, 51, 0.92);
  --bg-modal: #141c26;
  --text-primary: #e5eff8;
  --text-secondary: #9cb1c5;
  --text-muted: #6f8295;
  --accent: #5b96c4;
  --accent-soft: #1d3347;
  --accent-hover: #7eb3dc;
  --border-light: #253649;
  --border-active: #3e5a7a;
  --border-gold: #dfb252;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --orb-color-1: rgba(91, 150, 196, 0.18);
  --orb-color-2: rgba(223, 178, 82, 0.14);
  --orb-color-3: rgba(40, 75, 105, 0.24);
}

/* 5. Pearl & Gold */
html[data-theme="pearl-gold"][data-mode="light"] {
  --bg-app: #faf9f6;
  --bg-strip-home: #f4f2ec;
  --bg-strip-saflis: #f2f0e8;
  --bg-strip-rosa: #f7eff0;
  --bg-strip-fatih: #eef2f5;
  --bg-strip-about: #f5f3ed;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.92);
  --bg-modal: #fcfbf8;
  --text-primary: #23221e;
  --text-secondary: #57554f;
  --text-muted: #8a877f;
  --accent: #876d2e;
  --accent-soft: #f4eedd;
  --accent-hover: #6d5621;
  --border-light: #eae6db;
  --border-active: #d2c8b0;
  --border-gold: #bfa04e;
  --shadow-sm: 0 2px 8px rgba(35, 34, 30, 0.05);
  --shadow-md: 0 10px 30px rgba(35, 34, 30, 0.07);
  --shadow-lg: 0 24px 60px rgba(35, 34, 30, 0.12);
  --orb-color-1: rgba(135, 109, 46, 0.12);
  --orb-color-2: rgba(191, 160, 78, 0.12);
  --orb-color-3: rgba(225, 210, 170, 0.15);
}

html[data-theme="pearl-gold"][data-mode="dark"] {
  --bg-app: #181715;
  --bg-strip-home: #201e1a;
  --bg-strip-saflis: #23211b;
  --bg-strip-rosa: #261c21;
  --bg-strip-fatih: #1b2026;
  --bg-strip-about: #211f1b;
  --bg-card: #26241f;
  --bg-card-glass: rgba(38, 36, 31, 0.92);
  --bg-modal: #1c1a17;
  --text-primary: #f2efe9;
  --text-secondary: #b8b2a3;
  --text-muted: #827c6f;
  --accent: #d2b05b;
  --accent-soft: #38301d;
  --accent-hover: #e4c77b;
  --border-light: #353229;
  --border-active: #5c5442;
  --border-gold: #e2be64;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --orb-color-1: rgba(210, 176, 91, 0.16);
  --orb-color-2: rgba(226, 190, 100, 0.14);
  --orb-color-3: rgba(85, 70, 35, 0.22);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  overflow: hidden; /* Desktop view is single-screen with scrolling inside modals */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

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

/* ==========================================================================
   AMBIENT BACKGROUND GLOW
   ========================================================================== */

.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.8;
  transform: translateZ(0);
  transition: background 0.6s ease;
}

.orb-1 {
  width: 45vw;
  height: 45vw;
  max-width: 600px;
  max-height: 600px;
  top: -15%;
  left: 10%;
  background: radial-gradient(circle, var(--orb-color-1) 0%, transparent 70%);
  animation: orbDrift1 22s ease-in-out infinite alternate;
}

.orb-2 {
  width: 50vw;
  height: 50vw;
  max-width: 650px;
  max-height: 650px;
  bottom: -20%;
  right: 5%;
  background: radial-gradient(circle, var(--orb-color-2) 0%, transparent 70%);
  animation: orbDrift2 26s ease-in-out infinite alternate;
}

.orb-3 {
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  top: 40%;
  left: 45%;
  background: radial-gradient(circle, var(--orb-color-3) 0%, transparent 70%);
  animation: orbDrift3 28s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.1); }
}

@keyframes orbDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -60px) scale(1.08); }
}

@keyframes orbDrift3 {
  0% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-45%, -40%) scale(1.15); }
}

/* ==========================================================================
   SITE HEADER & CONTROLS
   ========================================================================== */

.site-header {
  position: fixed;
  top: 12px;
  left: 16px;
  right: 16px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-radius: var(--radius-md);
  z-index: 40;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: var(--bg-card-glass);
  border: 1px solid var(--border-light);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), var(--shadow-sm);
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  user-select: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.85;
}

.logo-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.logo-text span {
  color: var(--accent);
  font-weight: 400;
}

.header-center-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--accent-soft);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 0 0 rgba(61, 117, 96, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 155, 131, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(94, 155, 131, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 155, 131, 0); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.action-btn:hover {
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.icon-btn {
  padding: 8px;
  border-radius: 50%;
}

.icon-btn .icon-sound-off {
  display: none;
}

.icon-btn.is-muted .icon-sound-on {
  display: none;
}

.icon-btn.is-muted .icon-sound-off {
  display: block;
}

.theme-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 1px solid var(--border-gold);
}

/* Theme Dropdown Menu */
.theme-dropdown-wrapper {
  position: relative;
}

.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 50;
  animation: dropdownFadeIn 0.2s ease;
}

.theme-menu.is-open {
  display: flex;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.theme-menu-header {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 10px 4px;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-align: left;
  transition: background 0.15s ease;
}

.theme-option:hover {
  background: var(--accent-soft);
}

.theme-option.active {
  background: var(--accent-soft);
  font-weight: 600;
  color: var(--accent);
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.sage-dot { background: #5b8c7a; }
.linen-dot { background: #cf8261; }
.lilac-dot { background: #7c6a99; }
.slate-dot { background: #4f7c9e; }
.gold-dot { background: #bfa04e; }

.theme-name {
  font-size: 0.85rem;
  flex: 1;
}

.theme-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.theme-divider {
  height: 1px;
  background: var(--border-light);
  margin: 6px 0;
}

.mode-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 500;
}

.toggle-switch {
  width: 42px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--border-active);
  position: relative;
  transition: background 0.25s ease;
}

.switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html[data-mode="dark"] .toggle-switch {
  background: var(--accent);
}

html[data-mode="dark"] .switch-knob {
  transform: translateX(18px);
  background: #ffffff;
}

/* ==========================================================================
   MAIN 5-STRIP ACCORDION LAYOUT
   (Direct visual interpretation of layout-idea.png)
   ========================================================================== */

.accordion-layout {
  position: absolute;
  top: calc(var(--header-height) + 24px);
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow: hidden;
  z-index: 10;
}

.accordion-strip {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 32px 16px 24px;
  cursor: pointer;
  outline: none;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-card-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), var(--shadow-sm);
  user-select: none;
  transition: flex 0.5s var(--ease-spring), border-color 0.3s ease, transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
  overflow: hidden;
}

.accordion-strip:hover,
.accordion-strip:focus-visible {
  flex: 1.45;
  border-color: var(--border-active);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), var(--shadow-lg);
  transform: translateY(-3px);
}

.strip-background {
  position: absolute;
  inset: 0;
  transition: background 0.4s ease, opacity 0.3s ease;
  z-index: 1;
}

.strip-home .strip-background { background: var(--bg-strip-home); }
.strip-saflis .strip-background { background: var(--bg-strip-saflis); }
.strip-rosa .strip-background { background: var(--bg-strip-rosa); }
.strip-fatih .strip-background { background: var(--bg-strip-fatih); }
.strip-about .strip-background { background: var(--bg-strip-about); }

.accordion-strip:hover .strip-background {
  opacity: 0.88;
}

.strip-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* Modern Fluent Vertical Tag */
.strip-vertical-tag {
  position: absolute;
  top: 24px;
  left: 18px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.55;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.accordion-strip:hover .strip-vertical-tag {
  opacity: 1;
  color: var(--accent);
}

/* Badges & Titles for Strip 1 (Home) & Strip 5 (About) */
.strip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.strip-heading {
  text-align: center;
  margin-top: 18px;
}

.strip-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 6px;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.strip-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.strip-preview-pill {
  max-width: 220px;
  background: var(--bg-card-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.accordion-strip:hover .strip-preview-pill {
  transform: translateY(-4px);
  border-color: var(--border-active);
}

.strip-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   DIE-CUT VINYL STICKER ENGINE (Playful, Tactile, Modern)
   ========================================================================== */

.strip-sticker-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto 0;
  position: relative;
  z-index: 3;
}

.sticker-wrapper {
  position: relative;
  width: 190px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  perspective: 800px;
  transition: transform 0.45s var(--ease-spring);
}

/* Playful organic slap angles */
.sticker-saflis { transform: rotate(-3.5deg); }
.sticker-rosa { transform: rotate(3.2deg); }
.sticker-fatih { transform: rotate(-2.2deg); }

/* The Die-Cut Vinyl Sticker: Thick crisp white silhouette border + adhesive shadow */
.diecut-sticker {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: 
    drop-shadow(3px 0 0 #ffffff)
    drop-shadow(-3px 0 0 #ffffff)
    drop-shadow(0 3px 0 #ffffff)
    drop-shadow(0 -3px 0 #ffffff)
    drop-shadow(2px 2px 0 #ffffff)
    drop-shadow(-2px -2px 0 #ffffff)
    drop-shadow(2px -2px 0 #ffffff)
    drop-shadow(-2px 2px 0 #ffffff)
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.18));
  transition: transform 0.45s var(--ease-spring), filter 0.45s ease;
  user-select: none;
}

html[data-mode="dark"] .diecut-sticker {
  filter: 
    drop-shadow(3px 0 0 #ffffff)
    drop-shadow(-3px 0 0 #ffffff)
    drop-shadow(0 3px 0 #ffffff)
    drop-shadow(0 -3px 0 #ffffff)
    drop-shadow(2px 2px 0 #ffffff)
    drop-shadow(-2px -2px 0 #ffffff)
    drop-shadow(2px -2px 0 #ffffff)
    drop-shadow(-2px 2px 0 #ffffff)
    drop-shadow(0 20px 32px rgba(0, 0, 0, 0.55));
}

/* Sticker Hover Lift & Peel */
.accordion-strip:hover .sticker-wrapper {
  transform: translateY(-16px) rotate(0deg) scale(1.1);
}

.accordion-strip:hover .diecut-sticker {
  filter: 
    drop-shadow(3.5px 0 0 #ffffff)
    drop-shadow(-3.5px 0 0 #ffffff)
    drop-shadow(0 3.5px 0 #ffffff)
    drop-shadow(0 -3.5px 0 #ffffff)
    drop-shadow(2.5px 2.5px 0 #ffffff)
    drop-shadow(-2.5px -2.5px 0 #ffffff)
    drop-shadow(2.5px -2.5px 0 #ffffff)
    drop-shadow(-2.5px 2.5px 0 #ffffff)
    drop-shadow(0 28px 40px rgba(0, 0, 0, 0.28));
}

html[data-mode="dark"] .accordion-strip:hover .diecut-sticker {
  filter: 
    drop-shadow(3.5px 0 0 #ffffff)
    drop-shadow(-3.5px 0 0 #ffffff)
    drop-shadow(0 3.5px 0 #ffffff)
    drop-shadow(0 -3.5px 0 #ffffff)
    drop-shadow(2.5px 2.5px 0 #ffffff)
    drop-shadow(-2.5px -2.5px 0 #ffffff)
    drop-shadow(2.5px -2.5px 0 #ffffff)
    drop-shadow(-2.5px 2.5px 0 #ffffff)
    drop-shadow(0 32px 48px rgba(0, 0, 0, 0.65));
}

/* Sticker Holographic Specular Glare */
.sticker-gloss {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 45%, rgba(180,225,255,0.6) 50%, rgba(255,255,255,0) 65%);
  opacity: 0;
  transform: rotate(-30deg) translateX(-80px);
  transition: opacity 0.4s ease, transform 0.6s ease;
  pointer-events: none;
}

.accordion-strip:hover .sticker-gloss {
  opacity: 1;
  transform: rotate(-30deg) translateX(80px);
}

/* Sticker Pill Tag */
.sticker-pill-tag {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.accordion-strip:hover .sticker-pill-tag {
  border-color: var(--accent);
  background: var(--bg-card);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pill-sparkle {
  color: var(--border-gold);
  font-size: 0.76rem;
}

.strip-heading-center {
  text-align: center;
  margin-top: 10px;
}

.strip-name {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, var(--text-primary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.strip-role-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

/* Directional Indicators (Clean minimal button with hover tooltip overlay) */
.strip-indicator {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  color: var(--accent);
}

.arrow-shape {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  color: var(--accent);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.accordion-strip:hover .arrow-shape,
.strip-indicator:hover .arrow-shape {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  transform: scale(1.08);
}

/* Tooltip Overlay (Hidden by default, only overlays when hovering the indicator button) */
.indicator-tooltip,
.indicator-label {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  background: var(--bg-card);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-soft), transform 0.25s var(--ease-spring), visibility 0.25s ease;
  z-index: 30;
}

/* Tooltip caret */
.indicator-tooltip::after,
.indicator-label::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: var(--border-light) transparent transparent transparent;
}

/* Overlay only when mouse hovers over the indicator button or strip */
.strip-indicator:hover .indicator-tooltip,
.strip-indicator:hover .indicator-label,
.arrow-shape:focus-visible + .indicator-tooltip,
.arrow-shape:focus-visible + .indicator-label {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Arrow Animations Matching Drawn Directions */
.arrow-left-animated svg {
  animation: bounceLeft 1.8s infinite ease-in-out;
}

.arrow-up-animated svg {
  animation: bounceUp 1.8s infinite ease-in-out;
}

.arrow-right-animated svg {
  animation: bounceRight 1.8s infinite ease-in-out;
}

@keyframes bounceLeft {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}

@keyframes bounceUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes bounceRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* ==========================================================================
   DIRECTION-AWARE FULLSCREEN DETAIL MODALS
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 20, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-soft);
}

.modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.detail-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 100;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.detail-modal[open],
.detail-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.modal-dialog-inner {
  width: 100%;
  height: 100%;
  background: var(--bg-modal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease-spring);
}

/* Direction 1: Leftward reveal (Safro Home) */
.modal-from-left .modal-dialog-inner {
  transform: translateX(-100%);
}

.modal-from-left.is-open .modal-dialog-inner {
  transform: translateX(0);
}

/* Direction 2: Upward reveal (Saflis, Rosa, Fatih) */
.modal-from-bottom .modal-dialog-inner {
  transform: translateY(100%);
}

.modal-from-bottom.is-open .modal-dialog-inner {
  transform: translateY(0);
}

/* Direction 3: Rightward reveal (About) */
.modal-from-right .modal-dialog-inner {
  transform: translateX(100%);
}

.modal-from-right.is-open .modal-dialog-inner {
  transform: translateX(0);
}

/* Modal Top Bar */
.modal-top-bar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: var(--bg-card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
  z-index: 10;
}

.modal-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.crumb-brand {
  font-weight: 700;
  color: var(--accent);
}

.crumb-sep {
  color: var(--text-muted);
}

.crumb-current {
  font-weight: 500;
  color: var(--text-secondary);
}

.modal-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: rotate(90deg);
}

/* Modal Scroll Body */
.modal-scroll-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 40px 24px 60px;
  scroll-behavior: smooth;
}

.content-container {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ==========================================================================
   MODAL INTERIOR CONTENT STYLING
   ========================================================================== */

/* Hero Banner (Home & About) */
.home-hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 10px;
}

.hero-chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.display-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--text-primary) 35%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.display-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Profile Hero Card Layout (Saflis, Rosa, Fatih) */
.profile-hero-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), var(--shadow-md);
}

/* Modal Sticker Stage Showcase */
.profile-sticker-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sticker-stage-canvas {
  position: relative;
  width: 100%;
  max-width: 330px;
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px dashed var(--border-active);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03), var(--shadow-sm);
  perspective: 1000px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.sticker-stage-canvas:hover {
  border-color: var(--accent);
}

.sticker-badge-pill {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  user-select: none;
}

.modal-sticker-wrap {
  position: relative;
  width: 250px;
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  cursor: grab;
}

.modal-sticker-wrap:active {
  cursor: grabbing;
}

.sticker-tilt-saflis { transform: rotate(-3.5deg); }
.sticker-tilt-rosa { transform: rotate(3deg); }
.sticker-tilt-fatih { transform: rotate(-2deg); }

.modal-sticker-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateZ(24px);
}

.sticker-gloss-sheen {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0.7;
}

.sticker-tilt-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 14px;
  user-select: none;
}

.hint-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(94, 155, 131, 0.6);
  animation: pulse 2s infinite;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meta-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

.profile-name {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-headline {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
}

.bio-quote {
  background: var(--bg-modal);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 6px 0;
}

.bio-quote blockquote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.quick-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fact-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-muted);
}

.fact-val {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Generic Content Grid */
.content-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.featured-card {
  border-color: var(--border-active);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.values-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.values-list li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}

.values-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.values-list strong {
  color: var(--text-primary);
}

/* Journey / Timeline Section */
.journey-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-intro {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.timeline-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.timeline-item {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--border-active);
}

.timeline-dot {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-card);
}

.timeline-year {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.timeline-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 4px 0 6px;
}

.timeline-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Details Grid & Skills Section */
.details-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.skill-category {
  background: var(--bg-modal);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-category h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-sm-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tech-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

/* Public Social & Academic Repositories Section */
.public-links-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.links-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-modal);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.social-card:hover {
  background: var(--accent-soft);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.social-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.social-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.social-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.external-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-card:hover .external-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.official-contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  box-shadow: var(--shadow-sm);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-role-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.official-email-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Quote Generator Box (About Modal) */
.quote-generator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.quote-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--border-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.active-quote {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  max-width: 680px;
  line-height: 1.6;
  transition: opacity 0.3s ease;
}

.quote-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-modal);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.quote-refresh-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.about-colophon {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}

.colophon-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.colophon-meta a {
  color: var(--accent);
  font-weight: 600;
}

/* Modal Bottom Navigation Chips */
.modal-footer-nav {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.modal-footer-nav p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.quick-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.nav-chip:hover {
  background: var(--accent-soft);
  border-color: var(--border-active);
  color: var(--accent);
  transform: translateY(-2px);
}



/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */

@media (max-width: 1024px) {
  .display-title {
    font-size: 2.2rem;
  }
  .profile-hero-card {
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 30px;
  }
  .pin-artwork-box {
    width: 220px;
    height: 300px;
  }
  .content-cards-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 860px) {
  html, body {
    overflow-y: auto;
    height: auto;
  }

  .header-center-hint,
  .btn-text-hide-mobile {
    display: none;
  }

  .site-header {
    padding: 0 16px;
  }

  .accordion-layout {
    position: relative;
    top: var(--header-height);
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - var(--header-height));
    overflow: visible;
  }

  .accordion-strip {
    flex: none;
    width: 100%;
    min-height: 240px;
    padding: 24px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .accordion-strip:hover {
    flex: none;
  }

  .strip-vertical-title {
    display: none; /* In mobile vertical view, vertical sideways text is replaced by horizontal label */
  }

  .strip-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .strip-pin-preview {
    flex-direction: row;
    gap: 14px;
    margin: 0;
  }

  .pin-frame {
    width: 100px;
    height: 130px;
  }

  .strip-heading,
  .strip-heading-center {
    text-align: left;
    margin: 0;
  }

  .strip-title {
    font-size: 1.6rem;
  }

  .strip-name {
    font-size: 1.45rem;
  }

  .strip-preview-pill {
    display: none;
  }

  .strip-indicator {
    margin: 0;
    flex-shrink: 0;
  }

  .arrow-shape {
    width: 38px;
    height: 38px;
  }

  .indicator-label {
    display: none;
  }

  /* Modals on mobile fill viewport comfortably */
  .profile-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
    gap: 20px;
  }

  .pin-artwork-box {
    width: 200px;
    height: 270px;
  }

  .meta-tag-list {
    justify-content: center;
  }

  .quick-facts {
    text-align: left;
  }

  .modal-top-bar {
    padding: 0 16px;
  }

  .modal-scroll-body {
    padding: 24px 16px 40px;
  }
}
