*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*
! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.isolate {
  isolation: isolate;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-20 {
  margin-bottom: 5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.shrink-0 {
  flex-shrink: 0;
}

.grow {
  flex-grow: 1;
}

.origin-center {
  transform-origin: center;
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-6 {
  gap: 1.5rem;
}

.space-x-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1.5rem * var(--tw-space-x-reverse));
  margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.pt-16 {
  padding-top: 4rem;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.font-bold {
  font-weight: 700;
}

.uppercase {
  text-transform: uppercase;
}

.leading-relaxed {
  line-height: 1.625;
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

*,
::before,
::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

::before,
::after {
  --tw-content: "";
}

html,
:host {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  font-family:
    ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  line-height: inherit;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp,
pre {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button,
select {
  text-transform: none;
}

button,
input:where([type="button"]),
input:where([type="reset"]),
input:where([type="submit"]) {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

:-moz-focusring {
  outline: auto;
}

:-moz-ui-invalid {
  box-shadow: none;
}

progress {
  vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

summary {
  display: list-item;
}

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

dialog {
  padding: 0;
}

textarea {
  resize: vertical;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
  opacity: 1;
  color: #9ca3af;
}

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  color: #9ca3af;
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: #9ca3af;
}

button,
[role="button"] {
  cursor: pointer;
}

:disabled {
  cursor: default;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

img,
video {
  max-width: 100%;
  height: auto;
}

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.ml-4 {
  margin-left: 1rem;
}

.ml-6 {
  margin-left: 1.5rem;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.size-20 {
  width: 5rem;
  height: 5rem;
}

.size-1 {
  width: 0.25rem;
  height: 0.25rem;
}

.size-1\/5 {
  width: 20%;
  height: 20%;
}

.size-1\/4 {
  width: 25%;
  height: 25%;
}

.h-48 {
  height: 12rem;
}

.h-10 {
  height: 2.5rem;
}

.h-9 {
  height: 2.25rem;
}

.h-40 {
  height: 10rem;
}

.h-60 {
  height: 15rem;
}

.h-80 {
  height: 20rem;
}

.h-\[100px\] {
  height: 100px;
}

.h-\[100hv\] {
  height: 100hv;
}

.h-\[150hv\] {
  height: 150hv;
}

.h-\[50hv\] {
  height: 50hv;
}

.h-\[hv\] {
  height: hv;
}

.h-\[4hv\] {
  height: 4hv;
}

.h-5 {
  height: 1.25rem;
}

.h-4 {
  height: 1rem;
}

.h-20 {
  height: 5rem;
}

.h-16 {
  height: 4rem;
}

.h-28 {
  height: 7rem;
}

.h-32 {
  height: 8rem;
}

.w-48 {
  width: 12rem;
}

.w-16 {
  width: 4rem;
}

.w-20 {
  width: 5rem;
}

.w-28 {
  width: 7rem;
}

.w-32 {
  width: 8rem;
}

.w-80 {
  width: 20rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-6 {
  gap: 1.5rem;
}

.space-x-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1.5rem * var(--tw-space-x-reverse));
  margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.self-start {
  align-self: flex-start;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 9999px;
}

.border {
  border-width: 1px;
}

.border-4 {
  border-width: 4px;
}

.border-2 {
  border-width: 2px;
}

.border-t {
  border-top-width: 1px;
}

.border-purple-500 {
  --tw-border-opacity: 1;
  border-color: rgb(168 85 247 / var(--tw-border-opacity, 1));
}

.border-purple-50 {
  --tw-border-opacity: 1;
  border-color: rgb(250 245 255 / var(--tw-border-opacity, 1));
}

.bg-gray-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.bg-indigo-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(99 102 241 / var(--tw-bg-opacity, 1));
}

.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.bg-blue-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}

.bg-blue-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(30 58 138 / var(--tw-bg-opacity, 1));
}

.bg-blue-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(147 197 253 / var(--tw-bg-opacity, 1));
}

.bg-blue-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}

.p-6 {
  padding: 1.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 2.75rem;
  line-height: 3rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.font-bold {
  font-weight: 700;
}

.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

.text-gray-900 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.text-blue-900 {
  --tw-text-opacity: 1;
  color: rgb(30 58 138 / var(--tw-text-opacity, 1));
}

.text-purple-800 {
  --tw-text-opacity: 1;
  color: rgb(107 33 168 / var(--tw-text-opacity, 1));
}

.text-blue-800 {
  --tw-text-opacity: 1;
  color: rgb(30 64 175 / var(--tw-text-opacity, 1));
}

.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}

.text-purple-900 {
  --tw-text-opacity: 1;
  color: rgb(88 28 135 / var(--tw-text-opacity, 1));
}

.text-purple-600 {
  --tw-text-opacity: 1;
  color: rgb(147 51 234 / var(--tw-text-opacity, 1));
}

.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored:
    0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow:
    var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
    var(--tw-shadow);
}

.transition {
  transition-property:
    color, background-color, border-color, text-decoration-color, fill, stroke,
    opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.hover\:bg-indigo-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(79 70 229 / var(--tw-bg-opacity, 1));
}

.hover\:text-gray-900:hover {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.hover\:shadow-lg:hover {
  --tw-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored:
    0 10px 15px -3px var(--tw-shadow-color),
    0 4px 6px -4px var(--tw-shadow-color);
  box-shadow:
    var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
    var(--tw-shadow);
}

.holographic-card {
  width: 125px;
  height: 50px;
  background: #7e4cf5;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  transition: all 0.5s ease;
}

.holographic-card h2 {
  color: rgb(182, 47, 255);
  font-size: 2rem;
  position: relative;
  z-index: 2;
  display: inline-block;
  white-space: nowrap;
  text-align: center;
}

.holographic-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    0deg,
    transparent,
    transparent 30%,
    rgb(187, 61, 229)
  );
  transform: rotate(-45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.holographic-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgb(117, 3, 231);
}

.holographic-card:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translateY(110%);
}

.resize {
  width: 300px;
  height: 200px;
  transition: transform 0.3s ease;
}

.resize:hover {
  transform: scale(1.2);
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f3f3;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 4rem;
}

.image-container {
  position: relative;
  z-index: 10;
  overflow: hidden;
  border-radius: 25px;
  width: 350px;
  height: 230px;
  transition: transform 0.5s ease;
}

.image-container img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 25px;
  transition: transform 0.6s ease;
}

.image-container:hover img {
  transform: scale(1.15);
}

.image-container:hover ~ .content {
  filter: blur(8px) brightness(0.7);
  transition: filter 0.4s ease;
}

.content {
  text-align: center;
  max-width: 600px;
  transition: filter 0.4s ease;
}

.cool-heading {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.cool-heading:hover {
  transform: scale(1.05);
  color: #9333ea;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.7));
}

.blur-hover {
  transition: all 0.2s ease;
  backdrop-filter: blur(0px);
}

.blur-hover:hover {
  backdrop-filter: blur(6px);
  background-color: rgba(255, 255, 255, 0.2);
  color: #111827;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  transform: scale(1.03);
}

#projects-focus {
  position: relative;
  isolation: isolate;
}

#projects-focus .focus-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  backdrop-filter: blur(0px);
  background: rgba(0, 0, 0, 0);
  transition:
    opacity 0.2s ease-out,
    backdrop-filter 0.2s ease-out,
    background 0.2s ease-out;
  z-index: 40;
}

