@font-face {
  font-family: "header";
  src: url("./assets/fonts/header.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/Inter.woff2") format("woff2");
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}
body {
  background-color: #000;
  margin: 0 auto;
  max-width: 1920px;
}

body.light {
  background-color: #fff;
  color: black;
  transition: background-color 0.5s ease;
}

body.dark {
  background-color: #000;
  color: white;
  transition: background-color 0.5s ease;
}

.theme-toggle .track {
  background: linear-gradient(90deg, #111, #eee);
}
.header_fix {
  padding: 2rem 0 2rem 2rem;
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
  justify-content: space-between;
  max-width: 1920px;
}
.head {
  font-family: "header";
  font-weight: bold;
}
.menu {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  justify-items: center;
  align-items: center;
  gap: 2rem;
}

body.light .head {
  color: black;
}

body.dark .head {
  color: rgb(247, 247, 247);
}

.burger {
  display: none;
}
.split-line {
  text-align: center;
}
.menu button {
  padding: 5px 12px;
}

body.light .menu button {
  color: rgb(247, 247, 247);
  background-color: #000;
}

body.dark .menu button {
  color: rgb(0, 0, 0);
}

body.light .menu button:hover,
body.dark .menu button:hover {
  border-color: rgb(133, 238, 0);
  background-color: rgb(133, 238, 0);
}

body.light .green:hover,
body.dark .green:hover {
  color: rgb(133, 238, 0);
}

.contact {
  color: #000;
  font-weight: 200;
}
main {
  padding: 2rem;
}
.front {
  padding: 2rem 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.front_class {
  display: flex;
  font-family: "Inter";
  font-weight: 900;
  font-size: 5rem;
  white-space: pre-wrap;
}

.hero {
  padding-bottom: 2rem;
}
.main_image {
  max-width: 1920px;
  width: 100%;
  max-height: 80vh;
  aspect-ratio: auto;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.hero_image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.hero_image:hover {
  transform: scale(1.02);
}

img:hover {
  transform: scale(1.02);
}

.h3 {
  font-family: "Inter";
  font-weight: 900;
  font-size: 4em;
}
.myproject {
  flex-flow: column nowrap;
}
.blocks-proj {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 90px;
  column-gap: 20px;
}

.hashtag {
  font-weight: 700;
  font-size: 2rem;
  margin-block-start: 5px;
  color: #808080;
}

.container {
  max-width: 900px;
  width: 100%;
  max-height: 490px;
  border-radius: 18px;
  padding-bottom: 1rem;
}

.container a {
  text-decoration: none;
}

.container-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-block {
  gap: 40px;
  margin: 0 auto;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  max-height: 80vh;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.3s ease;
}

.about-img:hover {
  transform: scale(1.05);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 1em;
  height: 100%;
}

.about-text h3,
.about-text h4,
.about-text p {
  margin: 0 0 1em 0;
  font-family: "header", sans-serif;
}

.about-text h3 {
  font-size: 1.8rem;
  font-weight: 500;
}

.about-text h4 {
  font-size: 2.5rem;
  font-weight: 600;
}

.about-text p {
  font-size: 1.3rem;
  line-height: 1.7;
  opacity: 0.95;
}

.whyme-slider h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
}

.whyme-slider {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin: 0 auto;
  padding: 60px 20px;
}

.slide-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.slide-container:hover {
  transform: scale(1.02);
}

.slide-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.slide-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  z-index: 2;
}

.slide-content h3 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
  z-index: -1;
}
.contact {
  padding: 6rem 20px;
}
.contact-block {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 60px;
  margin: 0 auto;
  padding: 6px 0;
}
.contact-text {
  display: flex;
  flex-direction: column;
}
.contact-block h2 {
  font-family: "header";
  font-weight: bold;
  font-weight: 900;
  font-size: 5rem;
  margin-block-start: 0;
}

.contact-block h3 {
  font-family: "header";
  font-weight: bold;
  font-weight: 900;
  font-size: 4rem;
  margin-block-start: 0;
}

.contact-input {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-size: 5em;
  justify-items: center;
}
body.light .mail {
  color: #000000;
}

body.dark .mail {
  color: #ffffff;
}
.mail {
  transition: color 0.3s ease, transform 0.2s ease;
}

body.light .mail:hover {
  color: rgb(133, 238, 0);
  transform: translateY(-2px);
}

