html {
  scroll-behavior: smooth;
}

:root {
  /* dark mode */
  --to-purple: #49378f;
  --to-purple-transparent: #49378fc1;
  --to-black: #111111;
  --to-white: #f1f1f1;
  --to-black-grey: #1f1f1f;
  --to-black-grey-faded: #1f1f1f26;
  --to-black-grey-500: #343232;
  --to-grey: #8e8e8e;
  --to-light-grey: #a1a1a1;
  --to-white-900: #ffffff;
  --animation-speed: 50s;
  --gradient-bg: linear-gradient(
    90deg,
    rgba(73, 55, 143, 1) 0%,
    rgba(0, 90, 174, 1) 25%,
    rgba(0, 120, 189, 1) 44%,
    rgba(0, 146, 188, 1) 63%,
    rgba(0, 170, 178, 1) 81%,
    rgba(63, 191, 166, 1) 98%
  );
  --to-purple-light: #a855f7;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-danger: #ef4444;
  --to-black-grey-400: #1e2026;
  --bg-overlay: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cpath fill='%23000000' fill-opacity='0.4' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM53.9 18a5 5 0 1 1 0-2H64V2H48V0h18v18H53.9zm112 32a5 5 0 1 1 0-2H192V0h50v2h-48v48h-28.1zm-48-48a5 5 0 0 1-9.8-2h2.07a3 3 0 1 0 5.66 0H178v34h-18V21.9a5 5 0 1 1 2 0V32h14V2h-58.1zm0 96a5 5 0 1 1 0-2H137l32-32h39V21.9a5 5 0 1 1 2 0V66h-40.17l-32 32H117.9zm28.1 90.1a5 5 0 1 1-2 0v-76.51L175.59 80H224V21.9a5 5 0 1 1 2 0V82h-49.59L146 112.41v75.69zm16 32a5 5 0 1 1-2 0v-99.51L184.59 96H300.1a5 5 0 0 1 3.9-3.9v2.07a3 3 0 0 0 0 5.66v2.07a5 5 0 0 1-3.9-3.9H185.41L162 121.41v98.69zm-144-64a5 5 0 1 1-2 0v-3.51l48-48V48h32V0h2v50H66v55.41l-48 48v2.69zM50 53.9v43.51l-48 48V208h26.1a5 5 0 1 1 0 2H0v-65.41l48-48V53.9a5 5 0 1 1 2 0zm-16 16V89.41l-34 34v-2.82l32-32V69.9a5 5 0 1 1 2 0zM12.1 32a5 5 0 1 1 0 2H9.41L0 43.41V40.6L8.59 32h3.51zm265.8 18a5 5 0 1 1 0-2h18.69l7.41-7.41v2.82L297.41 50H277.9zm-16 160a5 5 0 1 1 0-2H288v-71.41l16-16v2.82l-14 14V210h-28.1zm-208 32a5 5 0 1 1 0-2H64v-22.59L40.59 194H21.9a5 5 0 1 1 0-2H41.41L66 216.59V242H53.9zm150.2 14a5 5 0 1 1 0 2H96v-56.6L56.6 162H37.9a5 5 0 1 1 0-2h19.5L98 200.6V256h106.1zm-150.2 2a5 5 0 1 1 0-2H80v-46.59L48.59 178H21.9a5 5 0 1 1 0-2H49.41L82 208.59V258H53.9zM34 39.8v1.61L9.41 66H0v-2h8.59L32 40.59V0h2v39.8zM2 300.1a5 5 0 0 1 3.9 3.9H3.83A3 3 0 0 0 0 302.17V256h18v48h-2v-46H2v42.1zM34 241v63h-2v-62H0v-2h34v1zM17 18H0v-2h16V0h2v18h-1zm273-2h14v2h-16V0h2v16zm-32 273v15h-2v-14h-14v14h-2v-16h18v1zM0 92.1A5.02 5.02 0 0 1 6 97a5 5 0 0 1-6 4.9v-2.07a3 3 0 1 0 0-5.66V92.1zM80 272h2v32h-2v-32zm37.9 32h-2.07a3 3 0 0 0-5.66 0h-2.07a5 5 0 0 1 9.8 0zM5.9 0A5.02 5.02 0 0 1 0 5.9V3.83A3 3 0 0 0 3.83 0H5.9zm294.2 0h2.07A3 3 0 0 0 304 3.83V5.9a5 5 0 0 1-3.9-5.9zm3.9 300.1v2.07a3 3 0 0 0-1.83 1.83h-2.07a5 5 0 0 1 3.9-3.9zM97 100a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-48 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 96a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-144a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM49 36a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM33 68a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 240a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm80-176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm112 176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 180a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 84a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'%3E%3C/path%3E%3C/svg%3E");
}

