/*
  Selin's UX/UI Reviews – Modern dark-pink redesign (Apple-ish)
  Keeps existing HTML + text; improves spacing, typography, surfaces, and responsiveness.
*/

:root{
  --bg:#07060a;
  --bg2:#0b0710;
  --surface:rgba(255,255,255,.06);
  --surface2:rgba(255,255,255,.09);
  --stroke:rgba(255,255,255,.14);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.70);
  --muted2:rgba(255,255,255,.55);
  --accent:#ff2fb3;
  --accent2:#b00078;
  --radius:24px;
  --shadow:0 18px 60px rgba(0,0,0,.55);
  --bg-base: #07060a;
  --pink-soft: rgba(214, 63, 140, 0.25);
  --pink-fade: rgba(214, 63, 140, 0.15);
  --pink-clear: rgba(214, 63, 140, 0);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    linear-gradient(180deg,
      var(--pink-clear) 0%,
      var(--pink-soft) 35%,
      var(--pink-clear) 70%),
    var(--bg-base);
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}

/* Top heading hero */
.heading{position:relative;min-height:38vh;display:grid;place-items:center;overflow:hidden}
.header-pic img{
  width:100%;height:38vh;object-fit:cover;filter:saturate(1.05) contrast(1.05) brightness(.75);
  transform:scale(1.02);
}
.heading::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.85));
}
.banner-text{position:absolute;inset:0;display:grid;place-items:center;padding:32px;z-index:2;text-align:center}
.banner-text h1{
  margin:0;
  font-family:"Kaushan Script",cursive;
  letter-spacing:.5px;
  font-size:clamp(42px, 5vw, 84px);
  text-shadow:0 20px 70px rgba(0,0,0,.6);
}

/* Side nav (hamburger) */
#menuBtn{
  position:fixed;top:18px;right:18px;z-index:50;
  width:48px;height:48px;border-radius:999px;
  display:grid;place-items:center;cursor:pointer;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(14px);
  box-shadow:0 16px 50px rgba(0,0,0,.45);
}
#menuBtn img{width:18px;height:18px;filter:invert(1)}
#sidenav{
  width:280px;height:100vh;position:fixed;top:0;right:-280px;z-index:49;
  padding:84px 18px 18px;
  background:rgba(10,7,15,.72);
  border-left:1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  box-shadow: -20px 0 70px rgba(0,0,0,.55);
  transition:right .45s cubic-bezier(.2,.9,.2,1);
}
#sidenav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
#sidenav ul li{margin:0}
#sidenav ul li a{
  display:flex;align-items:center;justify-content:flex-start;
  padding:12px 14px;border-radius:14px;text-decoration:none;
  color:var(--text);
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
#sidenav ul li a:hover{border-color:rgba(255,47,179,.38);background:rgba(255,47,179,.10)}

/* Page section styling */
/* NEW: compact, tidy, space-optimized reviews layout */
.reviews-grid{
  width:min(1180px, calc(100% - 40px));
  margin:28px auto 80px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap:22px;
}

.section-new{
  padding:0;
  margin:0;
  position:relative;
  display: block !important;
}

/* Make each review section feel like a single “card” */
.section-new .grid-2{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  border:1px solid var(--stroke);
  border-radius:calc(var(--radius) + 2px);
  box-shadow:var(--shadow);
  padding:18px;
  gap:16px;
}

.new-title{
  width:auto;
  margin:0 0 10px;
  padding:0 2px;
  font-size:clamp(18px, 2.2vw, 26px);
  font-weight:850;
  letter-spacing:.2px;
}

.w-layout-grid{display:grid;gap:18px}
.grid-2{grid-template-columns:1.1fr .9fr}
@media (max-width: 920px){.grid-2{grid-template-columns:1fr}}

/* Inner panels become lighter + tighter so the overall card reads as one unit */
.div-grid,.div-new,.div-new-2{
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  border-radius:calc(var(--radius) - 6px);
  padding:16px 16px 14px;
  box-shadow:none;
}

.div-new,
.div-new-2 {
  display: flex;
  flex-direction: column;
}

.div-new .new-button,
.div-new-2 .new-button {
  margin-top: auto;
  align-self: flex-end;
  margin-top: 16px;
}

/* Put the CTA in a consistent spot; frees vertical space */
.section-new{padding-top:2px}

.section-new .div-grid {
  padding-right: 16px !important;
}

.section-new .new-button{
  position:absolute;
  top:14px;
  right:14px;
  margin:0;
  padding:10px 14px;
}

/* Stats: denser, more “data card” */
.heading-5-grid{margin:0 0 4px;font-size:11px}
.body-2-project{margin:0 0 12px;font-size:15px}

/* Keep cards aligned and prevent weird stretching */
.grid-2{align-items:start}

/* Mobile: single column + button becomes inline */
@media (max-width: 620px){
  .reviews-grid{grid-template-columns:1fr; width:calc(100% - 28px)}
  .section-new .div-grid{padding-right:16px}
  .section-new .new-button{position:static; margin-top:14px; width:fit-content}
}

.new-heading{margin:0 0 8px;font-size:22px}
.new-text{margin:0;color:var(--muted);line-height:1.7}

.heading-5-grid{margin:0 0 6px;font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted2)}
.body-2-project{margin:0 0 16px;font-size:16px;color:var(--text)}

.new-button{
  margin-top:16px;display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:999px;text-decoration:none;font-weight:700;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  color:#0a0610;
  box-shadow:0 18px 50px rgba(255,47,179,.18);
  position: static !important;
}
.new-button:hover{filter:brightness(1.05)}

/* General type polish for long pages */
h1,h2,h3{line-height:1.15}
p{line-height:1.75}

/* Reduce weird inherited Webflow spacing */
.heading, .section-new, .w-layout-grid, .div-grid, .div-new {max-width:100%}

/* Ensure our compact “data card” overrides win */
.section-new .grid-2{align-items:start}
.section-new .heading-5-grid{margin:0 0 4px;font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted2)}
.section-new .body-2-project{margin:0 0 12px;font-size:15px;color:var(--text)}

.section-new>.w-layout-grid.grid-2 {
  display: grid !important;
  grid-template-columns: 1.1fr .9fr !important;
  align-items: start !important;
}

/* Force button to behave like a normal block below the grid */
.section-new>.new-button {
  position: static !important;
  /* <- KILLS absolute positioning */
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;

  display: inline-flex !important;
  margin-top: 18px !important;
  width: fit-content !important;
}

@media (max-width: 920px) {
  .section-new>.w-layout-grid.grid-2 {
    grid-template-columns: 1fr !important;
  }
}
