@font-face {
  font-family: 'Thurkle';
  src: url('../../fonts/thurkleregular-6y17g.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-color: #0C0C0C;
  --bg-darker: #000000;
  --bg-light: #FFFFFF;
  --text-light: #D7E2EA;
  --text-white: #FFFFFF;
  --text-dark: #111111;
  --font-primary: 'Kanit', sans-serif;
  --font-display: 'Thurkle', sans-serif;
}

/* ─────────────────────────────────────────
   GLOBAL STYLES
   ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background-color: var(--bg-color);
  color: var(--text-light);
  font-family: var(--font-primary);
  overflow-x: hidden;
  scroll-behavior: auto;
  /* Handled by Lenis smooth scroll */
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

.hero-heading {
  background: linear-gradient(180deg, #646973 0%, #BBCCD7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Reusable buttons */
.contact-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  color: var(--text-white);
  font-family: var(--font-primary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  padding: clamp(12px, 1.5vw, 18px) clamp(28px, 3vw, 48px);
  fontSize: clamp(0.8rem, 1vw, 1rem);
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-btn:hover {
  transform: scale(1.05);
}

.contact-btn:active {
  transform: scale(0.95);
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  transition: none;
}

.contact-btn:hover::before {
  animation: shine 0.6s ease-in-out forwards;
}

.contact-btn svg {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-btn:hover svg {
  transform: translate(4px, -4px);
}

.live-project-btn {
  border-radius: 9999px;
  border: 2px solid #D7E2EA;
  background: transparent;
  color: #D7E2EA;
  font-family: var(--font-primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  padding: clamp(8px, 1vw, 14px) clamp(24px, 2.5vw, 40px);
  font-size: clamp(0.75rem, 1vw, 1rem);
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.live-project-btn:hover {
  background: rgba(215, 226, 234, 0.15);
  transform: scale(1.06);
}

.live-project-btn:active {
  transform: scale(0.95);
}

/* ─────────────────────────────────────────
   PRELOADER SECTION
   ───────────────────────────────────────── */
#loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  pointer-events: auto;
  overflow: hidden;
}

.loader-bg-panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: #000000;
  z-index: 1;
  transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
  will-change: transform;
  overflow: hidden;
}

.panel-left {
  left: 0;
}

.panel-right {
  right: 0;
}

/* Loaded states */
#loader-container.loaded {
  pointer-events: none;
}

#loader-container.loaded .panel-left {
  transform: translate3d(-100%, 0, 0);
}

#loader-container.loaded .panel-right {
  transform: translate3d(100%, 0, 0);
}

/* Loader Text Animation */
.loader-text-wrapper {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 9999;
  text-align: center;
  width: 200%;
}

.right-text-wrapper {
  left: -100%;
}

.loader-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 400;
  white-space: normal;
  word-wrap: break-word;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
  background: linear-gradient(to right, #fff 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: fillText 2.5s cubic-bezier(0.7, 0, 0.3, 1) 0.6s forwards;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
}

@keyframes fillText {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

/* ─────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────── */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  overflow: hidden;
  position: relative;
}

#shared-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: auto;
}



.hero-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(20px, 3vw, 32px) clamp(24px, 4vw, 48px) 0;
  position: relative;
  z-index: 20;
}

.hero-nav a {
  color: var(--text-light);
  font-family: var(--font-primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(0.85rem, 1.4vw, 1.4rem);
  text-decoration: none;
  transition: opacity 0.2s;
}

.hero-nav a:hover {
  opacity: 0.7;
}

.hero-content-group {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vh, 48px);
  width: 100%;
  max-width: 1200px;
  padding: 0 clamp(24px, 4vw, 48px);
  transform: translateY(-3vh);
  /* Shift slightly upwards for visual center balance */
}

.hero-title-container {
  position: relative;
  z-index: 10;
  perspective: 1200px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 13vw, 16rem);
  font-weight: normal;
  color: var(--text-white);
  line-height: 0.88;
  letter-spacing: 0.02em;
  display: block;
  white-space: nowrap;
  text-shadow: 0px 20px 60px rgba(0, 0, 0, 0.7), 0px 0px 80px rgba(255, 255, 255, 0.05);
  text-align: center;
  width: 100%;
}

