/* Sound Engineering Portfolio Page */

html {
  scroll-behavior: smooth;
}

#lyd-intro {
  min-height: 50vh;
  min-height: 50dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
  margin-top: var(--space-xl);
  min-height: 10dvh;
}

#prosjekt,
#musikk {
  height: auto;
  margin: var(--space-xl) 0 var(--space-xl) 0;
  margin-left: 100px;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  margin-top: var(--space-xl);
  position: relative;
  min-height: 10dvh;
}

.typewriter-4 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Intro Section */
.lyd-intro-content {
  max-width: 600px;
  margin: var(--space-xl) auto;
  margin-left: 100px;
  padding: 0 var(--space-md);
}

.lyd-intro-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
}

.project-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  box-shadow: inset 0 1px 0 var(--glass-highlight),
    0 4px 16px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.show {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-4px);
  background: var(--glass-strong);
  box-shadow: inset 0 1px 0 var(--glass-highlight),
    0 8px 32px rgba(0, 0, 0, 0.12);
}

.project-card figure {
  margin: 0;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.4s ease;
}

.project-card:hover img {
  filter: grayscale(0);
}

.project-card figcaption {
  padding: var(--space-md);
}

.project-card h3 {
  font-size: 1.1rem;
  margin: 0 0 var(--space-xs) 0;
  color: var(--text);
}

.project-card .meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.project-card .meta .channel {
  color: var(--blue);
}

/* Music Section */
.music-section {
  margin: var(--space-xl) 0;
}

.music-section h2 {
  margin-bottom: var(--space-sm);
}

.music-section > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.spotify-embed {
  max-width: 600px;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: var(--space-sm);
  box-shadow: inset 0 1px 0 var(--glass-highlight),
    0 4px 16px rgba(0, 0, 0, 0.05);
}

.spotify-embed iframe {
  border-radius: 8px;
}

/* CTA Section */
#kontakt {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Mobile */
@media (max-width: 768px) {
  #prosjekt,
  #musikk {
    margin-left: 0;
  }

  .lyd-intro-content {
    margin-left: 0;
    text-align: center;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .spotify-embed {
    max-width: 100%;
  }
}
