﻿
/* ==================== Foundation ==================== */
/* Site-wide color, spacing, and surface variables */
:root {
  --bg: #f5f1ea;
  --bg-soft: #ede5d8;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --footer-bg: #ece9e4;
  --footer-heading: #3f3a33;
  --footer-text: #6d655b;
  --footer-meta: #746b60;
  --footer-hover: #2f2a24;
  --footer-border: rgba(31, 26, 22, 0.08);
  --text: #1f1a16;
  --text-soft: #675d52;
  --primary: #FF9500;
  --primary-strong: #d78108;
  --accent: #FF9500;
  --border: rgba(94, 69, 34, 0.16);
  --shadow: 0 18px 50px rgba(40, 28, 15, 0.14);
  --shadow-soft: 0 8px 24px rgba(40, 28, 15, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
  --transition: 0.3s ease;
  --surface-overlay: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.78));
}


/* Dark theme overrides used when the theme toggle is active */
body.dark-theme {
  --bg: #1a1714;
  --bg-soft: #24201c;
  --surface: rgba(48, 41, 34, 0.72);
  --surface-strong: rgba(58, 49, 40, 0.9);
  --footer-bg: #201b17;
  --footer-heading: #f6eadc;
  --footer-text: #d7c4b0;
  --footer-meta: #bea892;
  --footer-hover: #ffd8a2;
  --footer-border: rgba(239, 191, 114, 0.18);
  --text: #fbf3e8;
  --text-soft: #dfcfbf;
  --primary: #FF9500;
  --primary-strong: #d78108;
  --accent: #FF9500;
  --border: rgba(239, 191, 114, 0.2);
  --shadow: 0 20px 55px rgba(8, 5, 2, 0.26);
  --shadow-soft: 0 8px 28px rgba(8, 5, 2, 0.18);
  --surface-overlay: linear-gradient(180deg, rgba(44, 36, 29, 0.88), rgba(44, 36, 29, 0.74));
}


/* Global reset and base page styling */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(199,161,92,0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(138,99,51,0.10), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; max-width: 100%; }
iframe { width: 100%; max-width: 100%; }
button, input, textarea { font: inherit; }


/* Decorative background glow shapes behind the page */
.page-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}
.page-glow-one { top: -80px; left: -60px; background: var(--accent); }
.page-glow-two { right: -80px; bottom: 10%; background: var(--primary); }


/* Shared layout helpers for section width and headings */
.container { width: min(92%, var(--container)); margin: 0 auto; }
.section { padding: 44px 0; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-heading { max-width: 760px; margin-bottom: 24px; }
.section-heading h2,
.contact-copy h2 {
  font-family: "Inter", Arial, sans-serif;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero-copy h1 {
  font-family: "Inter", Arial, sans-serif;
  line-height: 1;
  letter-spacing: -0.03em;
}
.section-heading h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); margin-bottom: 12px; }
.section-heading h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 12px; }
.section-heading p,
.contact-copy p,
.hero-copy p { color: var(--text-soft); }


/* Reusable glassmorphism surface used on major cards */
.glass {
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}


/* ==================== Homepage: Header + Hero ==================== */
/* Header and navigation bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
body.dark-theme .site-header { background: rgba(32, 27, 22, 0.34); }
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), color var(--transition);
}
.brand:hover {
  transform: scale(1.08);
  color: var(--primary);
}
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text {
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-links a {
  color: var(--text-soft);
  font-weight: 600;
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(138,99,51,0.08);
  transform: translateY(-1px);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.icon-btn {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  flex: 0 0 46px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover {
  background: rgba(138,99,51,0.14);
}
.icon-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.mobile-only { display: none; }


/* Hero section, CTA buttons, and headline metrics */
.hero { padding: 52px 0 34px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 26px;
  align-items: stretch;
}
.hero-copy {
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 4.8rem);
  margin-bottom: 18px;
  max-width: none;
  color: #ba275d;
}
.hero-copy p {
  font-size: 1.06rem;
  max-width: 620px;
  margin-bottom: 28px;
  text-align: center;
}
.hero-pattern-image {
  width: min(100%, 520px);
  height: auto;
  margin-bottom: 20px;
}
.hero-copy .eyebrow:empty,
.hero-actions:empty,
.hero-metrics:empty {
  display: none;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition), border var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); }
.btn-secondary {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--border);
}
.full-width { width: 100%; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.metric-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: 18px;
}
body.dark-theme .metric-card {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}
.metric-card strong { display: block; font-size: 1.35rem; margin-bottom: 4px; }
.metric-card span { color: rgba(255,255,255,0.88); }
body:not(.dark-theme) .metric-card span { color: var(--text-soft); }

.hero-visual { min-height: 100%; }
.hero-image-card {
  min-height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15,15,15,0.1), rgba(15,15,15,0.28)),
    var(--hero-image-desktop, url('https://ik.imagekit.io/shwaqar3/Eman%20Website/eman_image.png?updatedAt=1774591691505&tr=f-auto,q-76,w-1200')) center/contain no-repeat;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}


/* ==================== Homepage: Portfolio ==================== */
.projects-page-heading { max-width: 860px; }
.projects-filter-bar { justify-content: center; }

/* 3-column equal grid */
#portfolioGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.hp-proj-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.hp-proj-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.hp-proj-card.hide { display: none; }

