:root {
  --brand-cyan: #00f0ff;
  --brand-magenta: #ff00ff;
  --brand-amber: #ffaa00;
  --bg-dark: #050505;
  --card-bg: rgba(255, 255, 255, 0.03);
  --text-muted: #aaa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--bg-dark);
  color: #fff;
  overflow-x: hidden;
}

/* --- NAVBAR --- */
nav {
  position: fixed;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav h1 {
  color: var(--brand-cyan);
  font-size: 1.5rem;
  letter-spacing: 2px;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav ul li {
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
}

nav ul li:hover {
  color: var(--brand-cyan);
}

/* --- HERO SCENE --- */
.hero-container {
  height: 400vh;
  position: relative;
}

.sticky-scene {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #00111a, #000);
}

/* --- ROPE & EDISON BULB --- */
.pendulum-wrapper {
  position: absolute;
  top: -20px;
  left: 50%;
  transform-origin: top center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  will-change: transform, opacity;
}

.rope {
  width: 18px;
  height: 35vh;
  background: repeating-linear-gradient(-45deg, #5c4033, #5c4033 4px, #8b5a2b 4px, #8b5a2b 8px);
  box-shadow: inset 4px 0 10px rgba(0, 0, 0, 0.6), inset -4px 0 10px rgba(0, 0, 0, 0.6);
  border-radius: 5px;
  z-index: 2;
}

.rope-knot {
  width: 34px;
  height: 25px;
  background: repeating-linear-gradient(-45deg, #4a332a, #4a332a 3px, #6e4620 3px, #6e4620 6px);
  border-radius: 5px 5px 15px 15px;
  margin-top: -5px;
  z-index: 3;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.bulb {
  width: 70px;
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 40% 40% 50% 50% / 60% 60% 40% 40%;
  position: relative;
  margin-top: -10px;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.filament {
  width: 6px;
  height: 40px;
  background: rgba(255, 170, 0, 0.2);
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(255, 170, 0, 0);
  transition: 0.3s;
}

.bulb-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 170, 0, 0.4) 0%, rgba(255, 170, 0, 0) 65%);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

@keyframes flicker {

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    opacity: 1;
  }

  20%,
  22%,
  24%,
  55% {
    opacity: 0.5;
  }
}

.flicker-active .filament {
  animation: flicker 4s infinite;
  background: rgba(255, 170, 0, 0.6);
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.8);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.6;
  animation: float 2s infinite ease-in-out;
}

.arrow {
  width: 20px;
  height: 20px;
  border-right: 3px solid var(--brand-amber);
  border-bottom: 3px solid var(--brand-amber);
  transform: rotate(45deg);
}

/* LOGO WATERMARK SETUP */
.logo-reveal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  text-align: center;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
}

.sutorit-img-logo {
  width: 80vw;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0px 0px 30px rgba(0, 240, 255, 0.8));
}

/* --- CONTENT SECTIONS --- */
.content-section {
  position: relative;
  background: transparent;
  padding: 100px 5vw;
  z-index: 20;
  margin-top: -200vh;
  pointer-events: none;
}

.content-section>* {
  pointer-events: auto;
}

/* --- FIXED SPLIT LAYOUT --- */
.split-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 120px;
  width: 100%;
  perspective: 2000px;
}

.split-row.reverse {
  flex-direction: row-reverse;
}

.text-box {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 50px;
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-box h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--brand-cyan);
  line-height: 1.2;
}

.text-box p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 15px;
}

.highlight-text {
  color: #fff;
  font-weight: 600;
}

/* 3D ISOMETRIC IMAGE BOX (Tidy Style) */
.image-box {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg, #0a0a0a, #151515);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 20px;
  font-size: 1.5rem;
  color: #444;
  text-align: center;
  opacity: 0;
  transform-style: preserve-3d;
  transform: rotateX(55deg) rotateZ(-30deg) translateY(150px) translateZ(-100px);
  box-shadow: -30px 30px 50px rgba(0, 0, 0, 0.8);
  will-change: transform, opacity;
  padding: 0 !important;
  overflow: hidden;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  pointer-events: none;
}

.split-row.reverse .image-box {
  transform: rotateX(55deg) rotateZ(30deg) translateY(150px) translateZ(-100px);
  box-shadow: 30px 30px 50px rgba(0, 0, 0, 0.8);
}

/* --- 3D ISOMETRIC GRIDS --- */
.isometric-scene {
  perspective: 2000px;
  width: 100%;
  margin-bottom: 150px;
}