#projects-focus:has(.project-card:hover) .focus-overlay {
  opacity: 0;
  backdrop-filter: blur(0px);
  background: rgba(0, 0, 0, 0);
}

.project-card {
  position: relative;
  z-index: 50;
  transition:
    transform 0.2s ease-out,
    filter 0.2s ease-out,
    box-shadow 0.2s ease-out,
    opacity 0.2s ease-out;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.04);
  filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.7));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#projects-focus:has(.project-card:hover) .project-card:not(:hover) {
  filter: none;
  opacity: 1;
  transition:
    filter 0.2s ease-out,
    opacity 0.2s ease-out;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  will-change: transform, opacity;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.card-reveal {
  opacity: 0;
  will-change: transform, opacity;
}

.card-reveal.in-view {
  animation: cardReveal 0.85s ease-out both;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
  }
}

/* ---- Projects: rocket that flies across before the cards pop up ---- */

.projects-rocket {
  position: absolute;
  top: -34px;
  left: -80px;
  width: 54px;
  height: 27px;
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  filter: drop-shadow(0 0 9px rgba(139, 92, 246, 0.6));
}

.projects-rocket::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 90%;
  width: 120px;
  height: 4px;
  transform: translateY(-50%);
  background: linear-gradient(to left, rgba(139, 92, 246, 0.6), transparent);
  border-radius: 999px;
}

