@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&family=Tilt+Neon&display=swap");

/* Tiny Slider helpers */
.tns-outer { padding: 0 !important; }
.tns-outer [hidden] { display: none !important; }
.tns-outer [aria-controls], .tns-outer [data-action] { cursor: pointer; }
.tns-slider { transition: all 0s; }
.tns-slider > .tns-item { box-sizing: border-box; }
.tns-horizontal.tns-subpixel { white-space: nowrap; }
.tns-horizontal.tns-subpixel > .tns-item { display: inline-block; vertical-align: top; white-space: normal; }
.tns-horizontal.tns-no-subpixel:after { content: ''; display: table; clear: both; }
.tns-horizontal.tns-no-subpixel > .tns-item { float: left; }
.tns-horizontal.tns-carousel.tns-no-subpixel > .tns-item { margin-right: -100%; }
.tns-no-calc { position: relative; left: 0; }
.tns-gallery { position: relative; left: 0; min-height: 1px; }
.tns-gallery > .tns-item { position: absolute; left: -100%; transition: transform 0s, opacity 0s; }
.tns-gallery > .tns-slide-active { position: relative; left: auto !important; }
.tns-gallery > .tns-moving { transition: all 0.25s; }
.tns-autowidth { display: inline-block; }
.tns-lazy-img { transition: opacity 0.6s; opacity: 0.6; }
.tns-lazy-img.tns-complete { opacity: 1; }
.tns-ah { transition: height 0s; }
.tns-ovh { overflow: hidden; }
.tns-visually-hidden { position: absolute; left: -10000em; }
.tns-transparent { opacity: 0; visibility: hidden; }
.tns-fadeIn { opacity: 1; filter: alpha(opacity=100); z-index: 0; }
.tns-normal, .tns-fadeOut { opacity: 0; filter: alpha(opacity=0); z-index: -1; }
.tns-vpfix { white-space: nowrap; }
.tns-vpfix>div, .tns-vpfix>li { display: inline-block; }
.tns-t-subp2 { margin: 0 auto; width: 310px; position: relative; height: 10px; overflow: hidden; }
.tns-t-ct { width: calc(100% * 70 / 3); position: absolute; right: 0; }
.tns-t-ct:after { content: ''; display: table; clear: both; }
.tns-t-ct>div { width: calc(100% / 70); height: 10px; float: left; }

@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

* { padding: 0; margin: 0; box-sizing: border-box; font-family: "Nunito", sans-serif; }
html { scroll-behavior: smooth; }
img { width: 100%; pointer-events: none; user-select: none; }

/* ===== HERO ===== */
.home {
  display: grid;
  grid-template-columns: 45% 50%;
  place-items: center;
  gap: 50px;
  background: radial-gradient(circle, rgba(67, 69, 112, 1) 3%, rgba(35, 36, 57, 1) 60%);
  overflow: hidden;
  padding: 130px 80px;
}

