:root{
  --bg:#111212;
  --gold:#C0A16F;
  --muted:#635F5B;
  --light:#F0EBE0;
}

/* 🌑 Base */
body{
  margin:0;
  background:var(--bg);
  color:var(--light);
  font-family:'IBM Plex Sans',sans-serif;
  overflow:hidden;
}

/* 🖥️ Layout */
.layout{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:3vw;
  height:100vh;
  padding:3vw;
  box-sizing:border-box;
}

/* ✨ Universal Glass Style */
.glass{
  background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.02));
  border:1px solid rgba(192,161,111,.25);
  border-radius:22px;
  box-shadow:
    inset 0 0 10px rgba(255,255,255,.05),
    0 0 25px rgba(192,161,111,.25),
    0 0 40px rgba(0,0,0,.6);
  backdrop-filter:blur(14px);
}

/* 🖼️ Photo Frame */
.photo{
  position:relative;
  overflow:hidden;
  border-radius:26px;
  box-shadow:0 0 60px rgba(192,161,111,.25);
}
.photo img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 1s ease-in-out;
}
.photo img.active{opacity:1;}

/* 📋 Info Panel */
.info{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.top{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.brand img{
  height:80px;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.6));
}
.clock{
  font-size:2rem;
  font-weight:600;
  color:var(--light);
}
.date{
  color:var(--muted);
  font-size:1rem;
}
.weather{
  color:var(--muted);
  font-size:1rem;
  text-align:right;
}

/* 💫 Welcome Card */
.welcome{
  composes: glass;
  padding:24px;
  text-align:center;
}
.welcome h1{
  font-family:'Barlow Condensed';
  font-size:3.2rem;
  margin:0;
  color:var(--gold);
  text-shadow:0 0 12px rgba(192,161,111,.4);
  letter-spacing:1px;
  transition:all .5s ease;
}
.welcome p{
  margin-top:10px;
  color:var(--muted);
  font-size:1.1rem;
  letter-spacing:0.2px;
  transition:opacity .5s ease;
}

/* 🎵 Music Player Card */
.music{
  composes: glass;
  padding:20px;
  text-align:center;
}
.track-title{
  font-family:'Barlow Condensed';
  font-size:1.6rem;
  color:var(--gold);
  text-shadow:0 0 10px rgba(192,161,111,.4);
}
.buttons{
  margin-top:8px;
}
.btn{
  background:var(--gold);
  border:none;
  color:#000;
  border-radius:50%;
  width:50px;
  height:50px;
  font-size:1.2rem;
  cursor:pointer;
  margin:0 10px;
  transition:all .3s ease;
}
.btn:hover{
  background:#d1b47e;
  box-shadow:0 0 15px rgba(192,161,111,.6);
}
.equalizer{
  display:flex;
  justify-content:center;
  gap:4px;
  margin-top:12px;
}
.equalizer span{
  width:5px;
  height:24px;
  background:var(--gold);
  animation:bounce 1s infinite ease-in-out;
  box-shadow:0 0 10px rgba(192,161,111,.5);
}
@keyframes bounce{
  0%,100%{transform:scaleY(0.3);}
  50%{transform:scaleY(1);}
}
.equalizer.paused span{
  animation-play-state:paused;
}
.equalizer span:nth-child(2){animation-delay:.2s;}
.equalizer span:nth-child(3){animation-delay:.4s;}
.equalizer span:nth-child(4){animation-delay:.6s;}

/* 🔗 QR Card Section */
.qr{
  display:flex;
  justify-content:center;
  align-items:stretch;
  gap:3rem;
  flex-wrap:nowrap;
  margin-top:25px;
}
.qr-card{
  flex:0 1 200px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  background:linear-gradient(160deg,rgba(255,255,255,.08),rgba(255,255,255,.02));
  border:1px solid rgba(192,161,111,.3);
  border-radius:20px;
  padding:20px;
  text-align:center;
  position:relative;
  box-shadow:0 0 25px rgba(192,161,111,0.25);
  backdrop-filter:blur(12px);
  transition:transform .3s ease, box-shadow .3s ease;
  height:240px;
}
.qr-card:hover{
  transform:translateY(-4px);
  box-shadow:0 0 35px rgba(192,161,111,0.4);
}
.qr-card img{
  width:110px;
  background:#fff;
  padding:6px;
  border-radius:10px;
  margin-bottom:10px;
}
.qr-text{
  font-size:.95rem;
  color:var(--muted);
  margin-bottom:4px;
}
.qr-link{
  color:var(--gold);
  font-family:'Barlow Condensed';
  font-size:1.1rem;
}

/* 🎄 Footer */
.footer{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  padding:1rem 3vw;
  background:rgba(0,0,0,.75);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1rem;
  font-size:1.2rem;
  font-family:'Barlow Condensed';
  color:var(--light);
  letter-spacing:.3px;
}
.footer span:first-child{
  color:var(--gold);
}

/* ✨ Fade Animation for Welcome */
.fade-in{
  opacity:0;
  transform:translateY(10px);
  animation:fadeIn 0.8s ease forwards;
}
.fade-out{
  opacity:1;
  transform:translateY(0);
  animation:fadeOut 0.8s ease forwards;
}
@keyframes fadeIn{
  to{opacity:1;transform:translateY(0);}
}
@keyframes fadeOut{
  to{opacity:0;transform:translateY(-10px);}
}

/* 📱 Responsive */
@media (max-width: 768px){
  .layout{grid-template-columns:1fr;}
  .qr{flex-wrap:wrap;gap:2rem;}
  .qr-card{height:auto;}
}