.projects-rocket--fly {
  animation: rocketFly 1.7s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

@keyframes rocketFly {
  0% {
    left: -80px;
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: calc(100% + 30px);
    opacity: 0;
  }
}

.rk-flame {
  transform-box: fill-box;
  transform-origin: 100% 50%;
  animation: rkFlame 0.12s steps(2, jump-none) infinite alternate;
}

@keyframes rkFlame {
  from {
    transform: scaleX(0.6);
    opacity: 0.7;
  }

  to {
    transform: scaleX(1.2);
    opacity: 1;
  }
}

/* ---- Rocket launch transition (when opening a project) ---- */

#rocket-launch {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: radial-gradient(ellipse at 50% 60%, #1e1b4b 0%, #0b1020 60%, #05070f 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#rocket-launch.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.rl-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(199, 210, 254, 0.8), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(165, 180, 252, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 15% 80%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(2px 2px at 60% 50%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 90% 90%, rgba(199, 210, 254, 0.7), transparent);
  background-size: 100% 100%;
}

#rocket-launch.active .rl-stars {
  animation: rlStars 1.4s linear forwards;
}

@keyframes rlStars {
  from {
    transform: translateY(-12%);
    opacity: 0.4;
  }

  to {
    transform: translateY(12%);
    opacity: 1;
  }
}

.rl-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rl-rocket {
  position: relative;
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.55));
  animation: rlHover 0.9s ease-in-out infinite alternate;
}

#rocket-launch.active .rl-rocket {
  animation: rlLaunch 1.4s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}

@keyframes rlHover {
  from {
    transform: translateY(3px);
  }

  to {
    transform: translateY(-3px);
  }
}

@keyframes rlLaunch {
  0% {
    transform: translateY(0) scale(1);
  }

  22% {
    transform: translateY(14px) scale(0.96);
  }

  100% {
    transform: translateY(-115vh) scale(1.05);
  }
}

.rl-flame {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 26px;
  height: 46px;
  transform: translateX(-50%);
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  background: linear-gradient(to top, #f59e0b, #f472b6 55%, transparent);
  filter: blur(1px);
  transform-origin: 50% 0;
  animation: rlFlameFlicker 0.09s steps(2, jump-none) infinite alternate;
}

@keyframes rlFlameFlicker {
  from {
    transform: translateX(-50%) scaleY(0.7) scaleX(0.85);
    opacity: 0.8;
  }

  to {
    transform: translateX(-50%) scaleY(1.25) scaleX(1.05);
    opacity: 1;
  }
}

.rl-text {
  position: relative;
  color: #c7d2fe;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: rlTextPulse 1.1s ease-in-out infinite;
}

@keyframes rlTextPulse {
  0%, 100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #rocket-launch.active .rl-rocket,
  #rocket-launch.active .rl-stars,
  .rl-flame,
  .rl-text {
    animation: none !important;
  }
}

.reveal[data-delay="100"] {
  transition-delay: 0.15s;
}

.reveal[data-delay="200"] {
  transition-delay: 0.3s;
}

.reveal[data-delay="300"] {
  transition-delay: 0.45s;
}

.reveal[data-delay="400"] {
  transition-delay: 0.6s;
}

.card-reveal[data-delay="100"].in-view {
  animation-delay: 0.15s;
}

.card-reveal[data-delay="200"].in-view {
  animation-delay: 0.3s;
}

.card-reveal[data-delay="300"].in-view {
  animation-delay: 0.45s;
}

.card-reveal[data-delay="400"].in-view {
  animation-delay: 0.6s;
}

.lift-on-hover {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.lift-on-hover:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .lift-on-hover {
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }

  .card-reveal {
    opacity: 1 !important;
    animation: none !important;
  }
}

header.site-header {
  transition:
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease,
    background-color 0.35s ease;
}

.scrolled header.site-header {
  backdrop-filter: blur(20px);
  background-color: rgba(8, 11, 20, 0.9);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.55);
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gradient-text-sitelab {
  background: linear-gradient(
    90deg,
    #e100ff,
    #ff00a2,
    #3700ff,
    #cc00ff,
    #ae00ff,
    #002bff,
    #7a00ff,
    #e100ff
  );
  background-size: 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 20s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0%;
  }

  100% {
    background-position: 400%;
  }
}

