* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #070303;
  --text: #f3efef;
  --muted: #d4cdca;
  --orange: #ff4a17;
  --line: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #070303;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.08);
  animation: heroImageSmooth 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    transparent 26%,
    transparent 72%,
    rgba(0, 0, 0, 0.72) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 310px;
  background: linear-gradient(
    to bottom,
    rgba(7, 3, 3, 0) 0%,
    rgba(7, 4, 4, 0.42) 34%,
    rgba(7, 6, 5, 0.88) 73%,
    #070605 100%
  );
  z-index: 4;
  pointer-events: none;
}

/* ================= NAVBAR ================= */

.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(96%, 1840px);
  padding: 26px 18px 16px;
  display: flex;
  align-items: center;
  transition: 0.35s ease;
}

.navbar.scrolled {
  width: 100%;
  padding: 16px 6vw;
  background: rgba(7, 3, 3, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  animation: fadeDown 0.7s ease-out 0.15s forwards;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 64px;
}

.nav-links a {
  position: relative;
  color: var(--orange);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: 0.25s ease;
  opacity: 0;
  animation: fadeDown 0.7s ease-out forwards;
}

.nav-links a:nth-child(1) {
  animation-delay: 0.25s;
}

.nav-links a:nth-child(2) {
  animation-delay: 0.35s;
}

.nav-links a:nth-child(3) {
  animation-delay: 0.45s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--orange);
  box-shadow: 0 0 14px rgba(255, 74, 23, 0.8);
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after {
  width: 100%;
}

.contact-btn {
  margin-left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #ededed;
  color: #1a1a1a;
  padding: 8px 10px 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.24);
  opacity: 0;
  animation: fadeDown 0.7s ease-out 0.55s forwards;
  transition: 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 32px rgba(255, 74, 23, 0.38);
}

.contact-btn .arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: white;
  font-size: 24px;
  line-height: 1;
  animation: arrowPulse 1.8s ease-in-out 1.8s infinite;
}

/* ================= HERO LAYOUT ================= */

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.intro {
  position: absolute;
  z-index: 10;
  left: 6%;
  top: 24%;
  pointer-events: auto;
  will-change: transform, opacity, filter;
}

.intro-small-text {
  width: clamp(230px, 15vw, 330px);
  height: auto;
  margin-bottom: 58px;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.8s ease-out 0.45s forwards;
}

.intro-name-text,
.intro-name-text2 {
  width: clamp(320px, 32vw, 400px);
  height: auto;
  opacity: 0;
  transform: translateX(-55px);
  animation: slideFromLeft 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-name-text {
  animation-delay: 0.75s;
}

.intro-name-text2 {
  animation-delay: 0.95s;
}

.hero-copy {
  position: absolute;
  z-index: 10;
  left: 64%;
  top: 56%;
  max-width: 620px;
  pointer-events: auto;
  will-change: transform, opacity, filter;
}

.hero-copy h2 {
  font-size: clamp(34px, 3.1vw, 68px);
  line-height: 1.12;
  font-style: italic;
  font-weight: 800;
  margin-bottom: 18px;
  color: #ffffff;
  opacity: 0;
  transform: translateX(45px);
  animation: slideFromRight 0.9s ease-out 1.15s forwards;
}

.hero-copy p {
  font-size: clamp(18px, 1.2vw, 28px);
  line-height: 1.18;
  color: #f2ece9;
  max-width: 560px;
  opacity: 0;
  transform: translateX(45px);
  animation: slideFromRight 0.9s ease-out 1.35s forwards;
}

/* ================= HERO LINES ================= */

.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.curve-line {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(0.2px);
  opacity: 0.1;
}

.line-left-1 {
  width: 700px;
  height: 1100px;
  left: -520px;
  top: -140px;
  transform: rotate(10deg);
  animation: leftFloat1 14s ease-in-out infinite alternate;
}

.line-left-2 {
  width: 560px;
  height: 900px;
  left: -390px;
  top: 180px;
  transform: rotate(-8deg);
  animation: leftFloat2 16s ease-in-out infinite alternate;
}

.line-right-1 {
  width: 700px;
  height: 1100px;
  right: -520px;
  top: -120px;
  transform: rotate(-12deg);
  animation: rightFloat1 15s ease-in-out infinite alternate;
}

.line-right-2 {
  width: 560px;
  height: 900px;
  right: -390px;
  top: 220px;
  transform: rotate(9deg);
  animation: rightFloat2 17s ease-in-out infinite alternate;
}

/* ================= ABOUT ================= */

.about {
  position: relative;
  min-height: 100vh;
  margin-top: -1px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 74, 23, 0.15), transparent 34%),
    radial-gradient(circle at 78% 20%, rgba(255, 74, 23, 0.09), transparent 32%),
    linear-gradient(180deg, #070605 0%, #080403 52%, #070303 100%);
  overflow: hidden;
  padding: 95px 7vw 90px;
  color: #f2f2f2;
  isolation: isolate;
}

