body {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  height: 100vh;
  position: relative;
}

.experience {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.scrollTarget {
  position: absolute;
  height: 4000px;
  width: 100%;
  top: 0;
  z-index: 0;
}

.vignette-radial {
  position: fixed;
  z-index: 11;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  pointer-events: none;
}

.vignette-radial:after {
  pointer-events: none;
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: radial-gradient(circle, transparent 60%, black 150%);
}

/* ── Loader ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), visibility 0.7s;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #555;
  animation: blink 0.9s ease infinite alternate;
}
@keyframes blink {
  from { opacity: 0.15; }
  to   { opacity: 0.8; }
}

/* Company Section - Centered in circle with fade animation */
.company-section {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease;
  pointer-events: none;
  width: 90%;
  max-width: 1200px;
}

.company-section.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.company-section h1 {
  color: white !important;
  font-size: clamp(4rem, 8vw, 9rem);
  font-family: "CustomDigitalFont", monospace;
  font-weight: 900;
  margin: 0;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
    0 0 40px rgba(255, 255, 255, 0.3), 0 0 60px rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: scale(0.8);
  white-space: wrap;
  overflow: visible;
}

.company-section.show h1 {
  animation: fadeInScale 1.5s ease-out forwards,
    pulseGlow 3s ease-in-out infinite 1.5s;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3),
      0 0 20px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 255, 255, 0.1);
  }
  50% {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4),
      0 0 30px rgba(255, 255, 255, 0.3), 0 0 45px rgba(255, 255, 255, 0.2);
  }
}

/* Responsive breakpoints */
@media (max-width: 1600px) {
  .company-section h1 {
    font-size: 8rem;
  }
}

@media (max-width: 1200px) {
  .company-section h1 {
    font-size: 7rem;
  }
}

@media (max-width: 768px) {
  .company-section {
    width: 95%;
  }

  .company-section h1 {
    font-size: 5rem;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 513px) {
   .company-section {
    width: 95%;
  }

  .company-section h1 {
    font-size: 4rem;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 480px) {
  .company-section h1 {
    font-size: clamp(3rem, 5vw, 4rem);
    letter-spacing: 0.01em;
    white-space: normal;
    line-height: 1.2;
  }
}

/* Sound Control Button */
.sound-control {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.sound-control::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 70px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: tooltipPulse 2s ease-in-out infinite;
}

.sound-control::after {
  content: "";
  position: absolute;
  right: 60px;
  border: 8px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.9);
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Hide tooltip when sound is enabled (not muted) */
.sound-control:not(.muted)::before,
.sound-control:not(.muted)::after {
  opacity: 0;
  visibility: hidden;
}

@keyframes tooltipPulse {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-5px);
  }
}

.sound-control:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.sound-control svg {
  width: 28px;
  height: 28px;
  fill: white;
  transition: all 0.3s ease;
}

.sound-control.muted svg {
  opacity: 0.5;
}

.sound-control .sound-waves {
  animation: soundWave 1.5s ease-in-out infinite;
}

.sound-control.muted .sound-waves {
  animation: none;
  opacity: 0.3;
}

/* Pulsing hint animation for unmuted state */
.sound-control:not(.muted) {
  animation: pulseHint 2s ease-in-out infinite;
}

@keyframes pulseHint {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

@keyframes soundWave {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@media (max-width: 1024px) {
  .sound-control {
    width: 55px;
    height: 55px;
    bottom: 25px;
    right: 25px;
  }

  .sound-control svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 768px) {
  .sound-control {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .sound-control svg {
    width: 24px;
    height: 24px;
  }

  .sound-control::before {
    right: 60px;
    font-size: 12px;
    padding: 6px 12px;
  }

  .sound-control::after {
    right: 50px;
    border-width: 6px;
  }
}

@media (max-width: 480px) {
  .sound-control {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
  }

  .sound-control svg {
    width: 22px;
    height: 22px;
  }
}

/* Arrow Pulse Button Styles */
.arrow-pulse-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: clamp(100px, 15vh, 180px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.arrow-pulse-container.show {
  opacity: 1;
  visibility: visible;
}

.pulse-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(60px, 8vw, 80px);
  height: clamp(90px, 12vw, 120px);
  cursor: pointer;
  animation: pulse 1.5s infinite;
  color: white;
  font-family: "CustomDigitalFont", monospace;
  font-size: clamp(0.9rem, 1.5vw, 1.3rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pulse-button:hover {
  animation: none;
}

/* Arrow shape pointing down */
.pulse-button::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: clamp(20px, 3vw, 30px) solid transparent;
  border-right: clamp(20px, 3vw, 30px) solid transparent;
  border-top: clamp(30px, 4vw, 40px) solid white;
}


@keyframes pulse {
  0% {
    transform: scale(0.9);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0.5));
  }
  70% {
    transform: scale(1);
    filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0));
  }
  100% {
    transform: scale(0.9);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
}

@media (max-width: 1600px) {
  .arrow-pulse-container {
    margin-top: clamp(90px, 14vh, 150px);
  }
}

@media (max-width: 1200px) {
  .arrow-pulse-container {
    margin-top: clamp(80px, 12vh, 130px);
  }
}

@media (max-width: 768px) {
  .arrow-pulse-container {
    margin-top: clamp(70px, 10vh, 100px);
  }

  .pulse-button {
    font-size: clamp(0.85rem, 1.3vw, 1.1rem);
  }
}

@media (max-width: 480px) {
  .arrow-pulse-container {
    margin-top: clamp(60px, 8vh, 80px);
  }

  .pulse-button {
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    letter-spacing: 0.5px;
  }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .company-section h1 {
    font-size: clamp(1.5rem, 6vh, 3rem);
  }

  .arrow-pulse-container {
    margin-top: clamp(50px, 8vh, 70px);
  }

  .pulse-button {
    width: clamp(50px, 7vw, 70px);
    height: clamp(75px, 10vw, 100px);
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
  }
}

@font-face {
  font-family: "CustomDigitalFont";
  src: url("../fonts/Organix.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CustomDigitalFont";
  src: url("../fonts/Organix.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