.gradient-h2 {
  background: linear-gradient(
    90deg,
    #0066ff,
    #0080ff,
    #0088ff,
    #00a6ff,
    #00f2ff,
    #00e1ff,
    #0000ff,
    #0066ff
  );
  background-size: 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 20s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0%;
  }

  100% {
    background-position: 400%;
  }
}

.gradient-text {
  background: linear-gradient(
    90deg,
    #0026ff,
    #00ffa6,
    #00d5ff,
    #00ffff,
    #ae00ff,
    #002bff,
    #7a00ff,
    #b2007d,
    #0026ff
  );
  background-size: 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 20s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0%;
  }

  100% {
    background-position: 400%;
  }
}

.gradient-border {
  padding: 3px;
  border-radius: 500px;
  background: linear-gradient(
    90deg,
    #0026ff,
    #00ffa6,
    #00d5ff,
    #00ffff,
    #ae00ff,
    #002bff,
    #7a00ff,
    #b2007d
  );
  background-size: 400%;
  animation: gradientMove 8s linear infinite;
  box-shadow:
    0 0 60px rgba(139, 92, 246, 0.3),
    0 0 120px rgba(59, 130, 246, 0.15);
}

.gradient-border img {
  display: block;
  width: 290px;
  height: 290px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 180px;
  background: #080b14;
}

@keyframes gradientMove {
  0% {
    background-position: 0%;
  }

  100% {
    background-position: 400%;
  }
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
  background: #080b14 !important;
  color: #e2e8f0 !important;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  animation: drift linear infinite alternate;
}

.aurora-blob:nth-child(1) {
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.16),
    transparent 65%
  );
  top: -350px;
  left: -250px;
  animation-duration: 22s;
}

.aurora-blob:nth-child(2) {
  width: 750px;
  height: 750px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.14),
    transparent 65%
  );
  top: 30%;
  right: -300px;
  animation-duration: 28s;
  animation-delay: -10s;
}

.aurora-blob:nth-child(3) {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.11), transparent 65%);
  bottom: -200px;
  left: 18%;
  animation-duration: 35s;
  animation-delay: -16s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(45px, -35px) scale(1.07);
  }

  66% {
    transform: translate(-35px, 55px) scale(0.93);
  }

  100% {
    transform: translate(25px, -45px) scale(1.12);
  }
}

.dot-grid {
  /* TEMP: stationary dots hidden for preview - remove this line to restore */
  display: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(
    circle,
    rgba(148, 163, 184, 0.055) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  pointer-events: none;
}

/* ---- Scroll-driven theme: a colour wash that deepens as you move down ----
   Implemented with opacity only (GPU-composited) instead of hue-rotate
   filters, which forced costly full-screen repaints on every scroll tick. */

#scroll-theme {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: calc(var(--scroll, 0) * 1);
  background:
    radial-gradient(
      ellipse at 15% 0%,
      rgba(139, 92, 246, 0.16),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 100%,
      rgba(6, 182, 212, 0.16),
      transparent 55%
    ),
    linear-gradient(160deg, rgba(76, 29, 149, 0.06), rgba(8, 47, 73, 0.08));
  will-change: opacity;
}

/* A second hue layer that fades in only in the lower half of the page,
   giving a clear "theme change" without touching expensive filters. */

