* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, "Segoe UI", sans-serif;
}

:root {
  --bg: #efe7dc;
  --cream: #f7f1e8;
  --peach: #f3a987;
  --peach-dark: #d77d5d;
  --brown: #46312c;
  --dark: #1c1917;
  --muted: #7b716a;
  --white: #ffffff;
  --black: #050505;
  --shadow: 0 28px 80px rgba(82, 55, 42, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 18% 20%, rgba(243, 169, 135, 0.45), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.55), transparent 26%),
    linear-gradient(135deg, #efe7dc, #f7d8c8 45%, #efe6dc);
  color: var(--dark);
  overflow-x: hidden;
}

/* PAGE SCROLLBAR */
body::-webkit-scrollbar {
  width: 11px;
}

body::-webkit-scrollbar-track {
  background: #efe7dc;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--peach-dark), var(--dark));
  border-radius: 999px;
  border: 3px solid #efe7dc;
}

/* LOADER */
.loader {
  position: fixed;
  inset: 0;
  background: #efe7dc;
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader.hide {
  transform: translateY(-100%);
}

.loader-content {
  width: min(520px, 90%);
  text-align: center;
}

.loader-content p {
  color: var(--peach-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.loader-content h1 {
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -4px;
  margin-bottom: 26px;
}

.loader-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--dark);
}

.loader-content small {
  display: block;
  margin-top: 12px;
  font-weight: 900;
}

/* CUSTOM CURSOR */
.cursor-glow {
  width: 360px;
  height: 360px;
  position: fixed;
  border-radius: 50%;
  background: rgba(243, 169, 135, 0.22);
  filter: blur(70px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.custom-cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor-ring {
  position: fixed;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(215, 125, 93, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border 0.25s ease, background 0.25s ease;
  backdrop-filter: blur(2px);
}

.mouse-trail {
  position: fixed;
  width: 12px;
  height: 12px;
  pointer-events: none;
  border-radius: 50%;
  z-index: 999997;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--peach-dark), transparent 70%);
  animation: trailFade 0.8s ease forwards;
}

.mouse-spark {
  position: fixed;
  width: 7px;
  height: 7px;
  pointer-events: none;
  border-radius: 50%;
  z-index: 999997;
  transform: translate(-50%, -50%);
  background: var(--peach-dark);
  box-shadow: 0 0 18px rgba(215, 125, 93, 0.8);
  animation: sparkMove 0.7s ease forwards;
}

body.cursor-hover .custom-cursor {
  width: 16px;
  height: 16px;
  background: var(--peach-dark);
}

body.cursor-hover .cursor-ring {
  width: 64px;
  height: 64px;
  border-color: rgba(28, 25, 23, 0.35);
  background: rgba(243, 169, 135, 0.12);
}

@media (min-width: 769px) {
  body,
  a,
  button,
  input,
  textarea,
  select {
    cursor: none;
  }
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 22px;
  left: 50%;
  width: min(1160px, calc(100% - 32px));
  height: 68px;
  transform: translateX(-50%);
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(247, 241, 232, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(22px);
  box-shadow: 0 22px 60px rgba(82, 55, 42, 0.14);
}

.logo {
  color: var(--dark);
  text-decoration: none;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dark);
  background: var(--white);
}

.nav-btn {
  justify-self: end;
  color: var(--white);
  background: var(--dark);
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  color: var(--dark);
  background: var(--white);
  cursor: pointer;
}

/* COMMON */
.section {
  width: min(1160px, calc(100% - 32px));
  min-height: 100vh;
  margin: auto;
  padding: 130px 0 90px;
  position: relative;
}

.reveal {
  opacity: 0;
  transform: translateY(55px);
  filter: blur(10px);
  transition: 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.eyebrow {
  color: var(--peach-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 13px;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 50px;
  overflow: hidden;
}

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  z-index: -1;
}

.circle-one {
  width: 460px;
  height: 460px;
  background: rgba(243, 169, 135, 0.32);
  left: -160px;
  top: 170px;
}

.circle-two {
  width: 360px;
  height: 360px;
  background: rgba(255, 255, 255, 0.5);
  right: -100px;
  top: 140px;
}

.hero-content h1 {
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.88;
  letter-spacing: -6px;
  margin: 18px 0 28px;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.35s;
}

.btn.primary {
  background: var(--dark);
  color: var(--white);
}

.btn.secondary {
  background: var(--white);
  color: var(--dark);
}

.hero-visual {
  min-height: 520px;
}

.main-card {
  width: min(100%, 420px);
  min-height: 470px;
  margin-left: auto;
  border-radius: 36px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  animation: floatCard 5s ease-in-out infinite;
}

.card-header {
  display: flex;
  gap: 8px;
  margin-bottom: 34px;
}

.card-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.card-header span:nth-child(1) {
  background: #ff5f57;
}

.card-header span:nth-child(2) {
  background: #ffbd2e;
}

.card-header span:nth-child(3) {
  background: #28c840;
}

.card-title small {
  color: var(--muted);
  font-weight: 800;
}

.card-title h3 {
  font-size: 34px;
  margin-top: 8px;
}

.analytics-box {
  margin: 30px 0;
  padding: 24px;
  border-radius: 28px;
  background: var(--dark);
  color: var(--white);
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 24px;
  min-height: 180px;
}

.analytics-box h4 {
  font-size: 48px;
}

.analytics-box p {
  color: rgba(255, 255, 255, 0.6);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.bars i {
  flex: 1;
  background: linear-gradient(var(--peach), #fff);
  border-radius: 999px 999px 8px 8px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-stats div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
}

.mini-stats strong {
  display: block;
  font-size: 24px;
}

.mini-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.floating-tag {
  position: absolute;
  z-index: 5;
  padding: 12px 16px;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  animation: floatingTag 5s ease-in-out infinite;
}

.tag-one {
  top: 22%;
  right: 33%;
}

.tag-two {
  top: 52%;
  right: 4%;
  animation-delay: 0.7s;
}

.tag-three {
  bottom: 18%;
  right: 36%;
  animation-delay: 1.2s;
}

/* STATEMENT */
.statement {
  width: 100%;
  max-width: none;
  background: rgba(255, 255, 255, 0.32);
  display: grid;
  place-items: center;
  text-align: center;
  padding-left: 24px;
  padding-right: 24px;
}

.statement h2 {
  width: min(1000px, 100%);
  font-size: clamp(44px, 8vw, 122px);
  line-height: 0.95;
  letter-spacing: -5px;
  color: #7a716b;
}

/* HEADINGS */
.section-heading {
  max-width: 780px;
  margin: 0 auto 55px;
  text-align: center;
}

.section-heading p {
  color: var(--peach-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-heading h2,
.about-content h2,
.contact-panel h2 {
  font-size: clamp(38px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: -4px;
  margin-bottom: 18px;
}

.section-heading span {
  color: var(--muted);
  line-height: 1.8;
}

/* GRIDS */
.services-grid,
.work-grid,
.about,
.contact-grid {
  display: grid;
  gap: 24px;
}

.services-grid,
.work-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* CARDS */
.service-card,
.work-card,
.skills-card,
.contact-form,
.contact-info {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  transition: 0.35s;
}

.service-card:hover,
.work-card:hover,
.skills-card:hover,
.contact-form:hover,
.contact-info:hover {
  transform: translateY(-10px);
}

.service-card {
  padding: 30px;
}

.service-card span {
  color: var(--peach-dark);
  font-weight: 900;
}

.service-card i {
  display: block;
  font-size: 38px;
  margin: 28px 0 18px;
}

.service-card h3 {
  font-size: 28px;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.75;
}

/* WORK */
.work-card {
  cursor: pointer;
  overflow: hidden;
}

.work-image {
  height: 240px;
  border-radius: 30px 30px 0 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 56px;
}

.project-thumb {
  height: 240px;
  overflow: hidden;
  background: #f7f1e8;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: 0.45s ease;
}

.work-card:hover .project-thumb img {
  transform: scale(1.06);
}

.image-one {
  background: linear-gradient(135deg, #1c1917, #f3a987);
}

.image-two {
  background: linear-gradient(135deg, #46312c, #b98b64);
}

.image-three {
  background: linear-gradient(135deg, #0f4c5c, #9dd9d2);
}

.work-content {
  padding: 28px;
}

.work-content p {
  color: var(--peach-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.work-content h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.work-content span {
  display: block;
  color: var(--muted);
  line-height: 1.75;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.project-tags small {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.08);
  font-size: 11px;
  font-weight: 900;
}

.view-project-btn {
  margin-top: 22px;
  border: none;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

/* MARQUEE */
.marquee-section {
  overflow: hidden;
  padding: 60px 0;
}

.marquee {
  display: flex;
  gap: 38px;
  white-space: nowrap;
  animation: marqueeMove 18s linear infinite;
}

.marquee span {
  font-size: clamp(58px, 12vw, 160px);
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -6px;
}

/* ABOUT */
.about {
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
}

.about-content p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 18px;
}

.skills-card {
  padding: 32px;
}

.skills-card h3 {
  font-size: 30px;
  margin-bottom: 25px;
}

.skill {
  margin-bottom: 22px;
}

.skill div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 900;
}

.skill small {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.skill b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--dark), var(--peach));
  border-radius: 999px;
}

/* CONTACT */
.contact-panel {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 55px;
}

.contact-panel p {
  color: var(--peach-dark);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact-panel span {
  color: var(--muted);
  line-height: 1.8;
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-info,
.contact-form {
  padding: 30px;
}

.contact-info h3 {
  font-size: 34px;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--muted);
  line-height: 1.8;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.contact-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--muted);
}

.contact-list i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  display: grid;
  place-items: center;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.75);
  color: var(--dark);
  outline: none;
}

.contact-form button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 999px;
  color: var(--white);
  background: var(--dark);
  font-weight: 900;
  cursor: pointer;
}

/* FOOTER */
.footer-3d {
  width: min(1160px, calc(100% - 32px));
  margin: 60px auto 0;
  padding: 60px;
  min-height: 360px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 48% 20%, rgba(243, 169, 135, 0.34), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr 0.75fr;
  align-items: center;
  gap: 45px;
  overflow: hidden;
  position: relative;
}

.footer-brand {
  z-index: 2;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  text-decoration: none;
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 18px;
}

.footer-logo span {
  width: 50px;
  height: 50px;
  color: var(--white);
  background: var(--dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.footer-brand p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 430px;
}

.footer-cartoon {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  position: relative;
}

.cartoon-shadow {
  position: absolute;
  bottom: 18px;
  width: 180px;
  height: 34px;
  border-radius: 50%;
  background: rgba(28, 25, 23, 0.16);
  filter: blur(8px);
  animation: shadowPulse 4s ease-in-out infinite;
}

.cartoon-person {
  position: relative;
  width: 190px;
  height: 250px;
  animation: cartoonFloat 4.5s ease-in-out infinite;
}

.cartoon-head {
  position: absolute;
  top: 18px;
  left: 68px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc7a8, #f3a987);
  z-index: 3;
}

.cartoon-head::before,
.cartoon-head::after {
  content: "";
  position: absolute;
  top: 26px;
  width: 7px;
  height: 7px;
  background: var(--dark);
  border-radius: 50%;
}

.cartoon-head::before {
  left: 18px;
}

.cartoon-head::after {
  right: 18px;
}

.cartoon-hair {
  position: absolute;
  top: 8px;
  left: 60px;
  width: 82px;
  height: 38px;
  border-radius: 50px 50px 20px 20px;
  background: var(--dark);
  transform: rotate(-8deg);
  z-index: 4;
}

.cartoon-body {
  position: absolute;
  top: 82px;
  left: 48px;
  width: 105px;
  height: 112px;
  border-radius: 32px 32px 42px 42px;
  background: linear-gradient(135deg, var(--dark), #46312c);
  transform: rotate(-3deg);
  z-index: 2;
}

.cartoon-body::before {
  content: "DS";
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--peach);
  font-weight: 900;
  font-size: 24px;
}

.cartoon-arm {
  position: absolute;
  top: 105px;
  width: 82px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffc7a8, #f3a987);
  z-index: 1;
}

.arm-left {
  left: 4px;
  transform: rotate(28deg);
  animation: leftArmWave 3s ease-in-out infinite;
}

.arm-right {
  right: 0;
  transform: rotate(-30deg);
  animation: rightArmWave 3s ease-in-out infinite;
}

.cartoon-leg {
  position: absolute;
  bottom: 36px;
  width: 86px;
  height: 28px;
  border-radius: 999px;
  background: #46312c;
  z-index: 1;
}

.leg-left {
  left: 28px;
  transform: rotate(24deg);
}

.leg-right {
  right: 20px;
  transform: rotate(-24deg);
}

.cartoon-shoe {
  position: absolute;
  bottom: 18px;
  width: 62px;
  height: 25px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--peach), var(--peach-dark));
  z-index: 2;
}

.shoe-left {
  left: 12px;
  transform: rotate(18deg);
}

.shoe-right {
  right: 8px;
  transform: rotate(-12deg);
}

.footer-menu {
  justify-self: end;
}

.footer-menu h3 {
  font-size: 22px;
  margin-bottom: 18px;
}

.footer-menu a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  margin-bottom: 13px;
}

.footer-bottom {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 35px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 700;
}

/* MODAL */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.project-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.58);
  backdrop-filter: blur(18px);
}

.modal-box {
  position: relative;
  z-index: 2;
  width: min(1080px, 100%);
  max-height: 90vh;
  overflow: hidden;
  border-radius: 36px;
  background:
    radial-gradient(circle at 12% 15%, rgba(243, 169, 135, 0.28), transparent 28%),
    rgba(247, 241, 232, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 40px 120px rgba(28, 25, 23, 0.35);
  padding: 28px;
  animation: modalOpen 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-scroll {
  max-height: calc(90vh - 56px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 14px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--peach-dark) rgba(255, 255, 255, 0.45);
}

.modal-scroll::-webkit-scrollbar {
  width: 8px;
}

.modal-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  margin: 8px 0;
}

.modal-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--peach-dark), var(--dark));
  border-radius: 999px;
  border: 2px solid rgba(247, 241, 232, 0.95);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 34px;
  z-index: 10;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  cursor: pointer;
  font-size: 18px;
}

.modal-gallery {
  display: grid;
  gap: 16px;
}

.modal-gallery img {
  width: 100%;
  display: block;
  object-fit: cover;
}

#modalImageMain {
  height: 430px;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(82, 55, 42, 0.18);
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.modal-thumbs img {
  height: 105px;
  border-radius: 18px;
  cursor: pointer;
  border: 3px solid transparent;
  object-fit: cover;
  object-position: top;
}

.modal-thumbs img:hover,
.modal-thumbs img.active-thumb {
  border-color: var(--peach-dark);
}

.modal-content {
  padding: 70px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-content p {
  color: var(--peach-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  margin-bottom: 12px;
}

.modal-content h2 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.92;
  letter-spacing: -4px;
  margin-bottom: 22px;
}

.modal-content span {
  color: var(--muted);
  line-height: 1.85;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0;
}

.modal-tags small {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.08);
  font-size: 11px;
  font-weight: 900;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-live-btn,
.modal-secondary-btn {
  border: none;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.modal-live-btn {
  background: var(--dark);
  color: var(--white);
}

.modal-secondary-btn {
  background: var(--white);
  color: var(--dark);
}

body.modal-open {
  overflow: hidden;
}

/* ANIMATIONS */
.magnetic,
.tilt {
  will-change: transform;
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-18px) rotate(1deg);
  }
}

@keyframes floatingTag {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@keyframes marqueeMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes cartoonFloat {
  0%, 100% {
    transform: translateY(0) rotateY(-8deg) rotateZ(-2deg);
  }

  50% {
    transform: translateY(-18px) rotateY(8deg) rotateZ(2deg);
  }
}

@keyframes shadowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(0.82);
    opacity: 0.28;
  }
}