.lightmode {
  /* light mode */
  --to-purple: #49378f;
  --to-purple-transparent: #49378fc1;
  --to-black: #f3efef;
  --to-white: #000000;
  --to-black-grey: #d4d5d5;
  --to-black-grey-faded: #d4d5d526;
  --to-black-grey-500: #cfc5c5;
  --to-grey: #d4d4d4;
  --to-light-grey: #3f3f3f;
  --to-white-900: #ffffff;
  --animation-speed: 50s;
  --gradient-bg: linear-gradient(
    90deg,
    rgba(73, 55, 143, 1) 0%,
    rgba(165, 59, 141, 1) 25%,
    rgba(227, 82, 122, 1) 44%,
    rgba(255, 131, 99, 1) 63%,
    rgba(255, 189, 87, 1) 81%,
    rgba(249, 248, 113, 1) 98%
  );
  --bg-overlay: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg stroke='%23603E9C' stroke-width='78.4' %3E%3Ccircle fill='%2399979C' cx='0' cy='0' r='1800'/%3E%3Ccircle fill='%239f9da2' cx='0' cy='0' r='1700'/%3E%3Ccircle fill='%23a4a3a7' cx='0' cy='0' r='1600'/%3E%3Ccircle fill='%23aaa9ad' cx='0' cy='0' r='1500'/%3E%3Ccircle fill='%23b0afb2' cx='0' cy='0' r='1400'/%3E%3Ccircle fill='%23b6b5b8' cx='0' cy='0' r='1300'/%3E%3Ccircle fill='%23bcbbbe' cx='0' cy='0' r='1200'/%3E%3Ccircle fill='%23c2c1c4' cx='0' cy='0' r='1100'/%3E%3Ccircle fill='%23c8c7c9' cx='0' cy='0' r='1000'/%3E%3Ccircle fill='%23cecdcf' cx='0' cy='0' r='900'/%3E%3Ccircle fill='%23d4d3d5' cx='0' cy='0' r='800'/%3E%3Ccircle fill='%23dad9db' cx='0' cy='0' r='700'/%3E%3Ccircle fill='%23e0dfe1' cx='0' cy='0' r='600'/%3E%3Ccircle fill='%23e6e6e7' cx='0' cy='0' r='500'/%3E%3Ccircle fill='%23ececed' cx='0' cy='0' r='400'/%3E%3Ccircle fill='%23f3f2f3' cx='0' cy='0' r='300'/%3E%3Ccircle fill='%23f9f9f9' cx='0' cy='0' r='200'/%3E%3Ccircle fill='%23FFFFFF' cx='0' cy='0' r='100'/%3E%3C/g%3E%3C/svg%3E");

}

@font-face {
  font-family: jargon;
  src: url(../fonts/Byron.ttf);
}
/* Native View Transitions (Chromium browsers) */
@view-transition {
  navigation: auto;
}

::view-transition-group(root) {
  animation-duration: 1s;
}

::view-transition-old(root) {
  animation-name: pages-slide-out;
}

::view-transition-new(root) {
  animation-name: pages-slide-in;
}

@keyframes pages-slide-out {
  to {
    translate: -100vw;
  }
}

@keyframes pages-slide-in {
  from {
    translate: 100vw;
  }
}

a {
  color: var(--to-black);
  text-decoration: none;
}
body::-webkit-scrollbar {
  display: none;
}
body {
  background-color: var(--to-black);
  font-family: Arial, Helvetica, sans-serif;
  transition-property: color, background-color;
  transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

pre {
  background-color: #1e1e1e;
  color: #d4d4d4;
  padding: 15px;
  border-radius: 6px;
  font-family: monospace;
  overflow-x: auto;
}

.grain-overlay {
  background-image: var(--bg-overlay);
  background-attachment: fixed;
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  z-index: -99;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}

nav img {
  border-radius: 50%;
}

nav h5 {
  font-family: "Mochiy Pop One", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--to-white);
  font-size: 15px;
}