.isometric-target {
  transform-style: preserve-3d;
  transform: rotateX(60deg) rotateZ(-20deg) translateY(200px) scale(0.9);
  opacity: 0;
  will-change: transform, opacity;
}

.section-title {
  text-align: center;
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

#choose {
  margin-top: 500px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 60px;
  font-size: 1.2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* --- 3D DYNAMIC MOUSE CARDS (Spotlight + Parallax Ready) --- */
.card {
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px 30px;
  border-radius: 20px;

  /* IMPORTANT: Excluded 'transform' so JS can update 3D tilt instantly without lagging */
  transition: filter 0.5s, opacity 0.5s, box-shadow 0.4s, border-color 0.4s;
  border-top: 2px solid transparent;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  position: relative;

  /* Required for 3D depth */
  transform-style: preserve-3d;
  will-change: transform;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}

.card p {
  color: var(--text-muted);
  line-height: 1.6;
}

.card .price {
  font-size: 1.8rem;
  color: var(--brand-cyan);
  font-weight: 800;
  margin-top: 20px;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

/* 1. When the GRID is hovered, dim and blur ALL cards inside it */
.grid-3:hover .card,
.grid-4:hover .card {
  filter: blur(6px);
  opacity: 0.4;
  /* Removed CSS transform (scale), JS handles this now */
}

/* 2. When a SPECIFIC card is hovered, keep it sharp & glow */
/* (The actual 3D popping up and tilting is handled by the GSAP javascript) */
.grid-3 .card:hover,
.grid-4 .card:hover {
  filter: blur(0px);
  opacity: 1;
  border-top: 2px solid var(--brand-cyan);
  box-shadow: 0 30px 60px rgba(0, 240, 255, 0.15);
  z-index: 10;
}

footer {
  padding: 60px 20px;
  text-align: center;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 30;
}

.mission-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}

.quote {
  font-size: 1.2rem;
  font-style: italic;
  color: #aaa;
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.8;
}

.author {
  color: var(--brand-cyan);
  font-weight: 600;
  letter-spacing: 1px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

/* HAMBURGER BASE */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: 0.3s;
}

/* ======================================================== */
/* 📱 MOBILE (<= 768px) - CONSOLIDATED & FIXED              */
/* ======================================================== */
@media (max-width: 768px) {

  /* --- NAVBAR & HAMBURGER FIXES --- */
  nav {
    padding: 15px 20px;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  nav ul.active {
    right: 0;
  }

  nav ul li {
    font-size: 1.5rem;
  }

  /* --- HERO SCENE REDUCTION --- */
  .hero-container {
    height: 250vh;
  }

  .rope {
    height: 25vh;
    width: 10px;
  }

  .bulb {
    width: 50px;
    height: 70px;
  }

  .bulb-glow {
    width: 180px;
    height: 180px;
  }

  /* --- FORCED LOGO ALIGNMENT (Overrides GSAP) ---
  .logo-reveal {
    top: 35% !important;
  }

  .sutorit-img-logo {
    width: 85vw !important;
    max-width: none !important;
  } */

  /* --- TYPOGRAPHY & SPACING --- */
  .text-box {
    padding: 25px;
  }

  .text-box h2 {
    font-size: 1.8rem;
  }

  .text-box p {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 2rem;
    margin-top: 80px !important;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  #choose {
    margin-top: 50px !important;
  }

  /* --- FIXING MESSY CARDS & LAYOUTS --- */
  .split-row {
    flex-direction: column !important;
    gap: 30px;
  }

  .image-box,
  .split-row.reverse .image-box {
    transform: none !important;
    opacity: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    height: 250px;
  }

  .isometric-target {
    transform: none !important;
    opacity: 1 !important;
  }

  .grid-3,
  .grid-4 {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .card {
    padding: 25px;
    transform: none !important;
  }
}

/* ======================================================== */
/* 📲 TABLET (769px - 1024px)                               */
/* ======================================================== */
@media (max-width: 1024px) {
  nav {
    padding: 15px 30px;
  }

  .hero-container {
    height: 300vh;
  }

  .text-box h2 {
    font-size: 2.2rem;
  }

  .split-row {
    gap: 20px;
  }

  .image-box {
    transform: rotateX(30deg) rotateZ(-15deg) translateY(80px);
  }

  .split-row.reverse .image-box {
    transform: rotateX(30deg) rotateZ(15deg) translateY(80px);
  }

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

/* ======================================================== */
/* 💻 SMALL LAPTOP (1025px - 1400px)                        */
/* ======================================================== */
@media (max-width: 1400px) {
  .text-box h2 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.8rem;
  }

  #choose {
    margin-top: 400px !important;
  }
}