/* ==========================================================================
   UP ROADWAYS (UpBusPlay) - Full-Screen UP Transport Background Wallpaper
   Full-page artwork background with glassmorphic floating UI controls
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@600;700;800&family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-hindi: 'Mukta', 'Inter', sans-serif;
  --font-main: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #0b1320;
  color: #ffffff;
  font-family: var(--font-main);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Full Screen UP Transport Artwork Wallpaper Background
   Uses position:fixed div instead of background-attachment:fixed
   because iOS Safari doesn't support background-attachment:fixed */
.bg-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient(180deg, rgba(10, 22, 37, 0.72) 0%, rgba(15, 8, 8, 0.85) 100%), url('assets/image.png?v=2');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Analog Film Grain Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 1;
}

/* App Viewport Grid */
.app-viewport {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  height: 100dvh;
  padding: 1.25rem 2rem 1.8rem;
  overflow: hidden;
}

/* Top Navigation Bar */
.top-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  position: relative;
}

.clock-display {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.highway-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.95rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 9999px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.9);
}

/* Top Right Buttons Group */
.top-right-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-right-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-main);
}

.top-right-btn span {
  white-space: nowrap;
}

.spotify-btn {
  background: rgba(30, 215, 96, 0.25);
  border-color: rgba(30, 215, 96, 0.4);
}

.spotify-btn:hover {
  background: rgba(30, 215, 96, 0.45);
  border-color: rgba(30, 215, 96, 0.65);
}

.ytmusic-btn {
  background: rgba(255, 0, 51, 0.25);
  border-color: rgba(255, 0, 51, 0.4);
}

.ytmusic-btn:hover {
  background: rgba(255, 0, 51, 0.45);
  border-color: rgba(255, 0, 51, 0.65);
}

.top-right-btn:hover {
  transform: scale(1.03);
}

/* Main Hero Stage */
.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  width: 100%;
  max-width: 950px;
  flex: 1;
}

.hero-title-hindi {
  font-family: var(--font-hindi);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: clamp(3.8rem, 9.5vw, 7.2rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
  text-shadow: 0 6px 35px rgba(0, 0, 0, 0.85), 0 2px 10px rgba(0, 0, 0, 0.95);
  line-height: 0.92;
  margin-bottom: 1rem;
}

.hero-title-hindi span {
  display: block;
}

/* English Subtitle (reference style) */
.hero-subtitle-eng {
  font-family: var(--font-main);
  font-size: clamp(0.7rem, 1.4vw, 0.9rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  margin-bottom: 1.4rem;
}

/* Highway Shayari Quote */
.hero-quote {
  font-family: var(--font-hindi);
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 800px;
  margin-top: 0.2rem;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.55rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-quote-icon {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Floating Left Horn Button */
.horn-btn-container {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
}

.horn-pill-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.1rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.horn-pill-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.05);
}

.horn-pill-btn:active {
  transform: scale(0.95);
}

/* Horn OK Please Active/Playing State */
.horn-pill-btn.horn-playing {
  animation: horn-shake 0.12s infinite alternate, horn-ripple 1.2s infinite ease-in-out;
  border-color: #ffc107 !important;
  background: rgba(255, 193, 7, 0.25) !important;
}

@keyframes horn-shake {
  0% { transform: rotate(-3deg) scale(1.05); }
  100% { transform: rotate(3deg) scale(1.05); }
}

@keyframes horn-ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.6), 0 10px 30px rgba(0, 0, 0, 0.45);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 193, 7, 0), 0 10px 30px rgba(0, 0, 0, 0.45);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0), 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

.horn-icon-circle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.horn-text-group {
  display: flex;
  flex-direction: column;
}

.horn-text-hindi {
  font-family: var(--font-hindi);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

.horn-text-eng {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Floating Bottom Player Bar (Matching reference screenshot) */
.player-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 620px;
  z-index: 50;
}

.player-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.1rem;
  background: rgba(28, 14, 12, 0.82);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Artwork Thumbnail (Rounded square like reference) */
.player-thumb-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.player-thumb-img.playing {
  transform: scale(1.03);
}

.player-main-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.player-song-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.player-song-artist {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-progress-bar {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  cursor: pointer;
  margin-top: 3px;
}

.player-progress-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 9999px;
}

.player-time-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ctrl-icon-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.ctrl-icon-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.ctrl-icon-btn#btn-shuffle.active {
  color: #34d399;
}

/* Main glowing white Play button (Reference screenshot match) */
.ctrl-icon-btn.btn-play-primary {
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: #0d0d0d;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.6), 0 4px 15px rgba(0, 0, 0, 0.5);
}

.ctrl-icon-btn.btn-play-primary:hover {
  transform: scale(1.08);
  background: #ffffff;
  color: #0d0d0d;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 4px 20px rgba(0, 0, 0, 0.6);
}

.ctrl-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Contact Footer */
.contact-footer {
  position: fixed;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
  z-index: 5;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}


/* ==========================================================================================================
   RESPONSIVE BREAKPOINTS
   Mobile-first progressive enhancement
   ========================================================================== */

/* Collapse Spotify/YT Music text to circular icons on all mobile/tablet viewports (<= 640px) */
@media (max-width: 640px) {
  .top-right-btns {
    gap: 0.4rem;
  }
  .top-right-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .top-right-btn span {
    display: none;
  }
  .top-right-btn svg {
    width: 15px;
    height: 15px;
  }
}