body.dark .mail:hover {
  color: rgb(133, 238, 0);
  transform: translateY(-2px);
}
/* ANIMATION */
/* glitch */
.glitch {
  color: #fff;
  font-size: clamp(2rem, 10vw, 8rem);
  white-space: nowrap;
  font-weight: 900;
  position: relative;
  margin: 0 auto;
  user-select: none;
  cursor: pointer;
}

.glitch::after,
.glitch::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  color: #fff;
  background-color: #060010;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.glitch:not(.enable-on-hover)::after {
  left: 10px;
  text-shadow: var(--after-shadow, -10px 0 red);
  animation: animate-glitch var(--after-duration, 3s) infinite linear
    alternate-reverse;
}
.glitch:not(.enable-on-hover)::before {
  left: -10px;
  text-shadow: var(--before-shadow, 10px 0 cyan);
  animation: animate-glitch var(--before-duration, 2s) infinite linear
    alternate-reverse;
}

.glitch.enable-on-hover::after,
.glitch.enable-on-hover::before {
  content: "";
  opacity: 0;
  animation: none;
}

.glitch.enable-on-hover:hover::after {
  content: attr(data-text);
  opacity: 1;
  left: 10px;
  text-shadow: var(--after-shadow, -10px 0 red);
  animation: animate-glitch var(--after-duration, 3s) infinite linear
    alternate-reverse;
}
.glitch.enable-on-hover:hover::before {
  content: attr(data-text);
  opacity: 1;
  left: -10px;
  text-shadow: var(--before-shadow, 10px 0 cyan);
  animation: animate-glitch var(--before-duration, 2s) infinite linear
    alternate-reverse;
}

@keyframes animate-glitch {
  0% {
    clip-path: inset(20% 0 50% 0);
  }
  5% {
    clip-path: inset(10% 0 60% 0);
  }
  10% {
    clip-path: inset(15% 0 55% 0);
  }
  15% {
    clip-path: inset(25% 0 35% 0);
  }
  20% {
    clip-path: inset(30% 0 40% 0);
  }
  25% {
    clip-path: inset(40% 0 20% 0);
  }
  30% {
    clip-path: inset(10% 0 60% 0);
  }
  35% {
    clip-path: inset(15% 0 55% 0);
  }
  40% {
    clip-path: inset(25% 0 35% 0);
  }
  45% {
    clip-path: inset(30% 0 40% 0);
  }
  50% {
    clip-path: inset(20% 0 50% 0);
  }
  55% {
    clip-path: inset(10% 0 60% 0);
  }
  60% {
    clip-path: inset(15% 0 55% 0);
  }
  65% {
    clip-path: inset(25% 0 35% 0);
  }
  70% {
    clip-path: inset(30% 0 40% 0);
  }
  75% {
    clip-path: inset(40% 0 20% 0);
  }
  80% {
    clip-path: inset(20% 0 50% 0);
  }
  85% {
    clip-path: inset(10% 0 60% 0);
  }
  90% {
    clip-path: inset(15% 0 55% 0);
  }
  95% {
    clip-path: inset(25% 0 35% 0);
  }
  100% {
    clip-path: inset(30% 0 40% 0);
  }
}

/* scroll animation text */

.mouse-animatable-container > * {
  display: inline-block;
  transition: transform 0.1s;
  transform-origin: center;
}
/* skills */
.skill-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.skill {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
}

.skill__item {
  flex: 1;
  position: relative;
  overflow: hidden;
  text-align: center;
  font-family: "header";
}

body.dark .skill__item {
  box-shadow: 0 -1px #fff;
}

body.light .skill__item {
  box-shadow: 0 -1px #000000;
}

.skill__item-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
  font-size: 4vh;
}

body.dark .skill__item-link {
  color: #fff;
}

body.light .skill__item-link {
  color: #000000;
}

body.dark .skill__item-link:hover {
  color: #060010;
}

body.light .skill__item-link:hover {
  color: rgb(255, 255, 255);
}

body.dark .skill__item-link:focus:not(:focus-visible) {
  color: #fff;
}

body.light .skill__item-link:focus:not(:focus-visible) {
  color: rgb(0, 0, 0);
}

.marquee {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translate3d(0, 101%, 0);
  transition: transform 0.6s ease-expo;
}

.marquee__inner-wrap {
  height: 100%;
  width: 200%;
  display: flex;
  transform: translateX(0);
}

.marquee__inner {
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
  width: 200%;
  will-change: transform;
  animation: marquee 15s linear infinite;
}

.marquee span {
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 4vh;
  line-height: 1.2;
  padding: 1vh 1vw 0;
  font-family: "header";
}

body.dark .marquee span {
  background: #000000;
}

body.light .marquee span {
  background: #ffffff;
}