.about::before {
  content: "";
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(circle at 20% 55%, rgba(255, 72, 24, 0.12), transparent 34%),
    radial-gradient(circle at 78% 48%, rgba(255, 72, 24, 0.08), transparent 36%);
  pointer-events: none;
  z-index: 0;
  animation: aboutGlowBreath 8s ease-in-out infinite alternate;
}

.about-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  z-index: 1;
}

.about-lines span {
  position: absolute;
  width: 700px;
  height: 700px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  filter: blur(0.3px);
  animation: aboutLineMove 16s linear infinite;
}

.about-lines span:nth-child(1) {
  top: -220px;
  right: -120px;
}

.about-lines span:nth-child(2) {
  bottom: -300px;
  left: -220px;
  animation-duration: 22s;
}

.about-lines span:nth-child(3) {
  width: 900px;
  height: 900px;
  top: 18%;
  left: 35%;
  animation-duration: 28s;
}

.about-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  align-items: center;
  gap: 90px;
  max-width: 1500px;
  margin: 0 auto;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.about-kicker {
  padding-left: 48px;
}

.about-kicker h2 {
  font-size: clamp(34px, 4vw, 66px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 8px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 0.95;
}

.about-kicker p {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(28px, 3.2vw, 54px);
  font-weight: 500;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.28);
}

.about-kicker p::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 52%;
  width: 112%;
  height: 2px;
  background: rgba(255, 255, 255, 0.55);
  transform: rotate(-2deg);
}

.about-image-card {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1 / 1.48;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #ff4b16, #8f180f);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(255, 74, 23, 0.12);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.about-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    transparent 0%,
    rgba(255, 255, 255, 0.13) 42%,
    transparent 58%
  );
  transform: translateX(-130%);
  animation: imageLightSweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

.about-image-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 34px 95px rgba(0, 0, 0, 0.55),
    0 0 95px rgba(255, 74, 23, 0.18);
}

.about-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-top: 70px;
}

.about-content h3,
.skills-title h3 {
  font-size: clamp(32px, 3.4vw, 58px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 5px;
  color: #f4f4f4;
}

.about-content h3 span,
.skills-title h3 {
  color: #ff3f17;
}

.about-content p {
  max-width: 790px;
  margin-top: 18px;
  font-size: clamp(17px, 1.35vw, 25px);
  line-height: 1.28;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.72);
}

/* ================= SKILLS ================= */

.skills-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.skills-title {
  display: flex;
  align-items: center;
  gap: 28px;
}

.skills-title p {
  position: relative;
  font-size: clamp(20px, 2vw, 34px);
  font-weight: 900;
  letter-spacing: 2px;
  color: rgba(255, 75, 22, 0.28);
}

.skills-title p::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 125%;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(-3deg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 112px);
  gap: 44px 76px;
  align-items: center;
}

.skill-icon {
  position: relative;
  width: 112px;
  height: 78px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: transform 0.3s ease;
}

.skill-icon img {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 78px;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.skill-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 85%;
  height: 22px;
  background: rgba(255, 74, 23, 0.65);
  border-radius: 50%;
  filter: blur(18px);
  transform: translateX(-50%) scale(0.75);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.skill-icon:hover {
  transform: translateY(-6px);
}

.skill-icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ================= PROJECTS ================= */

.projects-page {
  position: relative;
  min-height: 100vh;
  padding: 105px 6vw 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 74, 23, 0.28), transparent 34%),
    radial-gradient(circle at 20% 15%, rgba(255, 74, 23, 0.16), transparent 28%),
    linear-gradient(180deg, #160504 0%, #080303 45%, #050202 100%);
  color: var(--text);
}

.projects-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62)),
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.42) 75%);
  pointer-events: none;
  z-index: 0;
}

.projects-page > * {
  position: relative;
  z-index: 2;
}

.projects-socials {
  position: absolute;
  top: 42px;
  left: 6vw;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 5;
}

.projects-socials a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: 0.35s ease;
}

.projects-socials a:hover {
  border-color: rgba(255, 74, 23, 0.72);
  background: rgba(255, 74, 23, 0.14);
  box-shadow: 0 0 24px rgba(255, 74, 23, 0.42);
  transform: translateY(-4px);
}

