@import url("https://fonts.googleapis.com/css2?family=MuseoModerno:wght@300;400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Crimson Text", "Georgia", serif;
  background-color: #13100e;
  color: #d4c4b0;
  line-height: 1.6;
  position: relative;
}

section {
  scroll-margin-top: 80px;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Navigation Menu */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 5%;
  display: flex;
  gap: 40px;
  align-items: center;
  z-index: 100;
  background: transparent;
}

.nav-link {
  font-family: "Crimson Text", serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #c4a882;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #c4a882;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #e8d5c4;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  margin-left: auto;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #c4a882;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(
    to bottom,
    rgba(26, 20, 16, 0.98),
    rgba(19, 16, 14, 0.98)
  );
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 80px 30px 30px;
  gap: 30px;
  z-index: 100;
  transition: right 0.4s ease;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
  right: 0;
}

.mobile-link {
  font-family: "Crimson Text", serif;
  font-size: 1.8rem;
  font-style: italic;
  color: #c4a882;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(196, 168, 130, 0.2);
}

.mobile-link:hover {
  color: #e8d5c4;
  padding-left: 10px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
}

/* Hero Desktop */
.hero-desktop {
  background-image: linear-gradient(
      rgba(26, 20, 16, 0.4),
      rgba(26, 20, 16, 0.7)
    ),
    url("../media/imgs/ian-vanez-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Hero Mobile */
.hero-mobile {
  display: none;
  overflow: hidden;
}

.hero-bg-mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 700px;
  object-fit: cover;
  object-position: 85% center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(26, 20, 16, 0.4), rgba(26, 20, 16, 0.7));
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  opacity: 0.3;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: "MuseoModerno", sans-serif;
  font-size: 10rem;
  font-weight: 500;
  color: #ab2b07;
  letter-spacing: 0px;
  margin-bottom: 0px;
}

.hero p {
  margin-top: -3rem;
  font-family: "Crimson Text", serif;
  font-size: 3rem;
  font-style: italic;
  color: #c4a882;
  font-weight: 400;
}

/* Section Styling */
section {
  padding: 80px 5%;
  background: transparent;
}

h2 {
  font-family: "MuseoModerno", sans-serif;
  font-size: 2.5rem;
  color: #e8d5c4;
  margin-bottom: 50px;
  text-align: center;
  font-weight: 400;
  letter-spacing: 2px;
}

/* Music Section */
.music-section {
  max-width: 1000px;
  margin: 0 auto;
}