.nav-links {
  background-color: var(--to-black-grey-faded);
  backdrop-filter: blur(5px);
  position: sticky;
  top: 0;
  border: 1px solid var(--to-grey);
  padding: 28px 45px;
  display: flex;
  align-items: center;
  border-radius: 60px;
  box-shadow: 2px 2px 22px -3px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 2px 2px 22px -3px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 2px 2px 22px -3px rgba(0, 0, 0, 0.75);
}
.links {
  display: flex;
  gap: 20px;
  align-items: baseline;
}
.links a {
  opacity: 1 !important;
  color: var(--to-white);
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  padding: 10px;
}

.links a:hover {
  background-color: var(--to-purple-transparent);
  color: var(--to-white-900);
  padding: 10px 15px;
  border-radius: 10px;
}
.toggler {
  animation: fadeOut linear both;
  animation-timeline: scroll(root);
  animation-range: 0px 150px;
}
@keyframes fadeOut {
  from {
    opacity: 1;
    visibility: visible;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}
.toggler i {
  color: var(--to-white);
  background-color: var(--to-black-grey-faded);
  border-radius: 50%;
  padding: 20px;
  transition: background 0.5s ease;
  box-shadow: 2px 2px 22px -3px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 2px 2px 22px -3px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 2px 2px 22px -3px rgba(0, 0, 0, 0.75);
}

.toggler i:hover {
  color: var(--to-black);
  background-color: var(--to-purple);
}

.Avatar {
  width: 110px;
  height: 110px;
  border: 5px solid var(--to-black);
  border-radius: 50%;
  animation: profile-picture-animation 5s linear infinite;
  box-shadow:
    inset 0px 0px 10px 2px rgba(0, 0, 0, 0.85),
    0px 0px 10px 2px rgba(0, 0, 0, 0.55);
  will-change: transform;
  margin: auto;
}

@keyframes profile-picture-animation {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.Avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.hero h1 {
  font-family: "Mochiy Pop One", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--to-white);
  font-size: 40px;
  letter-spacing: 5px;
}
.hero h6 {
  font-family: sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--to-white);
  font-size: 15px;
  line-height: 2;
  text-shadow:
    0 0 10px var(--to-purple),
    0 0 20px var(--to-purple),
    0 0 30px var(--to-purple);
  animation: glow-pulse 3s ease-in-out infinite;
}

.short-note {
  margin: auto;
  width: 55%;
}
.short-note p {
  color: var(--to-white);
}

.short-note img {
  width: 20px;
}
.short-note span a {
  color: #81b64c !important;
}
.editor-toolbar {
  display: flex !important;
  color: var(--to-white) !important;
  /* flex-wrap: wrap; */
  overflow: auto;
}
@keyframes glow-pulse {
  0%,
  100% {
    text-shadow:
      0 0 4px var(--to-purple-transparent),
      0 0 10px var(--to-purple-transparent);
  }
  50% {
    text-shadow:
      0 0 4px #fff,
      0 0 10px var(--to-purple),
      0 0 20px var(--to-purple),
      0 0 40px var(--to-purple),
      0 0 60px var(--to-purple-transparent);
  }
}
.stacks {
  margin: auto;
  padding: 25px;
  border-radius: 10px;
  overflow-x: hidden;
}

.easter-egg {
  margin: auto;
  width: 80%;
}

.easter-egg p {
  font-family: jargon;
  font-size: 28px;
  color: var(--to-white);
}
.resume {
  margin: auto;
}

