* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

body {
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.navbar {
  background: #ffffff;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar .container {
  display: flex;
  justify-content: space-between; /* With 3 children: logo (left), nav (center), player (right) */
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 3.5rem;
}

.nav-links a {
  color: #1a1a1b;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
  font-size: 30px;
}

.nav-links a:hover {
  color: #ffe0c7;
}

.hero {
  background: url('https://via.placeholder.com/1600x600') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 4rem 1rem;
  background-color: #444;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease-out;
}

.hero p {
  font-size: 1.2rem;
  animation: fadeInUp 1s ease-out;
}

.grid-section {
  padding: 3rem 0;
  background: #fff;
}

.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: #f2f2f2;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 1s ease-in;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #088fe9;
}

.footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 1rem 0;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Small screens */
@media (max-width: 640px) {
  .hero h2 { font-size: 2rem; }
  .nav-links { gap: 1rem; }
}

.logo-img {
  height: 200px; /* Adjust size as needed */
  display: block;
}

/* =========================
   Volume Slider (scoped)
   ========================= */
#player {
  width: 350px;
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 24px; /* breathing room from nav */
}

#player i {
  color: #666;
  font-size: 14px;
  line-height: 1;
}

/* Slider track */
#volume {
  position: relative;
  height: 5px;
  width: 300px;
  background: #555;
  border-radius: 15px;
}

/* jQuery UI range fill */
#volume .ui-slider-range-min {
  height: 5px;
  position: absolute;
  background: #47ba4f; /* green fill */
  border: none;
  border-radius: 10px;
  outline: none;
}

/* jQuery UI handle */
#volume .ui-slider-handle {
  width: 20px;
  height: 20px;
  border-radius: 20px;
  background: #FFF;
  position: absolute;
  margin-left: -8px; /* center on rail */
  margin-top: -8px;  /* center on rail */
  cursor: pointer;
  outline: none;
  border: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}

/* Responsive adjustment */
@media (max-width: 900px) {
  #player { width: 280px; }
  #volume { width: 230px; }
}
@media (max-width: 680px) {
  .navbar .container { flex-wrap: wrap; gap: 8px; }
  #player { margin: 0 auto; }
}



/* Two columns: logo | nav+player stack */
.header-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 24px;
}

/* Stack nav and volume vertically */
.nav-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* right align both */
  gap: 6px; /* space between nav and slider */
}

.nav-center {
  justify-self: end;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: #1a1a1b;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: .7; }

.nav-audio {
  display: flex;
  align-items: center;
  gap: 12px;
}
