/* === Project Intro Section === */
.project-intro {
  margin-top: 140px;
  max-width: 1400px;
  margin-inline: auto;
  border-radius: 40px;
}

.project-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 auto;
  gap: 320px;
}

.project-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-role {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.project-title {
  font-size: 45px;
  font-weight: 800;
  margin: 0;
}

.project-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 16px;
  text-decoration: none;
  color: black;
  font-weight: 500;
}

.project-link:hover {
  text-decoration: underline;
}

.project-right {
  flex: 2;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}

/* ===== Tools Section ===== */
.tools-section {
  margin-top: 50px !important;
  max-width: 1400px;
  margin-inline: auto;
  border-radius: 40px;
}

.tools-wrapper {
  margin: 0 auto;
  position: relative;
}

.tools-items {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.tool-btn {
  background: #fff;
  border: 2px solid #000;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: default;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.tool-btn:hover {
  transform: translateY(-3px);
  background-color: #f9f9f9;
}

.sparkle-img {
  width: 18px;
  height: 18px;
  margin: 0 8px;
}

.design-focus-section {
  margin-top: 50px;
}

.target-discipline-header .section-title img {
  margin-top: 50px !important;
  margin-left: 350px;
  transform: rotate(180deg) scaleX(-1);
}
.nav-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.circle-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #333;
  border-radius: 50%;
  background: #fff;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.circle-btn:hover {
  background: #f2f2f2;
  transform: scale(1.1);
}

.circle-btn:active {
  background: #ddd;
}
.about-container {
  margin-top: -10px;
}

/* ==== Result Section ==== */
.result-section {
  margin-top: 50px;
  background-color: #ffdff5;
  padding: 40px 20px;
}

.result-container {
  display: flex;
  justify-content: space-between;
  gap: 100px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: flex-start;
}

.result-left {
  flex: 1;
}

.result-text {
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}

.small-image-box {
  position: absolute;
  margin-top: 10px;
  max-width: 250px;
  margin-left: 250px;
  transform: rotate(5deg);
}

