/* ============================================================
   Portfolio — Christina Gray
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --bg        : #f2f4f8;
  --white     : #ffffff;
  --dark      : #111111;
  --text      : #2b2b2b;
  --muted     : #666666;
  --light     : #999999;
  --border    : #e6e6e6;
  --radius    : 12px;
  --shadow    : 0 2px 16px rgba(0,0,0,.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* ============================================================
   SIDEBAR CARD
   ============================================================ */
.sidebar {
  position: sticky;
  top: 1rem;
  align-self: flex-start;
  max-height: calc(100vh - 1rem);
  background: var(--dark);
  border-radius: 16px;
  padding: 1.5rem 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.snav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.78rem 1.5rem;
  transition: color 0.25s;
}

.snav-link:hover { color: #fff; }
.snav-link.active { color: #fff; }

.snav-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.55) 4px, transparent 4px);
  flex-shrink: 0;
  transition: background 0.25s, border 0.25s;
}

.snav-link.active .snav-dot {
  width: 30px;
  height: 30px;
  background: transparent;
  border: 1.5px dashed rgba(255,255,255,0.55);
  animation: spin-cw 3s linear infinite;
}

@keyframes spin-cw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   PAGE BODY & CONTENT COLUMN
   ============================================================ */
.page-wrap {
  padding: 1.2rem 20rem 1.5rem;
}

.page-body {
  --bs-gutter-x: 7.5rem;
  --bs-gutter-y: 0;
}

.content-col {
  min-width: 0;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 20rem;
}

.site-name {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--dark);
  line-height: 1;
}
.site-name span {
  color: transparent;
  -webkit-text-stroke: 1.8px #aaa;
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.social-lnk {
  color: #000;
  text-decoration: none;
  font-size: 2.5rem;
  transition: opacity 0.2s;
}
.social-lnk:hover { opacity: 0.5; }

.more-btn {
  width: 42px;
  height: 42px;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.55rem;
  letter-spacing: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding-left: 4px;
}
.more-btn:hover { background: #333; }

/* Hamburger — hidden on desktop, visible on mobile */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  padding: 6px 8px;
  transition: background 0.2s, border-color 0.2s;
}
.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger-btn:hover { background: var(--bg); border-color: #ccc; }
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger-btn { display: flex; }
}

/* ============================================================
   SECTION CARDS  (shared shell)
   ============================================================ */
.section-card {
  background: var(--white);
  padding: 2.8rem 3rem;
  margin: 0 0 1rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.sec-label {
  position: relative;
  height: 4rem;
  display: flex;
  align-items: flex-end;
  margin-bottom: 1.1rem;
}

.sec-label::before {
  content: attr(data-wm);
  position: absolute;
  top: 50%;
  left: -0.2rem;
  transform: translateY(-45%);
  font-size: 2.5rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.1);
  letter-spacing: 5px;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.sec-tag {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dark);
}

.sec-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.sec-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ============================================================
   01  ABOUT
   ============================================================ */
.profile-photo {
  width: 155px;
  height: 155px;
  object-fit: cover;
  border: 4px solid var(--bg);
  box-shadow: 0 6px 24px rgba(0,0,0,.13);
  display: block;
}

.cert-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.9rem;
  width: 155px;
}

.cert-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 3px 12px rgba(0,0,0,.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cert-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}

.cert-img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.about-headline {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 1rem;
}

.about-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: 0;
}
.about-meta li i {
  color: var(--light);
  margin-right: 0.35rem;
  width: 14px;
  text-align: center;
}

