.loading-screen {
  align-items: center;
  animation: loading-glitch 2s infinite;
  background: var(--bg);
  background-attachment: fixed;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 49px,
      var(--grid) 49px,
      var(--grid) 50px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 49px,
      var(--grid) 49px,
      var(--grid) 50px
    );
  background-size: 50px 50px;
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}
.loading-content {
  background: var(--bg-elevated);
  border: 10px solid var(--border);
  box-shadow: 20px 20px 0 var(--shadow);
  max-width: 600px;
  padding: 60px;
  text-align: center;
  transform: rotate(-2deg);
  width: 90%;
}
.loading-content h1 {
  color: var(--accent-orange);
  font-family: Poppins, sans-serif;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 40px;
  text-shadow: 6px 6px 0 var(--border);
  transform: rotate(3deg);
}
.progress-bar {
  background: var(--bg);
  border: 8px solid var(--border);
  height: 40px;
  margin-bottom: 50px;
  overflow: hidden;
  position: relative;
  transform: rotate(-1deg);
  width: 100%;
}
.progress-fill {
  animation: fill-jagged 3s ease-out forwards;
  background: var(--accent-orange);
  height: 100%;
  transition: width 0.1s ease;
  width: 0;
}
@keyframes fill-jagged {
  0% {
    width: 0;
  }
  20% {
    width: 25%;
  }
  40% {
    width: 60%;
  }
  60% {
    width: 80%;
  }
  80% {
    width: 95%;
  }
  to {
    width: 100%;
  }
}
.loading-shapes {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}
.load-shape {
  animation: shape-spin 1s linear infinite;
  background: var(--accent-orange);
  border: 6px solid var(--border);
  height: 50px;
  width: 50px;
}
.load-shape.load-1 {
  animation-delay: 0s;
  transform: rotate(15deg);
}
.load-shape.load-2 {
  animation-delay: 0.3s;
  background: var(--accent-cyan);
  transform: rotate(-10deg);
}
.load-shape.load-3 {
  animation-delay: 0.6s;
  background: var(--accent-lime);
  transform: rotate(5deg);
}
@keyframes shape-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
  to {
    transform: rotate(1turn) scale(1);
  }
}
@keyframes loading-glitch {
  0%,
  to {
    background-position: 0 0;
  }
  10% {
    background-position: -5px 5px;
  }
  20% {
    background-position: 5px -5px;
  }
  30% {
    background-position: -5px -5px;
  }
  40% {
    background-position: 5px 5px;
  }
  50% {
    background-position: 0 0;
  }
  60% {
    background-position: 5px -5px;
  }
  70% {
    background-position: -5px 5px;
  }
  80% {
    background-position: 5px 5px;
  }
  90% {
    background-position: -5px -5px;
  }
}
.loading-screen.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #fef9f3;
  --bg-elevated: #fff;
  --text: #0a0a0a;
  --text-muted: #3a3a3a;
  --border: #0a0a0a;
  --grid: #e8e8e8;
  --accent-orange: #ff6b35;
  --accent-cyan: #00d9ff;
  --accent-lime: #b4fe98;
  --shadow: hsla(0, 0%, 4%, 0.1);
}
[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elevated: #1a1a1a;
  --text: #fef9f3;
  --text-muted: silver;
  --border: #fef9f3;
  --grid: #1f1f1f;
  --shadow: hsla(33, 85%, 97%, 0.15);
}
[data-theme="dark"] body {
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}
[data-theme="dark"] .hero h1 .word-3 {
  background: var(--accent-cyan);
  color: var(--text);
}
[data-theme="dark"] .hero .tagline {
  background: var(--bg-elevated);
  color: var(--accent-orange);
}
[data-theme="dark"] .section-title {
  color: var(--accent-lime);
}
[data-theme="dark"] .chip.accent-3 {
  background: #ff8300;
  border-color: #ffa600;
  color: var(--text);
}
[data-theme="dark"] .project-tag {
  background: var(--bg-elevated);
  color: var(--accent-cyan);
}
[data-theme="dark"] .switch.active {
  background: var(--accent-cyan);
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  background-attachment: fixed;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 49px,
      var(--grid) 49px,
      var(--grid) 50px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 49px,
      var(--grid) 49px,
      var(--grid) 50px
    );
  background-size: 50px 50px;
  color: var(--text);
  font-family: Poppins, sans-serif;
  overflow-x: hidden;
  position: relative;
  transition:
    background 0.3s,
    color 0.3s;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.cursor-default {
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M8 4 L8 24 L14 18 L18 26 L22 24 L18 16 L24 16 Z" fill="white" stroke="black" stroke-width="2"/><path d="M8 4 L8 24 L14 18 L18 26 L22 24 L18 16 L24 16 Z" fill="none" stroke="black" stroke-width="2" transform="translate(2, 2)" opacity="0.3"/></svg>'),
    auto;
}
.cursor-pointer {
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M12 8 L12 16 M16 6 L16 16 M20 8 L20 16 M8 12 L8 20 Q8 24 12 24 L20 24 Q24 24 24 20 L24 14" fill="white" stroke="black" stroke-width="3" stroke-linecap="square"/><path d="M12 8 L12 16 M16 6 L16 16 M20 8 L20 16 M8 12 L8 20 Q8 24 12 24 L20 24 Q24 24 24 20 L24 14" fill="none" stroke="black" stroke-width="3" opacity="0.3" transform="translate(2, 2)"/></svg>'),
    grab;
}
.cursor-text {
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="32" viewBox="0 0 24 32"><rect x="10" y="4" width="4" height="24" fill="white" stroke="black" stroke-width="2"/><rect x="6" y="4" width="12" height="4" fill="white" stroke="black" stroke-width="2"/><rect x="6" y="24" width="12" height="4" fill="white" stroke="black" stroke-width="2"/><rect x="11" y="6" width="4" height="24" fill="black" opacity="0.2" transform="translate(1, 1)"/></svg>'),
    text;
}
.cursor-grab {
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M12 8 L12 16 M16 6 L16 16 M20 8 L20 16 M8 12 L8 20 Q8 24 12 24 L20 24 Q24 24 24 20 L24 14" fill="white" stroke="black" stroke-width="3" stroke-linecap="square"/><path d="M12 8 L12 16 M16 6 L16 16 M20 8 L20 16 M8 12 L8 20 Q8 24 12 24 L20 24 Q24 24 24 20 L24 14" fill="none" stroke="black" stroke-width="3" opacity="0.3" transform="translate(2, 2)"/></svg>'),
    grab;
}
.cursor-grabbing {
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M10 12 L10 20 Q10 24 14 24 L22 24 Q26 24 26 20 L26 12 M14 10 L14 20 M18 10 L18 20 M22 12 L22 20" fill="%2300d9ff" stroke="black" stroke-width="3" stroke-linecap="square"/><path d="M10 12 L10 20 Q10 24 14 24 L22 24 Q26 24 26 20 L26 12 M14 10 L14 20 M18 10 L18 20 M22 12 L22 20" fill="none" stroke="black" stroke-width="3" opacity="0.3" transform="translate(2, 2)"/></svg>'),
    grabbing;
}
.cursor-loading {
  animation: spin 1s linear infinite;
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><rect x="8" y="8" width="16" height="16" fill="%23b4fe98" stroke="black" stroke-width="3" transform="rotate(45 16 16)"/><rect x="10" y="10" width="16" height="16" fill="black" opacity="0.3" transform="rotate(45 16 16)"/></svg>'),
    wait;
}
.cursor-not-allowed {
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="12" fill="white" stroke="black" stroke-width="3"/><line x1="8" y1="8" x2="24" y2="24" stroke="%23ff6b35" stroke-width="4"/><circle cx="17" cy="17" r="12" fill="black" opacity="0.2"/></svg>'),
    not-allowed;
}
.cursor-help {
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="12" fill="white" stroke="black" stroke-width="3"/><text x="16" y="22" text-anchor="middle" font-family="Arial" font-size="16" font-weight="bold" fill="black">?</text><circle cx="17" cy="17" r="12" fill="black" opacity="0.2"/></svg>'),
    help;
}
.cursor-crosshair {
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><line x1="16" y1="4" x2="16" y2="28" stroke="black" stroke-width="3"/><line x1="4" y="16" x2="28" y2="16" stroke="black" stroke-width="3"/><circle cx="16" cy="16" r="6" fill="none" stroke="%23ff6b35" stroke-width="3"/><line x1="16" y1="5" x2="16" y2="28" stroke="black" stroke-width="3" opacity="0.3" transform="translate(1, 1)"/><line x1="5" y1="16" x2="28" y2="16" stroke="black" stroke-width="3" opacity="0.3" transform="translate(1, 1)"/></svg>'),
    crosshair;
}
@keyframes pulse {
  0%,
  to {
    transform: scale(1);
  }
  50% {
    transform: scale(1.01);
  }
}
@keyframes glitch {
  0% {
    background-position: 0 0;
  }
  10% {
    background-position: -2px 2px;
  }
  20% {
    background-position: 2px -2px;
  }
  30% {
    background-position: -2px -2px;
  }
  40% {
    background-position: 2px 2px;
  }
  50% {
    background-position: 0 0;
  }
  60% {
    background-position: 2px -2px;
  }
  70% {
    background-position: -2px 2px;
  }
  80% {
    background-position: 2px 2px;
  }
  90% {
    background-position: -2px -2px;
  }
  to {
    background-position: 0 0;
  }
}
.glitch {
  animation: glitch 0.3s ease-in-out;
}
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
  border-left: 3px solid var(--border);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-orange);
  border: 3px solid var(--border);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}