#scroll-theme::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: calc(max(var(--scroll, 0) - 0.45, 0) * 1.8);
  background:
    radial-gradient(ellipse at 80% 10%, rgba(244, 63, 94, 0.1), transparent 55%),
    radial-gradient(
      ellipse at 10% 90%,
      rgba(16, 185, 129, 0.1),
      transparent 55%
    );
}

/* While the user is actively scrolling we drop the most expensive paints
   (backdrop blur re-blurs every frame as content moves behind it). The
   translucent backgrounds stay, so the glass look is barely affected. */

body.is-scrolling .glass-card,
body.is-scrolling .site-header,
body.is-scrolling #back-to-top {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ---- Back-to-top button ---- */

#back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 55;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: rgba(13, 18, 38, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #c7d2fe;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#back-to-top:hover {
  background: rgba(99, 102, 241, 0.22);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.4);
  color: #fff;
}

#back-to-top svg {
  width: 20px;
  height: 20px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 11, 20, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.07);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.scrolled .site-header {
  background: rgba(8, 11, 20, 0.9);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.55);
}

.nav-link {
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
}

.nav-link:hover {
  color: #f1f5f9;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  border-left: 1px solid rgba(148, 163, 184, 0.15);
  padding-left: 16px;
}

.lang-btn {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.lang-btn:hover {
  color: #f1f5f9;
}

.lang-active {
  color: #a855f7;
}

.lang-divider {
  color: #334155;
  font-size: 0.75rem;
}

.main-content {
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.hero-section {
  min-height: calc(100vh - 7rem);
  display: flex;
  align-items: center;
}

.hero-section > div {
  gap: 3.5rem;
  width: 100%;
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 1.25rem;
}

/* ---- Hero availability badge ---- */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem 0.35rem 0.7rem;
  margin-bottom: 1.4rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.32);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6ee7b7;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: statusPing 2s ease-out infinite;
}

@keyframes statusPing {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot {
    animation: none;
  }
}

.hero-heading {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 36rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1.65rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 0.65rem;
  text-decoration: none;
  transition:
    opacity 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1.65rem;
  background: rgba(148, 163, 184, 0.07);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s,
    color 0.2s;
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.14);
  transform: translateY(-2px);
  color: #f1f5f9;
}

.glass-card {
  background: rgba(13, 18, 38, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.skills-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}

.skill-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: #a5b4fc;
  cursor: default;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.skill-tag:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.48);
  color: #c7d2fe;
}

/* ---- Skill chips: small pill that reveals a progress bar on hover ---- */

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.skill-chip-break {
  flex-basis: 100%;
  height: 0;
  margin: 0;
  padding: 0;
}

.skill-chip {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.95rem;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.22);
  cursor: default;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.skill-chip:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.18);
}

.skill-chip-name {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #a5b4fc;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.skill-chip:hover .skill-chip-name {
  color: #e0e7ff;
}

.skill-chip-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-height: 0;
  max-width: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    max-width 0.35s ease,
    margin-top 0.35s ease,
    opacity 0.3s ease;
}

.skill-chip:hover .skill-chip-bar {
  max-height: 16px;
  max-width: 240px;
  margin-top: 0.5rem;
  opacity: 1;
}

.skill-chip-track {
  position: relative;
  flex: 1;
  min-width: 72px;
  height: 5px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.16);
  overflow: hidden;
}

.skill-chip-fill {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.skill-chip:hover .skill-chip-fill {
  width: var(--level, 0%);
  animation: skillShimmer 2.2s linear infinite;
}

.skill-chip-pct {
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #818cf8;
  white-space: nowrap;
}

@keyframes skillShimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* ---- Top scroll progress indicator ---- */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
  will-change: width;
  pointer-events: none;
}

/* ---- Preloader / loading screen ---- */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060914;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Lock scrolling until the page is revealed */

body:not(.loaded) {
  overflow: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
}

.preloader-logo {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}

.preloader-track {
  width: 190px;
  height: 4px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
  transition: width 0.3s ease;
}

.preloader-text {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #64748b;
}

@keyframes preloaderPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-chip-fill {
    transition: none;
  }

  .skill-chip:hover .skill-chip-fill {
    animation: none;
  }

  .preloader-logo {
    animation: none;
  }
}

.project-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #818cf8;
  border-left: 2px solid #818cf8;
  padding-left: 0.5rem;
}