.about-bio {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.stats-bar {
  display: flex;
  gap: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.stat-num {
  display: block;
  font-size: 3.8rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.8px var(--dark);
  line-height: 1;
  letter-spacing: -1px;
}
.stat-num sup {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  -webkit-text-stroke: 0;
  vertical-align: super;
}
.stat span {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ============================================================
   02  PORTFOLIO
   ============================================================ */
.pf-filters {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.pf-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 1.15rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s;
}
.pf-btn:hover,
.pf-btn.active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

/* Flex masonry-style grid — items reflow on filter */
.pf-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.pf-item {
  width: calc(50% - 0.4rem);
}

.pf-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.pf-thumb {
  height: 215px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.85rem;
  overflow: hidden;
}

.pf-thumb-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem 0.9rem 0.65rem;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 100%);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
  pointer-events: none;
}

.pf-tag {
  position: relative;
  z-index: 2;
  font-size: 0.67rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  text-transform: capitalize;
}
.tag-light { background: rgba(255,255,255,.92); color: #333; }
.tag-dark  { background: rgba(0,0,0,.72);       color: #fff; }

.pf-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pf-card:hover .pf-overlay { opacity: 1; }

/* ---- Portfolio decorative art (CSS only) ---- */
.pf-thumb-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  padding-bottom: 1.5rem;
  pointer-events: none;
}

/* Cocktail glasses */
.art-glass {
  width: 28px;
  height: 80px;
  background: rgba(255,255,255,.45);
  clip-path: polygon(30% 0%, 70% 0%, 90% 45%, 55% 45%, 55% 85%, 75% 85%, 75% 100%, 25% 100%, 25% 85%, 45% 85%, 45% 45%, 10% 45%);
}

/* Circular floral */
.art-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  box-shadow: 0 0 0 12px rgba(255,255,255,.15);
  margin: auto;
}

/* Dark series hand silhouette */
.art-hand {
  width: 60px;
  height: 100px;
  background: rgba(255,255,255,.12);
  border-radius: 40% 40% 20% 20%;
  margin: auto;
}

/* Plant blobs */
.art-plant {
  width: 90px;
  height: 90px;
  background: rgba(255,255,255,.35);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  margin: auto;
}

/* ============================================================
   03  SERVICES
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  margin-top: 0.5rem;
}

.svc-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.svc-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 38px;
}

.svc-num {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--light);
  letter-spacing: 1px;
}

.svc-icon {
  width: 38px;
  height: 38px;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 1rem;
  flex-shrink: 0;
}

.svc-item h5 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.45rem;
  color: var(--dark);
}
.svc-item p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   04  TESTIMONIALS
   ============================================================ */
.testi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.testi-arrows {
  display: flex;
  gap: 0.5rem;
}

.t-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--muted);
  transition: all 0.2s;
}
.t-arrow:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.testi-card {
  background: var(--bg);
  border-radius: 10px;
  padding: 1.6rem;
}

.stars {
  display: flex;
  gap: 3px;
  color: #f5c518;
  font-size: 0.78rem;
  margin-bottom: 0.85rem;
}

.testi-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testi-author img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}
.testi-author strong {
  display: block;
  font-size: 0.82rem;
  color: var(--dark);
  line-height: 1.3;
}
.testi-author small {
  font-size: 0.7rem;
  color: var(--light);
}

/* ============================================================
   05  RESUME
   ============================================================ */
.resume-head {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.resume-head i { font-size: 1rem; }

.timeline {
  position: relative;
  padding-left: 1.6rem;
  border-left: 2px solid var(--border);
}

.tl-item {
  position: relative;
  padding-bottom: 1.75rem;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: '';
  position: absolute;
  left: calc(-1.6rem - 6px);
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--dark);
}

.tl-year {
  display: block;
  font-size: 0.68rem;
  color: var(--light);
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}
.tl-item h5 {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.15rem;
}
.tl-item p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   06  CLIENTS
   ============================================================ */
.clients-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.client-logo {
  font-size: 0.8rem;
  font-weight: 600;
  color: #bbb;
  letter-spacing: 1px;
  transition: color 0.25s;
  cursor: default;
  user-select: none;
}
.client-logo:hover { color: var(--dark); }

/* ============================================================
   07  BLOG
   ============================================================ */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.blog-item {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  transition: background 0.2s;
}
.blog-item:hover { background: var(--bg); }

.blog-thumb {
  width: 130px;
  min-width: 130px;
  height: 88px;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0.5rem;
  overflow: hidden;
}

.blog-cat {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(255,255,255,.9);
  color: #333;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.blog-body { flex: 1; }

.blog-date {
  display: block;
  font-size: 0.7rem;
  color: var(--light);
  margin-bottom: 0.35rem;
}

.blog-body h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.55rem;
  line-height: 1.4;
}