.hp-proj-cover {
  overflow: hidden;
  flex-shrink: 0;
}
.hp-proj-cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hp-proj-card:hover .hp-proj-cover img { transform: scale(1.04); }

.hp-proj-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.hp-proj-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.hp-proj-meta {
  display: flex;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
}
.hp-proj-body h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hp-proj-body > p {
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1100px) {
  #portfolioGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  #portfolioGrid { grid-template-columns: 1fr; }
  .hp-proj-cover img { height: 200px; }
}
}
.portfolio-card {
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.portfolio-card:hover { transform: translateY(-4px); }
.image-surface {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.surface-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  z-index: -1;
}
.image-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--surface-overlay);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.surface-content {
  position: relative;
  z-index: 1;
  padding: 28px;
  min-height: 100%;
  height: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 10px;
  border-radius: var(--radius-lg);
}
.surface-content h3 {
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(1.65rem, 2.6vw, 2rem);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.surface-content p { color: var(--text-soft); }
.card-kicker {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(138,99,51,0.12);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(138,99,51,0.12);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.86rem;
}


/* Portfolio filter buttons */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition: all var(--transition);
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.portfolio-card.hide { display: none; }


/* ==================== Homepage: Gallery + Media ==================== */
/* Gallery layout and image tiles */
.premium-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 110px;
  grid-auto-flow: dense;
  gap: 16px;
}
.gallery-item {
  grid-column: span 2;
  grid-row: span 2;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.small { grid-column: span 1; grid-row: span 1; }
.gallery-item.tall { grid-column: span 2; grid-row: span 4; }
.gallery-item.wide { grid-column: span 4; grid-row: span 2; }


/* ==================== Homepage: Contact + Footer ==================== */
/* Contact section, details list, and inquiry form */
.contact-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: stretch;
}
.contact-copy {
  padding: 30px 8px 30px 0;
}
.contact-details {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.contact-details li {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}
.contact-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}
.contact-details strong {
  display: block;
  margin-bottom: 4px;
}
.contact-details a {
  color: var(--primary);
  font-weight: 600;
}
.contact-form {
  border-radius: var(--radius-lg);
  padding: 28px;
}
.field-group { display: grid; gap: 8px; margin-bottom: 16px; }
.field-group label { font-weight: 700; }
.field-group input,
.field-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.58);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
body.dark-theme .field-group input,
body.dark-theme .field-group textarea { background: rgba(255,255,255,0.07); }
.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(138,99,51,0.12);
}
.field-group textarea { min-height: 150px; resize: vertical; }
.form-note {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin: -4px 0 12px;
}
.form-status {
  min-height: 24px;
  font-size: 0.95rem;
  margin: 0 0 16px;
  color: var(--text-soft);
}
.form-status.is-success {
  color: #2f7a45;
}
.form-status.is-error {
  color: #b14a3b;
}
/* Footer content area */
.site-footer {
  margin-top: 40px;
  padding: 0;
  color: var(--footer-text);
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
}
.footer-shell {
  width: min(94%, 1380px);
  margin: 0 auto;
  padding: 44px 0 18px;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}
.footer-links-grid-home {
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
}
.footer-column {
  display: grid;
  gap: 14px;
  align-content: start;
}
.footer-column-brand {
  padding-right: 20px;
}
.footer-heading {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--footer-heading);
}
.footer-description {
  margin: 0;
  max-width: 30ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--footer-text);
}
.footer-column a,
.footer-column span {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--footer-text);
}
.footer-column a:hover,
.footer-meta-links a:hover {
  color: var(--footer-hover);
}
.footer-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--footer-border);
}
.footer-meta-row p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--footer-meta);
}
.footer-meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.footer-meta-links a,
.footer-credit {
  font-size: 0.85rem;
  color: var(--footer-meta);
}

/* ==================== Interaction + Motion ==================== */
/* Scroll-in animation hooks used by JavaScript */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Media section layout */
.media-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}
.media-reels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.reel-card,
.media-video {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.reel-card {
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f8f3ea;
  isolation: isolate;
}
.reel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.18), rgba(20, 16, 12, 0.78));
  z-index: 0;
}
.reel-card > * {
  position: relative;
  z-index: 1;
}
.reel-chip,
.media-platform {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(22, 18, 14, 0.4);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.reel-card-body {
  display: grid;
  gap: 18px;
}
.reel-card h3,
.media-video h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.05;
  margin-bottom: 10px;
}
.reel-card p,
.media-video p {
  color: rgba(248, 243, 234, 0.86);
}
.play-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff8ee;
  font-weight: 700;
}
.media-video {
  min-height: 460px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)), var(--surface);
  display: grid;
  gap: 20px;
}
.media-video-header {
  display: grid;
  gap: 12px;
}
.media-video-header p {
  max-width: 58ch;
  color: var(--text-soft);
}
.media-video-frame {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid var(--border);
  min-height: 340px;
  background: #0b0b0b;
}
.media-video-frame iframe {
  width: 100%;
  height: auto;
  min-height: 340px;
  border: 0;
}

/* Student work subsection */
.student-work-section {
  margin-top: 48px;
}

