/* ═══════════════════════════════════════════
   ABDULRAHMAN ATTALLAH — PORTFOLIO
   #C15F3C · #B1ADA1 · #F4F3EE · #FFF
   ═══════════════════════════════════════════ */

:root {
  --terracotta: #C15F3C;
  --terracotta-light: #d4785a;
  --terracotta-dark: #a04e30;
  --terracotta-bg: rgba(193, 95, 60, 0.07);
  --warm-gray: #B1ADA1;
  --warm-gray-light: #c5c2b8;
  --cream: #F4F3EE;
  --white: #FFFFFF;
  --text-primary: #2a2520;
  --text-secondary: #6b645b;
  --text-tertiary: #9a948b;
  --border: #e2dfd8;
  --border-light: #edeae4;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 100px;
  --shadow-sm: 0 2px 8px rgba(42,37,32,0.04);
  --shadow-md: 0 8px 32px rgba(42,37,32,0.06);
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@font-face {
  font-family: 'TikTok Sans';
  src: url('../fonts/TikTokSans-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Instrument Sans', sans-serif;
  background: var(--cream);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--terracotta); color: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
main { flex: 1; }

/* ═══════════════════════════════════════════
   DOTTED / LINE VISUAL IDENTITY
   ═══════════════════════════════════════════ */

/* Dotted grid background on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
}

/* Fine horizontal rules — the "lined paper" feel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 27px,
    var(--border) 27px,
    var(--border) 28px
  );
  opacity: 0.25;
}

/* Ensure all content sits above the dotted bg */
header, main, footer { position: relative; z-index: 1; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--warm-gray); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--terracotta); }

/* ── Layout ── */
.container { max-width: 740px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(244, 243, 238, 0.78);
  border-bottom: 1px solid var(--border);
}
nav {
  max-width: 740px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  transition: opacity var(--transition);
}
.nav-logo:hover .nav-logo-img { opacity: 0.7; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--terracotta);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--terracotta); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--text-primary); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 260px; height: 100vh;
    background: var(--cream);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 200;
    box-shadow: -8px 0 40px rgba(0,0,0,0.06);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1rem; }
  .nav-overlay {
    position: fixed; inset: 0;
    background: rgba(42,37,32,0.2);
    z-index: 199;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
  }
  .nav-overlay.open { opacity: 1; pointer-events: all; }
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}
.footer-inner .heart { color: var(--terracotta); }
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.animate-up {
  opacity: 0;
  animation: fadeUp 0.65s ease-out forwards;
}
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.24s; }
.d4 { animation-delay: 0.32s; }
.d5 { animation-delay: 0.40s; }
.d6 { animation-delay: 0.48s; }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero { padding: 72px 0 48px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  animation: pulse 2s infinite;
}
.hero h1 {
  font-family: 'TikTok Sans', sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.hero h1 .accent { color: var(--terracotta); }
.hero-subtitle {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 28px;
}

/* ═══════════════════════════════════════════
   OVERVIEW (chanhdai-style info + links)
   ═══════════════════════════════════════════ */
.overview {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 8px;
}
.overview-info {
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
}
.overview-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  min-width: 200px;
  padding: 5px 0;
}
.overview-row svg {
  width: 16px; height: 16px;
  color: var(--warm-gray);
  flex-shrink: 0;
}
.overview-row a { transition: color 0.2s; }
.overview-row a:hover { color: var(--terracotta); }

/* Social link cards */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-primary);
  border-right: 1px solid var(--border);
  transition: all 0.2s;
  position: relative;
}
.social-link:last-child { border-right: none; }
.social-link:nth-child(n+4) { border-top: 1px solid var(--border); }
.social-link:hover {
  background: var(--terracotta-bg);
  color: var(--terracotta);
}
.social-link .arrow {
  margin-left: auto;
  width: 14px; height: 14px;
  color: var(--text-tertiary);
  transition: transform 0.2s;
}
.social-link:hover .arrow { transform: translate(2px, -2px); }
.social-link .icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .social-grid { grid-template-columns: 1fr 1fr; }
  .social-link { border-right: 1px solid var(--border); }
  .social-link:nth-child(even) { border-right: none; }
  .social-link:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section { padding: 44px 0; }
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.section-header h2 {
  font-family: 'TikTok Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.section-header .line {
  flex: 1; height: 1px;
  /* Dotted line instead of solid — visual identity */
  border-top: 1.5px dashed var(--border);
  background: none;
}
.section-header .count {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 600;
  background: var(--white);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}
.divider {
  width: 100%;
  height: 0;
  /* Dotted divider to match visual identity */
  border-top: 1.5px dashed var(--border);
}

/* ═══════════════════════════════════════════
   ABOUT CARD
   ═══════════════════════════════════════════ */