.small-image-box img {
  height: 220px;
  width: 100%;
  border-radius: 16px;
  border: 7px solid #e69bf0;
  outline: 1px solid rgb(66, 61, 61);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.result-right {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.result-right .main-image {
  border: 7px solid #7dc1ee;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ===== Service Section ===== */
.service-section {
  margin-top: 10px;
  max-width: 1400px;
  margin-inline: auto;
  border-radius: 40px;
}

.tablet-frame {
  position: relative;
  background-color: #f7e48b;
  border-radius: 20px;
  padding: 10px 65px;
  max-width: 1400px;
  margin: 0 auto;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.tablet-content img {
  height: 560px;
  object-fit: cover;
  width: 100%;
  border-radius: 12px;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #000;
  background-color: transparent;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.nav-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-50%) scale(1.1);
}

.left-btn {
  left: 15px;
}
.right-btn {
  right: 15px;
}

.mobile-nav {
  display: none !important;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #000;
  background: #fff;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}

.prototype-section {
  display: flex;
  justify-content: end;
  margin-top: 220px;
  max-width: 1400px;
  margin-inline: auto;
  border-radius: 40px;
}

.prototype-btn {
  display: inline-block;
  background-color: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.prototype-btn:hover {
  background-color: #333;
  transform: scale(1.05);
}

.prototype-btn:active {
  background-color: #555;
}

/* #page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse at center,
    rgba(2, 6, 23, 0.6),
    rgba(2, 6, 23, 0.85)
  );
  z-index: 9999;
  pointer-events: auto;
  transition: opacity 420ms ease, visibility 420ms ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  transform-origin: center;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(3, 8, 30, 0.7),
    0 0 40px rgba(99, 102, 241, 0.08) inset;
}

.loader-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.7;
  z-index: 0;
  animation: glow-pulse 2.6s ease-in-out infinite;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(99, 102, 241, 0.5),
    rgba(59, 130, 246, 0.25),
    transparent 60%
  );
}

@keyframes glow-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.6;
    filter: blur(18px);
  }
  50% {
    transform: scale(1.06);
    opacity: 0.95;
    filter: blur(30px);
  }
  100% {
    transform: scale(0.92);
    opacity: 0.6;
    filter: blur(18px);
  }
}

.loader-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  transform-origin: center;
  animation: cute-bounce 1.2s cubic-bezier(0.2, 0.9, 0.3, 1) infinite;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.6),
    0 0 0 6px rgba(99, 102, 241, 0.06);
  border: 3px solid rgba(255, 255, 255, 0.06);
}

@keyframes cute-bounce {
  0% {
    transform: translateY(0) rotate(-2deg);
  }
  20% {
    transform: translateY(-14px) rotate(4deg);
  }
  40% {
    transform: translateY(0) rotate(-2deg);
  }
  60% {
    transform: translateY(-8px) rotate(3deg);
  }
  100% {
    transform: translateY(0) rotate(-2deg);
  }
}

.sparkle {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 18px;
  height: 18px;
  z-index: 3;
  filter: drop-shadow(0 6px 8px rgba(59, 130, 246, 0.18));
  animation: sparkle-scale 1.6s ease-in-out infinite;
  opacity: 0.95;
}

@keyframes sparkle-scale {
  0% {
    transform: scale(0.9) translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.25) translateY(-6px);
    opacity: 1;
  }
  100% {
    transform: scale(0.9) translateY(0);
    opacity: 0.6;
  }
}
.loader-dots span {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  opacity: 0.7;
  transform-origin: center;
  animation: dot-jump 1s infinite;
}
.loader-dots span:nth-child(2) {
  animation-delay: 0.12s;
}
.loader-dots span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes dot-jump {
  0% {
    transform: translateY(0) scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-8px) scale(1.15);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(0.9);
    opacity: 0.6;
  }
} */

@media (max-width: 768px) {
  /* .loader-card {
    width: 80px;
    height: 80px;
  }
  .loader-img {
    width: 50px;
    height: 50px;
  }
  .loader-glow {
    width: 150px;
    height: 150px;
  } */
  .prototype-section {
    display: none;
  }
  .project-container {
    flex-direction: column;
    gap: 10px;
    margin-top: -50px !important;
  }
  .tools-section {
    margin-top: 10px !important;
  }
  .tool-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
  .tools-items {
    margin-top: 45px;
    gap: 15px;
    display: flex;
    justify-content: flex-end;
  }
  .sparkle-img {
    display: none;
  }
  .tools-wrapper .section-title img {
    margin-left: -30px;
    width: 70px;
  }
  .design-focus-section {
    margin-top: 30px;
  }
  .design-focus-header {
    margin-top: 60px;
  }
  .design-focus-header h2 {
    font-size: 22px !important;
    line-height: 32px !important;
    font-weight: 500;
  }

  .target-discipline-section {
    margin-top: -70px !important;
  }
  .target-discipline-header .section-title img {
    margin-top: 170px !important;
    margin-left: 20px;
  }
  .nav-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
  }
  .about-me .section-title img {
    width: 70px;
  }
  .about-container {
    margin-top: 50px;
  }
  .result-container {
    gap: 20px;
    flex-direction: column;
  }
  .result-right .main-image {
    margin-bottom: 80px;
  }
  .small-image-box {
    margin-top: 300px;
    max-width: 250px;
    margin-left: 20px;
  }
  .left-btn,
  .right-btn {
    display: none;
  }
  .tablet-content img {
    height: 200px;
  }
  .tablet-frame {
    padding: 10px 10px 45px 10px;
  }
  .service-section {
    margin-top: 220px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }
  .mobile-nav {
    margin-bottom: 4px;
    margin-top: -10px;
    position: absolute;
    display: flex !important;
  }
  .mobile-nav button {
    background-color: transparent !important;
  }
  .mobile-nav button:hover {
    background-color: white;
  }
}

/* ---------------------------------------------------------------------- */
.about-slide-wp {
  position: relative;
  width: 546px;
  height: 480px;
  padding: 60px 0 60px;
}

.about-slide-layer-wp {
  position: absolute;
  width: 546px;
  height: 480px;
  opacity: 1;
  transform: translateX(0) scale(1);
  transition: transform 0.5s linear, opacity 0.5s linear;
  z-index: 1;
}
@media (max-width: 768px) {
  .about-slide-wp {
    width: 325px;
    height: 286px;
    padding: 0;
  }
  .about-slide-layer-wp {
    width: 325px;
    height: 286px;
  }
}

.about-slide-layer-wp.is-top {
  z-index: 100;
}

.about-slide-layer-wp.is-hidden {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.about-slide-layer {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid #030303;
  padding: 12px;
  transition: transform 0.5s linear;
}

.about-slide-layer-image {
  width: 100%;
  height: 100%;
  border: 1px solid #030303;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.about-slide-layer img {
  width: 100%;
  height: auto;
}

.about-slide-layer-wp:nth-child(1) .about-slide-layer {
  transform: rotate(12deg);
}
.about-slide-layer-wp:nth-child(2) .about-slide-layer {
  transform: rotate(-12deg);
}
.about-slide-layer-wp:nth-child(3) .about-slide-layer {
  transform: rotate(0deg);
}

.about-slide-layer-wp.is-top .about-slide-layer {
  transform: rotate(0deg);
}

.about-slide-layer-wp.out-next {
  transform: translateX(-500px) scale(0.05);
  opacity: 0;
}
.about-slide-layer-wp.out-next .about-slide-layer {
  transform: rotate(-360deg);
}

.intro-text-anim {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.intro-text-anim.text-out {
  opacity: 0;
  transform: translateY(8px);
}

.intro-text-anim.text-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .section-title {
    margin-bottom: 30px;
  }
}

.projects-wrapper {
  justify-content: space-between;
  gap: 0;
}

.project-card {
  box-sizing: border-box;
  width: 432px;
  height: auto;
}

.project-card img {
  height: 250px;
}

.btn:hover {
  background: inherit;
}

.project-card button span {
  color: #000;
}

@media (max-width: 768px) {
  .featured-projects {
    margin-top: 60px !important;
  }
}

.discipline-card:hover {
  animation: none;
}

.tools-items {
  justify-content: flex-end;
}

.tablet-frame {
  padding: 12px;
}

.tablet-content {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
}