/* Tablet layout adjustments */
@media (max-width: 1100px) {
  .hero-grid,
  .contact-shell,
  .feedback-grid,
  .pdf-grid,
  .portfolio-grid,
  .media-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
  .premium-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* Mobile layout adjustments */
@media (max-width: 820px) {
  .section { padding: 34px 0; }
}

@media (max-width: 820px) {
  .nav { flex-wrap: wrap; padding: 14px 0; }
  .mobile-only { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 10px;
  }
  .nav-links.show { display: flex; }
  .hero-grid,
  .feedback-grid,
  .portfolio-grid,
  .contact-shell,
  .media-showcase,
  .project-shell {
    grid-template-columns: 1fr;
  }
  .premium-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .gallery-item,
  .gallery-item.small,
  .gallery-item.tall,
  .gallery-item.wide {
    grid-column: auto;
    grid-row: auto;
  }
  .pdf-carousel {
    grid-template-columns: 1fr;
  }
  .pdf-arrow {
    display: none;
  }
  .hero-copy { padding: 34px 24px; }
  .media-reels { grid-template-columns: 1fr; }
  .media-video { min-height: 0; }
  .media-video-frame,
  .media-video-frame iframe { min-height: 280px; }
  .hero-metrics { grid-template-columns: 1fr; }
  .gallery-item.small,
  .gallery-item.tall,
  .gallery-item.wide { grid-column: auto; grid-row: auto; }
  .project-gallery { grid-template-columns: 1fr; }
}

/* ==================== Supporting Pages: Projects + Resources ==================== */
.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 700;
}
.project-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.project-hero,
.project-media,
.project-content {
  border-radius: var(--radius-lg);
  padding: 28px;
}
.project-media img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  max-height: 520px;
}
.project-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 16px;
}
.project-summary,
.project-content p,
.project-bullets li {
  color: var(--text-soft);
}
.project-next-step {
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 14px;
}
.project-next-step p {
  max-width: 60ch;
  color: var(--text-soft);
}
.project-next-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.project-section-title {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.project-bullets {
  list-style: disc;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}























.pdf-grid {
  display: flex;
  gap: 22px;
  align-items: stretch;
  width: max-content;
}
.testimonial-card,
.pdf-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.testimonial-card {
  display: grid;
  gap: 16px;
}
.testimonial-quote {
  font-size: 1.02rem;
}
.testimonial-author {
  display: grid;
  gap: 2px;
}
.testimonial-author strong {
  font-size: 1rem;
}
.pdf-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-height: 360px;
  width: 220px;
  flex: 0 0 220px;
}
.pdf-thumb-shell {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,255,255,0.4));
  box-shadow: var(--shadow-soft);
}
.pdf-thumb {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.pdf-card h3 {
  font-size: 1.2rem;
}
.pdf-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.pdf-scroll-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
}
.pdf-scroll-wrap::-webkit-scrollbar {
  display: none;
}
.pdf-arrow {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-size: 1.5rem;
  line-height: 1;
}
.pdf-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}
.library-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}
.project-link-list,
.project-download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.project-download-list {
  margin-top: 14px;
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.project-gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.project-gallery-item img {
  height: 240px;
  object-fit: cover;
}
.project-video {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #0b0b0b;
  min-height: 320px;
}
.project-video iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}