.marquee__img {
  width: 200px;
  height: 7vh;
  margin: 2em 2vw;
  padding: 1em 0;
  border-radius: 50px;
  background-size: cover;
  background-position: 50% 50%;
}

.skill__item-link:hover + .marquee {
  transform: translate3d(0, 0%, 0);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}
/* clients */

:root {
  --hue: 27;
  --sat: 69%;
  --white: hsl(0, 0%, 100%);
  --purple-primary: rgb(133, 238, 0);
  --purple-glow: rgb(94, 163, 3);
  --purple-border: rgb(133, 238, 0);
  --border-color: rgb(61, 104, 6);
  --background-dark: #000000;
  color-scheme: light dark;
}

.card-grid {
  display: grid;
  gap: 0.5em;

  max-width: 1920px;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
}

.card {
  display: flex;
  flex-direction: column;
  position: relative;
  aspect-ratio: 6/3;
  min-height: 200px;
  max-width: 100%;
  padding: 1.25em;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--background-dark);
  font-weight: 300;
  overflow: hidden;
  transition: all 0.3s ease;

  --glow-x: 50%;
  --glow-y: 50%;
  --glow-intensity: 0;
  --glow-radius: 200px;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card__header,
.card__content {
  display: flex;
  position: relative;
  color: var(--white);
}

.card__header {
  gap: 0.75em;
  justify-content: space-between;
}

.card__content {
  flex-direction: column;
}

.card__label {
  font-size: 25px;
  color: #ffd700;
}

.card__title,
.card__description {
  --clamp-title: 1;
  --clamp-desc: 2;
}

.card__title {
  font-weight: 600;

  font-size: 25px;
  display: flex;
  gap: 5px;
  margin: 0 0 0.25em;
}

.card__description {
  font-size: 20px;
  line-height: 1;

  opacity: 0.9;
  font-family: "Inter", cursive;
  font-weight: 400;
  font-style: normal;
}

.card--text-autohide .card__title,
.card--text-autohide .card__description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card--text-autohide .card__title {
  -webkit-line-clamp: var(--clamp-title);
  line-clamp: var(--clamp-title);
}

.card--text-autohide .card__description {
  -webkit-line-clamp: var(--clamp-desc);
  line-clamp: var(--clamp-desc);
}

@media (max-width: 599px) {
  .card-grid {
    grid-template-columns: 1fr;
    width: 90%;
    padding: 0.5em 0.5em 0.5em 0;
  }

  .card {
    width: 100%;
    min-height: 180px;
  }
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1520px) {
  .card {
    aspect-ratio: 5/3;
  }
  .card {
    padding: 1.05em 1.25em 1.25em 1.25em;
  }
}
@media (max-width: 1431px) {
  .card__description {
    margin-block-start: 0em;
    margin-block-end: 0.5em;
    width: 95%;
  }
  .card {
    padding: 0.8em 1.55em 1.25em 1.25em;
  }
}
@media (max-width: 1272px) {
  .card {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 1170px) {
  .card {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 1170px) {
  .card {
    aspect-ratio: 3/3;
  }
}
@media (max-width: 1024px) {
  .card {
    aspect-ratio: auto;
    padding-right: 0;
  }
}
@media (width: 1024px) {
  .card {
    aspect-ratio: 3/3;
  }
}

/* Border glow effect */
.card--border-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 6px;
  background: radial-gradient(
    var(--glow-radius) circle at var(--glow-x) var(--glow-y),
    rgba(133, 238, 0, calc(var(--glow-intensity) * 0.8)) 0%,
    rgba(133, 238, 0, calc(var(--glow-intensity) * 0.4)) 30%,
    transparent 60%
  );
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: subtract;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.card--border-glow:hover::after {
  opacity: 1;
}

.card--border-glow:hover {
  box-shadow: 0 4px 20px rgba(46, 24, 78, 0.4), 0 0 30px var(--purple-glow);
}

.particle-container {
  position: relative;
  overflow: hidden;
}

.particle::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: rgba(132, 0, 255, 0.2);
  border-radius: 50%;
  z-index: -1;
}

.particle-container:hover {
  box-shadow: 0 4px 20px rgba(46, 24, 78, 0.2), 0 0 30px var(--purple-glow);
}

/* Global spotlight styles */
.global-spotlight {
  mix-blend-mode: screen;
  will-change: transform, opacity;
  z-index: 200 !important;
  pointer-events: none;
}

.bento-section {
  position: relative;
  user-select: none;
}

/* clients */

/* gradient */
.animated-gradient-text {
  position: relative;
  margin: 0 auto;
  display: flex;
  max-width: fit-content;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: box-shadow 0.5s ease-out;
  overflow: hidden;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 300% 100%;
  animation: gradient linear infinite;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
}

.gradient-overlay::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  border-radius: inherit;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #060010;
  z-index: -1;
}

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

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

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