.blog-readmore {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.22rem 0.85rem;
  border-radius: 12px;
  transition: all 0.2s;
}
.blog-readmore:hover {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

/* ============================================================
   08  CONTACT
   ============================================================ */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.ci-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.ci-icon {
  width: 32px;
  height: 32px;
  background: var(--bg);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--dark);
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cf-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  resize: none;
  transition: border-color 0.2s, background 0.2s;
}
.cf-input:focus {
  border-color: var(--dark);
  background: var(--white);
}
.cf-input::placeholder { color: #bbb; }

.cf-btn {
  background: var(--dark);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.72rem 2rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
  letter-spacing: 0.5px;
}
.cf-btn:hover { background: #333; }

.map-box {
  border-radius: 10px;
  overflow: hidden;
  height: 420px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

/* ============================================================
   FOOTER BAR
   ============================================================ */
.site-footer-bar {
  text-align: center;
  padding: 1.2rem;
  font-size: 0.75rem;
  color: var(--light);
  background: var(--white);
  margin: 0 0 1rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

/* ---- Tablet (≤ 1200px) — reduce giant paddings ---- */
@media (max-width: 1200px) {
  .page-wrap   { padding: 1.2rem 4rem 1.5rem; }
  .site-header { padding: 1.2rem 4rem; }
  .page-body   { --bs-gutter-x: 2rem; }
}

/* ---- Small tablet / large phone (≤ 900px) ---- */
@media (max-width: 900px) {
  .page-wrap   { padding: 1rem 1.5rem 1.5rem; }
  .site-header { padding: 1rem 1.5rem; }
  .page-body   { --bs-gutter-x: 1rem; }

  .site-name { font-size: 2.8rem; }

  .svc-grid   { grid-template-columns: 1fr; gap: 2rem; }
  .testi-grid { grid-template-columns: 1fr; }
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {
  /* Layout */
  .page-wrap {
    padding: 0 0.75rem 1rem;
  }

  /* Header */
  .site-header {
    padding: 0.9rem 1rem;
    position: sticky;
    top: 0;
    z-index: 200;
  }
  .site-name { font-size: 1.8rem; }

  /* Sidebar — collapses to horizontal scrollable pill bar */
  .sidebar {
    position: static;
    max-height: none;
    border-radius: 12px;
    padding: 0.5rem 0;
    overflow: visible;
  }

  /* Mobile sidebar hidden by default, toggled by hamburger */
  .sidebar.mobile-hidden {
    display: none;
  }
  .sidebar.mobile-open {
    display: block;
  }

  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 0.5rem;
    gap: 0.25rem;
  }
  .sidebar-nav::-webkit-scrollbar { display: none; }

  .snav-link {
    white-space: nowrap;
    font-size: 0.6rem;
    padding: 0.5rem 0.85rem;
    gap: 0.4rem;
    flex-shrink: 0;
    border-radius: 20px;
  }
  .snav-link.active { background: rgba(255,255,255,0.12); border-radius: 20px; }
  .snav-dot { width: 16px; height: 16px; }
  .snav-link.active .snav-dot { width: 16px; height: 16px; }

  /* Section cards */
  .section-card {
    padding: 1.5rem 1.1rem;
    margin: 0 0 0.75rem 0;
  }

  .sec-label::before { font-size: 1.6rem; letter-spacing: 3px; }
  .sec-title  { font-size: 1.35rem; }

  /* About */
  .profile-photo { width: 110px; height: 110px; }
  .about-headline { font-size: 1.35rem; }
  .about-bio { max-width: 100%; font-size: 0.82rem; }
  .stats-bar { gap: 1.2rem; flex-wrap: wrap; padding-top: 1.2rem; }
  .stat-num  { font-size: 2.8rem; }

  /* Portfolio */
  .pf-filters { flex-wrap: wrap; }
  .pf-item    { width: 100%; }
  .pf-thumb   { height: 175px; }

  /* Services */
  .svc-grid { grid-template-columns: 1fr; gap: 1.75rem; }

  /* Testimonials */
  .testi-grid   { grid-template-columns: 1fr; }
  .testi-header { flex-wrap: wrap; gap: 0.75rem; }

  /* Resume timeline */
  .tl-item h5 { font-size: 0.82rem; }

  /* Blog */
  .blog-item { gap: 0.85rem; padding: 0.5rem; }
  .blog-thumb { width: 90px; min-width: 90px; height: 68px; }
  .blog-body h4 { font-size: 0.85rem; }

  /* Portfolio modal */
  .pf-modal-body { padding: 1.25rem 1.25rem 1.5rem; }
  .pf-modal-banner { height: 145px; }
}

/* ---- Small phone (≤ 480px) ---- */
@media (max-width: 480px) {
  .page-wrap { padding: 0 0.5rem 0.75rem; }

  .site-header  { padding: 0.75rem 0.75rem; }
  .site-name    { font-size: 1.45rem; }
  .social-lnk   { font-size: 1.6rem; }

  .section-card { padding: 1.25rem 0.85rem; }
  .sec-label::before { display: none; }

  /* About stacks photo above text */
  .about-headline { font-size: 1.2rem; }
  .stats-bar { gap: 1rem; }
  .stat-num  { font-size: 2.2rem; }

  /* Blog */
  .blog-thumb { width: 75px; min-width: 75px; height: 60px; }
  .blog-body h4 { font-size: 0.8rem; }

  /* Portfolio modal full-screen */
  .pf-modal-backdrop { padding: 0; align-items: flex-end; }
  .pf-modal {
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    max-height: 92vh;
  }

  /* Sidebar nav font even smaller */
  .snav-link { font-size: 0.55rem; padding: 0.45rem 0.7rem; }
}

/* ============================================================
   PORTFOLIO MODAL
   ============================================================ */
.pf-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.pf-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.pf-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(32px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.34,1.15,0.64,1);
  box-shadow: 0 32px 90px rgba(0,0,0,.4);
}
.pf-modal-backdrop.open .pf-modal {
  transform: translateY(0) scale(1);
}

.pf-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.pf-modal-close:hover { background: rgba(0,0,0,.85); }

.pf-modal-banner {
  height: 185px;
  border-radius: 18px 18px 0 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 1.5rem;
  overflow: hidden;
}
/* Subtle dot-grid texture */
.pf-modal-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 22px 22px;
}
/* Bottom-to-top fade overlay */
.pf-modal-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 65%);
}