.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.error-page-shell {
  max-width: 720px;
  text-align: center;
  padding: 80px 0;
}
.error-page-title {
  margin-bottom: 16px;
}
.error-page-text {
  margin-bottom: 24px;
  color: var(--text-soft);
}
.listing-page .section-heading h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}
.listing-shell {
  display: grid;
  gap: 28px;
}
.listing-heading {
  margin-bottom: 0;
}
.resource-grid-page {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.resource-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  border-radius: var(--radius-lg);
  padding: 22px;
}
.resource-thumb {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.resource-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.resource-copy {
  display: grid;
  gap: 10px;
}
.resource-copy h3 {
  font-size: 1.25rem;
}
.resource-copy p {
  color: var(--text-soft);
}
/* ==================== Gallery Page: Masonry + Lightbox ==================== */
.modern-gallery {
  columns: 3;
  column-gap: 16px;
}
.modern-gallery-item {
  break-inside: avoid;
  display: block;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.modern-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.modern-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.modern-gallery-item:hover img {
  transform: scale(1.03);
}
.modern-gallery-item figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.4;
}
.modern-gallery-item figcaption span {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.modern-gallery-item figcaption p {
  flex: 1;
  text-align: right;
  margin: 0;
  overflow-wrap: anywhere;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(8, 6, 4, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 64px 80px 80px;
  box-sizing: border-box;
}
.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-img-wrap img {
  max-width: min(88vw, 1200px);
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  display: block;
  transition: opacity 0.18s ease;
}
.lightbox-img-wrap img.is-loading {
  opacity: 0.3;
}
.lightbox-caption {
  position: absolute;
  bottom: 22px;
  left: 80px;
  right: 80px;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 9001;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 9001;
  line-height: 1;
}
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  z-index: 9001;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .resource-grid-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modern-gallery {
    columns: 2;
  }
}
@media (max-width: 820px) {
  .resource-grid-page {
    grid-template-columns: 1fr;
  }
  .modern-gallery {
    columns: 2;
    column-gap: 10px;
  }
  .modern-gallery-item {
    margin-bottom: 10px;
    border-radius: 12px;
  }
  .lightbox-inner {
    padding: 56px 10px 64px;
  }
  .lightbox-caption {
    left: 10px;
    right: 10px;
  }
  .lightbox-img-wrap img {
    max-width: 96vw;
    max-height: 74vh;
    border-radius: 10px;
  }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-prev,
  .lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
}
@media (max-width: 480px) {
  .modern-gallery {
    columns: 1;
  }
}

/* ==================== Homepage: About ==================== */
/* Active About section styles used by the homepage About block. */
/* About Section Reference Refresh Start */
.about-section {
  position: relative;
}
.about-section .container {
  position: relative;
  padding: clamp(42px, 6vw, 74px) clamp(22px, 4vw, 48px);
  border-radius: 38px;
  border: 1px solid rgba(199, 161, 92, 0.18);
  background:
    radial-gradient(circle at 16% 14%, rgba(240, 208, 150, 0.28), transparent 22%),
    radial-gradient(circle at 84% 84%, rgba(232, 198, 141, 0.2), transparent 22%),
    linear-gradient(180deg, rgba(255, 251, 244, 0.96), rgba(249, 241, 229, 0.97));
  box-shadow: 0 26px 70px rgba(88, 63, 30, 0.1);
  overflow: hidden;
  color: #2b2118;
}
.about-section .container::before,
.about-section .container::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(199, 161, 92, 0.08);
  background: repeating-radial-gradient(circle at center, rgba(199, 161, 92, 0.035) 0 1px, transparent 1px 16px);
  opacity: 0.22;
  pointer-events: none;
}
.about-section .container::before {
  top: -128px;
  left: -118px;
}
.about-section .container::after {
  right: -132px;
  bottom: -18px;
}
.about-story {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(28px, 4vw, 62px);
  align-items: start;
  margin: 0;
  padding-top: 0;
  border-top: 0;
}
.about-story::before {
  display: none;
}
.about-visual {
  position: relative;
  align-self: center;
  margin-top: 6.5rem;
}
.about-visual::before {
  display: none;
}
.about-visual-frame {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 30px;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 249, 241, 0.74), rgba(243, 231, 214, 0.86));
  box-shadow: 0 18px 36px rgba(88, 63, 30, 0.12);
}
.about-visual-frame::before {
  display: none;
}
.about-visual-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
  filter: saturate(0.92) brightness(1.02);
  transform: none;
}
.about-identity {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding-right: 0;
  justify-self: center;
  width: min(100%, 54rem);
}
.about-name {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.02;
  color: #2a2018;
}
.about-role {
  display: inline-block;
  margin-top: -2px;
  color: #9f7440;
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.about-divider {
  width: calc(100% + 240px);
  height: 1px;
  margin: 8px 0 6px -240px;
  background: linear-gradient(90deg, rgba(199, 161, 92, 0.62), rgba(199, 161, 92, 0.1));
}
.about-copy {
  display: grid;
  gap: 14px;
}
.about-copy p,
.about-identity p {
  margin: 0;
  max-width: 54ch;
  color: rgba(78, 63, 49, 0.92);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.8;
}
/* Dark-theme overrides keep the About section readable when the site theme is toggled. */
body.dark-theme .about-section .container {
  border-color: rgba(216, 171, 103, 0.18);
  background:
    radial-gradient(circle at 16% 14%, rgba(154, 102, 36, 0.22), transparent 22%),
    radial-gradient(circle at 84% 84%, rgba(125, 82, 35, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(38, 29, 22, 0.96), rgba(24, 18, 14, 0.98));
  box-shadow: 0 26px 70px rgba(8, 5, 2, 0.24);
  color: #f4e9db;
}
body.dark-theme .about-section .container::before,
body.dark-theme .about-section .container::after {
  border-color: rgba(216, 171, 103, 0.06);
  background: repeating-radial-gradient(circle at center, rgba(216, 171, 103, 0.032) 0 1px, transparent 1px 16px);
}
body.dark-theme .about-copy p,
body.dark-theme .about-identity p {
  color: rgba(243, 223, 201, 0.9);
}
body.dark-theme .about-name {
  color: #f5e7d5;
}
body.dark-theme .about-role {
  color: #d8ab67;
}
body.dark-theme .about-divider,
body.dark-theme .about-story {
  border-color: rgba(216, 171, 103, 0.22);
}
body.dark-theme .about-story::before {
  display: none;
}
body.dark-theme .about-visual::before {
  display: none;
}
body.dark-theme .about-visual-frame {
  border-color: rgba(216, 171, 103, 0.26);
  background: linear-gradient(180deg, rgba(44, 33, 24, 0.86), rgba(28, 22, 17, 0.92));
  box-shadow: 0 18px 36px rgba(8, 5, 2, 0.18);
}
body.dark-theme .about-visual-frame::before {
  display: none;
}
body.dark-theme .about-visual-frame img {
  filter: saturate(0.9) brightness(0.88);
}
@media (max-width: 1100px) {
  .about-divider {
    width: 100%;
    margin: 8px 0 6px;
  }
  .about-story {
    grid-template-columns: 1fr;
  }
  .about-copy p,
  .about-identity p {
    max-width: none;
  }
}
@media (max-width: 820px) {
  .about-section .container {
    padding: 34px 18px;
    border-radius: 28px;
  }
  .about-story {
    gap: 22px;
    padding-top: 0;
  }
  .about-visual::before {
    display: none;
  }
  .about-visual-frame {
    min-height: 0;
  }
  .about-identity {
    padding-right: 0;
  }
}
/* About Section Reference Refresh End */


/* Responsive refinements for tablet and mobile layouts */
@media (max-width: 1100px) {
  .hero-grid,
  .contact-shell,
  .media-showcase {
    grid-template-columns: 1fr;
  }
  .portfolio-grid,
  .feedback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-copy h1 {
    max-width: none;
  }
  .hero-image-card {
    min-height: 320px;
  }
  .contact-copy {
    padding-right: 0;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(94%, var(--container));
  }
  .nav {
    flex-wrap: wrap;
    padding: 14px 0;
  }
  .brand {
    max-width: calc(100% - 120px);
  }
  .brand-text {
    font-size: 1rem;
  }
  .contact-form,
  .project-hero,
  .project-media,
  .project-content,
  .project-next-step {
    padding: 22px;
  }
  .hero-image-card,
  .pdf-card {
    min-height: 380px;
    width: min(100%, 420px);
    max-width: 100%;
    flex-basis: min(100%, 420px);
  }
  .pdf-grid {
    width: 100%;
  }
  .hero-image-card {
    background:
      linear-gradient(180deg, rgba(15,15,15,0.1), rgba(15,15,15,0.28)),
      var(--hero-image-mobile, var(--hero-image-desktop, url('https://ik.imagekit.io/shwaqar3/Eman%20Website/eman_image.png?updatedAt=1774591691505&tr=f-auto,q-72,w-640'))) center/cover no-repeat;
  }
  .page-glow {
    width: 240px;
    height: 240px;
    filter: blur(56px);
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
  }
  .nav-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 12px;
  }
  .listing-page .nav,
  .project-page .nav {
    gap: 14px;
  }
  .listing-page .nav .brand,
  .project-page .nav .brand {
    max-width: 100%;
  }
  .listing-page .nav-actions,
  .project-page .nav-actions {
    justify-content: space-between;
  }
  .listing-page .nav-actions .btn,
  .project-page .nav-actions .btn {
    flex: 1 1 180px;
  }
  .hero-copy,
  .contact-form,
  .project-hero,
  .project-media,
  .project-content,
  .project-next-step,
  .testimonial-card,
  .pdf-card,
  .resource-card {
    border-radius: 20px;
  }
  .hero-copy h1,
  .project-title,
  .listing-page .section-heading h1 {
    word-break: break-word;
  }
  .project-link-list,
  .project-download-list,
  .project-next-step-actions,
  .hero-actions {
    flex-direction: column;
  }
  .project-link-list .project-link,
  .project-download-list .project-link,
  .project-next-step-actions .btn,
  .hero-actions .btn {
    width: 100%;
  }
  .about-visual-frame {
    min-height: 320px;
  }
}

@media (max-width: 520px) {
  .surface-content {
    padding: 22px;
  }
  .surface-content h3 {
    font-size: 1.55rem;
    line-height: 1.15;
  }
  .project-meta-row {
    gap: 6px 10px;
    font-size: 0.88rem;
  }
}

@media (max-width: 1100px) {
  .footer-links-grid,
  .footer-links-grid-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .footer-shell {
    padding: 34px 0 18px;
  }
  .footer-links-grid,
  .footer-links-grid-home {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-column {
    gap: 10px;
  }
  .footer-column-brand {
    padding-right: 0;
  }
  .footer-meta-row,
  .footer-meta-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

.instagram-pill {
  gap: 10px;
  background: linear-gradient(135deg, #f58529, #feda77 18%, #dd2a7b 52%, #8134af 78%, #515bd4);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
  box-shadow: 0 10px 24px rgba(129, 52, 175, 0.22);
}
.instagram-pill-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==================== Projects Page: Elaborated Cards ==================== */
.projects-page-heading { max-width: 860px; }
.projects-filter-bar { justify-content: center; }

.projects-page-grid {
  display: grid;
  gap: 40px;
}

/* Full project card */
.proj-card {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.proj-card-header {
  padding: 32px 32px 24px;
  display: grid;
  gap: 14px;
}
.proj-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.proj-card-meta {
  display: flex;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}
.proj-card-title {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.proj-card-intro {
  font-size: 1.06rem;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 72ch;
}

/* Project image gallery â€” CSS columns masonry */
.proj-image-gallery {
  columns: 3;
  column-gap: 12px;
  padding: 0 32px;
  margin-bottom: 4px;
}
.proj-gallery-item {
  break-inside: avoid;
  display: block;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.proj-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.proj-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.proj-gallery-item:hover img { transform: scale(1.03); }

/* Layout variants â€” control column span via JS class */
.proj-gallery-wide { column-span: all; }

.proj-card-context {
  padding: 20px 32px;
  border-top: 1px solid var(--border);
}
.proj-card-context p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 80ch;
}
.proj-card-footer {
  padding: 20px 32px 28px;
  border-top: 1px solid var(--border);
}

/* Social links */
.proj-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.proj-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.proj-social-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}
.proj-social-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Per-project lightbox (appended to body) */
.proj-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(8, 6, 4, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.proj-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 1100px) {
  .proj-image-gallery { columns: 2; }
}
@media (max-width: 820px) {
  .proj-card-header,
  .proj-card-context,
  .proj-card-footer { padding-left: 20px; padding-right: 20px; }
  .proj-image-gallery { columns: 2; column-gap: 8px; padding: 0 20px; }
  .proj-gallery-item { margin-bottom: 8px; border-radius: 10px; }
  .proj-card-title { font-size: clamp(1.4rem, 5vw, 2rem); }
}
@media (max-width: 480px) {
  .proj-image-gallery { columns: 1; }
  .proj-social-links { flex-direction: column; }
  .proj-social-btn { width: 100%; justify-content: center; }
}





/* ==================== Feedback Pages ==================== */
.btn-workshop {
  background: #B0124D;
  color: #fff;
}
.btn-workshop:hover {
  background: #8f0f3f;
}






.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.feedback-card {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 240px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(176, 18, 77, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.72));
  box-shadow: var(--shadow-soft);
}
.feedback-card-featured {
  transform: translateY(-6px);
}
.feedback-quote-mark {
  font-size: 4rem;
  line-height: 0.7;
  color: rgba(176, 18, 77, 0.22);
}
.feedback-card-quote {
  margin: 0;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.8;
}
.feedback-card-author {
  display: grid;
  gap: 4px;
  margin-top: auto;
}
.feedback-card-author strong {
  font-size: 1rem;
}
.feedback-card-author span {
  color: var(--text-soft);
  font-size: 0.92rem;
}
.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
}
.feedback-form-panel {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}
.feedback-form-panel[hidden] {
  display: none;
}
.feedback-form-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.feedback-form-head h3 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}
.feedback-form-head p {
  margin: 0;
  color: var(--text-soft);
}
.feedback-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.feedback-message-group {
  grid-column: 1 / -1;
}
.feedback-form-status {
  margin: 0;
}
.feedback-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.feedback-page-heading {
  max-width: 860px;
}
.feedback-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.feedback-showcase-card {
  display: grid;
  gap: 18px;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(176, 18, 77, 0.09), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.74));
  box-shadow: var(--shadow-soft);
}
.feedback-showcase-card:first-child {
  grid-column: span 2;
}
.feedback-showcase-quote {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.85;
  color: var(--text);
}
.feedback-showcase-meta {
  display: grid;
  gap: 4px;
  color: var(--text-soft);
}
.feedback-showcase-meta strong {
  color: var(--text);
  font-size: 1rem;
}
body.dark-theme .feedback-card,
body.dark-theme .feedback-showcase-card,
body.dark-theme .feedback-form-panel,
body.dark-theme .feedback-submit-form {
  border-color: rgba(239, 191, 114, 0.16);
  background:
    radial-gradient(circle at top right, rgba(176, 18, 77, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(50, 41, 34, 0.94), rgba(33, 27, 23, 0.9));
  box-shadow: 0 18px 42px rgba(7, 5, 3, 0.28);
}
body.dark-theme .feedback-card.glass,
body.dark-theme .feedback-showcase-card.glass,
body.dark-theme .feedback-form-panel.glass,
body.dark-theme .feedback-submit-form.glass {
  background:
    radial-gradient(circle at top right, rgba(176, 18, 77, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(50, 41, 34, 0.94), rgba(33, 27, 23, 0.9));
}
body.dark-theme .feedback-card-quote,
body.dark-theme .feedback-showcase-quote,
body.dark-theme .feedback-card-author strong,
body.dark-theme .feedback-showcase-meta strong {
  color: #fbf3e8;
}
body.dark-theme .feedback-card-author span,
body.dark-theme .feedback-showcase-meta,
body.dark-theme .feedback-form-head p,
body.dark-theme .feedback-form-status {
  color: #d7c4b0;
}
body.dark-theme .feedback-quote-mark {
  color: rgba(255, 216, 162, 0.2);
}
body.dark-theme .feedback-card-featured {
  box-shadow: 0 22px 48px rgba(7, 5, 3, 0.34);
}
body.dark-theme .feedback-submit-form .field-group label,
body.dark-theme .feedback-form-panel .field-group label {
  color: #f7ecdf;
}
body.dark-theme .feedback-submit-form .field-group input,
body.dark-theme .feedback-submit-form .field-group textarea,
body.dark-theme .feedback-form-panel .field-group input,
body.dark-theme .feedback-form-panel .field-group textarea {
  border-color: rgba(239, 191, 114, 0.14);
  background: rgba(255, 248, 238, 0.05);
  color: #fbf3e8;
}
body.dark-theme .feedback-submit-form .field-group input::placeholder,
body.dark-theme .feedback-submit-form .field-group textarea::placeholder,
body.dark-theme .feedback-form-panel .field-group input::placeholder,
body.dark-theme .feedback-form-panel .field-group textarea::placeholder {
  color: rgba(223, 207, 191, 0.72);
}
body.dark-theme .feedback-submit-form .field-group input:focus,
body.dark-theme .feedback-submit-form .field-group textarea:focus,
body.dark-theme .feedback-form-panel .field-group input:focus,
body.dark-theme .feedback-form-panel .field-group textarea:focus {
  border-color: rgba(255, 149, 0, 0.78);
  box-shadow: 0 0 0 4px rgba(255, 149, 0, 0.12);
  background: rgba(255, 248, 238, 0.08);
}
body.dark-theme .feedback-form-actions .btn.btn-secondary,
body.dark-theme .nav-actions .btn.btn-secondary {
  background: rgba(255, 248, 238, 0.06);
  border-color: rgba(239, 191, 114, 0.18);
  color: #fbf3e8;
}
body.dark-theme .feedback-form-actions .btn.btn-secondary:hover,
body.dark-theme .nav-actions .btn.btn-secondary:hover {
  background: rgba(255, 248, 238, 0.12);
}
body.dark-theme .feedback-form-status.is-success {
  color: #8ed8a4;
}
body.dark-theme .feedback-form-status.is-error {
  color: #ff9a8b;
}
@media (max-width: 1100px) {
  .feedback-grid,
  .feedback-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feedback-showcase-card:first-child {
    grid-column: auto;
  }
}
@media (max-width: 820px) {
  .feedback-grid,
  .feedback-page-grid,
  .feedback-form-grid {
    grid-template-columns: 1fr;
  }
  .feedback-card,
  .feedback-form-panel,
  .feedback-showcase-card {
    padding: 22px;
  }
  .feedback-actions,
  .feedback-form-actions {
    flex-direction: column;
  }
  .feedback-actions .btn,
  .feedback-form-actions .btn {
    width: 100%;
  }
}

.feedback-submit-shell {
  max-width: 860px;
}
.feedback-submit-form {
  gap: 16px;
  margin-top: 12px;
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(176, 18, 77, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.76));
}
.feedback-submit-form .feedback-form-grid {
  gap: 12px;
}
.feedback-submit-form .field-group {
  gap: 6px;
  margin-bottom: 10px;
}
.feedback-submit-form .field-group label {
  font-size: 0.95rem;
}
.feedback-submit-form .field-group input,
.feedback-submit-form .field-group textarea {
  border-radius: 14px;
  padding: 12px 14px;
}
.feedback-submit-form .field-group textarea {
  min-height: 120px;
}
.feedback-submit-form .feedback-form-actions {
  gap: 10px;
}
.feedback-submit-form .feedback-form-actions .btn {
  padding: 12px 18px;
}
@media (max-width: 820px) {
  .feedback-submit-shell {
    max-width: 100%;
  }
  .feedback-submit-form {
    padding: 18px;
  }
  .feedback-submit-form .field-group textarea {
    min-height: 110px;
  }
}

/* ==================== Homepage Maintenance Overrides ==================== */

/* Navigation fit for the added Resources link */
.brand-text {
  font-size: clamp(1rem, 1.45vw, 1.4rem);
}
.nav-links {
  flex: 1;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.nav-links a {
  padding: 8px 10px;
  font-size: 0.95rem;
  white-space: nowrap;
}
@media (max-width: 1220px) {
  .nav {
    flex-wrap: wrap;
    row-gap: 12px;
    padding: 12px 0;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-bottom: 4px;
  }
}

/* Hero CTA variant: keep the About button plain black and white */
.btn-about {
  background: #ffffff;
  color: #111111;
  border-color: #111111;
}
.btn-about:hover {
  background: #f3f3f3;
  color: #111111;
  border-color: #111111;
}
.hero-actions .btn-about {
  flex: 0 0 auto;
  width: auto;
  align-self: center;
}





.yt-facade { position: relative; cursor: pointer; width: 100%; aspect-ratio: 16/9; background: #000; display: flex; align-items: center; justify-content: center; border-radius: 12px; overflow: hidden; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.2s; }
.yt-facade:hover img { opacity: 0.65; }
.yt-play-btn { position: absolute; background: none; border: none; cursor: pointer; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); transition: transform 0.2s; }
.yt-facade:hover .yt-play-btn { transform: scale(1.1); }
.media-video-frame iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 12px; }
/* ==================== Projects Refresh ==================== */
#portfolioGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.hp-proj-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 100%;
}