.hero-title span {
  display: inline-block;
}

/* Stagger letters */
.hero-title .char {
  display: inline-block;
  transform-origin: bottom center;
  opacity: 0;
  transform: translateY(80px) rotateX(40deg) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-section.active .hero-title .char {
  opacity: 1;
  transform: translateY(0) rotateX(0) scale(1);
}

.hero-bottom-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 20;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
}

.hero-section.active .hero-bottom-bar {
  opacity: 1;
  transform: translateY(0);
}

.hero-description-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: clamp(320px, 60vw, 720px);
  text-align: center;
  align-items: center;
}

.hero-desc-bold {
  color: var(--text-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  text-align: center;
}

.hero-desc-thin {
  color: rgba(215, 226, 234, 0.75);
  font-weight: 300;
  line-height: 1.6;
  font-size: clamp(0.85rem, 1vw, 1.05rem);
  text-transform: uppercase;
  text-align: center;
}

/* ─────────────────────────────────────────
   MARQUEE SECTION
   ───────────────────────────────────────── */
.marquee-section {
  background: transparent;
  padding: clamp(80px, 8vw, 160px) 0 40px;
  overflow: hidden;
}

.marquee-row {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.marquee-row img {
  width: 420px;
  height: 270px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.marquee-row-1 {
  margin-bottom: 12px;
}

/* ─────────────────────────────────────────
   ABOUT SECTION
   ───────────────────────────────────────── */
.about-section {
  min-height: 100vh;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px clamp(20px, 4vw, 40px);
  position: relative;
  overflow: hidden;
}

.about-decor {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.about-decor-1 {
  top: 4%;
  left: clamp(4px, 4%, 60px);
  transform: translateX(-80px);
  transition-delay: 0.1s;
}

.about-decor-2 {
  bottom: 8%;
  left: clamp(12px, 10%, 80px);
  transform: translateX(-80px);
  transition-delay: 0.25s;
}

.about-decor-3 {
  top: 4%;
  right: clamp(4px, 4%, 60px);
  transform: translateX(80px);
  transition-delay: 0.15s;
}

.about-decor-4 {
  bottom: 8%;
  right: clamp(12px, 10%, 80px);
  transform: translateX(80px);
  transition-delay: 0.3s;
}

.about-section.active .about-decor {
  opacity: 1;
  transform: translateX(0);
}

.about-decor img {
  width: clamp(100px, 14vw, 220px);
  will-change: transform;
}

/* Floating Animations for Corner Decorations */
@keyframes float-decor-1 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(4deg);
  }
}

@keyframes float-decor-2 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(6px, -10px) rotate(-3deg);
  }
}

@keyframes float-decor-3 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(-6px, -8px) rotate(3deg);
  }
}

@keyframes float-decor-4 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-14px) rotate(-4deg);
  }
}

.about-section.active .about-decor-1 img {
  animation: float-decor-1 6s ease-in-out infinite;
}

.about-section.active .about-decor-2 img {
  animation: float-decor-2 7s ease-in-out infinite;
}

.about-section.active .about-decor-3 img {
  animation: float-decor-3 8s ease-in-out infinite;
}