.resume a {
  align-items: center;
  padding: 0.65rem 1.8rem;
  border: 1.5px solid var(--to-white);
  border-radius: 10px;
  background: var(--to-black);
  color: var(--to-white);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  letter-spacing: 2px;
}
.resume a:hover {
  border-color: var(--to-black-grey-500);
  background: var(--to-black);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.stacks h4 {
  font-weight: 700;
  color: var(--to-white);
  font-family: "Mochiy Pop One", sans-serif;
  letter-spacing: 5px;
}

.stacks-logo {
  border-radius: 5px;
  box-shadow: -24px 0px 14px -19px rgba(0, 0, 0, 0.61) inset;
  -webkit-box-shadow: -24px 0px 14px -19px rgba(0, 0, 0, 0.61) inset;
  -moz-box-shadow: -24px 0px 14px -19px rgba(0, 0, 0, 0.61) inset;
}

.logo {
  animation-duration: var(--animation-speed);
  animation-iteration-count: infinite;
  animation-name: marquee-content;
  animation-timing-function: linear;
  padding: 5px 15px 5px 15px;
}

.stacks-logo:hover .logo {
  animation-play-state: paused;
}

@keyframes marquee-content {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-100%);
  }
}

.stacks img {
  padding: 25px;
  width: 110px;
  height: 110px;
  /* border-radius: 10px; */
  transition: all 0.5s ease;
  object-fit: contain;
  margin-top: 8px;
}

.stacks img:hover {
  filter: grayscale(0%);
  transform: scale(1.3);
}

.v-m {
  display: block;
}

.projects {
  margin: auto;
  width: 75%;
}

.projects h1 {
  font-weight: 600;
  font-family: "Mochiy Pop One", sans-serif;
  letter-spacing: 5px;
  color: var(--to-white);
}

.projects p {
  font-family: "sans-serif", sans-serif;
  letter-spacing: 2px;
  color: var(--to-purple);
  font-size: 18px;
  padding-bottom: 10px;
  padding-top: 10px;
}
.projects-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.project {
  background-color: var(--to-black-grey-500);
  border-radius: 10px;
  border: 1px solid var(--to-purple);
}
.project-content {
  padding: 10px;
}
.project p {
  font-family: sans-serif;
  color: var(--to-white);
  font-size: 13px;
}

.project-content h5 {
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 18px;
  color: var(--to-white);
}

.project-image {
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--to-purple);
  background: var(--to-black);
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.project-image img {
  /* padding: 10px; */
  border-radius: 10px;
  width: 100%;
  object-fit: contain;
}
.excerpt {
  border-left: 2px solid var(--to-purple-transparent);
  padding-left: 5px;
}
.project a {
  color: var(--to-purple);
  transition: all 0.5s ease;
}

.project a:hover {
  color: var(--to-purple-light);
}

.excerpt {
  font-size: 14px;
  color: var(--to-white);
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
}
.contact h4 {
  font-weight: bold;
  color: var(--to-purple);
  border-bottom: 2px solid var(--to-purple);
  width: fit-content;
  text-align: center;
  margin: auto;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
}

.contact h2 {
  color: var(--to-white);
  font-weight: bold;
  font-family: "mochiy pop one", sans-serif;
  letter-spacing: 5px;
  margin: auto;
}

.contact-cards {
  margin: auto;
}

.contact-item {
  padding-top: 25px;
  padding-bottom: 25px;
  background-color: var(--to-black-grey-500);
  border-radius: 10px;
  box-shadow: 2px 2px 22px -3px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 2px 2px 22px -3px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 2px 2px 22px -3px rgba(0, 0, 0, 0.75);
}

.contact-item i {
  text-align: center;
  color: var(--to-purple);
}

.contact-item h5 {
  font-weight: 800;
  color: var(--to-white);
}

.contact-item p {
  color: var(--to-light-grey);
}

.contact form {
  margin: auto;
}

.contact form input {
  background-color: transparent;
  outline: none;
  border: none;
  border-bottom: 2px dotted var(--to-white);
  transition: all 0.8s ease;
  color: var(--to-white);
}

.contact form input:focus {
  border-bottom: 2px solid var(--to-purple);
}

.contact form button {
  background-color: var(--to-purple);
  color: var(--to-white-900);
  padding-left: 50px;
  padding-right: 50px;
  padding-top: 15px;
  padding-bottom: 15px;
  border: none;
  border-radius: 5px;
  width: 45%;
}

.contact form a:hover {
  color: var(--to-white-900) !important;
}

.footer {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  margin: auto;
}

.footer ul li a {
  text-decoration: none;
  color: var(--to-white);
  font-size: 20px;
}