.hp-proj-link {
  display: block;
  height: 100%;
}

.hp-proj-surface {
  --project-card-image: linear-gradient(180deg, rgba(245, 241, 234, 0.12), rgba(245, 241, 234, 0.82));
  min-height: 470px;
  height: 100%;
  background:
    var(--project-card-image) center/cover no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.9));
  display: flex;
  align-items: flex-end;
}

body.dark-theme .hp-proj-surface {
  background:
    var(--project-card-image) center/cover no-repeat,
    linear-gradient(180deg, rgba(44, 36, 29, 0.44), rgba(27, 22, 18, 0.88));
}

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

.hp-proj-body {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 22px;
}

.hp-proj-body h3 {
  font-size: clamp(1.22rem, 2vw, 1.62rem);
  line-height: 1.15;
}

.hp-proj-body > p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.projects-page-grid {
  display: grid;
  gap: 30px;
}

.proj-card {
  border-radius: 28px;
  overflow: hidden;
}

.proj-card-header,
.proj-card-body,
.proj-card-footer {
  padding-left: 32px;
  padding-right: 32px;
}

.proj-card-header {
  padding-top: 32px;
  padding-bottom: 20px;
  display: grid;
  gap: 14px;
}

.proj-card-description {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.proj-card-intro {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-soft);
  max-width: 76ch;
}

