
.right-icons{display:flex;align-items:center;gap:18px;margin-right:22px;position:relative;z-index:20;}
.hamburger{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;font-size:31px;color:#333;cursor:pointer;line-height:1;border-radius:10px;transition:background .2s ease,color .2s ease;user-select:none;}
.hamburger:hover{background:rgba(255,255,255,.65);color:#111;}
.sidenav{height:100%;width:0;position:fixed;z-index:40;top:0;right:0;background:rgba(28,28,30,.97);overflow-x:hidden;overflow-y:auto;transition:width .28s ease;box-shadow:-10px 0 30px rgba(0,0,0,.22);}
.sidenav-inner{padding:82px 26px 26px;display:flex;flex-direction:column;gap:4px;min-width:260px;}
.sidenav-heading{font-family:"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;font-size:1.5rem;color:#fff;margin-bottom:10px;opacity:.95;}
.sidenav a{padding:12px 0;text-decoration:none;font-size:1.18rem;line-height:1.2;color:#f3f4f6;display:block;transition:color .2s ease,opacity .2s ease;white-space:normal;}
.sidenav a:hover,.sidenav a.active{color:#8ec5ff;}
.sidenav .closebtn{position:absolute;top:14px;right:18px;font-size:38px;line-height:1;color:#fff;text-decoration:none;z-index:41;cursor:pointer;}
.testimonial-sidenav{background:linear-gradient(180deg,rgba(35,35,38,.98),rgba(56,56,62,.98));}
.testimonial-nav-content{padding:82px 26px 26px;min-width:300px;color:#fff;}
.testimonial-nav-content h3{font-family:"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;font-size:1.6rem;margin:0 0 16px;color:#fff;}
body.nav-open, body.testimonial-open{overflow:hidden;}
@media (max-width:700px){.sidenav{max-width:100vw}.testimonial-nav-content,.sidenav-inner{min-width:auto;width:100%}.right-icons{margin-right:14px;gap:12px}}

.person-icon-btn {
  background: transparent;
  border: 0;
  padding: 0;
  line-height: 0;
}
.hero-blurb {
  max-width: 920px;
  margin: 10px auto 26px;
  text-align: center;
  font-family: "Afacad Flux", sans-serif;
  font-size: 1.04rem;
  line-height: 1.7;
  color: #3f3f46;
}
.page-header {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 14px;
  text-align: center;
}
.page-heading {
  font-family:"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 2.2rem;
  line-height: 1.1;
  margin: 10px 0 8px;
  color: #2f2f33;
}
.page-subtitle {
  font-family: "Afacad Flux", sans-serif;
  font-size: 1.05rem;
  color: #6b7280;
  margin-bottom: 18px;
}
.page-intro {
  font-family: "Afacad Flux", sans-serif;
  font-size: 1.04rem;
  line-height: 1.7;
  color: #4b5563;
  max-width: 900px;
  margin: 0 auto 10px;
}
.section-header{
  width:100%;
  grid-column:1/-1;
  margin:34px 0 4px;
  font-family:"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size:1.7rem;
  color:#3f3f46;
  text-align:left;
}
.section-subtitle{
  width:100%;
  grid-column:1/-1;
  margin:0 0 18px;
  font-family:"Afacad Flux", sans-serif;
  font-size:1.02rem;
  color:#6b7280;
  text-align:left;
}
.section-grid{
  width:100%;
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
.section-link-wrap{
  width:100%;
  grid-column:1/-1;
  margin:10px 0 10px;
  text-align:left;
}
.section-link{
  display:inline-block;
  font-family:"Afacad Flux", sans-serif;
  font-size:1rem;
  font-weight:600;
  color:#4b5563;
  text-decoration:none;
  border-bottom:1px solid #d1d5db;
  padding-bottom:2px;
}
.section-link:hover{
  color:#111827;
  border-bottom-color:#111827;
}
.feature-card.image-tile{
  position:relative;
  min-height:250px;
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:0;
  border-radius:22px;
  overflow:hidden;
  background:#ffffff;
  border:1px solid rgba(17,24,39,.08);
  box-shadow:0 14px 30px rgba(0,0,0,.10);
  cursor:pointer;
  transition:transform .22s ease, box-shadow .22s ease;
}
.feature-card.image-tile:hover{
  transform:translateY(-5px);
  box-shadow:0 18px 34px rgba(0,0,0,.16);
}
.feature-copy{
  width:54%;
  padding:26px 22px 22px 24px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  color:#111827;
  position:relative;
  z-index:2;
}
.feature-kicker{
  font-family:"Afacad Flux",sans-serif;
  font-size:.78rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#6b7280;
  margin-bottom:8px;
}
.feature-title{
  font-family:"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size:1.6rem;
  line-height:1.05;
  margin:0 0 10px;
  color:#1f2937;
}
.feature-desc{
  font-family:"Afacad Flux",sans-serif;
  font-size:.98rem;
  line-height:1.45;
  color:#4b5563;
  margin:0 0 18px;
}
.feature-btn{
  align-self:flex-start;
  background:#2F80ED;
  color:#fff;
  border:none;
  border-radius:999px;
  padding:11px 18px;
  font-family:"Afacad Flux",sans-serif;
  font-size:.92rem;
  font-weight:600;
  transition:all .2s ease;
  box-shadow:0 6px 14px rgba(0,0,0,.18);
}
.feature-card:hover .feature-btn{
  background:#1C63C9;
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(0,0,0,.25);
}
.feature-media{
  width:46%;
  min-height:250px;
  position:relative;
  background:linear-gradient(180deg,rgba(243,244,246,1),rgba(229,231,235,1));
}
.feature-media:after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:60%;
  background:linear-gradient(to right, rgba(255,255,255,.42), transparent);
  pointer-events:none;
}
.feature-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.popup-content{
  max-width:1000px;
}
.portfolio_image{
  width:100%;
  max-width:900px;
  height:auto;
  display:block;
  margin:20px auto;
}
.popup-content iframe,
.popup-content video{
  width:100%;
  max-width:900px;
  border-radius:12px;
  margin:16px auto;
}
.contact-wrap{
  max-width: 760px;
  margin: 0 auto;
}
.contact-form{
  max-width: 760px;
  margin: 0 auto;
  padding: 26px;
  background: rgba(255,255,255,.86);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}
.contact-form label{
  display:block;
  font-weight:600;
  margin-top:14px;
  font-family:"Afacad Flux", sans-serif;
}
.contact-form input,
.contact-form textarea{
  width:100%;
  padding:12px;
  margin-top:6px;
  border:1px solid #d1d5db;
  border-radius:12px;
  font-size:1rem;
  background:#fff;
}
.contact-form button{
  margin-top:16px;
  padding:12px 22px;
  background-color:#2F80ED;
  color:white;
  border:none;
  border-radius:999px;
  cursor:pointer;
  font-size:1rem;
  font-weight:600;
}
.contact-form button:hover{
  background:#1C63C9;
}
.flash-message {
  margin: 0 auto 18px;
  max-width: 760px;
  padding: 12px 16px;
  border-radius: 12px;
  font-family:"Afacad Flux", sans-serif;
}
.flash-success { background:#dcfce7; color:#166534; }
.flash-error { background:#fee2e2; color:#991b1b; }
.testimonial-nav-content { padding: 80px 26px 26px; color:#fff; }
.testimonial-card {
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.testimonial-card p {
  font-family:"Afacad Flux",sans-serif;
  margin:0 0 12px;
  line-height:1.65;
  color:rgba(255,255,255,.92);
  font-size:1.12rem;
  max-width:none;
}
.testimonial-card span {
  display:block;
  font-family:"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size:1.02rem;
  font-weight:600;
  color:#ffffff;
  letter-spacing:.01em;
  opacity:1;
}
.admin-link-inline{
  display:inline-block;
  margin-top:16px;
  color:#1C63C9;
  font-weight:600;
}
@media (max-width:1100px){
  .feature-copy{width:58%;}
  .feature-media{width:42%;}
}
@media (max-width:900px){
  .section-grid{grid-template-columns:1fr;gap:20px}
  .section-header,.section-subtitle,.section-link-wrap{text-align:center}
  .feature-card.image-tile{min-height:220px}
  .feature-copy{width:56%;padding:22px 18px}
  .feature-title{font-size:1.45rem}
  .feature-desc{font-size:.94rem}
  .feature-media{width:44%;min-height:220px}
  .hero-blurb{font-size:1rem}
}
@media (max-width:560px){
  .feature-card.image-tile{flex-direction:column;min-height:auto}
  .feature-copy,.feature-media{width:100%}
  .feature-media{min-height:190px;order:2}
  .feature-copy{order:1}
}


/* Updated portfolio card layout: full-bleed image card with content overlaid at the bottom */
.section-grid{align-items:start;}
.portfolio-card.poster-card{
  display:block;
  cursor:pointer;
  min-height:100%;
}
.portfolio-card-frame{
  position:relative;
  background:#111827;
  border-radius:0;
  overflow:hidden;
  box-shadow:0 18px 40px rgba(0,0,0,.22);
  transition:transform .24s ease, box-shadow .24s ease;
}
.portfolio-card.poster-card:hover .portfolio-card-frame{
  transform:translateY(-8px) scale(1.01);
  box-shadow:0 28px 56px rgba(0,0,0,.30), 0 0 0 1px rgba(255,255,255,.06);
}
.portfolio-card-frame::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 50% 100%, rgba(96,165,250,.22), rgba(96,165,250,0) 48%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  opacity:0;
  transition:opacity .28s ease;
  pointer-events:none;
  z-index:3;
}
.portfolio-card.poster-card:hover .portfolio-card-frame::after{
  opacity:1;
}
.portfolio-card-image{
  position:relative;
  aspect-ratio: 16 / 12;
  background:#1f2937;
  overflow:hidden;
}
.portfolio-card-image::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(7,10,16,.92) 0%, rgba(7,10,16,.78) 22%, rgba(7,10,16,.25) 52%, rgba(7,10,16,.02) 78%);
  z-index:1;
  pointer-events:none;
}
.portfolio-card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .45s ease, filter .3s ease;
}
.portfolio-card.poster-card:hover .portfolio-card-image img{
  transform:scale(1.04);
  filter:saturate(1.06) contrast(1.04);
}
.portfolio-card-overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  padding:18px 18px 16px;
}
.portfolio-card-kicker{
  font-family:"Afacad Flux",sans-serif;
  font-size:.78rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:rgba(255,255,255,.86);
  margin-bottom:8px;
}
.portfolio-card-title{
  font-family:"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size:1.5rem;
  line-height:1.08;
  color:#fff;
  margin:0 0 8px;
  text-shadow:0 2px 10px rgba(0,0,0,.25);
}
.portfolio-card-desc{
  font-family:"Afacad Flux",sans-serif;
  font-size:1rem;
  line-height:1.45;
  color:rgba(255,255,255,.95);
  margin:0;
  max-width:none;
  text-shadow:0 2px 8px rgba(0,0,0,.24);
}
@media (max-width:900px){
  .portfolio-card-title{font-size:1.28rem;}
  .portfolio-card-overlay{padding:16px 16px 14px;}
}

/* =============================================
   Luxury Dark Cinematic Frontend Pass
   ============================================= */
:root{
  --bg-0:#090b10;
  --bg-1:#0d1118;
  --bg-2:#121826;
  --surface-0:rgba(255,255,255,0.035);
  --surface-1:rgba(255,255,255,0.06);
  --surface-2:rgba(255,255,255,0.10);
  --border-0:rgba(255,255,255,0.08);
  --border-1:rgba(255,255,255,0.14);
  --text-0:#f5f7fb;
  --text-1:#d6dce8;
  --text-2:#9ea8bb;
  --accent:#7cc1ff;
  --accent-strong:#53a9ff;
  --shadow-lg:0 26px 80px rgba(0,0,0,.52);
}

html{
  background:var(--bg-0);
}
body{
  background:
    radial-gradient(900px 480px at 15% 0%, rgba(84,126,255,.11), transparent 60%),
    radial-gradient(900px 520px at 85% 8%, rgba(0,190,255,.09), transparent 58%),
    linear-gradient(180deg, #0a0d13 0%, #090b10 100%);
  color:var(--text-1);
  min-height:100vh;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size:52px 52px;
  mask-image:linear-gradient(180deg, rgba(0,0,0,.32), rgba(0,0,0,0));
  opacity:.18;
  z-index:-1;
}
.gradient-background{display:none;}

p,
ul,
li{
  color:var(--text-1);
}

a{color:var(--accent);}
a:hover{color:#a5d7ff;}

.navbar{
  padding:18px 22px;
  background:linear-gradient(180deg, rgba(7,10,16,.78), rgba(7,10,16,.18) 72%, transparent);
  backdrop-filter:blur(14px);
}
.hamburger,
.navbar .person-icon{
  color:var(--text-0);
}
.hamburger{
  width:46px;
  height:46px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.045);
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.hamburger:hover{
  background:rgba(255,255,255,.11);
  color:#fff;
}
.person-icon-btn{
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.045);
  padding:2px;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.icon-person-speech-bubble{filter:drop-shadow(0 6px 16px rgba(0,0,0,.28));}
.icon-person-speech-bubble path:last-child,
.icon-person-speech-bubble path:nth-child(2),
.icon-person-speech-bubble path:first-child{fill:#dbe8ff;}

.side-nav,
.sidenav{
  background:linear-gradient(180deg, rgba(12,16,24,.97), rgba(8,10,16,.98));
  box-shadow:-14px 0 50px rgba(0,0,0,.42);
  border-left:1px solid rgba(255,255,255,.07);
  backdrop-filter:blur(16px);
}
.sidenav::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:220px;
  background:radial-gradient(circle at top right, rgba(124,193,255,.14), transparent 62%);
  pointer-events:none;
}
.sidenav-heading,
.testimonial-nav-content h3{color:var(--text-0);letter-spacing:.01em;}
.sidenav a{color:var(--text-1);}
.sidenav a:hover,.sidenav a.active{color:#fff;}
.sidenav a.active{position:relative;}
.sidenav a.active::before{
  content:"";
  position:absolute;
  left:-14px;
  top:50%;
  width:6px;
  height:6px;
  border-radius:999px;
  background:var(--accent);
  transform:translateY(-50%);
  box-shadow:0 0 18px rgba(124,193,255,.8);
}

.main-content{
  width:min(1320px, 100% - 72px);
  margin-top:130px;
  padding-bottom:120px;
}
.small-text,
.senior-ux-designer-text,
.page-subtitle,
.section-subtitle,
.hero-blurb,
.page-intro{
  font-family:"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.small-text{
  color:#8f9bb0;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:.84rem;
  font-weight:600;
  animation:none;
  opacity:1;
}
.large-text{
  color:var(--text-0);
  background:none !important;
  -webkit-background-clip:initial;
  font-size:clamp(3rem, 6vw, 5.7rem);
  line-height:.95;
  letter-spacing:-.05em;
  font-weight:800;
  margin-top:10px;
  animation:none;
  opacity:1;
  text-align:center;
  text-shadow:0 18px 60px rgba(0,0,0,.38);
}
.senior-ux-designer-text{
  color:var(--text-2);
  font-size:clamp(1.02rem, 2vw, 1.35rem);
  font-weight:500;
  margin-top:14px;
  letter-spacing:.01em;
  animation:none;
  opacity:1;
}
.hero-blurb,
.page-intro{
  max-width:860px;
  margin:18px auto 0;
  color:var(--text-2);
  font-size:1.02rem;
  line-height:1.8;
  text-align:center;
}
.page-header{
  margin:0 auto 38px;
  max-width:980px;
}
.page-heading{
  color:var(--text-0);
  letter-spacing:-.035em;
  font-size:clamp(2.2rem, 4vw, 4rem);
  margin:12px 0 10px;
}
.page-subtitle{
  color:var(--text-2);
  margin-bottom:14px;
}

.image-grid{
  width:100%;
  gap:18px;
  margin-top:56px;
  margin-bottom:0;
}
.section-header{
  color:var(--text-0);
  font-size:clamp(1.5rem, 2vw, 2rem);
  font-weight:700;
  letter-spacing:-.03em;
  margin:62px 0 6px;
}
.section-subtitle{
  color:var(--text-2);
  max-width:760px;
  line-height:1.7;
  margin:0 0 24px;
}
.section-grid{
  gap:28px;
}
.section-link-wrap{margin:18px 0 6px;}
.section-link{
  color:var(--text-1);
  border-bottom:1px solid rgba(255,255,255,.18);
}
.section-link:hover{
  color:#fff;
  border-bottom-color:rgba(255,255,255,.8);
}

/* Cinematic poster cards */
.section-grid:hover .portfolio-card-frame{opacity:.62; transform:scale(.985);}
.section-grid:hover .portfolio-card.poster-card:hover .portfolio-card-frame{opacity:1; transform:translateY(-12px) scale(1.02);}
.portfolio-card.poster-card{position:relative; isolation:isolate;}
.portfolio-card-frame{
  border-radius:0;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, #11161f, #0d1118);
  box-shadow:var(--shadow-lg);
  transition:transform .38s cubic-bezier(.22,1,.36,1), box-shadow .38s cubic-bezier(.22,1,.36,1), opacity .28s ease, border-color .28s ease;
}
.portfolio-card-frame::before{
  content:"";
  position:absolute;
  inset:-1px;
  border:1px solid transparent;
  opacity:0;
  background:linear-gradient(140deg, rgba(255,255,255,.18), rgba(255,255,255,.03), rgba(124,193,255,.18));
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  padding:1px;
  pointer-events:none;
  transition:opacity .28s ease;
}
.portfolio-card-frame::after{
  opacity:.45;
  background:
    radial-gradient(80% 55% at 50% 100%, rgba(91,163,255,.32), rgba(91,163,255,0) 58%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
}
.portfolio-card.poster-card:hover .portfolio-card-frame{
  border-color:rgba(255,255,255,.16);
  box-shadow:0 34px 80px rgba(0,0,0,.62), 0 0 0 1px rgba(124,193,255,.12);
}
.portfolio-card.poster-card:hover .portfolio-card-frame::before{opacity:1;}
.portfolio-card-image{
  aspect-ratio: 16 / 18;
  background:#0f141d;
}
.portfolio-card-image::before{
  background:linear-gradient(to top, rgba(5,8,13,.98) 0%, rgba(5,8,13,.88) 16%, rgba(5,8,13,.48) 38%, rgba(5,8,13,.08) 72%);
}
.portfolio-card-image::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,.06), transparent 26%);
  mix-blend-mode:screen;
  opacity:.46;
  z-index:1;
  pointer-events:none;
}
.portfolio-card-image img{
  filter:saturate(.94) contrast(1.02) brightness(.92);
  transition:transform .7s cubic-bezier(.22,1,.36,1), filter .35s ease;
}
.portfolio-card.poster-card:hover .portfolio-card-image img{
  transform:scale(1.085);
  filter:saturate(1.04) contrast(1.07) brightness(1);
}
.portfolio-card-overlay{
  padding:22px 22px 20px;
}
.portfolio-card-kicker{
  color:rgba(223,231,245,.78);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.16em;
  margin-bottom:10px;
}
.portfolio-card-title{
  font-size:clamp(1.28rem, 2vw, 1.85rem);
  letter-spacing:-.03em;
  margin-bottom:8px;
}
.portfolio-card-desc{
  color:rgba(230,236,245,.82);
  font-size:.96rem;
  line-height:1.58;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Popup / project detail */
.popup{
  background:rgba(5,7,11,.78);
  backdrop-filter:blur(12px);
}
.popup-content{
  background:linear-gradient(180deg, rgba(15,19,28,.98), rgba(10,13,20,.98));
  color:var(--text-1);
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  box-shadow:0 30px 90px rgba(0,0,0,.56);
  max-width:min(1100px, calc(100vw - 64px));
  max-height:86vh;
  padding:42px 42px 34px;
}
.popup-content h1,
.popup-content h2,
.popup-content h3,
.popup-content .large-text,
.popup-content .small-text{color:var(--text-0); background:none !important;}
.popup-content .small-text{font-size:.9rem; letter-spacing:.12em; text-transform:uppercase;}
.popup-content p,
.popup-content ul,
.popup-content li{color:var(--text-1); max-width:820px;}
.popup-content iframe,
.popup-content video,
.popup .portfolio_image{
  border-radius:16px;
  box-shadow:0 18px 40px rgba(0,0,0,.34);
}
.popup .close-btn{
  top:16px;
  right:22px;
  width:54px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:42px;
  color:#fff;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;
  text-shadow:none;
}
.popup .close-btn:hover{background:rgba(255,255,255,.12);}

/* Testimonial rail */
.testimonial-sidenav{
  background:linear-gradient(180deg, rgba(14,18,27,.98), rgba(9,12,18,.98));
}
.testimonial-nav-content{padding:88px 28px 28px;}
.testimonial-card{
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.1);
  box-shadow:0 18px 40px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.05);
}
.testimonial-card p{color:#eef4ff;font-size:1.02rem;line-height:1.72;}
.testimonial-card span{color:#9ad1ff; font-size:.95rem; letter-spacing:.02em;}

/* Contact page */
.contact-form{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.09);
  box-shadow:0 24px 60px rgba(0,0,0,.34);
  backdrop-filter:blur(10px);
}
.contact-form label{color:var(--text-1);}
.contact-form input,
.contact-form textarea{
  background:rgba(7,10,16,.75);
  border:1px solid rgba(255,255,255,.1);
  color:var(--text-0);
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color:rgba(124,193,255,.5);
  box-shadow:0 0 0 3px rgba(124,193,255,.14);
}
.contact-form button{
  background:linear-gradient(180deg, #7bc1ff, #53a9ff);
  color:#06111f;
  box-shadow:0 12px 26px rgba(83,169,255,.24);
}
.contact-form button:hover{background:linear-gradient(180deg, #93d0ff, #66b4ff);}
.flash-success{background:rgba(34,197,94,.14); color:#bcf7d0; border:1px solid rgba(34,197,94,.22);}
.flash-error{background:rgba(248,113,113,.14); color:#ffd3d3; border:1px solid rgba(248,113,113,.22);}

/* General readability */
.person-icon{margin-right:12px;}
.right-icons{gap:14px;}
.image-grid.show{opacity:1; visibility:visible; transform:none;}

@media (max-width: 1100px){
  .main-content{width:min(1200px, calc(100% - 42px));}
  .section-grid{gap:22px;}
}
@media (max-width: 900px){
  .main-content{width:min(100%, calc(100% - 28px)); margin-top:112px;}
  .small-text{text-align:center;}
  .section-header,.section-subtitle,.section-link-wrap{text-align:center;}
  .section-grid:hover .portfolio-card-frame{opacity:1; transform:none;}
  .portfolio-card-frame{box-shadow:0 18px 48px rgba(0,0,0,.42);}
  .portfolio-card.poster-card:hover .portfolio-card-frame{transform:translateY(-6px) scale(1.01);}
  .popup-content{padding:34px 20px 26px; max-width:calc(100vw - 24px);}
}
@media (max-width: 640px){
  .navbar{padding:14px 14px 10px;}
  .main-content{width:calc(100% - 20px);}
  .portfolio-card-image{aspect-ratio:4 / 5;}
  .portfolio-card-overlay{padding:18px 16px 16px;}
  .section-header{margin-top:48px;}
  .hero-blurb,.page-intro{font-size:.98rem;}
}