/* ---- Extra Small (phones ≤ 480px) ---- */
@media (max-width: 480px) {
  .bg-container {
    background-position: 35% 15%;
    background-size: cover;
  }

  .app-viewport {
    padding: 0.75rem 0.9rem 1rem;
  }

  .clock-display {
    font-size: 0.82rem;
  }

  .highway-badge {
    padding: 0.28rem 0.65rem;
    font-size: 0.72rem;
    gap: 0.35rem;
  }

  .pulse-dot {
    width: 6px;
    height: 6px;
  }

  .hero-title-hindi {
    font-size: 2.6rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.95);
  }

  .hero-subtitle-eng {
    font-size: 0.58rem;
    letter-spacing: 0.25em;
    margin-bottom: 0.6rem;
  }

  .hero-quote {
    font-size: 0.78rem;
    padding: 0.45rem 1rem;
    margin-bottom: 1rem;
    max-width: 95%;
  }

  .horn-btn-container {
    position: fixed;
    left: 50%;
    top: auto;
    bottom: 10rem;
    transform: translateX(-50%);
  }

  .horn-pill-btn {
    padding: 0.45rem 0.85rem;
    gap: 0.5rem;
  }

  .horn-icon-circle {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
  }

  .horn-text-hindi {
    font-size: 0.78rem;
  }

  .horn-text-eng {
    font-size: 0.6rem;
  }

  .player-container {
    bottom: 1.7rem;
    width: calc(100% - 1rem);
    max-width: 100%;
  }

  .player-card {
    padding: 0.5rem 0.7rem;
    gap: 0.55rem;
    border-radius: 22px;
  }

  .player-thumb-img {
    width: 38px;
    height: 38px;
  }

  .player-song-title {
    font-size: 0.78rem;
  }

  .player-song-artist {
    font-size: 0.65rem;
  }

  .player-time-text {
    font-size: 0.6rem;
  }

  .player-controls {
    gap: 0.15rem;
  }

  .ctrl-icon-btn {
    width: 26px;
    height: 26px;
  }
  .ctrl-icon-btn svg {
    width: 14px;
    height: 14px;
  }

  .ctrl-icon-btn.btn-play-primary {
    width: 32px;
    height: 32px;
  }
}

/* ---- Small (large phones 481px–640px) ---- */
@media (min-width: 481px) and (max-width: 640px) {
  .bg-container {
    background-position: 38% 18%;
  }

  .app-viewport {
    padding: 0.9rem 1.2rem 1.4rem;
  }

  .hero-title-hindi {
    font-size: 3.2rem;
    margin-bottom: 0.8rem;
  }

  .hero-quote {
    font-size: 0.88rem;
    padding: 0.5rem 1.2rem;
    margin-bottom: 1.2rem;
    max-width: 92%;
  }

  .horn-btn-container {
    position: fixed;
    left: 50%;
    top: auto;
    bottom: 10.2rem;
    transform: translateX(-50%);
  }

  .player-container {
    bottom: 1.8rem;
    width: calc(100% - 1.5rem);
  }

  .player-card {
    border-radius: 24px;
  }

  .player-thumb-img {
    width: 42px;
    height: 42px;
  }
}

/* ---- Medium (tablets 641px–768px) ---- */
@media (min-width: 641px) and (max-width: 768px) {
  .bg-container {
    background-position: center 20%;
  }

  .app-viewport {
    padding: 1rem 1.5rem 1.6rem;
  }

  .hero-title-hindi {
    font-size: 4.2rem;
  }

  .hero-quote {
    font-size: 1rem;
    max-width: 85%;
  }

  .horn-btn-container {
    left: 1.5rem;
  }

  .player-container {
    max-width: 480px;
  }
}

/* ---- Large (small laptops 769px–1024px) ---- */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title-hindi {
    font-size: 5.5rem;
  }

  .hero-quote {
    font-size: 1.15rem;
  }
}

/* ---- Landscape phones (short viewports) ---- */
@media (max-height: 500px) {
  .bg-container {
    background-position: center center;
  }

  .app-viewport {
    padding: 0.5rem 1rem 0.6rem;
  }

  .hero-title-hindi {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
  }

  .hero-quote {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    margin-bottom: 0.5rem;
  }

  .horn-btn-container {
    position: fixed;
    left: 1rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .horn-text-group {
    display: none;
  }

  .horn-pill-btn {
    padding: 0.4rem;
    border-radius: 50%;
  }

  .player-container {
    bottom: 0.5rem;
  }

  .player-card {
    padding: 0.4rem 0.7rem;
  }

  .player-thumb-img {
    width: 34px;
    height: 34px;
  }
}

/* ---- Safe area for notched phones (iPhone etc.) ---- */
@supports (padding: env(safe-area-inset-bottom)) {
  .player-container {
    bottom: calc(0.8rem + env(safe-area-inset-bottom));
  }
  .app-viewport {
    padding-top: calc(0.75rem + env(safe-area-inset-top));
  }
}

/* Developer Credits styling */
.player-credits {
  text-align: center;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.player-credits a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
  padding-bottom: 1px;
}

.player-credits a:hover {
  color: #ff9f43; /* Warm amber/orange hover highlight to match theme */
  border-bottom-color: #ff9f43;
  text-shadow: 0 0 6px rgba(255, 159, 67, 0.5);
}

/* Adjust credits on short viewports */
@media (max-height: 500px) {
  .player-credits {
    margin-top: 0.35rem;
    font-size: 0.62rem;
  }
}

/* Contact Footer styling */
.contact-footer {
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
  z-index: 10;
  margin-top: 0.8rem;
}

/* Safe area for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
  .player-container {
    bottom: calc(1.7rem + env(safe-area-inset-bottom)) !important;
  }
  .contact-footer {
    bottom: calc(0.4rem + env(safe-area-inset-bottom)) !important;
  }
  .app-viewport {
    padding-top: calc(0.75rem + env(safe-area-inset-top));
  }
}