.proj-image-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 32px;
}

.proj-image-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  aspect-ratio: 3 / 4;
}

.proj-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proj-card-body {
  display: grid;
  gap: 22px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.proj-card-section,
.proj-card-highlights {
  display: grid;
  gap: 12px;
}

.proj-card-section h3,
.proj-card-highlights h3 {
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.proj-card-section p,
.proj-card-highlights li {
  color: var(--text-soft);
  line-height: 1.8;
}

.proj-card-highlights ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.proj-card-footer {
  padding-top: 0;
  padding-bottom: 28px;
}

@media (max-width: 1100px) {
  #portfolioGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .proj-card-header,
  .proj-card-body,
  .proj-card-footer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .proj-image-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0 22px;
  }
}

@media (max-width: 640px) {
  #portfolioGrid {
    grid-template-columns: 1fr;
  }

  .hp-proj-surface {
    min-height: 420px;
  }

  .proj-image-strip {
    grid-template-columns: 1fr;
  }

  .proj-image-frame {
    aspect-ratio: 4 / 5;
  }

  .proj-social-links {
    flex-direction: column;
  }

  .proj-social-btn {
    width: 100%;
    justify-content: center;
  }
}
/* ==================== Projects UI Polish ==================== */
.chip-geometry {
  background: rgba(255, 149, 0, 0.2);
  border-color: rgba(255, 149, 0, 0.38);
  color: #9a5700;
}