.f-socials i {
  padding: 15px;
  background-color: var(--to-black-grey-500);
  color: var(--to-white);
  border-radius: 50%;
  transition: all 0.5s ease;
  box-shadow: 2px 2px 22px -3px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 2px 2px 22px -3px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 2px 2px 22px -3px rgba(0, 0, 0, 0.75);
}

.f-socials i:hover {
  color: var(--to-white-900);
  background-color: var(--to-purple);
}

.currentYear {
  color: var(--to-purple);
  font-weight: bold;
}

.footer h5 {
  margin-top: 30px;
  color: var(--to-white);
}

/* blog */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 70vh;
}
.greetings {
  display: flex;
  justify-content: center;
}
.hero-content .greetings p {
  color: var(--to-white);
  padding: 12px;
  font-size: 15px;
  width: fit-content;
  font-weight: 700;
  border: 4px solid transparent;
  border-radius: 50px;
  background-image:
    linear-gradient(var(--to-black), var(--to-black)), var(--gradient-bg);
  background-size:
    100% 100%,
    300% 300%;
  background-origin: border-box;
  background-clip: padding-box, border-box;

  animation: moveGradient 4s ease infinite;
}

@keyframes moveGradient {
  0% {
    background-position:
      0% 0%,
      0% 50%;
  }
  50% {
    background-position:
      0% 0%,
      100% 50%;
  }
  100% {
    background-position:
      0% 0%,
      0% 50%;
  }
}

.hero-content h1 {
  color: var(--to-white);
  opacity: 0.7;
  font-weight: 600;
  font-size: 3rem;
  text-align: center;
}
.hero-content p {
  font-size: 23px;
  color: var(--to-light-grey);
  text-align: center;
}

.post-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  padding-bottom: 20px;
}

.post-card {
  background-color: var(--to-black-grey);
  padding: 20px;
  border-radius: 10px;
  width: 350px;
  overflow: hidden;
}
.post-card-img {
  position: relative;
  left: -20px;
  top: -20px;
  right: 0px;
  bottom: 0px;
  width: 166%;
  height: 60%;
  overflow: hidden;
}
.post-card-img img {
  width: 68%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.5s ease;
}

.post-card-img img:hover {
  transform: scale(1.2);
}

.post-card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.author-date .author {
  color: var(--to-purple);
  font-weight: bold;
  font-size: 15px;
}

.post-card-content h4 {
  color: var(--to-white);
  font-weight: bold;
  font-size: 20px;
  transition: all 0.5s ease;
}
.post-card-content h4:hover {
  color: var(--to-purple);
  cursor: pointer;
}
.post-card-content .category {
  color: var(--to-purple);
  cursor: pointer;
}

