:root {
  --bg-light: #0a0a0a;
  --text-dark: #ffffff;
  --accent-yellow: #ffcc00;
  --accent-yellow-glow: rgba(255, 204, 0, 0.4);
  --accent-yellow-dark: #ccaa00;
  --font-main: "Outfit", sans-serif;
}

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

html {
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-main);
  overflow-x: hidden;
  /* Hide native scrollbar for cleaner look */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

/* 
 * The scroll-tracker creates the virtual scroll height.
 * We need enough room to scroll to see the orbit rotate 360deg+.
 */
.scroll-tracker {
  height: 500vh;
  width: 100%;
}

/* The Fixed 3D Scene layout */
.scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 4vh 2vw;
  z-index: 1;
}

/* Background Gradients & Glows */
.bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
  background: #ffffff;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.blob-1 {
  width: 70vw;
  height: 70vw;
  background: rgba(255, 204, 0, 0.12); /* Subtle Brand Yellow */
  top: -20%;
  left: -20%;
  animation: driftSlow 25s infinite alternate ease-in-out;
}

.blob-2 {
  width: 70vw;
  height: 70vw;
  background: rgba(240, 242, 245, 1); /* Premium Soft Grey/Silver */
  bottom: -20%;
  right: -20%;
  animation: driftSlow 30s infinite alternate-reverse ease-in-out;
}

@keyframes driftSlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(15vw, -10vh) scale(1.1);
  }
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Text Content - Top */
.header-text {
  text-align: center;
  z-index: 10;
  margin-top: 2vh;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.main-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #111 0%, #444 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.inline-logo {
  height: 1.6em;
  width: auto;
  vertical-align: middle;
  margin-left: calc(-0.4em + 5px);
  margin-bottom: 0.2em;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.sub-title {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: #555;
}

.highlight {
  background-color: var(--accent-yellow);
  color: var(--text-dark);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* 3D Orbit Central Container */
.hero-stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  pointer-events: none; /* Let clicks pass to CTA if needed */
}

.character-container {
  position: relative;
  z-index: 5; /* Character is in the middle of z-indices */
  width: clamp(250px, 50vh, 500px);
  max-width: 100vw;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Anchor head to top so it never overlaps header */
}

.char-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 204, 0, 0.2) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  filter: blur(30px);
  z-index: -1;
  animation: pulse 4s infinite alternate;
}

.hero-character {
  width: 100%;
  height: auto; /* Let the height grow based on the large width */
  object-fit: contain;
  object-position: top center;
  margin-top: 2vh; /* Proper spacing from the subheading */
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

.orbit-system {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  /* We handle 3D strictly through JS transforms on individual items to simulate depth without true CSS 3D rotate logic causing intersection bugs */
}

.service-icon {
  position: absolute;
  top: -40px; /* offset by half width/height so it centers on its coords */
  left: -40px;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    filter 0.1s,
    transform 0.1s;
  will-change: transform, filter, opacity, z-index;
  pointer-events: auto; /* Let them be hoverable */
  cursor: pointer;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-icon:hover img {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2));
}

/* Description and Call to Action - Bottom */
.cta-section {
  z-index: 10;
  text-align: center;
  max-width: 600px;
  margin-bottom: 2vh;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.description {
  font-size: 1rem;
  line-height: 1.5;
  color: #666;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.btn-notify {
  position: relative;
  background: var(--text-dark);
  color: var(--bg-light);
  font-family: var(--font-main);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-notify::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 3s infinite 1s;
}

.btn-notify span {
  position: relative;
  z-index: 2;
}

.btn-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0) 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition:
    transform 0.5s,
    opacity 0.5s;
  z-index: 1;
}

.btn-notify:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  background: #000;
}

.btn-notify:hover .btn-glow {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.1;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shine {
  0% {
    left: -100%;
  }
  30% {
    left: 200%;
  }
  100% {
    left: 200%;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cta-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
  }
  .description {
    font-size: 0.9rem;
  }
  .service-icon {
    width: 60px;
    height: 60px;
    top: -30px;
    left: -30px;
  }
}