.chip-architecture {
  background: rgba(92, 84, 72, 0.14);
  border-color: rgba(92, 84, 72, 0.28);
  color: #4f473f;
}

.chip-workshop {
  background: rgba(73, 145, 92, 0.18);
  border-color: rgba(73, 145, 92, 0.34);
  color: #2d6b3e;
}

body.dark-theme .chip-geometry {
  color: #ffd08a;
}

body.dark-theme .chip-architecture {
  color: #eee2d3;
}

body.dark-theme .chip-workshop {
  color: #bce7c6;
}

.hp-proj-card {
  transition: transform var(--transition), box-shadow var(--transition);
}

.hp-proj-surface {
  --project-card-image: linear-gradient(180deg, rgba(30, 24, 19, 0.16), rgba(30, 24, 19, 0.76));
  background:
    var(--project-card-image) center/cover no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.36));
}

body.dark-theme .hp-proj-surface {
  background:
    var(--project-card-image) center/cover no-repeat,
    linear-gradient(180deg, rgba(17, 14, 11, 0.18), rgba(17, 14, 11, 0.3));
}

.hp-proj-body {
  color: #fff7ee;
}

.hp-proj-body h3,
.hp-proj-meta,
.hp-proj-body > p {
  color: #fff7ee;
}

.hp-proj-body > p {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

.proj-image-frame {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.proj-image-frame img {
  transition: transform 0.45s ease;
}

.proj-card:hover .proj-image-frame {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.proj-card:hover .proj-image-frame img {
  transform: scale(1.06);
}
/* ==================== Projects Readability Tuning ==================== */
.chip:hover,
.chip:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.hp-proj-surface {
  --project-card-image: linear-gradient(180deg, rgba(15, 12, 10, 0.44), rgba(15, 12, 10, 0.82));
  background:
    var(--project-card-image) center/cover no-repeat,
    linear-gradient(180deg, rgba(12, 10, 9, 0.08), rgba(12, 10, 9, 0.16));
}

body.dark-theme .hp-proj-surface {
  background:
    var(--project-card-image) center/cover no-repeat,
    linear-gradient(180deg, rgba(8, 7, 6, 0.04), rgba(8, 7, 6, 0.12));
}

.hp-proj-body {
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.04), rgba(8, 7, 6, 0.38));
}

.hp-proj-body h3,
.hp-proj-body > p,
.hp-proj-body .hp-proj-meta,
.hp-proj-body .hp-proj-meta span {
  color: #fff7ee !important;
}

.hp-proj-body h3 {
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.36);
}

