:root {
  --bg-dark: #080a0c;
  --panel-dark: #101418;
  --panel-border: #1f2b36;
  --accent-glow: #bce0fd;
  --text-muted: #8a9ba8;
}

body {
  background-color: var(--bg-dark);
  color: #ffffff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin: 0; padding: 40px;
}

/* ============================================================
   STYLIZED HEADER & NAVIGATION
   ============================================================ */

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 50px;
  background: rgba(8, 10, 12, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
  border-bottom: 1px solid var(--panel-border, #1f2b36);
}

/* Nav container positioning */
.main-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Nav link styling — Strips default purple color and underlines */
.main-header nav a,
.main-header nav a:visited {
  color: var(--text-muted, #8a9ba8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

/* Hover state glow and accent color */
.main-header nav a:hover {
  color: var(--accent-glow, #bce0fd);
}

/* Subtle accent line animation under active/hovered link */
.main-header nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-glow, #bce0fd);
  box-shadow: 0 0 8px var(--accent-glow, #bce0fd);
  transition: width 0.3s ease;
}

.main-header nav a:hover::after {
  width: 100%;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}
.logo span { color: var(--accent-glow); }

.hero-section {
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
background-image: url('img-music/vinile-.jpg');  
background-size: cover;  
background-position: bottom;
/* background: radial-gradient(circle at center, #16222e 0%, var(--bg-dark) 80%);*/
  text-align: center;
}

.tagline {
color:#06062C;
 /* color: var(--accent-glow);*/
  letter-spacing: 4px;
  font-size: 12px;
}

h1 {
font-family: "Arial";
 letter-spacing: 10px;
  font-size: 50px;
  margin: 5px 0 22px 0;
  font-weight: 300;
color:#FFFFC5;
}

.btn-primary {
  background: transparent;
  border: 1px solid var(--accent-glow);
  color: var(--accent-blue);
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--accent-glow);
  color: #000;
  box-shadow: 0 0 20px rgba(188, 224, 253, 0.4);
}

/* Grid & Cards */
.content-section { padding: 100px 50px; }

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px; transition: opacity 0.2s ease;
}

.project-card {
  height: 380px; position: relative; border-radius: 6px; overflow: hidden;
  cursor: pointer; border: 1px solid var(--panel-border);
}
.card-bg {
  width: 100%; height: 100%; background-size: contain; background-position: top; background-repeat: no-repeat;
  transition: transform 0.4s ease;
}
.project-card:hover .card-bg { transform: scale(1.05); }
.card-info {
  position: absolute; bottom: 0; inset-inline: 0; padding: 13px;
  background: linear-gradient(to top, rgba(8,10,12,0.95), transparent);
}

/* ============================================================
   SINGLE COLUMN TRACK LIST OVERRIDE FOR CATEGORY FILTERS
   ============================================================ */

/* When category filter is active, force container to display full-width rows */
#project-grid.tracks-mode {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

/* Ensure individual track containers fill the full width of the parent */
#project-grid.tracks-mode .track-row-container {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Track Row */
.track-row {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: var(--panel-dark);
  margin-bottom: 10px;
  border-left: 3px solid transparent;
  transition: border-color 0.3s;
}

.track-row:hover { border-left-color: var(--accent-glow); }

/* Expansion Drawer */
.project-drawer {
  display: none; background: var(--panel-dark); border: 1px solid var(--panel-border);
  border-radius: 6px; padding: 40px; margin-top: 30px; position: relative;
}
.close-drawer {
  position: absolute; top: 20px; right: 20px; background: transparent;
  border: none; color: var(--text-muted); font-size: 16px; cursor: pointer;
}

/* Drawer Header Section */
.drawer-header { display: flex; gap: 40px; margin-bottom: 40px; }
.drawer-cover { flex: 0 0 280px; height: 280px; }
.drawer-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.drawer-meta { flex: 1; }
.genre-badge { color: var(--accent-glow); font-size: 12px; letter-spacing: 2px; }
.drawer-meta h2 { font-size: 36px; margin: 10px 0; font-weight: 300; }
.drawer-meta p { color: var(--text-muted); line-height: 1.6; }
.meta-stats { display: flex; gap: 30px; margin-top: 20px; font-size: 14px; }

/* Track Rows & Version Sub-Drawers */
.track-row-container { margin-bottom: 10px; background: #0c1014; border: 1px solid var(--panel-border); }
.track-main-row {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  gap: 15px;
  background: var(--panel-dark);
  border: 1px solid var(--panel-border);
}
.track-play-btn {
  background: transparent; border: 1px solid var(--accent-glow);
  color: var(--accent-glow); width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
}
/* Info container: Stacks title-row above description */
.track-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px; /* Space between title row and description */
}
/* Base track title styling */
.track-title {
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  display: inline-block;
}

/* Track Code (<small>) — Fixed 200px offset from the start of the title row */
.track-code {


  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.track-des { font-size: 12px; color: var(--text-muted); }
.track-dur { font-size: 13px; color: var(--text-muted); }
.track-toggle-btn {
  background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px;
}

/* Expanded Track Details Drawer */
.track-details-drawer {
  display: none; 
  padding: 20px; 
  background: #080a0c; 
  border-top: 1px dashed var(--panel-border);
  font-size: 13px; 
  color: var(--text-muted);
  box-sizing: border-box;
  width: 100%;
  overflow: hidden; /* Prevents child elements from spilling horizontally */
}
.track-tags { 
  display: flex; 
  gap: 8px; 
  margin-top: 10px; 
  flex-wrap: wrap; /* Allows tags to wrap onto new lines on small screens */
  max-width: 100%;
}

.tag-pill { 
  background: #16202a; 
  padding: 4px 10px; 
  border-radius: 12px; 
  font-size: 11px; 
  white-space: nowrap; /* Keeps text inside each individual tag on one line */
}
.version-list { margin-top: 15px; padding-top: 10px; border-top: 1px solid #141c24; }

.version-list ul li { padding-top: 10px; border-bottom: 1px solid #141c24; }


/* Responsive adjustments */
@media (max-width: 768px) {
  .drawer-header { flex-direction: column; }
  .drawer-cover { flex: auto; height: 200px; }
}

/* ============================================================
   2. DUAL-LAYER WAVEFORM AUDIO PLAYER CONTROLS
   ============================================================ */

/* Waveform Container (500px x 30px) */
.waveform-container {
  width: 500px;
  height: 30px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  background-color: #080a0c;
  flex-shrink: 0;
}

/* Base Layer: Light-colored waveform image */
.waveform-bg {
  position: absolute;
  inset: 0;
  width: 500px;
  height: 30px;
  background-size: 500px 30px;
  background-repeat: no-repeat;
  background-position: left center;
  background-color: #080a0c;
  opacity: 0.85; /* Light / Unplayed state */
}

/* Overlay Layer: Darker/Active waveform revealed during playback */
.waveform-progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%; /* Dynamically expands via JS from 0% to 100% */
  overflow: hidden;
  transition: width 0.1s linear;
}

/* Dark waveform image rendered inside progress overlay */
.waveform-progress-img {
  width: 500px;
  height: 30px;
  background-size: 500px 30px;
  background-repeat: no-repeat;
  background-position: left center;
  filter: brightness(0.4) contrast(1.4); /* Converts light image to dark active state */
}

/* ============================================================
   STICKY PLAYER FIXED POSITIONING & CENTERED GRID LAYOUT
   ============================================================ */

#sticky-player {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 70px !important;
  background-color: #080a0c !important;
  
  /* 3-Column Grid: Left (1fr), Center (Auto), Right (1fr) */
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 20px !important;
  
  padding: 0 40px !important;
  z-index: 999999 !important;
  box-sizing: border-box !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* OFF-SCREEN HIDDEN STATE */
#sticky-player.player-hidden {
  transform: translateY(100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* VISIBLE STATE */
#sticky-player.is-visible {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* 1. LEFT SIDE (Track Title & Album) */
.player-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: right !important;
  text-align: right !important;  /* <--- Ensures multi-line text centers cleanly */
  min-width: 0 !important;
  margin-right: 0 !important;
}

/* 2. CENTER SIDE (Play Button, Waveform, Time Counter) */
.player-controls {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  justify-content: center !important;
}

/* 3. RIGHT SIDE (Extra Metadata Container) */
.player-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
  text-align: right !important;
}

/* RESPONSIVE OVERRIDES */
@media screen and (max-width: 850px) {
  #sticky-player {
    padding: 0 15px !important;
  }
  #sticky-waveform, 
  #wf-bg, 
  #wf-progress-img {
    width: 300px !important; /* Dynamically shrinks waveform for smaller tablets */
  }
}

@media screen and (max-width: 650px) {
  #sticky-player {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    padding: 10px 15px !important;
    gap: 8px !important;
  }

  .player-info,
  .player-right {
    width: 100% !important;
   align-items: center !important;   /* Centers flex children horizontally */
   text-align: center !important;    /* Centers title text */
  }

/* Keep title text span centered */
  .player-info span {
    text-align: center !important;
  }

  .player-controls {
    width: 100% !important;
    justify-content: center !important;
  }

  .player-right {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* ============================================================


/* Pitch Modal */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center; justify-content: center;
}
.modal-content {
  background: var(--panel-dark);
  padding: 40px;
  width: 70%;
  border: 1px solid #1f2b36;
  position: relative;
}
.close-modal { position: absolute; right: 20px; top: 15px; font-size: 24px; cursor: pointer; }

/* Filter Controls */
.filter-bar { display: flex; gap: 10px; margin-bottom: 30px; }
.filter-btn {
  background: transparent; border: 1px solid var(--panel-border);
  color: var(--text-muted); padding: 10px 20px; cursor: pointer; border-radius: 4px;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--accent-glow); color: #fff; }

/* Card Transitions */
.project-card {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card.hidden {
  display: none;
}

#music {
background-image: url('img-music/images.jpg');  background-size: cover;
 /* background: radial-gradient(circle at center, #16222e 0%, var(--bg-dark) 80%);*/
  text-align: center;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES FOR GL SONICWORKS
   ============================================================ */

/* Tablet & Mobile Screens (Below 768px) */
@media screen and (max-width: 768px) {
  
  /* Navigation Layout */
  .main-header {
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
  }

  .main-header nav {
    margin-top: 12px;
    display: flex;
    gap: 15px;
  }

  .main-header nav a {
    font-size: 13px;
  }

  /* Hero Adjustments */
  .hero-section {
    padding: 0 20px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  /* Section Spacing */
  .content-section {
    padding: 60px 20px;
  }

  /* Grid Layout Fallback */
  .grid-container {
    grid-template-columns: 1fr; /* Single column layout for cards */
  }

  .project-card {
    height: 300px;
  }

  /* Presentation Modal Width */
  .modal-content {
    width: 90%;
    padding: 25px;
  }

  /* Floating Sticky Player */
  #sticky-player {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 20px;
  }

  #main-audio {
    width: 100%;
  }
}

/* Extra Small Mobile Devices (Below 480px) */
@media screen and (max-width: 480px) {
  h1 {
    font-size: 26px;
  }

  .tagline {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .btn-primary {
    width: 100%;
    padding: 12px 0;
  }
}

/* ============================================================
   SERVICES & CONTACTS SECTIONS LAYOUT
   ============================================================ */

/* Ensure all content sections are visible and block-level */
.content-section {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 80px 50px;
 /* max-width: 1200px;*/
  margin: 0 auto;
  box-sizing: border-box;
}

/* Service Feature Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--panel-dark, #101418);
  border: 1px solid var(--panel-border, #1f2b36);
  border-radius: 6px;
  padding: 30px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-glow, #bce0fd);
}

.service-card h3 {
  font-size: 20px;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted, #8a9ba8);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Contacts Layout */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
  background: var(--panel-dark, #101418);
  border: 1px solid var(--panel-border, #1f2b36);
  border-radius: 6px;
  padding: 40px;
}

.contact-info p {
  color: var(--text-muted, #8a9ba8);
  font-size: 15px;
  line-height: 1.8;
}

.contact-info strong {
  color: #ffffff;
}

/* Contact Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  background: #080a0c;
  border: 1px solid var(--panel-border, #1f2b36);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-glow, #bce0fd);
}

/* Responsive adjustment for Mobile */
@media screen and (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 25px;
  }
}

/* ============================================================
   FILTER BAR & SEARCH INPUT STYLING
   ============================================================ */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap; /* Wraps gracefully on smaller screens */
}

.filter-buttons-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Right-aligned search container */
.filter-search-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto; /* Pushes container to the far right */
}

.search-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted, #8a9ba8);
  white-space: nowrap;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper input {
  background: #080a0c;
  border: 1px solid var(--panel-border, #1f2b36);
  color: #ffffff;
  padding: 8px 30px 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  width: 240px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-glow, #bce0fd);
  box-shadow: 0 0 8px rgba(188, 224, 253, 0.2);
}

/* Clear (X) Button */
#btn-search-clear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted, #8a9ba8);
  font-size: 16px;
  cursor: pointer;
  display: none; /* Hidden by default until user types */
  padding: 0;
  line-height: 1;
}

#btn-search-clear:hover {
  color: #ffffff;
}