.author-date .date {
  color: var(--to-light-grey);
  font-size: 15px;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Spotify Widget container */
.spotify-card {
  box-sizing: border-box;
  background-color: var(--to-black-grey);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}

.spotify-song-title {
  color: var(--to-white);
  font-weight: bold;
  font-size: 16px;
  margin: 0;
  transition: color 0.3s ease;
}

.spotify-song-title:hover {
  color: #1db954;
  cursor: pointer;
}

/* Rounded square album art */
.spotify-album-art {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.music-platforms {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.music-platforms a {
  color: var(--to-white);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}
.music-platforms a img {
  width: 25px;
  height: 25px;
}
/* Micro visualizer anim */
.equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  width: 20px;
  height: 12px;
  margin-left: 8px;
}
.equalizer .bar {
  display: inline-block;
  width: 4px;
  height: 100%;
  background-color: #1db954;
  animation: bounce 0.8s ease-in-out infinite alternate;
  transform-origin: bottom;
  border-radius: 1px;
}
.equalizer .bar:nth-child(1) {
  animation-delay: 0.1s;
  height: 30%;
}
.equalizer .bar:nth-child(2) {
  animation-delay: 0.35s;
  height: 60%;
}
.equalizer .bar:nth-child(3) {
  animation-delay: 0.15s;
  height: 40%;
}
.equalizer .bar:nth-child(4) {
  animation-delay: 0.5s;
  height: 80%;
}

@keyframes bounce {
  0% {
    transform: scaleY(0.3);
  }
  100% {
    transform: scaleY(1.1);
  }
}

/* Custom progress bar sizing */
.spotify-progress-container {
  background-color: rgba(255, 255, 255, 0.15);
  height: 4px;
  border-radius: 2px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.spotify-progress-bar {
  background-color: var(--to-white);
  height: 100%;
  width: 0%;
  border-radius: 2px;
}

/* blog post  */
.breadCrumbs {
  display: flex;
  gap: 15px;
  color: var(--to-purple-transparent);
  align-items: center;
  font-size: 20px;
}

.breadCrumbs a {
  text-decoration: none;
  color: var(--to-white);
  font-size: 20px;
  transition: 0.5s ease;
}

.breadCrumbs a:hover {
  color: #49378f;
}

.blog-image {
  text-align: center;
  padding: 20px;
}

.category {
  color: var(--to-purple);
  font-weight: 800;
  font-size: 15px;
}

.title h2 {
  text-align: center;
  justify-content: center;
  color: var(--to-white);
  font-weight: 700;
}
.hashtag {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  line-height: 0.1;
  justify-content: center;
  gap: 15px;
  color: var(--to-light-grey);
}
.hashtag p {
  letter-spacing: 3px;
}

.blog-image img {
  width: 80%;
  height: auto;
  object-fit: contain;
}
.blog-note {
  width: 80%;
  margin: auto;
}
.blog-note img {
  width: 80%;
  height: auto;
  object-fit: contain;
}

.blog-note blockquote {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 800;
  border-left: 4px solid var(--to-grey);
  padding-left: 10px;
}
.blog-excerpt {
  font-family: serif;
  font-style: italic;
  font-weight: 800;
  border-left: 4px solid var(--to-grey);
  padding-left: 10px;
  text-align: justify;
  color: var(--to-white);
  margin: auto;
  width: fit-content;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
}
.blog-note h4 {
  color: var(--to-white);
  font-weight: 700;
  font-size: 25px;
}
.blog-note h5 {
  color: var(--to-white);
  font-weight: 700;
  font-size: 25px;
}
.blog-note hr {
  background-color: var(--to-purple);
  color: var(--to-purple);
}
.blog-note ol li,
.blog-note ul li {
  color: var(--to-white);
}
.blog-note h3 {
  color: var(--to-white);
  font-weight: 700;
  font-size: 25px;
}
.blog-note h1 {
  color: var(--to-white);
  font-weight: 700;
  font-size: 25px;
}

.blog-note h2 {
  color: var(--to-white);
  font-weight: 700;
  font-size: 30px;
}
.blog-note h1 hr {
  background-color: var(--to-purple);
}
.blog-note p {
  color: var(--to-white);
  font-size: 20px;
  text-align: justify;
}

.share {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.links p {
  color: var(--to-white);
  font-weight: 500;
}

.share a button {
  color: var(--to-white-900);
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--to-purple);
}

.links a {
  text-decoration: none;
}

.related-post {
  color: var(--to-white);
}

/* login page */
.login-form {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.wrapper {
  max-width: 420px;
  width: 100%;
  background-color: var(--to-black-grey-500);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  padding: 15px;
  border-radius: 10px;
}
.form-header {
  width: 100%;
  background: var(--to-black-grey);
  overflow: hidden;
  padding: 2rem 2rem 1.5rem;
  color: var(--to-white);
}

.wrapper form input,
button {
  width: 100%;
  margin-top: 10px;
}

.wrapper form input {
  border-radius: 5px;
  border: 2px solid var(--to-purple-transparent);
  padding: 10px;
  background: var(--to-black-grey-500);
  color: var(--to-white);
  outline: none;
}

.wrapper form button {
  color: var(--to-white);
  border-radius: 20px;
  padding: 10px;
  border: none;
  background-color: var(--to-purple);
  transition: transform 0.2s ease;
  margin-top: 20px;
}

.wrapper form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.app {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--to-black-grey);
  border-right: 1px solid var(--to-black-grey-500);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.4rem;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--to-purple);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--to-white);
}
.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--to-white);
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.9rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--to-light-grey);
  font-size: 0.95rem;
  cursor: pointer;
}
.nav-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.nav-btn:hover {
  background: var(--to-black-grey-500);
  color: var(--to-white);
}
.nav-btn.active {
  background: var(--to-purple);
  color: var(--to-white-900);
  font-weight: 600;
}
.sidebar-foot {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--to-grey);
  padding: 0 0.4rem;
}