.projects-socials img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.projects-handle {
  text-align: center;
  color: var(--orange);
  font-size: clamp(18px, 1.6vw, 30px);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 34px;
}

.projects-title {
  text-align: center;
  font-size: clamp(58px, 8.5vw, 130px);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: -5px;
  text-transform: uppercase;
  margin-bottom: 60px;
  background: linear-gradient(180deg, #ffffff 0%, #dadada 45%, #767676 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 35px rgba(255, 255, 255, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.65);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  max-width: 1720px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  min-height: 455px;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.project-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.08) brightness(0.78);
  transform: scale(1.02);
  transition: 0.7s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(circle at 55% 42%, rgba(255, 74, 23, 0.26), transparent 42%);
  z-index: 1;
  transition: 0.5s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 74, 23, 0);
  z-index: 3;
  pointer-events: none;
  transition: 0.45s ease;
}

.project-card h2 {
  position: absolute;
  left: 36px;
  bottom: 230px;
  z-index: 2;
  color: #fff;
  font-size: clamp(22px, 1.8vw, 34px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.75);
  transition: 0.45s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.68),
    0 0 42px rgba(255, 74, 23, 0.18);
}

.project-card:hover img {
  transform: scale(1.1);
  filter: saturate(1.28) contrast(1.15) brightness(0.92);
}

.project-card:hover::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.78) 100%),
    radial-gradient(circle at 55% 42%, rgba(255, 74, 23, 0.42), transparent 45%);
}

.project-card:hover::after {
  border-color: rgba(255, 74, 23, 0.46);
  box-shadow:
    inset 0 0 28px rgba(255, 74, 23, 0.14),
    0 0 28px rgba(255, 74, 23, 0.22);
}

.project-card:hover h2 {
  transform: translateY(-8px);
  text-shadow:
    0 0 18px rgba(255, 74, 23, 0.62),
    0 10px 28px rgba(0, 0, 0, 0.8);
}

/* ================= CONTACT ================= */

.contact-page {
  position: relative;
  min-height: 100vh;
  background: #070303;
  color: #f3efef;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 120px 8%;
}

.contact-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 28%, rgba(255, 74, 23, 0.08), transparent 30%),
    radial-gradient(circle at 88% 70%, rgba(255, 74, 23, 0.06), transparent 30%);
  pointer-events: none;
}

.contact-bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background:
    linear-gradient(115deg, transparent 0%, transparent 12%, rgba(255, 255, 255, 0.16) 12.4%, transparent 13%),
    linear-gradient(68deg, transparent 0%, transparent 88%, rgba(255, 255, 255, 0.14) 88.4%, transparent 89%);
  animation: contactLinesMove 9s ease-in-out infinite;
}

.contact-container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 120px;
  align-items: center;
}

.contact-kicker {
  font-size: 1.15rem;
  letter-spacing: 3px;
  font-weight: 600;
  color: #d8d2d0;
  margin-bottom: 2px;
}

.contact-title {
  font-size: clamp(4.5rem, 8vw, 8.4rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -5px;
  color: #f1eeee;
  margin-bottom: 36px;
}

.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 620px;
}