* {
  scrollbar-color: var(--accent-orange) var(--bg);
  scrollbar-width: thin;
}
nav {
  align-items: center;
  backdrop-filter: blur(10px);
  background: var(--bg-elevated);
  border-bottom: 4px solid var(--border);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 20px 40px;
  position: fixed;
  right: 0;
  top: 0;
  transition: all 0.3s;
  z-index: 100;
}
.logo {
  font-family: Poppins, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  transform: rotate(-2deg);
  transition: transform 0.3s;
}
.logo:hover {
  transform: rotate(-2deg) scale(1.1);
}
.logo.spin {
  animation: spin 1s ease;
}
@keyframes spin {
  0% {
    transform: rotate(-2deg);
  }
  to {
    transform: rotate(358deg);
  }
}
.nav-links {
   align-items: center;
   display: flex;
   gap: 30px;
}
.switch {
   margin-left: auto;
}
.nav-controls {
   display: none;
   align-items: center;
   gap: 20px;
}
.hamburger {
   display: none;
   font-size: 1.5rem;
   cursor: pointer;
   transform: rotate(-2deg);
   transition: transform 0.3s;
}
.hamburger:hover {
   transform: rotate(-2deg) scale(1.1);
}
.nav-link {
  font-family:
    Space Mono,
    monospace;
  font-size: 0.9rem;
  font-weight: 700;
  position: relative;
  text-transform: uppercase;
  transition: all 0.2s;
}
.nav-link:hover {
  color: var(--accent-orange);
  transform: translateY(-2px);
}
.theme-toggle {
  background: var(--accent-orange);
  border: 5px solid var(--border);
  box-shadow: 0 4px 0 var(--border);
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.theme-toggle:hover {
  background: var(--accent-cyan);
  box-shadow: 0 6px 0 var(--border);
  transform: translateY(-2px);
}
.theme-toggle:active {
  box-shadow: 0 2px 0 var(--border);
  transform: translateY(2px);
}
[data-theme="dark"] .theme-toggle {
  background: var(--accent-cyan);
}
[data-theme="dark"] .theme-toggle:hover {
  background: var(--accent-lime);
}
.container {
  margin: 0 auto;
  max-width: 1300px;
  padding: 140px 40px 80px;
  position: relative;
  z-index: 1;
}
.floating-shapes {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}
.shape {
  opacity: 0.6;
  position: absolute;
  transition:
    clip-path 2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: clip-path, transform;
}
.shape-1 {
  animation: rotate1 8s linear infinite;
  background: var(--accent-cyan);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  height: 80px;
  left: 10%;
  top: 15%;
  transform: rotate(15deg);
  width: 80px;
}
.shape-2 {
  background: var(--accent-orange);
  clip-path: circle(50% at 50% 50%);
  height: 60px;
  right: 15%;
  top: 60%;
  width: 60px;
}
.shape-3 {
  animation: rotate2 10s linear infinite;
  background: var(--accent-lime);
  bottom: 20%;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  height: 80px;
  left: 20%;
  width: 80px;
}
@keyframes rotate1 {
  0% {
    transform: rotate(15deg);
  }
  to {
    transform: rotate(375deg);
  }
}
@keyframes rotate2 {
  0% {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(1turn);
  }
}
.hero {
  margin-bottom: 140px;
  position: relative;
  z-index: 1;
}
.hero-bg {
  background: var(--bg-elevated);
  border: 6px solid var(--border);
  bottom: -40px;
  box-shadow: 20px 20px 0 var(--shadow);
  left: -40px;
  position: absolute;
  right: -40px;
  top: -40px;
  transform: rotate(-1deg);
  transition: all 0.3s;
  z-index: -1;
}
.hero h1 {
  font-family: Poppins, sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 40px;
  position: relative;
}
.hero h1 span {
  cursor: grab;
  display: inline-block;
  position: relative;
}
.hero h1 span.dragging {
  cursor: grabbing;
}
.hero h1 .word-1 {
  color: var(--text);
  transform: rotate(-3deg);
}
.hero h1 .word-2 {
  color: var(--accent-orange);
  margin: 0 20px;
  transform: rotate(2deg);
}
.hero h1 .word-3 {
  background: var(--accent-lime);
  border: 6px solid var(--border);
  box-shadow: 8px 8px 0 var(--border);
  color: var(--text);
  padding: 0 30px;
  transform: rotate(-1deg);
}
.hero .tagline {
  background: var(--border);
  border: 5px solid var(--border);
  color: var(--accent-lime);
  display: inline-block;
  font-family:
    Space Mono,
    monospace;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-left: 0;
  padding: 15px 30px;
  text-transform: uppercase;
  transform: rotate(1deg);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 40px 0;
}
.section-title {
  color: var(--text-muted);
  font-family:
    Space Mono,
    monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  margin-top: 30px;
  text-transform: uppercase;
}

/* added fucking margin-top to prevent overlapping shit at the top */
.stack-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 80px 0;
}
.chip {
  background: var(--bg-elevated);
  border: 4px solid var(--border);
  border-radius: 0;
  font-family:
    Space Mono,
    monospace;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  transition:
    all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    border-radius 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    clip-path 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.chip:hover {
  border-radius: 50px;
  box-shadow: 6px 6px 0 var(--shadow);
  transform: scale(1.1) translateY(-5px);
}
.chip.accent-1 {
  background: var(--accent-cyan);
}
.chip.accent-2 {
  background: var(--accent-lime);
}
.chip.accent-3 {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
}
.projects-title {
  background: var(--bg-elevated);
  border: 6px solid var(--border);
  box-shadow: 12px 12px 0 var(--border);
  display: inline-block;
  font-family: Poppins, sans-serif;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 60px;
  padding: 20px 40px;
  position: relative;
  transform: rotate(-2deg);
}
.projects {
  display: grid;
  gap: 60px;
  margin-bottom: 100px;
}
.project {
  background: var(--bg-elevated);
  border: 6px solid var(--border);
  padding: 50px;
  position: relative;
  transform: rotate(var(--project-rotate));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.project:first-child {
  --project-rotate: 1deg;
  margin-left: 80px;
}
.project:nth-child(2) {
  --project-rotate: -1.5deg;
  margin-right: 100px;
}
.project:nth-child(3) {
  --project-rotate: 0.5deg;
  margin-left: 40px;
}
.project:hover {
  box-shadow: 20px 20px 0 var(--border);
  transform: rotate(0deg) scale(1.02);
  z-index: 5;
}
.project-number {
  color: var(--number-color);
  font-family: Poppins, sans-serif;
  font-size: 5rem;
  font-weight: 900;
  left: 40px;
  opacity: 0.9;
  position: absolute;
  text-shadow: 4px 4px 0 var(--border);
  top: -15px;
}
.project:first-child {
  --number-color: var(--accent-orange);
}
.project:nth-child(2) {
  --number-color: var(--accent-cyan);
}
.project:nth-child(3) {
  --number-color: var(--accent-lime);
}
.project h3 {
  font-family: Poppins, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  margin-top: 40px;
}
.project p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 30px;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.project-tag {
  background: var(--border);
  border: 3px solid var(--border);
  color: var(--accent-lime);
  font-family:
    Space Mono,
    monospace;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 20px;
  transform: skew(-5deg);
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.btn,
button {
  background: var(--accent-orange);
  border: 5px solid var(--border);
  box-shadow: 0 4px 0 var(--border);
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 18px 40px;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    all 0.3s ease,
    border-radius 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    clip-path 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn:hover,
button:hover {
  background: var(--accent-cyan);
  border-radius: 50px;
  box-shadow: 0 6px 0 var(--border);
  transform: translateY(-2px);
}
.btn:active,
button:active {
  box-shadow: 0 2px 0 var(--border);
  transform: translateY(2px);
}
.btn.primary,
button.primary {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
}
.btn.primary:hover,
button.primary:hover {
  background: var(--accent-lime);
}
.btn.secondary,
button.secondary {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
}
.btn.secondary:hover,
button.secondary:hover {
  background: var(--accent-cyan);
  color: #fff;
}
.playground-section {
  background: var(--bg-elevated);
  border: 6px solid var(--border);
  box-shadow: 16px 16px 0 var(--border);
  margin: 120px 0;
  padding: 80px 60px;
  transform: rotate(1deg);
}
.playground-section h2 {
  display: inline-block;
  font-family: Poppins, sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  transform: rotate(-2deg);
}
.playground-section p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 50px;
}
.components-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.component-demo {
  background: var(--bg);
  border: 4px solid var(--border);
  border-radius: 8px;
  padding: 30px;
}
.component-demo h4 {
  color: var(--text-muted);
  font-family:
    Space Mono,
    monospace;
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}
input[type="email"],
input[type="text"],
textarea {
  background: var(--bg-elevated);
  border: 4px solid var(--border);
  color: var(--text);
  font-family:
    Space Mono,
    monospace;
  font-size: 1rem;
  margin-bottom: 15px;
  padding: 15px 20px;
  transition:
    all 0.3s,
    border-radius 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    clip-path 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  width: 100%;
}
input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  border-radius: 50px;
  box-shadow: 6px 6px 0 var(--accent-cyan);
  outline: none;
  transform: translateY(-2px);
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.switch-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.switch-item {
  align-items: center;
  display: flex;
  gap: 15px;
}
.switch {
  background: var(--bg);
  border: 4px solid var(--border);
  height: 36px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  width: 70px;
}
.switch:hover {
  transform: scale(1.05);
}
.switch.active {
  background: var(--accent-lime);
}
.switch-ball {
  background: var(--border);
  height: 24px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  width: 24px;
}
.switch.active .switch-ball {
  left: 36px;
}
.contact-section {
  background: var(--accent-cyan);
  border: 8px solid var(--border);
  box-shadow: 25px 25px 0 var(--border);
  margin: 100px -40px 0;
  padding: 80px 60px;
  transform: rotate(-2deg);
}
.contact-section h2 {
  color: var(--text);
  display: inline-block;
  font-family: Poppins, sans-serif;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 30px;
  transform: rotate(3deg);
}
.filters {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filters select {
  background: var(--bg-elevated);
  border: 4px solid var(--border);
  color: var(--text);
  font-family: Space Mono, monospace;
  font-size: 1rem;
  padding: 10px 15px;
  transition: all 0.3s;
}

.filters select:hover {
  border-radius: 20px;
  box-shadow: 4px 4px 0 var(--shadow);
}

.photogrid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 100px;
}
.photopost {
  background: var(--bg-elevated);
  border: 6px solid var(--border);
  box-shadow: 10px 10px 0 var(--shadow);
  padding: 20px;
  transform: rotate(var(--rotate));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.photopost:hover {
  box-shadow: 20px 20px 0 var(--border);
  transform: rotate(0deg) scale(1.02);
  z-index: 5;
}
.photopost:first-child {
  --rotate: 1deg;
}
.photopost:nth-child(2) {
  --rotate: -1.5deg;
}
.photopost:nth-child(3) {
  --rotate: 0.5deg;
}
.photopost:nth-child(4) {
  --rotate: -0.5deg;
}
.photopost:nth-child(5) {
  --rotate: 1.2deg;
}
.photopost:nth-child(6) {
  --rotate: -1deg;
}
.photopost:nth-child(7) {
  --rotate: 0.8deg;
}
.photopost:nth-child(8) {
  --rotate: -1.3deg;
}
.photopost:nth-child(9) {
  --rotate: 0.3deg;
}
.photopost:nth-child(10) {
  --rotate: 1.5deg;
}
.photopost img {
  border: 4px solid var(--border);
  height: auto;
  margin-bottom: 15px;
  width: 100%;
}
.photopost h3 {
  font-family: Poppins, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 10px 0;
}
.photopost .date {
  color: var(--text-muted);
  font-family:
    Space Mono,
    monospace;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.photopost p {
  color: var(--text-muted);
  line-height: 1.6;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
}

#caption {
  margin-top: 10px;
  text-align: center;
  color: #ccc;
  font-size: 18px;
}

/* tutorial modal styles */
.tutorial-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.tutorial-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.tutorial-modal-container {
  position: relative;
  background: var(--bg-elevated);
  border: 6px solid var(--border);
  box-shadow: 20px 20px 0 var(--shadow);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 60px;
  transform: scale(0.9);
  animation: scaleIn 0.3s ease-out forwards;
  z-index: 1001;
}

.tutorial-modal-content {
  color: var(--text);
  font-family: Poppins, sans-serif;
  line-height: 1.6;
}

.tutorial-modal-content ol {
  padding-left: 20px;
}

.tutorial-modal-content li {
  margin-bottom: 10px;
}

.tutorial-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-orange);
  border: 4px solid var(--border);
  color: #fff;
  font-size: 24px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1002;
}

.tutorial-modal-close:hover {
  background: var(--accent-cyan);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .tutorial-modal-container {
    max-width: 95vw;
    max-height: 95vh;
    padding: 40px 20px;
  }

  .tutorial-modal-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}
.notification {
  background: var(--accent-orange);
  border: 4px solid var(--border);
  border-radius: 8px;
  box-shadow: 6px 6px 0 var(--border);
  color: var(--bg);
  font-size: 0.9rem;
  opacity: 0;
  padding: 12px 24px;
  pointer-events: none;
  position: fixed;
  right: 20px;
  top: 20px;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}
.notification.show {
  opacity: 1;
  transform: translateY(0);
}
.contact-section p {
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 700px;
}
.floating-shapes.morph-hero .shape-1 {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform: scale(1) rotate(15deg);
}
.floating-shapes.morph-hero .shape-2 {
  clip-path: circle(50% at 50% 50%);
  transform: scale(1);
}
.floating-shapes.morph-hero .shape-3 {
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  transform: scale(1);
}
.floating-shapes.morph-tech-stack .shape-1 {
  clip-path: circle(50% at 50% 50%);
  transform: scale(1.2) rotate(15deg);
}
.floating-shapes.morph-tech-stack .shape-2 {
  transform: scale(1.5);
}
.floating-shapes.morph-tech-stack .shape-3 {
  clip-path: polygon(50% 0, 0 50%, 50% 100%, 100% 50%);
}
.floating-shapes.morph-projects .shape-1 {
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  transform: scale(1) rotate(15deg);
}
.floating-shapes.morph-projects .shape-2 {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform: scale(1);
}
.floating-shapes.morph-projects .shape-3 {
  clip-path: circle(50% at 50% 50%);
  transform: scale(1);
}
.floating-shapes.morph-playground .shape {
  clip-path: polygon(0 0, 100% 0, 80% 50%, 100% 100%, 0 100%, 20% 50%);
  transform: scale(1.5) skew(10deg);
}
.floating-shapes.morph-contact .shape {
  clip-path: polygon(
    50% 0,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  transform: scale(1.2);
}
@media (max-width: 768px) {
   nav {
      padding: 15px 20px;
   }
   .nav-controls {
      display: flex;
   }
   .hamburger {
      display: block;
   }
   .nav-links {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: var(--bg-elevated);
      border: 4px solid var(--border);
      box-shadow: 10px 10px 0 var(--shadow);
      padding: 0;
      gap: 0;
      max-height: 0;
      overflow: hidden;
      transform: translateY(-100%) rotate(-5deg);
      opacity: 0;
      pointer-events: none;
      transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      z-index: 10;
   }
   .nav-links.open {
      max-height: 500px;
      padding: 20px;
      gap: 20px;
      transform: translateY(0) rotate(0deg);
      opacity: 1;
      pointer-events: auto;
   }
   .nav-links .switch {
      display: none;
   }
   .nav-link {
      font-size: 0.8rem;
   }
  .container {
    padding: 100px 20px 40px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero .tagline {
    font-size: 1rem;
    margin-left: 0;
  }
  .hero-buttons {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }
  .btn,
  button {
    font-size: 0.9rem;
    padding: 12px 20px;
  }
  .projects-title {
    font-size: 2.5rem;
    padding: 15px 25px;
  }
  .project {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 30px 20px;
  }
  .project h3 {
    font-size: 1.8rem;
  }
  .playground-section {
    padding: 40px 20px;
    margin: 80px 0;
  }
  .playground-section h2 {
    font-size: 2.5rem;
  }
  .contact-section {
    margin: 60px -20px 0;
    padding: 40px 30px;
  }
  .contact-section h2 {
    font-size: 2.5rem;
    /* commented out fucking nested shit that broke the css parsing */
    /* .hero-buttons a[href="/photography"] { */
    /*   transform: rotate(-0.5deg) !important; */
    /* } */
    /* .hero-buttons a[href="/wordly"] { */
    /*   transform: rotate(1deg) !important; */
    /* } */
    /* .hero-buttons a[href="/blog"] { */
    /*   transform: rotate(0deg) !important; */
    /* } */
    /* .hero-buttons a[href="https://search.virex.lol"] */
    /* { */
    /*   transform: rotate(0.5deg) !important; */
    /* } */
  }


  /* separated the nested rules into individual ones, fuck nesting */
  .hero-buttons a[href="/photography"] {
    transform: rotate(-0.5deg) !important;
  }

  .hero-buttons a[href="/wordly"] {
    transform: rotate(1deg) !important;
  }


  .hero-buttons a[href="/blog"] {
    transform: rotate(0deg) !important;
  }

  .hero-buttons a[href="https://search.virex.lol"] {
    transform: rotate(0.5deg) !important;
  }
  .shape {
    animation-duration: 20s;
  }
  .loading-shapes .load-shape {
    animation-duration: 2s;
  }
  .floating-shapes {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .glitch,
  .load-shape,
  .shape {
    animation: none !important;
  }
}

/* tutorials page fucking styles */

#coding-guides h2,
#design-guides h2,
#photography-guides h2,
#useful-links h2 {
  margin-bottom: 20px;
}

.guides-section {
  display: grid;
  gap: 60px;
  margin-bottom: 120px;
  margin-top: 30px;
}

.guides-grid {
  display: grid;
  gap: 100px;
  margin-bottom: 40px;
  margin-top: 40px;
}

.links-grid {
  display: grid;
  gap: 60px;
  margin-top: 40px;
}

/* increased margin-bottom and added margin-top for better spacing, fuck overlapping */


.guide-card {
  background: var(--bg-elevated);
  border: 6px solid var(--border);
  padding: 50px;
  position: relative;
  transform: rotate(var(--guide-rotate));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.guide-card:hover {
  box-shadow: 20px 20px 0 var(--border);
  transform: rotate(0deg) scale(1.02);
  z-index: 5;
}

.guide-card:nth-of-type(1) {
   --guide-rotate: 1deg;
   margin-left: 80px;
}

.guide-card:nth-of-type(2) {
   --guide-rotate: -1.5deg;
   margin-right: 100px;
}

.guide-card:nth-of-type(3) {
   --guide-rotate: 0.5deg;
   margin-left: 40px;
}

.guide-card h3 {
  font-family: Poppins, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  margin-top: 40px;
}

.guide-card p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.chip {
  background: var(--bg-elevated);
  border: 4px solid var(--border);
  border-radius: 0;
  font-family: Space Mono, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), border-radius 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), clip-path 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.chip:hover {
  border-radius: 50px;
  box-shadow: 6px 6px 0 var(--shadow);
  transform: scale(1.1) translateY(-5px);
}

.chip.accent-1 {
  background: var(--accent-cyan);
}

.chip.accent-2 {
  background: var(--accent-lime);
}

.chip.accent-3 {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
}


.links-section {
  display: grid;
  gap: 60px;
  margin-bottom: 120px;
}

/* added extra margin-bottom to separate sections better, no more cramped shit */

.link-category {
  display: grid;
  gap: 60px;
  margin-bottom: 40px;
  margin-top: 40px;
}

.link-item {
  background: var(--bg-elevated);
  border: 6px solid var(--border);
  padding: 50px;
  position: relative;
  transform: rotate(var(--link-rotate));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.link-item:hover {
  box-shadow: 20px 20px 0 var(--border);
  transform: rotate(0deg) scale(1.02);
  z-index: 5;
}

.link-item:nth-of-type(1) {
   --link-rotate: 1deg;
   margin-left: 80px;
}

.link-item:nth-of-type(2) {
   --link-rotate: -1.5deg;
   margin-right: 100px;
}

.link-item:nth-of-type(3) {
   --link-rotate: 0.5deg;
   margin-left: 40px;
}

.link-item h3 {
  font-family: Poppins, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  margin-top: 40px;
}

.link-item p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.copy-btn {
  background: var(--accent-orange);
  border: 5px solid var(--border);
  box-shadow: 0 4px 0 var(--border);
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 18px 40px;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease, border-radius 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), clip-path 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.copy-btn:hover {
  background: var(--accent-cyan);
  border-radius: 50px;
  box-shadow: 0 6px 0 var(--border);
  transform: translateY(-2px);
}

.copy-btn:active {
  box-shadow: 0 2px 0 var(--border);
  transform: translateY(2px);
}

@media (max-width: 768px) {
   .guides-section {
     gap: 40px;
   }

   .guide-card {
     margin-left: 0 !important;
     margin-right: 0 !important;
     padding: 30px 20px;
   }

   .guide-card h3 {
     font-size: 1.8rem;
   }

   .links-section {
     gap: 40px;
   }

   .link-item {
     margin-left: 0 !important;
     margin-right: 0 !important;
     padding: 30px 20px;
   }

   .link-item h3 {
     font-size: 1.8rem;
   }

   .copy-btn {
     font-size: 0.9rem;
     padding: 12px 20px;
   }

   .components-grid {
     grid-template-columns: 1fr;
     gap: 30px;
   }

   .component-demo {
     padding: 20px;
   }

   .chip {
     padding: 8px 16px;
     font-size: 0.85rem;
   }

   .switch {
     width: 60px;
     height: 32px;
   }

   .switch-ball {
     width: 20px;
     height: 20px;
   }

   .switch.active .switch-ball {
     left: 32px;
   }
}

/* fucking dragging styles for the new shit */

#projects h3,
.section-title,
#projects h2,
#playground h2,
#contact h2,
.chip {
  cursor: grab;
}


.dragging {
  opacity: 0.7;
  transform: scale(1.02);
}