/* ---------- Main ---------- */
.content {
  flex: 1;
  min-width: 0;
  padding: 1.75rem clamp(1.25rem, 3vw, 3rem) 5rem;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
  color: var(--to-white);
}
.topbar h1 {
  font-size: 1.5rem;
}
.topbar p {
  color: var(--to-grey);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.view {
  width: 100%;
  padding: 2rem;
}

.panel {
  background: var(--to-black-grey);
  border: 1px solid var(--to-black-grey-500);
  border-radius: 14px;
  padding: 1.5rem;
}
.panel + .panel {
  margin-top: 1.25rem;
}

.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--to-light-grey);
  margin-bottom: 0.4rem;
}
.field input[type="text"],
.field select,
.field input[type="url"],
.field textarea,
.field input[type="text"].slug {
  width: 100%;
  background: var(--to-black);
  border: 1px solid var(--to-black-grey-500);
  color: var(--to-white);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--to-purple);
  outline-offset: 1px;
  border-color: transparent;
}
.field-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.field-row .field {
  flex: 1;
  min-width: 180px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  color: var(--to-white);
}
.checkbox-row input {
  width: 16px;
  height: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 9px;
  border: none;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary {
  background: var(--to-purple);
  color: #fff;
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--to-black-grey-500);
  color: var(--to-light-grey);
}
.btn-ghost:hover {
  color: var(--to-white);
  border-color: var(--to-grey);
}
.btn-danger {
  background: transparent;
  color: #e8788a;
  border: 1px solid var(--to-black-grey-500);
}
.btn-danger:hover {
  border-color: #e8788a;
}
.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Posts list */
.post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--to-black-grey-500);
}
.post-row:last-child {
  border-bottom: none;
}
.post-title {
  font-weight: 600;
}
.post-meta {
  font-size: 0.8rem;
  color: var(--to-grey);
  margin-top: 0.2rem;
}
.post-excerpt {
  font-size: 0.85rem;
  color: var(--to-light-grey);
  margin-top: 0.3rem;
  max-width: 52ch;
}
.badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--to-black-grey-500);
  color: var(--to-light-grey);
  margin-left: 0.5rem;
}
.badge.live {
  background: var(--to-purple-transparent);
  color: #fff;
}
.post-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--to-black-grey-500);
  background: transparent;
  color: var(--to-light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-btn:hover {
  color: var(--to-white);
  border-color: var(--to-grey);
}
.icon-btn svg {
  width: 15px;
  height: 15px;
}
.empty-state {
  text-align: center;
  color: var(--to-grey);
  padding: 2.5rem 1rem;
}

.toast {
  position: fixed;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--to-black-grey);
  border: 1px solid var(--to-black-grey-500);
  color: var(--to-white);
  padding: 0.7rem 1.2rem;
  border-radius: 9px;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 20;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mobile-topbar {
  display: none;
}

@media (max-width: 780px) {
  .app {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    padding-top: calc(0.7rem + env(safe-area-inset-top, 0px));
    border-right: none;
    border-bottom: 1px solid var(--to-black-grey-500);
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 0;
  }
  .sidebar-foot {
    display: none;
  }
  .nav {
    flex-direction: row;
  }
  .nav-btn span.label {
    display: none;
  }
  .nav-btn {
    padding: 0.55rem;
  }
  .content {
    padding: 1.25rem 1rem 3rem;
  }
  .field-row {
    flex-direction: column;
  }
}
.guest-header h3 {
  color: var(--to-white);
  font-family: "Mochiy Pop One", sans-serif;
}

.guest-header p {
  color: var(--to-white);
}
.guest-header button {
  color: var(--to-white-900);
  background-color: var(--to-purple-transparent);
  padding: 10px 15px;
  width: 200px;
  border-radius: 5px;
  border: none;
}

.signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  /* width: 85%; */
  /* justify-content: center; */
  /* margin: auto; */
}
.note {
  padding-top: 5px;
  width: 85%;
  font-family: cursive;
  font-style: italic;
  color: var(--to-white);
}
.sign {
  border-left: 2px solid var(--to-purple-transparent);
  padding-left: 10px;
  transition: 0.5s ease;
}
.sign:hover {
  border-left: 2px solid var(--to-purple-light);
}
.signature {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--to-purple-transparent);
}
.signature img {
  width: 300px;
}
.guest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 5px;
}
.guest p {
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 2px;
  color: var(--to-white);
}
.guest small {
  font-family: monospace;
  color: var(--to-white);
}
.canvas-wrapper {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 900;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  overflow: hidden;
}