.text-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradient linear infinite;
}

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

.text-content h3 {
  text-align: center;
}
/* gradient */
.menu a {
  text-decoration: none;
}

.link-effect {
  color: white;
  padding: 4px 0;
  position: relative;
  display: inline-block;
}

.link-effect::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgb(133, 238, 0);
  transition: width 0.4s ease;
}

.link-effect:hover::after {
  width: 100%;
}

.link-effect:hover {
  color: rgb(133, 238, 0);
}
/* btn */

.space-btn {
  position: relative;
  font-size: 1.2em;
  text-transform: uppercase;
  line-height: 1;
  color: rgb(0, 0, 0);
  margin: 0;
  padding: 1em;
  background: none;
  font-family: "header";
  border: 1px solid rgb(255, 255, 255);
  background-color: #ffffff;
  cursor: pointer;
  border-radius: 3px;
}

.space-btn:active {
  background-color: rgb(133, 238, 0);
  border: 1px solid rgb(133, 238, 0);
}

/* ANIMATION */
@media (max-width: 1440px) {
  .blocks-proj {
    row-gap: 0;
  }
  .header_fix {
    padding: 2rem;
    font-size: 0.8rem;
    gap: 0.5rem;
  }
}

@media (max-width: 1220px) {
  .about-text {
    gap: 0;
    padding: 0 1em 0 0;
  }
  .about-text p {
    font-size: 1.1rem;
  }
}

@media (max-width: 1136px) {
  .header_fix {
    grid-template-columns: 25% 75%;
  }

  .h3 {
    font-size: 3em;
  }
  .front {
    padding: 0;
  }
  .card__description {
    font-size: 18px;
  }
}
@media (max-width: 1024px) {
  .container {
    width: 100%;
    max-width: 100%;
  }
  .blocks-proj {
    grid-template-columns: 1fr;
    row-gap: 4em;
    margin-bottom: 5em;
  }
  .skill__item-link {
    font-size: 3vh;
  }
  .marquee__inner span {
    font-size: 3vh;
  }
  .contact {
    padding: 0rem 20px;
  }
}
@media (max-width: 850px) {
  .menu {
    gap: 0.5rem;
  }
  .skill__item-link {
    font-size: 2.5vh;
  }
  .marquee__inner span {
    font-size: 2.5vh;
  }

  .h3 {
    font-size: 2.5em;
  }
  .blocks-proj {
    row-gap: 0;
    margin-bottom: 0;
  }

  .whyme-slider {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .burger {
    display: inline-block;
  }
  .header_fix {
    grid-template-columns: 50% 50%;
  }
  .contact-block {
    padding-bottom: 100px;
  }
  .text-content h2 {
    font-size: 3rem;
  }
  .text-content h3 {
    font-size: 2rem;
  }
  .skill__item-link {
    font-size: 2vh;
  }
  .marquee__inner span {
    font-size: 2vh;
  }
  .menu {
    display: none;
  }
  .gif-container {
    display: none;
  }

  .header_fix {
    padding: 0 2rem 0 2rem;
  }
  main {
    padding-top: 0;
  }
  .front {
    padding-top: 0;
  }
  .front h2 {
    font-size: 4rem;
    margin-block-start: 0.2em;
  }
  .h3 {
    font-size: 2em;
  }

  .hashtag {
    font-size: 0.9rem;
  }
  .about-text p {
    line-height: 1;
  }
  .contact-input {
    font-size: 4em;
  }
  .text-content h2 {
    font-size: 2.5rem;
  }
  .text-content h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .h3 {
    font-size: 1.5em;
  }
}

@media (max-width: 440px) {
  .header_fix {
    grid-template-columns: 70% 30%;
  }
  .front h2 {
    font-size: 3rem;
  }
  .whyme h2 {
    font-size: 1.2em;
  }
  .contact-input {
    font-size: 3em;
  }
  .slide-content h3 {
    font-size: 1.5rem;
  }
  .whyme-slider {
    padding: 0 0 20px 0;
    gap: 20px;
  }
  .contact-block {
    gap: 20px;
  }
}
@media (max-width: 375px) {
  .front h2 {
    font-size: 2.5rem;
  }
  .whyme h2 {
    font-size: 1em;
  }
}
