@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sama+Devanagari:wght@700&display=swap');

:root {
  --brand-primary: #e04f16;
  --brand-dark: #ba3a14;
  --text-primary: #181d27;
  --text-secondary: #414651;
  --spacing-xl: 16px;
  --spacing-2xl: 20px;
  --container-padding: 32px;
  --container-max-width: 1280px;
  --marquee-duration: 20s; /* JS will override based on width */
}

* { 
  box-sizing: border-box; 
  overflow-y: hidden;
}

body {
  margin: 0;
  font-family: 'Noto Sans Devanagari', sans-serif;
  background: #fff;
  text-align: center;
  color: var(--text-primary);
  opacity: 0;
  transition: opacity 1.5s ease;
  overflow-x: hidden;
  position: relative;
}
body.loaded { opacity: 1; }

/* Music Toggle Button */
.music-toggle {
  position: fixed;
  bottom: 80px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.music-toggle:active {
  transform: scale(0.95);
}

.music-icon {
  width: 24px;
  height: 24px;
  color: #fff;
  position: absolute;
  transition: opacity 0.3s ease;
}

.music-toggle.playing .music-icon.playing {
  opacity: 1;
}

.music-toggle.playing .music-icon.paused {
  opacity: 0;
}

.music-toggle.paused .music-icon.playing {
  opacity: 0;
}

.music-toggle.paused .music-icon.paused {
  opacity: 1;
}

/* Background decorative images */
.bg-decoration-left,
.bg-decoration-right {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-decoration-left {
  left: -86px;
  top: 371px;
  width: 592.917px;
  height: 664.336px;
  transform: rotateY(180deg);
}

.bg-decoration-right {
  right: -86px;
  top: 372px;
  width: 592.917px;
  height: 664.336px;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

header { 
  padding: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-container {
  width: 100%;
  max-width: var(--container-max-width);
  padding: 0 var(--container-padding);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 139px;
}

.logo-mark {
  width: 34.5px;
  height: 25.674px;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 19.079px;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 38px;
  padding: 40px 20px;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 67px;
}

.main-logo { 
  width: 530px;
  max-width: 90%;
  height: 397px;
  object-fit: contain;
}

.text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 29px;
  width: 413px;
  max-width: 100%;
}

.coming-soon {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #a7a7a7;
  min-height: 83px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.coming-text { 
  color: #ff3f24;
  font-family: 'Sama Devanagari', 'Noto Sans Devanagari', sans-serif;
  font-weight: 700;
  font-size: 32px;
  margin: 0;
  white-space: nowrap;
}

.sub-text { 
  font-family: 'Sama Devanagari', 'Noto Sans Devanagari', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-secondary);
  margin: 0;
  text-align: center;
}

/* ===== Seamless Marquee ===== */
footer {
  background: var(--brand-primary);
  color: #fff;
  height: 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
  width: 100%;
}

.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 5%, black 95%, transparent 100%);
}

.marquee-track {
  display: inline-flex;
  gap: 40px;
  white-space: nowrap;
  will-change: transform;
  animation: marquee var(--marquee-duration) linear infinite;
}

.copy {
  font-family: 'Sama Devanagari', 'Noto Sans Devanagari', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 60px;
  display: inline-block;
  padding: 0 40px;
}

/* Right → Left movement by exactly one copy's width (50%) */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Background decoration styles */
.bg-decoration-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.bg-container-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(14.369deg);
  width: 327.393px;
  height: 564.225px;
}

.bg-container-frame img {
  width: 100%;
  height: 100%;
}

.bg-image-frame {
  position: absolute;
  left: 11px;
  top: 172px;
  width: 461.682px;
  height: 471.341px;
  transform: rotate(-3.207deg);
}

.bg-decoration-left .bg-image-frame img {
  opacity: 0.1;
}

.bg-decoration-right .bg-image-frame img {
  opacity: 0.2;
}

.bg-image-frame img {
  width: 100%;
  height: 100%;
}

@media (max-width: 1024px) {
  .bg-decoration-left,
  .bg-decoration-right {
    display: none;
  }
}

@media (max-width: 768px) {
  header {
    height: 60px;
  }
  
  .logo-wrap {
    width: auto;
  }
  
  .logo-mark {
    width: 28px;
    height: 20px;
  }
  
  .logo-text {
    font-size: 16px;
  }
  
  .main-logo { 
    width: 80%;
    max-width: 300px;
    height: auto;
  }
  
  .text-container {
    width: 90%;
  }
  
  .coming-text { 
    font-size: 24px;
  }
  
  .sub-text { 
    font-size: 16px;
  }
  
  .copy { 
    font-size: 16px;
  }
  
  footer {
    height: 50px;
  }
  
  .copy {
    line-height: 50px;
    padding: 0 20px;
  }
  
  .music-toggle {
    bottom: 70px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .music-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .coming-text { 
    font-size: 20px;
    white-space: normal;
  }
  
  .coming-soon {
    padding: 20px;
  }
  
  .sub-text { 
    font-size: 14px;
  }
  
  .copy {
    font-size: 14px;
  }
}