.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--terracotta-light), var(--warm-gray));
}
.about-ar {
  font-family: 'Noto Kufi Arabic', sans-serif;
  direction: rtl; text-align: right;
  font-size: 0.96rem; line-height: 2;
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1.5px dashed var(--border-light);
}
.about-en {
  font-size: 0.9rem; line-height: 1.8;
  color: var(--text-secondary);
}

/* Philosophy */
.philosophy {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  margin-top: 14px;
}
.philosophy::before {
  content: '"';
  font-family: 'TikTok Sans', sans-serif; font-weight: 800;
  font-size: 5rem; line-height: 1;
  color: var(--terracotta); opacity: 0.12;
  position: absolute; top: 8px; left: 20px;
}
.philosophy p {
  font-family: 'Noto Kufi Arabic', sans-serif;
  direction: rtl; text-align: right;
  font-size: 0.98rem; line-height: 2.1;
  position: relative; z-index: 1;
}
.philosophy .translation {
  font-family: 'Instrument Sans', sans-serif;
  direction: ltr; text-align: left;
  font-size: 0.86rem;
  color: var(--text-tertiary);
  margin-top: 16px; padding-top: 16px;
  border-top: 1.5px dashed var(--border-light);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   PROJECT CARDS (Home)
   ═══════════════════════════════════════════ */
.projects-grid { display: flex; flex-direction: column; gap: 12px; }
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  display: block;
}
.project-card:hover {
  border-color: var(--warm-gray);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.project-card-inner {
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.project-info { flex: 1; min-width: 0; }
.project-title-ar {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 0.98rem; font-weight: 600;
  direction: rtl; line-height: 1.6;
  margin-bottom: 3px;
}
.project-sub {
  font-size: 0.78rem; color: var(--text-secondary);
  letter-spacing: 0.03em; font-weight: 500;
}
.project-year {
  font-size: 0.74rem; font-weight: 600;
  color: var(--terracotta);
  background: var(--terracotta-bg);
  padding: 3px 11px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.project-arrow {
  width: 16px; height: 16px;
  color: var(--warm-gray);
  transition: all var(--transition);
  flex-shrink: 0;
}
.project-card:hover .project-arrow { color: var(--terracotta); transform: translateX(3px); }

/* ═══════════════════════════════════════════
   SKILL TAGS
   ═══════════════════════════════════════════ */
.skills-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.skill-tag {
  padding: 7px 16px;
  font-size: 0.8rem; font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.25s;
  cursor: default;
}
.skill-tag:hover {
  background: var(--terracotta); color: var(--white);
  border-color: var(--terracotta);
  transform: translateY(-1px);
}
.skill-tag.highlight {
  background: var(--terracotta-bg);
  border-color: rgba(193,95,60,0.18);
  color: var(--terracotta);
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   CONNECT GRID
   ═══════════════════════════════════════════ */
.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.connect-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.connect-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(193,95,60,0.08);
}
.connect-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.connect-icon svg { width: 18px; height: 18px; }
.connect-icon.arena { background: rgba(193,95,60,0.1); color: var(--terracotta); }
.connect-icon.email { background: rgba(177,173,161,0.2); color: var(--text-secondary); }
.connect-icon.portfolio { background: rgba(193,95,60,0.08); color: var(--terracotta-light); }
.connect-icon.linkedin { background: rgba(10,102,194,0.08); color: #0a66c2; }
.connect-icon.whatsapp { background: rgba(37,211,102,0.08); color: #25d366; }
.connect-label { font-size: 0.74rem; color: var(--text-tertiary); letter-spacing: 0.04em; font-weight: 500; }
.connect-value { font-size: 0.86rem; font-weight: 600; }
@media (max-width: 600px) { .connect-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   PROJECT DETAIL PAGE
   ═══════════════════════════════════════════ */
.project-hero { padding: 56px 0 36px; }
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.project-back svg { width: 16px; height: 16px; }
.project-back:hover { color: var(--terracotta); }

.project-hero h1 {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  font-weight: 700;
  direction: rtl;
  text-align: right;
  line-height: 1.45;
  margin-bottom: 14px;
}
.project-hero .tagline {
  font-family: 'TikTok Sans', sans-serif; font-weight: 800;
  font-size: 1.15rem;
  color: var(--terracotta);

  margin-bottom: 20px;
}
.project-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 18px 0;
  border-top: 1.5px dashed var(--border);
  border-bottom: 1.5px dashed var(--border);
}
.project-meta-item { display: flex; flex-direction: column; gap: 2px; }
.project-meta-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.project-meta-value { font-size: 0.88rem; font-weight: 600; }

/* Case Study Sections */
.case-section { padding: 36px 0; }
.case-section + .case-section { border-top: 1.5px dashed var(--border-light); }
.case-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.case-label::after {
  content: '';
  flex: 1;
  border-top: 1.5px dashed var(--border-light);
}
.case-body-ar {
  font-family: 'Noto Kufi Arabic', sans-serif;
  direction: rtl; text-align: right;
  font-size: 0.95rem; line-height: 2.1;
}
.case-body-ar + .case-body-en {
  margin-top: 14px; padding-top: 14px;
  border-top: 1.5px dashed var(--border-light);
}
.case-body-en {
  font-size: 0.88rem; line-height: 1.8;
  color: var(--text-secondary);
}
.case-highlight {
  font-family: 'Noto Kufi Arabic', sans-serif;
  direction: rtl; text-align: center;
  font-size: 1.35rem; font-weight: 700;
  color: var(--terracotta);
  padding: 28px;
  margin: 20px 0;
  background: var(--terracotta-bg);
  border-radius: var(--radius-md);
  border: 1.5px dashed rgba(193,95,60,0.2);
  line-height: 1.6;
}

/* Project Images */
.image-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.image-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.image-grid.cols-1 { grid-template-columns: 1fr; }
@media (max-width: 600px) { .image-grid.cols-2 { grid-template-columns: 1fr; } }

.image-grid img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.image-placeholder {
  background: linear-gradient(135deg, var(--border-light), var(--warm-gray-light));
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: 500;
}
.image-placeholder svg { width: 28px; height: 28px; opacity: 0.35; }

/* Prev / Next */
.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 44px 0 0;
  border-top: 1.5px dashed var(--border);
  margin-top: 44px;
}
.project-nav-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.project-nav-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.project-nav-card .dir {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-tertiary);
}
.project-nav-card .name {
  font-family: 'Noto Kufi Arabic', sans-serif;
  direction: rtl;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
}
.project-nav-card.next { text-align: right; }
@media (max-width: 600px) { .project-nav { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════ */
.about-hero { padding: 64px 0 36px; text-align: center; }
.about-pfp {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  border: 3px solid var(--border);
}
.about-hero h1 {
  font-family: 'TikTok Sans', sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.about-hero h1 .accent { color: var(--terracotta); }
.about-hero .subtitle { font-size: 0.96rem; color: var(--text-secondary); }

.about-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 14px;
}
.about-block h3 {
  font-family: 'TikTok Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--terracotta);
}

/* Experience list */
.experience-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.experience-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.experience-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
}

/* Logo grid */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.logo-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/2;
  transition: all var(--transition);
}
.logo-item:hover {
  border-color: var(--warm-gray);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.logo-item img {
  max-width: 80%;
  max-height: 50px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}
.logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
@media (max-width: 600px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════
   PROTECTED NOTICE
   ═══════════════════════════════════════════ */
.protected-notice { text-align: center; padding: 72px 24px; }
.protected-notice .icon {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  background: var(--terracotta-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--terracotta);
}
.protected-notice .icon svg { width: 24px; height: 24px; }
.protected-notice h3 {
  font-family: 'TikTok Sans', sans-serif; font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.protected-notice p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  max-width: 380px;
  margin: 0 auto;
}
.protected-notice .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 11px 26px;
  background: var(--terracotta);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all var(--transition);
}
.protected-notice .btn:hover { background: var(--terracotta-dark); transform: translateY(-1px); }

/* ═══════════════════════════════════════════
   TABS (Selected Work)
   ═══════════════════════════════════════════ */
.tab-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 0;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab {
  padding: 10px 20px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  background: transparent;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.tab:hover { color: var(--text-secondary); background: var(--white); }
.tab.active {
  color: var(--terracotta);
  background: var(--white);
  border-bottom-color: var(--white);
}
.tab-panel {
  display: none;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--white);
  padding: 28px;
  animation: fadeUp 0.3s ease;
}
.tab-panel.active { display: block; }

/* Tab project content */
.tab-project-head { margin-bottom: 24px; }
.tab-project-title {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  direction: rtl;
  text-align: right;
  line-height: 1.5;
  margin-bottom: 6px;
}
.tab-project-tagline {
  font-family: 'TikTok Sans', sans-serif; font-weight: 800;
  font-size: 1.05rem;
  color: var(--terracotta);

  margin-bottom: 8px;
}
.tab-project-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.tab-project-meta span {
  padding: 3px 10px;
  background: var(--cream);
  border-radius: var(--radius-full);
}
.tab-full-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--terracotta);
  transition: opacity 0.2s;
}
.tab-full-link:hover { opacity: 0.7; }

/* ═══════════════════════════════════════════
   SCROLL TO TOP
   ═══════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 38px; height: 38px;
  background: var(--terracotta);
  color: var(--white);
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px);
  transition: all 0.3s;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(193,95,60,0.25);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.scroll-top svg { width: 16px; height: 16px; }
