:root {
  /* Design Tokens */
  --font-primary: 'Poppins', sans-serif;
  --font-display: 'Playfair Display', serif;
  --text-color: #1a1a1a;
  --text-gradient: linear-gradient(120deg, #1a1a1a, #404040);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-blur: blur(12px) saturate(180%);
  --glass-border: 1px solid rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);

  /* Animation */
  --timing-fast: 0.4s;
  --timing-slow: 0.6s;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100%;
  font-family: var(--font-primary);
  color: var(--text-color);
  background: linear-gradient(135deg, #f6f8fd, #eef2f9, #e8edf6, #f0f4fa, #f6f8fd);
  background-size: 400% 400%;
  animation: gradientShift 30s var(--ease) infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Shared Styles */
.logo,
.section h1,
.section h2 {
  font-family: var(--font-display);
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar,
.section {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all var(--timing-slow) var(--ease);
}

/* Layout & Components */
canvas#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.navbar {
  position: sticky;
  position:fixed;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
}

/*fix navbar whille playing song*/
body.music-playing .navbar{
  position:fixed;
  
}

.logo {
  font-size: 1.8rem;
  letter-spacing: 1px;
  transition: transform var(--timing-fast) var(--ease);
}

.logo:hover {
  transform: scale(1.02);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-links li a {
  position: relative;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-gradient);
  transition: width var(--timing-fast) var(--ease);
}

.nav-links li a:hover::after {
  width: 100%;
}

.search-input {
  padding: 0.8rem 1.2rem;
  border: 2px solid rgba(26, 26, 26, 0.1);
  border-radius: 8px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all var(--timing-fast) var(--ease);
}

.search-input:focus {
  outline: none;
  border-color: rgba(26, 26, 26, 0.3);
  box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.05);
  background: white;
}

.hamburger {
  display: none;
  font-size: 1.75rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 11;
}

.section {
  min-height: 100vh;
  border-radius: 24px;
  margin: 2rem auto;
  max-width: 1400px;
  padding: 8rem 4rem;
}

.section:hover {
  transform: translateY(-5px);
}

.section h1,
.section h2 {
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-left: var(--glass-border);
    box-shadow: var(--glass-shadow);
    transform: translateX(100%);
    transition: transform var(--timing-slow) var(--ease);
    display:none;
    z-index:10;
    
  }

  .nav-links.active {
    display:flex;
    transform: translateX(0);
    overflow: hidden;
    height:100vh;
    
  }

  .hamburger {
    display:block;
  }
}



/*CODE OF SONG RGB FEATURE*/
/* --- RGB Player & Glow Styles --- */

:root {
  /* Real-time Audio Properties (controlled by JS) */
  --glow-color: hsl(200, 100%, 50%);
  --bass-thump: 1;
}

/* Add this class to any element you want to have the glow effect */
.glow-target {
  position: relative;
  transform: scale(var(--bass-thump));
  transition: transform 0.1s ease-out;
  
  /* Optional: Add some padding so the glow doesn't overlap content */
  padding: 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8); /* Example background */
}

.glow-target::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  margin: -3px;
  border: 3px solid var(--glow-color);
  box-shadow: 0 0 25px var(--glow-color);
  transition: border-color 0.1s linear, box-shadow 0.1s linear;
  z-index: -1;
}

/* Player-specific Styles */
.player-container {
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
  border-radius: 16px;
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  text-align: center;
}

#now-playing {
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  min-height: 24px;
}

.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.player-controls button {
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.player-controls button:hover {
  background: rgba(0,0,0,0.1);
}

.playlist h3 {
  margin-bottom: 1rem;
}

.playlist ul {
  list-style: none;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

.playlist li {
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: left;
}

.playlist li:hover {
  background: rgba(0,0,0,0.05);
}

.playlist li.active {
  background: rgba(0,0,0,0.1);
  font-weight: 500;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh; /* Optional: Ensure full viewport height */
}