.about-section.active .about-decor-4 img {
  animation: float-decor-4 6.5s ease-in-out infinite;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.about-title-wrapper {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-section.active .about-title-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.about-title {
  font-family: var(--font-display);
  font-weight: normal;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.02em;
  font-size: clamp(3rem, 12vw, 160px);
}

.about-text {
  color: var(--text-light);
  font-weight: 500;
  line-height: 1.6;
  max-width: clamp(320px, 70vw, 800px);
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.2s;
}

.about-section.active .about-text {
  opacity: 1;
  transform: translateY(0);
}

.about-btn-wrapper {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.4s;
}

.about-section.active .about-btn-wrapper {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   SERVICES SECTION
   ───────────────────────────────────────── */
.services-section {
  background: var(--bg-light);
  border-radius: clamp(40px, 5vw, 60px) clamp(40px, 5vw, 60px) 0 0;
  padding: clamp(60px, 6vw, 128px) clamp(24px, 5vw, 80px);
  color: var(--text-dark);
  position: relative;
  z-index: 10;
}

.services-title-wrapper {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.services-section.active .services-title-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.services-title {
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(2rem, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: clamp(60px, 6vw, 112px);
}

.services-title span.italic {
  font-style: italic;
}

.services-list {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 44px) clamp(16px, 2vw, 36px);
  border-bottom: 1px solid rgba(12, 12, 12, 0.15);
  cursor: pointer;
  position: relative;
  background: transparent;
  color: var(--text-dark);
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out, border-radius 0.3s ease-in-out, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease-out;
  opacity: 0;
  transform: translateY(60px);
}

.services-section.active .service-item {
  opacity: 1;
  transform: translateY(0);
}

.service-item:hover {
  background: #0C0C0C;
  color: var(--text-white);
  border-radius: 20px;
}

.service-num {
  font-size: clamp(1.2rem, 1.5vw, 24px);
  font-weight: 400;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.service-item:hover .service-num {
  opacity: 0.7;
}

.service-name {
  font-size: clamp(1.5rem, 2.2vw, 36px);
  font-weight: 500;
  text-transform: uppercase;
}

.service-left {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
  width: 38%;
}

.service-mid {
  width: 48%;
}

.service-desc {
  font-size: clamp(0.9rem, 1.1vw, 16px);
  line-height: 1.6;
  opacity: 0.6;
  font-weight: 400;
  margin: 0;
  transition: opacity 0.3s;
}

.service-item:hover .service-desc {
  opacity: 0.8;
}

.service-right {
  width: 10%;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.service-btn {
  width: clamp(48px, 4vw, 64px);
  height: clamp(48px, 4vw, 64px);
  border-radius: 50%;
  border: 1px solid rgba(12, 12, 12, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  color: var(--text-dark);
  background: transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  overflow: hidden; /* Clip the arrow as it slides out and in */
}

.service-btn svg {
  transition: transform 0.3s ease;
}

.service-item:hover .service-btn {
  background: var(--text-white);
  color: var(--text-dark);
  border-color: var(--text-white);
}

.service-item:hover .service-btn svg {
  animation: arrow-slide 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}



/* ─────────────────────────────────────────
   PROJECTS SECTION
   ───────────────────────────────────────── */
.projects-section {
  background: var(--bg-color);
  border-radius: clamp(40px, 5vw, 60px) clamp(40px, 5vw, 60px) 0 0;
  margin-top: clamp(-40px, -3.5vw, -56px);
  position: relative;
  z-index: 10;
  padding: clamp(60px, 6vw, 100px) clamp(20px, 4vw, 40px) 120px;
}

.projects-scroll-track {
  position: relative;
  width: 100%;
}

.projects-sticky-wrapper {
  position: relative;
  width: 100%;
}

.projects-title-wrapper {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.projects-section.active .projects-title-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.projects-title {
  font-family: var(--font-display);
  font-weight: normal;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  font-size: clamp(3rem, 12vw, 160px);
  margin-bottom: clamp(20px, 3vw, 40px);
}

/* 3D Hover Cards */
.projects-3d-container {
  position: relative;
  width: 100%;
  max-width: 1280px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  transform-style: preserve-3d;
  perspective: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
}

.projects-3d-wrapper {
  position: relative;
  margin: 0 -25px;
  transform-style: preserve-3d;
  transition: z-index 0.5s ease, opacity 0.85s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.85s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
  opacity: 0;
}

.projects-3d-wrapper-left {
  transform: translateX(-220px) rotateY(45deg) scale(0.85);
}

.projects-3d-wrapper-right {
  transform: translateX(220px) rotateY(-45deg) scale(0.85);
}

.projects-section.active .projects-3d-wrapper {
  opacity: 1;
  transform: translateX(0) rotateY(0) scale(1);
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate-gradient {
  0% {
    --angle: 0deg;
  }

  100% {
    --angle: 360deg;
  }
}

.projects-3d-box {
  display: block;
  position: relative;
  width: 310px;
  height: 400px;
  background: linear-gradient(#111, #111) padding-box, conic-gradient(from var(--angle), transparent 0%, #f472b600 5%, #f472b6 10%, #c084fc 18%, #818cf8 26%, #38bdf8 34%, #2dd4bf 42%, #fbbf24 46%, #fbbf2400 52%, transparent 56%) border-box;
  border: 1px solid transparent;
  transition: box-shadow 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-style: preserve-3d;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  animation: rotate-gradient 6s linear infinite;
}

.project-glow-spill {
  position: absolute;
  inset: -40%;
  z-index: 1;
  opacity: 0;
  filter: blur(28px);
  pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0%, #f472b600 5%, #f472b6 10%, #c084fc 18%, #818cf8 26%, #38bdf8 34%, #2dd4bf 42%, #fbbf24 46%, #fbbf2400 52%, transparent 56%);
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 48%, black 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 48%, black 100%);
  transition: opacity 0.5s ease;
}

.projects-3d-box.active .project-glow-spill {
  opacity: 0.65;
  animation: rotate-gradient 4s linear infinite;
}

.projects-3d-imgBx {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.projects-3d-imgBx::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hover-gradient, linear-gradient(180deg, #b600a8, #000));
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: multiply;
}

.projects-3d-imgBx img {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 65%;
  object-fit: contain;
}

.projects-3d-imgBx img.img-cover {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projects-3d-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  padding: 24px;
  align-items: flex-end;
  box-sizing: border-box;
}

.projects-3d-content>div {
  transform: translateY(220px);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0.1s;
  width: 100%;
}

.projects-3d-content h2 {
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: var(--font-primary);
  line-height: 1.2;
}

.projects-3d-content p {
  color: rgba(215, 226, 234, 0.85);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  font-family: var(--font-primary);
}

.projects-3d-box .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Interaction States via JS active class toggle */
.projects-3d-wrapper.active-wrapper {
  z-index: 10;
}

.projects-3d-box.active {
  transform: scale(1.22) rotateY(0deg);
}

.projects-3d-box.left-neighbor {
  transform: rotateY(25deg) scale(1);
}

.projects-3d-box.right-neighbor {
  transform: rotateY(-25deg) scale(1);
}

.projects-3d-box.active .projects-3d-imgBx::before {
  opacity: 0.92;
}

.projects-3d-box.active .projects-3d-content>div {
  transform: translateY(0px);
}

/* Unlocked Card Modern Style & Glow */

.unlocked-project.active {
  box-shadow: 0 20px 50px rgba(94, 0, 201, 0.747), 0 0 30px rgba(182, 0, 168, 0.2);
}

.project-view-action {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #efaaff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.3s ease, gap 0.3s ease;
}

.unlocked-project:hover .project-view-action {
  color: #ffffff;
  gap: 12px;
}

.unlocked-project.active .arrow {
  transform: translateX(6px);
  transition: transform 0.3s ease;
}

/* Locked Project Style (Saturation 0%, Lock Overlay, Coming Soon) */
.locked-project {
  cursor: not-allowed;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: none;
}

.locked-project.active {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
}

.locked-project .project-glow-spill {
  display: none !important;
}

.locked-project .projects-3d-imgBx img {
  filter: saturate(0) contrast(0.8) brightness(0.5);
  transition: filter 0.5s ease;
}

.locked-project:hover .projects-3d-imgBx img,
.locked-project.active .projects-3d-imgBx img {
  filter: saturate(0) contrast(0.9) brightness(0.6);
}

/* Prevent custom hover gradient overlay on locked project */
.locked-project .projects-3d-imgBx::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, #000 100%) !important;
}

/* Lock Overlay */
.project-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.3s ease;
}

.lock-icon {
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.4);
  stroke-width: 1.5;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease;
}

.locked-project:hover .project-lock-overlay,
.locked-project.active .project-lock-overlay {
  background: rgba(0, 0, 0, 0.45);
}

.locked-project:hover .lock-icon,
.locked-project.active .lock-icon {
  color: rgba(255, 255, 255, 0.85);
  transform: scale(1.1) rotate(-5deg);
}

/* Coming Soon Badge */
.project-coming-soon {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.3s ease;
}

.coming-soon-clock {
  width: 14px;
  height: 14px;
  stroke-width: 2px;
}

.locked-project:hover .project-coming-soon,
.locked-project.active .project-coming-soon {
  color: rgba(255, 255, 255, 0.9);
}

/* ─────────────────────────────────────────
   FOOTER SECTION
   ───────────────────────────────────────── */
.footer-section {
  background: var(--bg-darker);
  position: relative;
  padding-top: clamp(60px, 10vw, 120px);
  overflow: hidden;
  font-family: var(--font-primary);
}

.footer-huge-text-wrapper {
  text-align: center;
  line-height: 0.75;
  position: relative;
  z-index: 1;
  user-select: none;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.footer-title {
  font-family: var(--font-display);
  font-size: clamp(6rem, 24vw, 380px);
  font-weight: normal;
  text-transform: uppercase;
  margin: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.01) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
  filter: drop-shadow(0px 10px 40px rgba(0, 0, 0, 0.8));
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  justify-content: center;
  cursor: default;
  transition: filter 0.4s, transform 0.4s;
}

.footer-title:hover {
  transform: scale(1.01);
}

/* Glow zone wraps the title and tracks mouse position */
.footer-title-glow-zone {
  position: relative;
  display: inline-block;
}

/* The glow orb is no longer used — hidden by JS, kept in markup for safety */
.footer-glow-orb {
  display: none;
}

.footer-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(150px);
  position: relative;
  z-index: 3;
  -webkit-text-fill-color: transparent;
  transition:
    opacity    0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform  0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-section.active .footer-title .char {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-section.active .footer-title.glow-ready .char {
  transition: none !important;
}

.footer-content-wrapper {
  position: relative;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000000 25%, #000000 100%);
  padding: clamp(40px, 8vw, 100px) clamp(24px, 4vw, 40px) 40px;
  margin-top: clamp(-40px, -8vw, -100px);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 6vw, 80px);
  justify-content: space-between;
}

.footer-col-left {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.footer-section.active .footer-col-left {
  opacity: 1;
  transform: translateY(0);
}

.footer-col-right {
  flex: 2 1 500px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: 0.1s;
}

.footer-section.active .footer-col-right {
  opacity: 1;
  transform: translateY(0);
}

.footer-logo {
  height: 50px;
  object-fit: contain;
  align-self: flex-start;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-address {
  color: #888;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 4px;
}

.footer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 8px;
  width: fit-content;
}

.footer-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
  animation: pulse 2s infinite;
}

.footer-status-text {
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 500;
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.footer-social-link {
  position: relative;
  z-index: 10; /* Keep on top of overlapping canvas/text elements to ensure clickability */
  cursor: pointer;
  color: #aaa;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Prevent flex box container from squishing */
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
  text-decoration: none;
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-social-link:hover {
  transform: scale(1.1);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.footer-social-link:active {
  transform: scale(0.9);
}

.footer-contact-cta {
  display: inline-flex;
  align-items: center;
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: var(--font-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
  width: fit-content;
  transition: color 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
}

.footer-contact-cta:hover {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.3);
  padding-left: 6px;
}

.footer-menu-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-menu-title {
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-menu-col a {
  color: #888;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-menu-col a:hover {
  color: var(--text-white);
}

.footer-bottom {
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #666;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: 0.3s;
}

.footer-section.active .footer-bottom {
  opacity: 1;
  transform: translateY(0);
}

/* Add stagger animation to menu columns */
.footer-menu-col {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.footer-section.active .footer-menu-col {
  opacity: 1;
  transform: translateY(0);
}

.footer-section.active .footer-col-right .footer-menu-col:nth-child(1) { transition-delay: 0.1s; }
.footer-section.active .footer-col-right .footer-menu-col:nth-child(2) { transition-delay: 0.2s; }
.footer-section.active .footer-col-right .footer-menu-col:nth-child(3) { transition-delay: 0.3s; }

/* ─────────────────────────────────────────
   BACK TO TOP BUTTON
   ───────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(12, 12, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s;
}

#back-to-top.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

#back-to-top:hover {
  transform: scale(1.1);
  background: rgba(32, 32, 32, 0.95);
}

#back-to-top:active {
  transform: scale(0.9);
}

/* ─────────────────────────────────────────
   KEYFRAME ANIMATIONS
   ───────────────────────────────────────── */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes shine {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

@keyframes arrow-slide {
  0% {
    transform: translate(0, 0);
  }
  49% {
    transform: translate(120%, -120%);
    opacity: 0;
  }
  50% {
    transform: translate(-120%, 120%);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

.projects-mobile-indicator {
  display: none;
}

/* ─────────────────────────────────────────
   RESPONSIVE LAYOUT MEDIA QUERIES
   ───────────────────────────────────────── */
@media (max-width: 992px) {
  .projects-3d-wrapper .projects-3d-box {
    width: 250px;
    height: 350px;
  }

  /* Services lists tablet/mobile layout */
  .service-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "left right"
      "mid mid";
    gap: 16px;
    padding: 24px 12px;
  }

  .service-left {
    grid-area: left;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
  }

  .service-name {
    font-size: clamp(1.2rem, 3.5vw, 24px);
  }

  .service-mid {
    grid-area: mid;
    width: 100%;
  }

  .service-desc {
    font-size: 14px;
    line-height: 1.5;
  }

  .service-right {
    grid-area: right;
    width: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .service-item:hover {
    border-radius: 0;
    background: transparent;
    color: var(--text-dark);
  }

  .service-item:hover .service-btn {
    background: transparent;
    color: var(--text-dark);
    border-color: rgba(12, 12, 12, 0.3);
  }

  .service-item:hover .service-btn svg {
    animation: none;
  }

  /* Active/tap state response for touch devices */
  .service-item:active,
  .service-item.touched {
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px;
    transform: scale(0.97) !important;
    transition: background 0.15s ease, transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  }

  .service-item:active .service-btn,
  .service-item.touched .service-btn {
    background: #000000 !important;
    color: var(--text-white) !important;
    border-color: #000000 !important;
    transform: scale(1.15) !important;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  }

  .service-item:active .service-btn svg,
  .service-item.touched .service-btn svg {
    animation: arrow-slide 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  }
}

@media (max-width: 768px) {

  /* Navbar */
  .hero-nav {
    padding: 20px 24px 0;
  }

  /* Hero section Bottom */
  .hero-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 0 24px 32px;
  }

  .hero-description-block {
    max-width: 100%;
  }

  /* Hero Title Fixes for Mobile */
  .hero-title {
    font-size: clamp(3.5rem, 16vw, 6rem);
    white-space: normal;
    word-break: keep-all;
    line-height: 1;
    margin-bottom: 20px;
  }
  
  .hero-content-group {
    padding: 0 16px;
  }

  /* Marquee Images Resize for Mobile */
  .marquee-row img {
    width: 240px;
    height: 160px;
    border-radius: 12px;
  }
  .marquee-section {
    padding: clamp(60px, 8vw, 100px) 0 40px;
  }
}

@media (max-width: 992px) {
  /* Projects Horizontal Scroll track and sticky wrapper */
  .projects-section {
    padding: clamp(60px, 6vw, 100px) 0 clamp(40px, 6vw, 80px) !important;
  }

  .projects-scroll-track {
    position: relative;
    height: auto !important;
    width: 100%;
  }

  /* The scroll container - overflow MUST be here, NOT perspective */
  .projects-sticky-wrapper {
    position: relative;
    top: auto;
    height: auto;
    display: block;
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 24px 0 32px;
    scroll-snap-type: x mandatory;
  }

  .projects-sticky-wrapper::-webkit-scrollbar {
    display: none;
  }

  /* Mobile Scroll Indicator */
  .projects-mobile-indicator {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 16px;
    margin-bottom: 8px;
  }


  /* Projects 3D Container — NO perspective here (breaks overflow scroll) */
  .projects-3d-container {
    perspective: none !important;
    transform-style: flat !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    padding: 8px 24px !important;
    margin: 0 !important;
    width: max-content !important;
    min-width: 100%;
    justify-content: flex-start !important;
    align-items: center !important;
  }

  /* Each card wrapper — JS sets style.transform & style.opacity directly.
     NEVER use !important on transform/opacity here: inline styles lose to !important. */
  .projects-3d-wrapper,
  .projects-3d-wrapper.projects-3d-wrapper-left,
  .projects-3d-wrapper.projects-3d-wrapper-right,
  .projects-section.active .projects-3d-wrapper,
  .projects-section.active .projects-3d-wrapper.projects-3d-wrapper-left,
  .projects-section.active .projects-3d-wrapper.projects-3d-wrapper-right {
    width: 78vw !important;
    max-width: 320px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    scroll-snap-align: center;
    will-change: transform, opacity;
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1),
      opacity 0.25s ease-out;
  }

  .projects-3d-box {
    width: 100% !important;
    height: clamp(340px, 50vh, 380px) !important;
    transform: none !important;
  }

  .projects-3d-box.active {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  }

  .projects-3d-content>div {
    transform: translateY(0);
    /* Always visible on mobile */
  }

  .projects-3d-imgBx::before {
    opacity: 0.75;
    /* Always show gradient on mobile */
  }

  .projects-3d-imgBx img {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 65%;
    object-fit: contain;
  }

  .projects-3d-imgBx img.img-cover {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  /* ─── FOOTER MOBILE STYLING ─── */
  .footer-section {
    padding-top: clamp(40px, 8vw, 60px);
  }

  .footer-title {
    font-size: clamp(5.5rem, 24vw, 12rem);
    letter-spacing: 0.01em;
  }

  .footer-content-wrapper {
    padding: 32px 20px 40px;
    margin-top: 0; /* Remove top negative margin overlap on mobile */
  }

  .footer-grid {
    gap: 40px;
  }

  .footer-col-left {
    gap: 24px;
    flex: 1 1 100%;
  }

  .footer-col-right {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    flex: 1 1 100%;
  }

  /* Make Legal column span full width, keeping vertical list layout */
  .footer-col-right .footer-menu-col:last-child {
    grid-column: span 2;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-col-right .footer-menu-col:last-child .footer-menu-title {
    width: auto;
    margin-bottom: 4px;
  }

  .footer-bottom {
    margin-top: 40px;
    padding-bottom: 40px;
  }

  #back-to-top {
    bottom: 24px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* ─────────────────────────────────────────
   LEGAL PAGES
   ───────────────────────────────────────── */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 180px 24px 100px;
  position: relative;
  z-index: 5;
}

.legal-page-container h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-family: var(--font-display);
  color: var(--text-white);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: slideUpFade 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.legal-last-updated {
  font-size: 0.95rem;
  color: #a855f7;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0;
  animation: slideUpFade 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.15s forwards;
}

.legal-content {
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: clamp(30px, 5vw, 60px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: slideUpFade 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s forwards;
}

.legal-content h2 {
  font-size: 1.6rem;
  color: var(--text-white);
  margin-top: 48px;
  margin-bottom: 20px;
  font-weight: 600;
  font-family: var(--font-display);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: rgba(215, 226, 234, 0.85);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.05rem;
  font-weight: 300;
}

.legal-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.legal-content li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  line-height: 1.7;
  color: rgba(215, 226, 234, 0.85);
  font-weight: 300;
  font-size: 1.05rem;
}

.legal-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #a855f7;
  font-weight: bold;
}

.legal-content a {
  color: #a855f7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-content a:hover {
  color: #d8b4fe;
  text-decoration: underline;
}