/* Global box-sizing and resets */
*, *::before, *::after { box-sizing: border-box; }

/* HEADER */
html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

body {
  background: black;
  display: flex;
  flex-direction: column;
  font-family: "TTNormsProRegular", roboto, freesans, arial, "system-ui", sans-serif;
}

header {
  position:fixed;
  top:0;
  left:0;
  right:0;
  background:rgb(0, 0, 0);
  backdrop-filter: blur(6px);
  z-index:100;
}


.header-content {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  align-items:center;
  padding:16px 32px;
  width: 100%;
}

.brand {
  font-weight:800;
  font-size:24px;
  color:#ffffff;
  line-height:1;
}
.slogen {
  color:#ffffff;
  font-weight:300;
  font-size:16px;
}
.brand-slo {
  display:flex;
  justify-content: left;
  align-items:  baseline;
  gap:8px;
}

nav {
  display:flex;
  gap:24px;
  position: relative;
}
nav a {
  text-decoration:none;
  color:#ffffff;
  font-weight:600;
  font-size:16px;
}
nav a.small {font-weight:400; font-size:14px; color:#ffffff;}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown:hover .dropdown-toggle {
  color: #f0f0f0;
}

.lang {
  display: flex;
  gap: 8px;
  justify-content: right;
  align-items: center;
}
.lang a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.lang a.active {
  text-decoration: underline;
}

main {
  flex:1;
  padding-top:60px; /* space for header */
  width:100%;
}

/* Hero Section with Giant Title */
.hero-section {
  position: relative;
  user-select: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 0 20px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.5s ease;
}

.hero-section * {
  pointer-events: auto;
}

.giant-title {
  color: #ffffff;
  font-size: 8rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -2px;
  mix-blend-mode: difference;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 300;
  margin-top: 20px;
  opacity: 0.9;
  letter-spacing: 1px;
  mix-blend-mode: difference;
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  }
  100% {
    text-shadow: 0 4px 30px rgba(255, 255, 255, 0.3), 0 4px 20px rgba(0, 0, 0, 0.8);
  }
}

.hero-text {
  color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,0.6);
  font-size:28px;
  font-weight:600;
  max-width:700px;
  text-align:center;
}

.slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;  
  opacity: 0;
  transition: opacity 1s;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}
.slide.active {
  transform: translateX(0);
  opacity: 1;
}


.videoContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#fullscreenVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}


/* Navigation Arrows */
.prev-arrow, .next-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 5rem;
  width: auto;
  height: auto;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  pointer-events: auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.prev-arrow:hover, .next-arrow:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) scale(1.2);
}

.prev-arrow {
  left: 30px;
}

.next-arrow {
  right: 30px;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
  .prev-arrow, .next-arrow {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
  
  .prev-arrow {
    left: 15px;
  }
  
  .next-arrow {
    right: 15px;
  }
}



/* GENERAL */
input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-size: 20px;
}
label{
  color: #fff;
}

@media (max-width:880px){
  nav {gap:12px;}
  .brand {font-size:20px;}
  .role {font-size:14px;}
  .hero-text {font-size:20px;}
  .MidiProgramEditor {
    flex-direction: column;
  }
  
  /* Responsive giant title */
  .giant-title {
    font-size: 4rem;
    letter-spacing: -1px;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width:480px){
  .giant-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-section {
    min-height: 60vh;
  }
}

/* Contact Page Styles */
.contact-hero {
  height: 50vh;
  background-image: url('images/contact-hero.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.contact-title {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.contact-social {
  height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  padding: 2rem;
}

.social-icons {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
}

.social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  padding: 1rem;
  border-radius: 8px;
}

.social-icon:hover {
  transform: translateY(-5px);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.social-icon svg {
  margin-bottom: 0.5rem;
}

.social-icon span {
  font-size: 1rem;
  font-weight: 600;
}

.instagram:hover {
  color: #ffffff;
  background: rgba(228, 64, 95, 0.3);
}

.xiaohongshu:hover {
  color: #ffffff;
  background: rgba(255, 36, 66, 0.3);
}

.contact-email {
  text-align: center;
}

.contact-email p {
  font-size: 1.2rem;
  color: #ffffff;
  margin: 0;
  font-weight: 600;
}

/* Responsive contact page */
@media (max-width: 768px) {
  .contact-title {
    font-size: 2.5rem;
  }
  
  .social-icons {
    gap: 2rem;
    flex-direction: column;
  }
  
  .contact-social {
    height: auto;
    min-height: 50vh;
    padding: 3rem 1rem;
  }
}