*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  font-family: "Zain", "Segoe UI", Tahoma, "sans-serif";
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Zain", "Segoe UI", Tahoma, "sans-serif";
}

body {
  transition:
    background-color 0.3s,
    color 0.3s;
}

/* noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

/* scrollbar */
::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #268a54;
  border-radius: 99px;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.d1 {
  transition-delay: 0.08s;
}

.d2 {
  transition-delay: 0.16s;
}

.d3 {
  transition-delay: 0.24s;
}

.d4 {
  transition-delay: 0.32s;
}

/* nav underline animation */
.nl {
  position: relative;
}

.nl::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: #268a54;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nl:hover::after {
  width: 100%;
}

.nl.on {
  color: #268a54;
  font-weight: 500;
}

.dark .nl.on {
  color: #58ce8e;
}

.nl.on::after {
  width: 100%;
  background: currentColor;
}

/* shimmer button */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: rgba(255, 255, 255, 0.18);
  transform: skewX(-20deg);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.shimmer:hover::after {
  left: 160%;
}

/* photo frames */
.pf {
  overflow: hidden;
  background: #b9c9b0;
}

.pf img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* card hover */
.card-h {
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.18s;
}

.card-h:hover {
  transform: translateY(-4px);
}

/* skill tag */
.stag {
  transition: border-color 0.18s;
}

[x-cloak] {
  display: none !important;
}
.diamond-logo {
  height: 2.75rem;
  width: auto;
  max-width: none;
}
.diamond-nav{
    margin: 0.5rem auto;
}
/* brighten accent labels so they stay readable on the dark canvas */
.dark .text-accent {
  color: #58ce8e;
}

/* soft emerald aura for depth and atmosphere on the dark canvas */
.dark body {
  background-image: radial-gradient(1100px 540px at 50% -6%, rgba(88, 206, 142, 0.15), transparent 62%);
}