@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500&family=Space+Grotesk:wght@400;600&display=swap');

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

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: #10002b;
  color: white;
  overflow-x: hidden;
  text-align: right;
}

nav#navbar {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 1000;
}

nav#navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav#navbar ul li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav#navbar ul li a:hover {
  color: #b5a3ff;
}

#hero {
  position: relative;
  height: 100vh;
  padding-right: 5vw;
  overflow: hidden;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -10;
  opacity: 1;
  filter: invert(0) blur(0px);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.hero-box {
  position: absolute;
  top: 38vh;
  right: 5vw;
  width: 40vw;
  height: 40vw;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 10;
}

.hero-text {
  font-size: 5rem;
  font-weight: 500;
  font-family: "Barlow Condensed", sans-serif;
  color: white;
  text-align: right;
  letter-spacing: 0;
  transform-origin: bottom right;
  transform: scaleY(1.5);
  transition: transform 0.1s ease-out, opacity 0.3s ease, color 0.8s ease, filter 0.3s ease;
  width: 100%;
  will-change: transform, filter, opacity, color;
  filter: blur(0px);
  text-shadow: 
    1px 1px 2px rgba(0, 0, 0, 0.625),
    -1px -1px 2px rgba(0,0,0,0.5);
}

.section-content {
  opacity: 0;
  transform: translateY(0) scaleY(1);
  filter: blur(0px);
  transition: transform 0.3s ease-out, filter 0.3s ease, opacity 0.3s ease;
  position: relative;
  z-index: 2;
}

section {
  padding: 100px 5vw;
  max-width: 1000px;
  margin-left: auto;
  margin-right: 0;
  text-align: right;
  position: relative;
  z-index: 1;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: right;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

section p {
  max-width: 600px;
  margin-left: auto;
  margin-right: 0;
  text-align: right;
  line-height: 1.8;
  font-size: 1.1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

footer {
  text-align: right;
  padding: 40px 5vw;
  font-size: 0.9rem;
  color: #ccc;
  text-shadow: none;
}

/* 底部填充区域，确保 contact 滑到屏幕中部 */
.bottom-padding {
  height: 150px;
  background: transparent;
}

/* --- Links and Icons --- */
.platform-links {
  display: flex;
  justify-content: flex-end;
  transform: translateX(5px);
}

.platform-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 10px;
  background: none;
  transition: transform 0.3s, filter 0.3s, color 0.3s;
}

.platform-link img,
.platform-link svg {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}

.platform-link.applemusic img,
.platform-link.applemusic svg {
  width: 60%;
  height: 60%;
}

.platform-link.applemusic {
  margin-left: -1px;
}

.platform-link:last-child {
  margin-right: 0;
}

.platform-link:hover,
.social-link:hover {
  transform: scale(1.1);
  filter: brightness(2);
  color: #b5a3ff;
}

/* --- Social Links --- */
.socials {
  margin-top: 15px;
  text-align: right;
}

.social-link {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  transition: transform 0.3s ease, filter 0.3s ease, color 0.3s ease;
  color: inherit;
}

.social-icon {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* --- Email Link Styling --- */
section p a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.3s ease;
}

section p a:hover {
  color: #b5a3ff;
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 768px) {
  .hero-box {
    width: 80vw;
    height: 80vw;
    right: 6vw;
  }
  .hero-text {
    font-size: 3rem;
    transform: scaleY(1.3);
    text-align: right;
  }
  section {
    padding: 80px 6vw;
    text-align: right;
  }
  section p {
    max-width: 90vw;
    margin-left: auto;
    margin-right: 0;
    text-align: right;
  }
  h2 {
    text-align: right;
  }
  nav#navbar ul {
    gap: 12px;
    font-size: 0.9rem;
  }
  .platform-links {
    width: 100%;
    transform: translateX(5px);
  }
  .platform-link {
    width: 50px;
    height: 50px;
    margin-right: 10px;
  }
  .platform-link.spotify {
    width: 37px;
    height: 37px;
  }
  .platform-link.applemusic img,
  .platform-link.applemusic svg {
    width: 60%;
    height: 60%;
  }
  .platform-link:last-child {
    margin-right: 0;
  }
  .socials {
    text-align: right;
  }
}

/* --- Video Container Styles --- */
.video-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
  text-align: right;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

.video-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-style: italic;
  color: #e0e0e0;
  margin-bottom: 0.8rem;
  text-align: right;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

.video-container {
  max-width: 400px;
  margin-left: auto;
  margin-right: 0;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.video-container:last-child {
  margin-bottom: 0;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Update responsive styles */
@media screen and (max-width: 768px) {
  .video-container {
    max-width: 100%;
  }
  
  .video-title {
    font-size: 1.2rem;
  }
  
  .video-wrapper {
    border-radius: 4px;
  }
}

#music {
  margin-bottom: 50px;
}

#recent-works {
  padding-top: 150px;
  margin-top: -50px;
}