.project-card h3 {
  color: #f1f5f9;
}

.card-desc {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

#about-me:hover .glass-card {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.1);
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.cool-heading {
  color: #f1f5f9 !important;
}

.cool-heading:hover {
  color: #a855f7 !important;
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.75));
}

.contact-sub {
  color: #64748b;
  font-size: 1rem;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.dark-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.07);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.dark-footer p {
  color: #475569;
  font-size: 0.83rem;
}

.shrink-0 {
  flex-shrink: 0;
}

.rounded-2xl {
  border-radius: 1rem;
}

.p-8 {
  padding: 2rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.glow:hover {
  filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.9));
}

.project-card:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(168, 85, 247, 0.2) !important;
}

.text-gray-600 {
  color: #94a3b8 !important;
}

.text-gray-800 {
  color: #cbd5e1 !important;
}

.text-gray-900 {
  color: #f1f5f9 !important;
}

.hover\:text-gray-900:hover {
  color: #ffffff !important;
}

.project-page-main {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.project-page-main h2 {
  color: inherit;
}

.project-page-main h3 {
  color: #f1f5f9;
}

.project-page-main h4 {
  color: #cbd5e1;
}

.project-page-main p {
  color: #94a3b8;
}

.project-page-main li {
  color: #94a3b8;
}

/* ============================================================
   Mobile / responsive support
   ============================================================ */

html,
body {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  /* ---- Header (home + project pages) ---- */

  .site-header nav {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header h1 {
    font-size: 1.1rem;
  }

  /* Hide secondary nav links; brand/logo still links home. Keep lang switcher. */

  .site-header .nav-link {
    display: none;
  }

  /* Project-page brand: drop the role subtitle, shrink the name */

  .slp-nav-role,
  .atp-nav-role {
    display: none;
  }

  .slp-nav-name,
  .atp-nav-name {
    font-size: 1.05rem;
  }

  .lang-switcher {
    font-size: 0.85rem;
  }

  /* ---- Section headings scaled down ---- */

  .cool-heading {
    font-size: 1.5rem;
  }

  /* ---- Hero: stack image on top of the text ---- */

  .main-content {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }

  .hero-section {
    min-height: auto;
    padding: 1rem 0 2rem;
  }

  .hero-section > div {
    flex-direction: column-reverse;
    gap: 2rem;
  }

  .hero-section .text-left {
    text-align: center;
  }

  .hero-heading {
    font-size: 2.4rem;
  }

  .hero-sub {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .gradient-border img {
    width: 200px;
    height: 200px;
  }

  /* ---- About Me: tighter card + text ---- */

  #about-me {
    margin-bottom: 3rem !important;
  }

  #about-me .glass-card {
    padding: 1.35rem !important;
  }

  #about-me .glass-card p {
    font-size: 1rem;
    line-height: 1.7;
  }

  /* ---- Interest blocks: single column, image on top, smaller ---- */

  .interest-block {
    margin-bottom: 3.5rem !important;
  }

  .interest-block > div {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .interest-img-card {
    order: -1;
  }

  .interest-img-wrap {
    height: 260px;
  }

  .interest-block h3 {
    font-size: 1.6rem !important;
  }

  .interest-block p {
    font-size: 0.95rem !important;
  }

  /* ---- Projects + contact ---- */

  #projects {
    padding-top: 2rem !important;
    margin-bottom: 3rem !important;
  }

  .contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }

  .contact-actions .btn-primary,
  .contact-actions .btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    text-align: center;
  }

  /* ---- Project documentation pages ---- */

  .project-page-main {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .gradient-border img {
    width: 168px;
    height: 168px;
  }

  .gradient-border {
    padding: 2px;
  }

  .cool-heading {
    font-size: 1.35rem;
  }

  .interest-img-wrap {
    height: 220px;
  }

  .interest-block h3 {
    font-size: 1.4rem !important;
  }

  .site-header h1 {
    font-size: 1rem;
  }

  .slp-nav-name,
  .atp-nav-name {
    font-size: 0.98rem;
  }

  .slp-title {
    font-size: 1.8rem;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