.contact-social {
  height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 24px;
  color: #f3efef;
  font-size: 1rem;
  font-weight: 600;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.contact-social:hover {
  border-color: rgba(255, 74, 23, 0.85);
  box-shadow: 0 0 35px rgba(255, 74, 23, 0.24);
  transform: translateX(10px);
  background: rgba(255, 74, 23, 0.06);
}

.social-icon {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  outline: none;
  background: #252222;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0 32px;
  border-radius: 9px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input {
  height: 68px;
}

.contact-form textarea {
  height: 310px;
  resize: none;
  padding-top: 30px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #2f2b2b;
  box-shadow:
    0 0 0 1px rgba(255, 74, 23, 0.55),
    0 0 22px rgba(255, 74, 23, 0.15);
}

.contact-form button {
  height: 64px;
  border: none;
  border-radius: 8px;
  background: #f3f3f3;
  color: #2b2929;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.contact-form button:hover {
  background: #ff4a17;
  color: #ffffff;
  box-shadow: 0 0 35px rgba(255, 74, 23, 0.35);
  transform: translateY(-3px);
}

/* ================= JS REVEAL ================= */

.js .about-kicker,
.js .about-image-card,
.js .about-content,
.js .skills-title,
.js .skill-icon,
.js .projects-socials,
.js .projects-handle,
.js .projects-title,
.js .project-card,
.js .contact-kicker,
.js .contact-title,
.js .contact-social,
.js .contact-form {
  opacity: 0;
  filter: blur(10px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease;
  will-change: transform, opacity, filter;
}

.js .about-kicker {
  transform: translateX(-80px) translateY(35px);
}

.js .about-image-card {
  transform: translateY(90px) scale(0.94) rotate(-2deg);
}

.js .about-content,
.js .skills-title {
  transform: translateX(85px) translateY(40px);
}

.js .skill-icon {
  transform: translateY(38px) scale(0.82);
}

.js .projects-socials,
.js .projects-handle,
.js .projects-title,
.js .project-card,
.js .contact-kicker,
.js .contact-title,
.js .contact-social {
  transform: translateY(45px);
}

.js .contact-form {
  transform: translateX(60px);
}

.js .is-visible {
  opacity: 1 !important;
  filter: blur(0) !important;
  transform: translateX(0) translateY(0) scale(1) rotate(0) !important;
}

.js .about-image-card.is-visible:hover {
  transform: translateY(-8px) scale(1.01) !important;
}

.js .skill-icon.is-visible:hover {
  transform: translateY(-6px) scale(1) !important;
}

.js .project-card.is-visible:hover {
  transform: translateY(-8px) !important;
}

.js .skill-icon:nth-child(1) { transition-delay: 0.05s; }
.js .skill-icon:nth-child(2) { transition-delay: 0.12s; }
.js .skill-icon:nth-child(3) { transition-delay: 0.19s; }
.js .skill-icon:nth-child(4) { transition-delay: 0.26s; }
.js .skill-icon:nth-child(5) { transition-delay: 0.33s; }
.js .skill-icon:nth-child(6) { transition-delay: 0.40s; }
.js .skill-icon:nth-child(7) { transition-delay: 0.47s; }
.js .skill-icon:nth-child(8) { transition-delay: 0.54s; }

.js .project-card:nth-child(1) { transition-delay: 0.05s; }
.js .project-card:nth-child(2) { transition-delay: 0.12s; }
.js .project-card:nth-child(3) { transition-delay: 0.19s; }
.js .project-card:nth-child(4) { transition-delay: 0.26s; }
.js .project-card:nth-child(5) { transition-delay: 0.33s; }

.js .contact-kicker { transition-delay: 0.05s; }
.js .contact-title { transition-delay: 0.15s; }
.js .contact-social:nth-child(1) { transition-delay: 0.25s; }
.js .contact-social:nth-child(2) { transition-delay: 0.35s; }
.js .contact-social:nth-child(3) { transition-delay: 0.45s; }
.js .contact-form { transition-delay: 0.32s; }

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-card {
    min-height: 420px;
  }

  .project-card h2 {
    bottom: 190px;
  }
}

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
    padding-bottom: 90px;
  }

  .hero-grid {
    position: relative;
    inset: auto;
    height: auto;
    width: min(92%, 900px);
    margin: 0 auto;
    padding-top: 130px;
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  .intro,
  .hero-copy {
    position: relative;
    left: auto;
    top: auto;
  }

  .intro {
    order: 1;
  }

  .intro-small-text {
    width: 230px;
    margin-bottom: 30px;
  }

  .intro-name-text,
  .intro-name-text2 {
    width: 100%;
    max-width: 620px;
  }

  .hero-copy {
    order: 2;
    max-width: 100%;
  }

  .nav-links {
    gap: 30px;
  }

  .nav-links a {
    font-size: 18px;
  }

  .about {
    padding: 70px 6vw;
  }

  .about-wrap {
    grid-template-columns: 1fr;
    gap: 60px;
  }

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

  .about-kicker {
    padding-left: 0;
    width: 100%;
  }

  .about-right {
    padding-top: 0;
    gap: 60px;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 112px);
    gap: 28px;
    justify-content: center;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-page {
    align-items: flex-start;
    padding: 110px 7% 75px;
  }

  .contact-title {
    font-size: clamp(4rem, 13vw, 6.8rem);
  }

  .contact-socials {
    max-width: 100%;
  }

  .js .contact-form {
    transform: translateY(45px);
  }

  .js .contact-form.is-visible {
    transform: translateY(0) !important;
  }
}

@media (max-width: 900px) {
  .projects-page {
    padding: 90px 5vw 55px;
  }

  .projects-socials {
    position: relative;
    top: auto;
    left: auto;
    justify-content: center;
    margin-bottom: 24px;
  }

  .projects-title {
    letter-spacing: -3px;
    margin-bottom: 45px;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card {
    min-height: 390px;
  }

  .project-card h2 {
    left: 28px;
    bottom: 155px;
  }
}

@media (max-width: 760px) {
  .navbar {
    position: absolute;
    flex-wrap: wrap;
    gap: 18px;
    transform: translateX(-50%);
  }

  .navbar.scrolled {
    position: fixed;
    transform: translateX(-50%);
  }

  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: center;
    gap: 24px;
  }

  .contact-btn {
    margin-left: auto;
  }

  .intro-small-text {
    width: 200px;
  }

  .hero-copy h2 {
    font-size: 32px;
  }

  .hero-copy p {
    font-size: 16px;
  }
}

@media (max-width: 650px) {
  .about {
    padding: 55px 22px;
  }

  .about-kicker h2 {
    letter-spacing: 4px;
  }

  .about-kicker p {
    letter-spacing: 3px;
  }

  .about-image-card {
    border-radius: 16px;
  }

  .skills-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 112px);
    gap: 22px;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .contact-page {
    padding: 95px 5% 60px;
  }

  .contact-kicker {
    font-size: 0.95rem;
    letter-spacing: 2px;
  }

  .contact-title {
    font-size: clamp(3.4rem, 16vw, 4.8rem);
    letter-spacing: -2.5px;
    margin-bottom: 30px;
  }

  .contact-socials {
    gap: 16px;
  }

  .contact-social {
    height: 66px;
    padding: 0 16px;
    gap: 16px;
    border-radius: 18px;
  }

  .social-icon {
    width: 50px;
    height: 50px;
  }

  .social-icon img {
    width: 24px;
    height: 24px;
  }

  .contact-form input {
    height: 60px;
  }

  .contact-form textarea {
    height: 220px;
    padding-top: 24px;
  }

  .contact-form input,
  .contact-form textarea {
    padding-left: 22px;
    padding-right: 22px;
    font-size: 0.85rem;
  }

  .contact-form button {
    height: 58px;
  }
}