.pf-modal-cat {
  position: relative;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.pf-modal-body {
  padding: 1.75rem 2rem 2rem;
}

.pf-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.pf-modal-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.pf-modal-tech-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 0.65rem;
}

.pf-modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2rem;
}

.pf-tech-pill {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.28rem 0.85rem;
  border-radius: 20px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  font-family: 'Poppins', sans-serif;
}

.pf-modal-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pf-modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.4rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s;
  font-family: 'Poppins', sans-serif;
}

.pf-modal-live {
  background: var(--dark);
  color: #fff;
  border: 1px solid var(--dark);
}
.pf-modal-live:hover { background: #333; color: #fff; }

.pf-modal-gh {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--border);
}
.pf-modal-gh:hover {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

/* ---- Updated overlay ---- */
.pf-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.pf-overlay-inner i   { font-size: 1.5rem; }
.pf-overlay-inner span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px; }

/* ---- New CSS art for tech cards ---- */
.art-nodes {
  width: 100px;
  height: 80px;
  margin: auto;
  background:
    radial-gradient(circle 6px at 20% 50%, rgba(255,255,255,.5) 100%, transparent 0),
    radial-gradient(circle 6px at 50% 20%, rgba(255,255,255,.5) 100%, transparent 0),
    radial-gradient(circle 6px at 80% 50%, rgba(255,255,255,.5) 100%, transparent 0),
    radial-gradient(circle 6px at 50% 80%, rgba(255,255,255,.5) 100%, transparent 0),
    radial-gradient(circle 4px at 50% 50%, rgba(255,255,255,.7) 100%, transparent 0);
}

.art-rings {
  width: 90px;
  height: 90px;
  margin: auto;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  box-shadow:
    0 0 0 12px rgba(255,255,255,.1),
    0 0 0 24px rgba(255,255,255,.06);
}

.art-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 70px;
  margin: auto;
}
.art-bars::before,
.art-bars::after {
  content: '';
  display: block;
}
.art-bars {
  width: 80px;
  background:
    linear-gradient(rgba(255,255,255,.45) 0%, rgba(255,255,255,.45) 100%) 0 auto / 14px 45px no-repeat,
    linear-gradient(rgba(255,255,255,.3)  0%, rgba(255,255,255,.3)  100%) 22px auto / 14px 65px no-repeat,
    linear-gradient(rgba(255,255,255,.45) 0%, rgba(255,255,255,.45) 100%) 44px auto / 14px 35px no-repeat,
    linear-gradient(rgba(255,255,255,.3)  0%, rgba(255,255,255,.3)  100%) 66px auto / 14px 55px no-repeat;
  background-position: 0 bottom, 22px bottom, 44px bottom, 66px bottom;
}

.art-grid-dots {
  width: 90px;
  height: 90px;
  margin: auto;
  background-image:
    radial-gradient(circle 2.5px, rgba(255,255,255,.4) 100%, transparent 0);
  background-size: 18px 18px;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .pf-modal-body { padding: 1.4rem 1.25rem 1.5rem; }
  .pf-modal-banner { height: 150px; }
  .pf-modal-title { font-size: 1.1rem; }
}