.hp-proj-body > p {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
}
/* ==================== Projects Cover Pass ==================== */
.hp-proj-surface {
  --project-card-image: linear-gradient(180deg, rgba(10, 8, 7, 0.5), rgba(10, 8, 7, 0.86));
}

.hp-proj-body {
  padding: 18px;
  align-items: stretch;
}

.hp-proj-content {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.52), rgba(245, 232, 218, 0.68));
  border: 1px solid rgba(94, 69, 34, 0.12);
  box-shadow: 0 14px 24px rgba(40, 28, 15, 0.12);
  backdrop-filter: blur(4px);
}

body.dark-theme .hp-proj-content {
  background: linear-gradient(180deg, rgba(12, 10, 8, 0.42), rgba(12, 10, 8, 0.6));
}

.hp-proj-body .card-kicker {
  color: var(--primary);
  background: rgba(255, 149, 0, 0.14);
  border-color: rgba(255, 149, 0, 0.28);
}

.hp-proj-body h3,
.hp-proj-body > p,
.hp-proj-body .hp-proj-meta,
.hp-proj-body .hp-proj-meta span,
.hp-proj-content p {
  color: #000 !important;
  text-shadow: none !important;
}

body.dark-theme .hp-proj-body h3,
body.dark-theme .hp-proj-body > p,
body.dark-theme .hp-proj-body .hp-proj-meta,
body.dark-theme .hp-proj-body .hp-proj-meta span,
body.dark-theme .hp-proj-content p {
  color: #fff7ee !important;
  text-shadow: none !important;
}

.hp-proj-content p {
  margin: 0;
}