@media (max-width: 560px) {
  .projects-page {
    padding: 80px 18px 42px;
  }

  .projects-socials {
    gap: 16px;
  }

  .projects-socials a {
    width: 44px;
    height: 44px;
  }

  .projects-socials img {
    width: 21px;
    height: 21px;
  }

  .projects-title {
    font-size: 58px;
    letter-spacing: -2px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-card {
    min-height: 360px;
  }

  .project-card h2 {
    bottom: 140px;
    left: 26px;
    font-size: 30px;
  }
}

/* ================= KEYFRAMES ================= */

@keyframes heroImageSmooth {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-55px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(45px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes arrowPulse {
  0%, 100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(4px);
  }
}

@keyframes leftFloat1 {
  0% {
    transform: rotate(10deg) translate3d(0, 0, 0);
  }

  100% {
    transform: rotate(14deg) translate3d(30px, -20px, 0);
  }
}

@keyframes leftFloat2 {
  0% {
    transform: rotate(-8deg) translate3d(0, 0, 0);
  }

  100% {
    transform: rotate(-4deg) translate3d(25px, 25px, 0);
  }
}

@keyframes rightFloat1 {
  0% {
    transform: rotate(-12deg) translate3d(0, 0, 0);
  }

  100% {
    transform: rotate(-8deg) translate3d(-30px, -18px, 0);
  }
}

@keyframes rightFloat2 {
  0% {
    transform: rotate(9deg) translate3d(0, 0, 0);
  }

  100% {
    transform: rotate(13deg) translate3d(-22px, 22px, 0);
  }
}

@keyframes aboutLineMove {
  0% {
    transform: rotate(0deg) translateX(0);
  }

  50% {
    transform: rotate(180deg) translateX(28px);
  }

  100% {
    transform: rotate(360deg) translateX(0);
  }
}

@keyframes aboutGlowBreath {
  from {
    opacity: 0.72;
    transform: scale(1);
  }

  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes imageLightSweep {
  0%, 65% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(130%);
  }
}

@keyframes contactLinesMove {
  0% {
    transform: translateX(-35px);
  }

  50% {
    transform: translateX(35px);
  }

  100% {
    transform: translateX(-35px);
  }
}

/* ================= ACCESSIBILITY ================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-bg {
    transform: scale(1) !important;
  }

  .logo,
  .nav-links a,
  .contact-btn,
  .intro-small-text,
  .intro-name-text,
  .intro-name-text2,
  .hero-copy h2,
  .hero-copy p,
  .about-kicker,
  .about-image-card,
  .about-content,
  .skills-title,
  .skill-icon,
  .projects-socials,
  .projects-handle,
  .projects-title,
  .project-card,
  .contact-kicker,
  .contact-title,
  .contact-social,
  .contact-form {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}