.description { color: #fff; padding: 0 50px; }
.description h1 {
  font-family: "Tilt Neon", sans-serif;
  font-size: clamp(3rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 12px;
}
.gradient-text {
  font-family: "Tilt Neon", sans-serif;
  background-image: linear-gradient(90deg, rgb(118, 167, 63) 0%, rgb(51, 143, 118) 40%, rgb(55, 141, 167) 50%, rgb(117, 152, 242) 70%, rgb(144, 118, 236) 100%);
  color: transparent;
  background-size: contain;
  background-clip: text;
  -webkit-background-clip: text;
}
.description p { font-size: clamp(0.9rem, 3vw, 1.1rem); line-height: 1.5; margin-bottom: 18px; }

.btn {
  display: flex; justify-content: center; align-items: center; gap: 3px;
  max-width: max-content;
  background: linear-gradient(90deg, rgb(118, 167, 63) 0%, rgb(51, 143, 118) 40%, rgb(55, 141, 167) 50%, rgb(117, 152, 242) 70%, rgb(144, 118, 236) 100%);
  background-size: 200%; background-position: left;
  color: #fff; font-size: 1.05rem; font-weight: 600;
  border: 0; padding: 10px 14px; border-radius: 5px;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.5), inset 0px 2px 2px rgba(255, 255, 255, 0.2);
  cursor: pointer; transition: all 0.3s ease-in;
  text-decoration: none;
}
.btn:hover { background-position: right; }

/* Hero mosaic */
.users-color-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
}
.item {
  max-width: 200px; aspect-ratio: 1/1;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.5), inset 0px 2px 2px rgba(255, 255, 255, 0.2);
  animation: fadeIn 0.5s linear 1 forwards;
  animation-delay: calc(0.2s * var(--i));
  opacity: 0; object-fit: cover;
}
.item:nth-child(1){ background-color:#67d7e1; border-radius:50% 50% 0 50%; }
.item:nth-child(2){ border-radius:50% 50% 0 0; }
.item:nth-child(3){ background-color:#6cc164; border-radius:50%; }
.item:nth-child(4){ border-radius:0 0 0 50%; }
.item:nth-child(5){ border-radius:0 50% 50% 0; }
.item:nth-child(6){ background-color:#8071a8; border-radius:0 50% 50% 50%; }
.item:nth-child(7){ border-radius:50% 50% 0 50%; }
.item:nth-child(8){ background-color:#fe7519; border-radius:50% 0 0 50%; }
.item:nth-child(9){ background-color:#f5bec3; border-radius:0 50% 50% 0; }
.item:nth-child(10){ border-radius:50%; }
.item:nth-child(11){ background-color:#fcd659; border-radius:50% 0 50% 50%; }
.item:nth-child(12){ border-radius:50% 0 0 0; }

@keyframes fadeIn {
  0% { opacity: 0; transform: scale(0); }
  100% { opacity: 1; transform: scale(1); }
}

/* ===== TEMPLATE SLIDER SECTION ===== */
.card-container {
  display:flex; flex-direction:column; justify-content:center; align-items:center; gap:20px;
  width:100%; min-height:100vh;
  background: radial-gradient(circle, rgba(67, 69, 112, 1) 3%, rgba(35, 36, 57, 1) 60%);
  overflow:hidden; padding:60px 50px 20px;
}
.slider { width: 100%; } /* ensure slider container spans width */

.card {
  max-width: 300px;
  aspect-ratio: 3/5;
  border-radius: 15px;
  margin: 20px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.5), inset 0px 2px 2px rgba(255, 255, 255, 0.2);
  cursor: grab;
}
.content {
  position: relative; height: 100%;
  display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(9, 1fr);
  padding: 20px; background: rgba(104, 104, 104, 0.5); user-select: none;
}
.content::before, .content::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: conic-gradient(
    from var(--gradient-angle),
    rgb(109, 186, 22),
    rgb(30, 119, 95),
    rgb(55, 141, 167),
    rgb(59, 91, 174),
    rgb(144, 118, 236),
    rgb(59, 91, 174),
    rgb(55, 141, 167),
    rgb(30, 119, 95),
    rgb(109, 186, 22)
  );
  animation: rotation 8s linear infinite;
}
.content::after { filter: blur(30px); }
@keyframes rotation { 0% { --gradient-angle: 0deg; } 100% { --gradient-angle: 360deg; } }

.content img {
  height: 200px; width: 100%; aspect-ratio: 3/2;
  border-radius: 10px; grid-row: 1 / 5; margin-bottom: 20px;
  user-select: none; object-fit: cover; box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}
.content h1 { font-size: 1.05rem; color:#fff; text-align:center; grid-row:5 / 6; }
.content p  { font-size: .95rem; font-weight:400; color:#fff; grid-row:6 / 9; }

.btn-grad {
  background-image: linear-gradient(to right, #ece9e6 0%, #ffffff 51%, #ece9e6 100%);
  padding: 8px 12px; color: #000; box-shadow: 0 0 5px #eee; outline: 0;
  font-size: 0.9rem; font-weight: 600; grid-row: 9 / 10; margin: 4px auto 8px;
  cursor: pointer; transition: all 0.5s ease-in;
}

.control {
  display:flex; flex-direction:row; justify-content:center; align-items:center; list-style:none; gap:14px;
}
.control li {
  position:relative; display:flex; justify-content:center; align-items:center;
  background: linear-gradient(to bottom, #559b9a, #3b3d8a);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0px 4px 4px rgba(255, 255, 255, 0.2);
  padding: 12px; border-radius: 50%; font-size: 1.5rem; color:#fff; cursor:pointer;
}
.control li::before {
  position:absolute; content:""; inset:0; background: linear-gradient(to right, #559b9a, #3b3d8a);
  border-radius: 50%; z-index:-1; transition: all 0.5s ease-in; opacity:0;
}
.control li:hover::before { opacity:1; }

/* ===== Show All inline slide (centered circle, no backdrop) ===== */
.showall-card{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: default !important;
}
.showall-card .content{
  height: 100%;
  width: 100%;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
}
.showall-card .content::before,
.showall-card .content::after{
  content: none !important; /* kill animated glow */
}
.show-all-circle{
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-image: linear-gradient(to right, #ece9e6 0%, #ffffff 51%, #ece9e6 100%);
  box-shadow: 0 0 5px #eee;
  color: #000;
  text-decoration: none;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  letter-spacing: .2px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.show-all-circle .label{ font-size:1.5rem; line-height:1.5; }
.show-all-circle .arrow{ font-size:1.53rem; }
.show-all-circle:hover{ transform: translateY(-1px); box-shadow: 0 2px 10px rgba(0,0,0,.25); }

@media (max-width: 640px){
  .show-all-circle{ width:84px; height:84px; }
}

/* ===== Header (transparent overlay, scrolls away) ===== */
.site-header{
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.site-header__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand .logo-text{
  font-family: "Tilt Neon", sans-serif;
  font-size: clamp(2.6rem, 3vw, 2.2rem);
  font-weight: 1000;
  letter-spacing: .9px;
  display: inline-block;
}
.main-nav{ display:flex; align-items:center; gap:18px; }
.nav-link{
  color: rgba(255,255,255,.85);
  text-decoration:none;
  font-weight:700;
  font-family:"Nunito", sans-serif;
  transition: opacity .2s ease;
}
.nav-link:hover{ opacity:1; text-decoration:underline; text-underline-offset:4px; }
.nav-btn{
  background:transparent;
  border:1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.9);
  font-weight:800;
  font-family:"Nunito", sans-serif;
  padding:7px 12px;
  border-radius:10px;
  cursor:pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.nav-btn:hover{ background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.6); color:#fff; }
.user-chip{
  color: rgba(255,255,255,.95);
  font-weight:800;
  font-size:.95rem;
  margin-left:6px;
  max-width:40ch;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* ===== Responsive ===== */
@media (max-width: 1215px) { .btn { font-size: 1rem; } }
@media (max-width: 1015px) {
  .home { grid-template-columns: 45% 50%; gap: 50px; padding: 140px 50px; }
  .btn { padding: 8px 12px; }
}
@media (max-width: 865px) {
  .home { grid-template-columns: 45% 50%; gap: 60px; padding: 130px 70px; }
  .users-color-container { gap: 15px; }
}
@media (max-width: 815px) {
  .home {
    grid-template-columns: 1fr; grid-template-rows: 1fr 1fr;
    grid-template-areas: "userscolorcontainer" "description";
    gap: 30px; padding: 90px 80px 70px;
  }
  .users-color-container { grid-area: userscolorcontainer; gap: 20px; }
  .description { grid-area: description; padding: 0; text-align: center; }
}
@media (max-width: 460px) {
  .home { gap: 0; padding: 30px 40px; }
}

/* put in style.css */
[role="link"] { cursor: pointer; }

/* ───────── NISWY: Toast (Autosave/Recovery) ───────── */
#toastHost {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: grid;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: 420px;
  background: rgba(17, 24, 39, .92);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 10px 24px rgba(0,0,0,.35), inset 0 2px 2px rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 12px 12px 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  align-items: center;
  animation: toastIn .18s ease-out;
}

.toast.ok   { background: rgba(16, 78, 57, .92); }
.toast.err  { background: rgba(110, 22, 33, .92); }
.toast.info { background: rgba(32, 48, 88, .92); }

.toast__msg { grid-column: 1 / span 1; font-size: .96rem; }
.toast__actions { grid-column: 1 / span 1; display:flex; gap:8px; }
.toast__close {
  grid-column: 2 / span 1;
  background: transparent; color: #fff; border: 0; font-size: 18px;
  line-height: 1; cursor: pointer; opacity: .9;
}
.toast__close:hover { opacity: 1; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn.btn-small { font-size: .9rem; padding: 6px 10px; }

.is-removed { display: none !important; }

/* ───────── NISWY: Section Builder (transparent) ───────── */
.block-wrap { /* wrapper around each resume section; used for drag/hide */
  position: relative;
}

#sectionBuilder {
  position: sticky; top: 10px;
  /* glass look */
  background: rgba(17, 24, 39, .45);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  color: #ff0000;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; padding: 12px; margin: 10px 0 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25), inset 0 2px 2px rgba(255,255,255,.06);
  z-index: 10;
}

.builder-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px;
}
.builder-title{ font-weight:800; letter-spacing:.02em; }
.builder-actions{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.builder-select{
  padding:6px 8px; border-radius:8px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(255, 234, 0, 0.25); color:#000000;
  backdrop-filter: blur(6px);
}

.builder-add-label{ display:flex; align-items:center; gap:8px; }

.builder-list{ list-style:none; margin:6px 0; padding:0; display:grid; gap:8px; }
.builder-row{
  display:grid; grid-template-columns: 24px 1fr auto auto auto; align-items:center;
  gap:10px; padding:8px;
  border:1px solid rgba(255,255,255,.14); border-radius:10px;
  background: rgba(47, 0, 78, 0.06);
  color: #eee;
}
.builder-row:hover{ border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.08); }

.builder-row .drag{ cursor:grab; user-select:none; opacity:.9; }
.builder-row .row-title{ font-weight:700; }
.builder-row .row-type{ font-size:.85rem; opacity:.85; }
.builder-row .vis-toggle{ display:flex; align-items:center; gap:6px; }
.builder-row .btn.btn-small{ padding:6px 10px; }

.builder-hint{ margin-top:8px; font-size:.85rem; color: #eee; opacity:1; }

/* Ensure hidden blocks are actually hidden */
.block-wrap.is-removed { display:none !important; }

/* ===== NISWY: Sections toolbar controls ===== */
.sections-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.sections-toolbar label {
  font-size: 13px;
  opacity: .85;
}

.sections-toolbar select {
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;           /* tweak if you have dark UI; can be transparent if needed */
  color: #111827;
}

/* Use CSS vars so changes apply everywhere */
:root{
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --line-spacing: 1.4;
}

/* Apply variables globally */
html, body { font-family: var(--font-body); line-height: var(--line-spacing); }
#resumeRoot { line-height: var(--line-spacing); }
h1, h2, h3, .resume-header h1, .section-title { font-family: var(--font-heading); }

/* Print safety */
@media print {
  .no-print { display: none !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ───────── Footer ───────── */
.site-footer {
  background: radial-gradient(circle at top, rgba(67,69,112,0.95) 0%, rgba(35,36,57,0.95) 80%);
  color: #fff;
  padding: 40px 24px 20px;
  font-size: 0.95rem;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1 1 300px;
}

.footer-left .about {
  margin: 0 0 16px;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links .glass-link {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-weight: 500;
  transition: opacity .2s ease;
}

.footer-links .glass-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 1.3rem;
  transition: background .25s ease, transform .25s ease;
}

.icon-circle:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-2px);
}

.glass-btn {
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}

.glass-btn:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,.75);
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 14px;
}

/* Fix white gap above footer (margin-collapse) */
.site-footer { margin-top: 0; }

/* Optional: keep breathing room below the slider instead */
.card-container { padding-bottom: 60px; }

/* Fallback page background so any gaps aren’t white */
body { background: #232439; }

/* Seamless footer background */
.site-footer {
  background: radial-gradient(circle, rgba(67,69,112,1) 3%, rgba(35,36,57,1) 60%) !important;
  margin-top: 0;
  border-top: none;
}

.footer-bottom {
  border-top: none;
}

/* ── Device Blocker (desktop-only access) ───────────────────────────── */
#device-blocker{
  position:fixed; inset:0; z-index:99999; display:none;
  align-items:center; justify-content:center; padding:24px;
  background:rgba(10,12,16,.92); backdrop-filter:saturate(120%) blur(4px);
}
#device-blocker .dbox{
  max-width:680px; width:min(92vw,680px); text-align:center;
  color:#e5e7eb; background:linear-gradient(135deg,rgba(80,205,26,.08),rgba(222,15,15,.08));
  border:1px solid rgba(255,255,255,.12); border-radius:14px; padding:24px 20px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
#device-blocker h2{margin:0 0 8px; font:800 1.25rem/1.2 Nunito,system-ui;}
#device-blocker p{margin:0; font:600 1rem/1.6 Nunito,system-ui;}