.inactive {
  display: none;
}

.canvas-wrapper form {
  background-color: var(--to-black-grey-500);
  padding: 24px;
  width: 70%;
  max-width: 650px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  color: var(--text-main);
  border: 1px solid rgba(138, 43, 226, 0.3);
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 95vh;
}
.close {
  width: 30px;
  left: 90%;
  top: -10px;
  position: relative;
  border: none;
  color: var(--to-white-900);
  background-color: var(--text-danger);
  border-radius: 5px;
}
@media (max-width: 768px) {
  .canvas-wrapper form {
    width: 92%;
    padding: 18px;
  }
}

.form-label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--to-white);
}

.fw-semibold {
  font-weight: 600;
}

.text-danger {
  color: var(--text-danger);
}

.form-control {
  width: 100%;
  background-color: transparent;
  border: 1px solid rgba(138, 43, 226, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--to-purple-light);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-control.invalid {
  border-color: var(--text-danger);
  background-color: rgba(239, 68, 68, 0.08);
}

.field-error {
  color: var(--text-danger);
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.field-error.active {
  display: block;
}

.canvas-container {
  position: relative;
  background-color: transparent;
  border-radius: 8px;
  border: 1px solid rgba(138, 43, 226, 0.35);
  height: 180px;
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.canvas-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #64748b;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.2s ease;
}

.canvas-placeholder.hidden {
  opacity: 0;
  visibility: hidden;
}

.canvas-placeholder i {
  font-size: 1.5rem;
  color: var(--to-purple);
}

.canvas-placeholder .mt-1 {
  margin-top: 4px;
}

.canvas-placeholder .small {
  font-size: 0.75rem;
}

.opacity-75 {
  opacity: 0.75;
}

.canvas-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background-color: var(--to-purple-transparent);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(138, 43, 226, 0.2);
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatch-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    transform 0.15s,
    border-color 0.15s;
}

.swatch:hover {
  transform: scale(1.1);
}

.swatch.active {
  border-color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.6);
}

.custom-color-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.tool-btn {
  background-color: var(--to-black-grey-500);
  color: var(--text-main);
  border: 1px solid rgba(138, 43, 226, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.tool-btn:hover {
  background-color: rgba(138, 43, 226, 0.2);
  border-color: var(--to-purple-light);
}

.tool-btn.active {
  background-color: var(--to-purple);
  border-color: var(--to-purple-light);
  color: #ffffff;
}

.btn-clear {
  color: var(--text-danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-clear:hover {
  background-color: var(--text-danger);
  color: #ffffff;
}

.brush-size-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.brush-size-box input[type="range"] {
  width: 65px;
  accent-color: var(--to-purple-light);
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.btn-submit {
  flex: 1;
  background: linear-gradient(135deg, var(--to-purple), var(--to-purple-light));
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.35);
  transition:
    transform 0.15s,
    opacity 0.15s;
}

.btn-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-reset-form {
  background-color: var(--to-white);
  color: var(--to-black);
  border: 1px solid var(--to-black);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset-form:hover {
  background-color: var(--text-danger);
  color: var(--text-main);
}

/* Modal styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--to-black-grey-500);
  border: 1px solid var(--to-purple);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(138, 43, 226, 0.25);
  padding-bottom: 12px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--to-purple-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.close-modal-btn:hover {
  color: var(--text-main);
}

.modal-field {
  background-color: var(--to-black-grey-400);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(138, 43, 226, 0.15);
}

.modal-field-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.modal-field-value {
  font-size: 0.95rem;
  word-break: break-word;
}

.modal-image-preview {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  border: 1px solid var(--to-purple-light);
}

.modal-image-preview img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.modal-footer-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-download {
  background-color: var(--to-black-grey-400);
  color: var(--text-main);
  border: 1px solid var(--to-purple-light);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-download:hover {
  background-color: var(--to-purple);
}
