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

html {
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
  color: #ffffff;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

header {
  background: linear-gradient(90deg, #2b2b2b, #3a3a3a, #2b2b2b);
  color: #ffffff;
  box-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
}

nav {
  background: linear-gradient(90deg, #2b2b2b, #3a3a3a, #2b2b2b);
  color: #ffffff;
  text-align: right;
  padding: 20px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 15px;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
  letter-spacing: 0.5px;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  border-radius: 25px;
  transition: width 0.3s ease;
  z-index: -1;
}

nav a:hover::before {
  width: 100%;
}

nav a:hover {
  transform: translateY(-2px);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

main {
  background-color: transparent;
  color: #ffffff;
  flex: 1;
  padding: 40px 20px;
}

h1 {
  font-size: 3.5rem;
  margin: 40px 0;
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  }

  to {
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
  }
}

h2 {
  font-size: 2.5rem;
  margin: 30px 0;
  color: #ffffff;
  position: relative;
}

h3 {
  font-size: 1.8rem;
  margin: 20px 0;
  color: #e0e0e0;
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 15px 0;
  color: #cccccc;
}

footer {
  background: linear-gradient(90deg, #2b2b2b, #3a3a3a, #2b2b2b);
  color: #ffffff;
  padding: 30px 20px;
  margin-top: auto;
  box-shadow: 0 -2px 20px rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  border-color: rgba(102, 126, 234, 0.5);
}

.social-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.social-link:hover .social-icon {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .social-links {
    gap: 10px;
  }
  
  .social-link {
    width: 35px;
    height: 35px;
  }
  
  .social-icon {
    width: 18px;
    height: 18px;
  }
}

/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #2b2b2b, #3a3a3a);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background: linear-gradient(135deg, #2b2b2b, #3a3a3a);
  color: #ffffff;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tab button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.tab button:hover::before {
  left: 100%;
}

.tab button:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: translateY(-2px);
}

/* Popup Button */
.popup-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: 2px solid transparent;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 30px;
  margin: 20px 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.popup-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.popup-button:hover::before {
  left: 100%;
}

.popup-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content {
  background: rgba(43, 43, 43, 0.9);
  backdrop-filter: blur(20px);
  margin: 5% auto;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  width: 85%;
  max-width: 700px;
  color: #ffffff;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 20px;
  pointer-events: none;
}

.close {
  color: #ffffff;
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 15px;
  right: 15px;
}

.close:hover,
.close:focus {
  color: #667eea;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.content-sections {
  margin-top: 30px;
  display: grid;
  gap: 25px;
}

.content-section {
  margin-bottom: 25px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(43, 43, 43, 0.8), rgba(58, 58, 58, 0.8));
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.content-section:hover::before {
  transform: scaleX(1);
}

.content-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

.content-section h3 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-link {
  background-color: #2b2b2b;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 3px;
  border: 1px solid #ffffff;
  transition: all 0.3s ease;
}

.quick-link:hover {
  background-color: #ffffff;
  color: #2b2b2b;
}

/* Soundfont Series Styles */
.soundfont-list {
  margin-top: 20px;
}

.soundfont-item {
  background-color: #000000;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.soundfont-item h4 {
  margin: 0;
  color: #ffffff;
  flex-grow: 1;
}

.download-link {
  background-color: #2b2b2b;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 3px;
  border: 1px solid #ffffff;
  transition: all 0.3s ease;
  font-size: 14px;
}

.download-link:hover {
  background-color: #ffffff;
  color: #2b2b2b;
}

/* Site Description Styles */
.site-description {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: left;
}

.site-description h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 10px;
}

.site-description h3 {
  color: #ffffff;
  margin: 30px 0 20px 0;
  text-align: center;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.feature-item {
  background: linear-gradient(135deg, rgba(43, 43, 43, 0.9), rgba(58, 58, 58, 0.9));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-item:hover::before {
  opacity: 1;
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.4);
}

.feature-item h4 {
  color: #ffffff;
  margin: 0 0 15px 0;
  font-size: 1.3rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.feature-item p {
  color: #cccccc;
  margin: 0;
  line-height: 1.7;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.cta-text {
  text-align: center;
  font-size: 1.1rem;
  color: #ffffff;
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, rgba(43, 43, 43, 0.9), rgba(58, 58, 58, 0.9));
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    text-align: center;
    padding: 15px 20px;
  }

  nav a {
    display: inline-block;
    margin: 5px 10px;
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2.5rem;
    margin: 20px 0;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
  }

  .feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  nav a {
    margin: 3px 5px;
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .popup-button {
    padding: 12px 20px;
    font-size: 14px;
  }
}