@keyframes leftArmWave {
  0%, 100% {
    transform: rotate(28deg);
  }

  50% {
    transform: rotate(42deg);
  }
}

@keyframes rightArmWave {
  0%, 100% {
    transform: rotate(-30deg);
  }

  50% {
    transform: rotate(-44deg);
  }
}

@keyframes modalOpen {
  from {
    opacity: 0;
    transform: translateY(45px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes trailFade {
  0% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.7);
  }
}

@keyframes sparkMove {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--spark-x)),
        calc(-50% + var(--spark-y))
      )
      scale(0);
  }
}

/* RESPONSIVE */
@media (max-width: 1050px) {
  .hero,
  .about,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    text-align: center;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: auto;
  }

  .main-card {
    margin: 40px auto 0;
  }

  .services-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .floating-tag {
    display: none;
  }

  .footer-3d {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 45px 28px;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand p {
    margin: auto;
  }

  .footer-menu {
    justify-self: center;
    text-align: center;
  }

  .modal-scroll {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 10px 4px 8px;
  }

  #modalImageMain {
    height: 330px;
  }
}

@media (max-width: 760px) {
  .custom-cursor,
  .cursor-ring,
  .mouse-trail,
  .mouse-spark {
    display: none;
  }

  .navbar {
    top: 12px;
    width: calc(100% - 24px);
    grid-template-columns: 1fr auto;
    height: 62px;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: -110%;
    width: 240px;
    flex-direction: column;
    padding: 20px;
    border-radius: 24px;
    background: rgba(247, 241, 232, 0.94);
    box-shadow: var(--shadow);
    transition: 0.35s;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    text-align: center;
  }

  .nav-btn {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .section {
    width: calc(100% - 24px);
    padding-top: 110px;
    padding-bottom: 70px;
    min-height: auto;
  }

  .hero-content h1,
  .statement h2,
  .section-heading h2,
  .about-content h2,
  .contact-panel h2 {
    font-size: 42px;
    letter-spacing: -2px;
  }

  .hero-text {
    font-size: 15px;
  }

  .analytics-box {
    grid-template-columns: 1fr;
  }

  .main-card {
    min-height: auto;
    padding: 24px;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .footer-3d {
    border-radius: 30px;
    padding: 36px 22px;
  }

  .footer-logo {
    font-size: 28px;
  }

  .footer-logo span {
    width: 44px;
    height: 44px;
  }

  .footer-cartoon {
    height: 240px;
  }

  .cartoon-person {
    transform: scale(0.85);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .project-modal {
    padding: 12px;
  }

  .modal-box {
    max-height: 92vh;
    border-radius: 24px;
    padding: 18px;
  }

  .modal-scroll {
    max-height: calc(92vh - 36px);
    padding-right: 8px;
  }

  .modal-scroll::-webkit-scrollbar {
    width: 6px;
  }

  .modal-close {
    top: 18px;
    right: 24px;
    width: 42px;
    height: 42px;
  }

  #modalImageMain {
    height: 240px;
    border-radius: 20px;
  }

  .modal-thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .modal-thumbs img {
    height: 72px;
    border-radius: 12px;
  }

  .modal-content h2 {
    font-size: 38px;
    letter-spacing: -2px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-live-btn,
  .modal-secondary-btn {
    width: 100%;
    text-align: center;
  }
}