/* Responsive adjustment for vertical/mobile screens */
@media screen and (max-width: 768px) {
  .filter-search-container {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
  .search-input-wrapper {
    flex: 1;
  }
  .search-input-wrapper input {
    width: 100%;
  }
}

/* ============================================================
   RESPONSIVE MOBILE & SMALL SCREEN STYLES
   ============================================================ */

/* Mobile / Tablet Viewports (Below 768px) */
@media screen and (max-width: 768px) {

  /* 1. Navigation Header */
  .main-header {
    padding: 12px 20px;
    flex-direction: column;
    gap: 12px;
  }

  .main-header nav {
    gap: 15px;
  }

  .main-header nav a {
    font-size: 11px;
    letter-spacing: 1px;
  }

  /* 2. Hero Section Adjustments */
  .hero-section {
    height: 60vh;
    padding: 0 15px;
  }

  /* 3. Filter Bar & Search Input */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .filter-buttons-group {
    justify-content: center;
  }

  .filter-search-container {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .search-input-wrapper input {
    width: 100%;
    box-sizing: border-box;
  }

  /* 4. Track Row Layout Stack */
  .track-main-row {
    flex-wrap: wrap;
    padding: 10px;
    gap: 10px;
  }

  .track-info {
    flex: 1 1 60%;
  }

  .track-title {
    font-size: 13px;
  }

  .track-dur {
    margin-left: auto;
    font-size: 12px;
  }

  /* 5. Sticky Audio Player Bar */
  .sticky-player {
    padding: 8px 15px;
    flex-direction: column;
    gap: 8px;
    height: auto;
  }

  .player-info-container {
    width: 100%;
    justify-content: space-between;
  }

  .player-waveform-container {
    width: 100%;
    height: 35px; /* Compact height for small screens */
  }

  .player-controls {
    width: 100%;
    justify-content: center;
  }
}

/* Extra Small Mobile Devices (Below 480px) */
@media screen and (max-width: 480px) {
  .filter-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .track-details-drawer p {
    font-size: 11px;
  }

  .tag-pill {
    font-size: 10px;
    padding: 2px 6px;
  }
}

/* ============================================================
   TOUCH CONTROLS & SMALL VIEWPORT INTERACTION POLISH
   ============================================================ */

/* Disable default mobile webkit touch highlight overlay */
button, 
a, 
.track-main-row, 
.filter-btn, 
#btn-search-clear {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* Eliminates the 300ms tap delay on mobile */
}

/* Ensure play buttons and action controls meet mobile accessibility standards */
@media (hover: none) and (pointer: coarse) {
  
  /* Increase hitboxes for tap targets */
  .track-play-btn, 
  .track-toggle-btn,
  .player-play-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Make category buttons easier to tap on small screens */
  .filter-btn {
    padding: 10px 16px;
    font-size: 12px;
  }

  /* Expand track row hit area for touch */
  .track-main-row {
    padding: 12px 14px;
  }

  /* Smooth momentum scrolling for detail drawers */
  .track-details-drawer {
    -webkit-overflow-scrolling: touch;
  }
}

.no-copy {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
  user-select: none;         /* Standard */
}