.music-content {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.music-image {
  flex: 1;
  min-width: 300px;
}

.music-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.music-info {
  flex: 1;
  min-width: 300px;
}

.music-info h3 {
  font-family: "MuseoModerno", sans-serif;
  font-size: 3rem;
  color: #e8d5c4;
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 1px;
}

.music-description {
  font-family: "Crimson Text", serif;
  font-size: 1.3rem;
  color: #b8a898;
  margin-bottom: 6rem;
  font-style: italic;
}

/* Custom Player */
.custom-player-container {
  width: 100%;
  max-width: 500px;
  margin: 30px 0;
}

.custom-player {
  position: relative;
  height: 140px;
}

.player-track {
  position: absolute;
  top: 0;
  right: 15px;
  left: 15px;
  padding: 13px 22px 10px 170px;
  background: rgba(60, 40, 30, 0.5);
  border: 1px solid rgba(196, 168, 130, 0.3);
  border-radius: 15px 15px 0 0;
  transition: 0.3s ease top;
  z-index: 1;
}

.player-track.active {
  top: -92px;
}

.album-name {
  font-family: "MuseoModerno", sans-serif;
  color: #e8d5c4;
  font-size: 1.4rem;
  font-weight: 500;
}

.track-name {
  font-family: "Crimson Text", serif;
  color: #b8a898;
  font-size: 1rem;
  margin: 2px 0 13px 0;
  font-style: italic;
}

.track-time {
  height: 12px;
  margin-bottom: 3px;
  overflow: hidden;
}

.current-time {
  float: left;
}

.track-length {
  float: right;
}

.current-time,
.track-length {
  color: transparent;
  font-size: 11px;
  background-color: rgba(196, 168, 130, 0.2);
  border-radius: 10px;
  transition: 0.3s ease all;
  padding: 2px 6px;
}

.track-time.active .current-time,
.track-time.active .track-length {
  color: #c4a882;
  background-color: transparent;
}

.seek-bar-container,
.seek-bar {
  position: relative;
  height: 4px;
  border-radius: 4px;
}

.seek-bar-container {
  background-color: rgba(196, 168, 130, 0.2);
  cursor: pointer;
}

.seek-time {
  position: absolute;
  top: -29px;
  color: #e8d5c4;
  font-size: 12px;
  white-space: pre;
  padding: 5px 6px;
  border-radius: 4px;
  display: none;
  background-color: rgba(60, 40, 30, 0.9);
}

.s-hover {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  opacity: 0.3;
  z-index: 2;
  background-color: #8b5a3c;
}

.seek-bar {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background-color: #c4a882;
  transition: 0.2s ease width;
  z-index: 1;
}

.player-content {
  position: relative;
  height: 100%;
  background: rgb(23, 20, 18);
  border: 1px solid rgba(196, 168, 130, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  z-index: 2;
}

.album-art {
  position: absolute;
  top: -40px;
  left: 40px;
  width: 115px;
  height: 115px;
  transform: rotateZ(0);
  transition: 0.3s ease all;
  box-shadow: 0 0 0 8px rgba(60, 40, 30, 0.8);
  border-radius: 50%;
  overflow: hidden;
}

.album-art.active {
  top: -50px;
  box-shadow: 0 0 0 4px rgba(60, 40, 30, 0.9),
    0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.album-art:before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin: -10px auto 0 auto;
  background-color: rgba(60, 40, 30, 0.9);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #8b5a3c;
  z-index: 2;
}

.album-art img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  z-index: -1;
}

.album-art img.active {
  opacity: 1;
  z-index: 1;
}

.album-art.active img.active {
  z-index: 1;
  animation: rotateAlbumArt 20s linear 0s infinite forwards;
}

@keyframes rotateAlbumArt {
  0% {
    transform: rotateZ(0);
  }
  100% {
    transform: rotateZ(360deg);
  }
}

.buffer-box {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 13px;
  color: #e8d5c4;
  font-size: 13px;
  text-align: center;
  font-weight: bold;
  line-height: 1;
  padding: 6px;
  margin: -12px auto 0 auto;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  z-index: 2;
  transition: 0.1s linear all;
}

.album-art.buffering img {
  opacity: 0.25;
}

.album-art.buffering img.active {
  opacity: 0.8;
  filter: blur(2px);
}

.album-art.buffering .buffer-box {
  opacity: 1;
}

.player-controls {
  width: 222px;
  height: 100%;
  margin: 0 5px 0 141px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.control {
  width: 29.333%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.button {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(60, 40, 30, 0.7);
  border: 2px solid rgba(196, 168, 130, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s ease all;
}

.button:hover {
  background: rgba(80, 60, 45, 0.9);
  border-color: #c4a882;
  transform: scale(1.05);
}

.button svg {
  color: #c4a882;
  transition: 0.2s ease all;
}

.button:hover svg {
  color: #e8d5c4;
}

/* Streaming Links */
.streaming-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.streaming-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(60, 40, 30, 0.6);
  color: #e8d5c4;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(196, 168, 130, 0.3);
  font-family: "Crimson Text", serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-style: italic;
}

.streaming-btn:hover {
  background: rgba(80, 60, 45, 0.8);
  transform: translateY(-2px);
}

.streaming-btn svg {
  width: 20px;
  height: 20px;
}

.spotify-btn {
  border-color: #1db954;
  color: #1db954;
}

.spotify-btn:hover {
  box-shadow: 0 5px 20px rgba(29, 185, 84, 0.5);
}

.youtube-btn {
  border-color: #ff0000;
  color: #ff0000;
}

.youtube-btn:hover {
  box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
}

/* Book Section */
.book-section {
  max-width: 1100px;
  margin: 0 auto;
}

.book-content {
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}

.book-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.book-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease;
}

.book-image img:hover {
  transform: scale(1.05);
}

.book-info {
  flex: 1;
  min-width: 300px;
}

.book-info h3 {
  font-family: "MuseoModerno", sans-serif;
  font-size: 2.5rem;
  color: #c75450;
  margin-bottom: 20px;
  font-weight: 400;
}

.book-info p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #b8a898;
}

.buy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(60, 40, 30, 0.6);
  color: #e8d5c4;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(196, 168, 130, 0.3);
  font-family: "Crimson Text", serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-style: italic;
}

.buy-btn:hover {
  background: rgba(80, 60, 45, 0.8);
  transform: translateY(-2px);
}

.buy-btn svg {
  width: 20px;
  height: 20px;
}

.amazon-btn {
  border-color: #FF9900;
  color: #FF9900;
}

.amazon-btn:hover {
  box-shadow: 0 5px 20px rgba(255, 153, 0, 0.5);
}

/* Gallery Section */
.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  aspect-ratio: 4 / 3;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(196, 168, 130, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #c75450;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 5%;
  color: #8b7355;
}

footer p {
  font-size: 0.95rem;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-desktop {
    display: none;
  }

  .hero-mobile {
    display: flex;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    margin-top: 0rem;
    font-size: 1.4rem;
  }

  .music-content {
    flex-direction: column;
    align-items: center;
  }

  .music-info h3 {
    font-size: 2rem;
  }

  .custom-player-container {
    max-width: 100%;
  }

  .custom-player {
    height: 120px;
  }

  .player-track {
    padding: 10px 15px 8px 140px;
    font-size: 0.9rem;
  }

  .album-name {
    font-size: 1.1rem;
  }

  .track-name {
    font-size: 0.9rem;
  }

  .album-art {
    width: 90px;
    height: 90px;
    left: 25px;
  }

  .player-controls {
    width: 200px;
    margin-left: 110px;
  }

  .button {
    width: 50px;
    height: 50px;
  }

  .button svg {
    width: 16px;
    height: 16px;
  }

  .streaming-links {
    justify-content: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    text-align: center;
  }

  .streaming-btn {
    justify-content: center;
  }

  .book-content {
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  h2 {
    font-size: 2rem;
  }

  .nav-menu {
    padding: 20px 5%;
    gap: 25px;
  }

  .nav-link {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}
