/*
 * Synthwave Theme for Index/Homepage
 * Complete visual overhaul with classic 80s aesthetics
 */

/* Override main body and backgrounds */
body {
  background: #0c0014 !important;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Remove all white backgrounds */
.hero-section,
.news-section,
.blog-section,
.contact-section,
.academic-footer {
  background: transparent !important;
}

/* Synthwave Gradient Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
    #0c0014 0%,
    #1a0033 15%,
    #240046 30%,
    #3c096c 45%,
    #5a189a 60%,
    #7209b7 75%,
    #9d4edd 85%,
    #c77dff 95%,
    #e0aaff 100%);
  z-index: -4;
}

/* Synthwave Sun */
body::after {
  content: '';
  position: fixed;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle,
    #ffb700 0%,
    #ff8800 25%,
    #ff6700 45%,
    #ff006e 65%,
    transparent 100%);
  border-radius: 50%;
  z-index: -3;
  box-shadow:
    0 0 150px rgba(255, 183, 0, 0.6),
    0 0 300px rgba(255, 103, 0, 0.4),
    0 0 500px rgba(255, 0, 110, 0.2);
  animation: sun-glow 4s ease-in-out infinite;
}

@keyframes sun-glow {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
    filter: brightness(1.2);
  }
}

/* Grid Floor */
.main-content::before {
  content: '';
  position: fixed;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 50%;
  background-image:
    linear-gradient(rgba(255, 16, 240, 0.4) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 16, 240, 0.4) 2px, transparent 2px);
  background-size: 80px 40px;
  transform: perspective(300px) rotateX(75deg) translateZ(0);
  transform-origin: center top;
  animation: grid-scroll 10s linear infinite;
  z-index: -2;
  mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0,0,0,0.3) 30%,
    rgba(0,0,0,0.8) 60%,
    rgba(0,0,0,1) 100%);
}

@keyframes grid-scroll {
  0% { transform: perspective(300px) rotateX(75deg) translateZ(0) translateY(0); }
  100% { transform: perspective(300px) rotateX(75deg) translateZ(0) translateY(40px); }
}

/* Navigation - Full Synthwave */
.navigation {
  background: linear-gradient(90deg,
    rgba(12, 0, 20, 0.95),
    rgba(36, 0, 70, 0.95)) !important;
  border-bottom: 2px solid #ff10f0 !important;
  box-shadow: 0 2px 30px rgba(255, 16, 240, 0.5) !important;
  backdrop-filter: blur(10px);
}

.nav-link {
  color: #c8b6ff !important;
  font-family: 'Orbitron', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.nav-link:hover {
  color: #00fff0 !important;
  text-shadow: 0 0 20px rgba(0, 255, 240, 0.8) !important;
  background: transparent !important;
}

/* Hero Section - Full Redesign */
.hero-section {
  padding: 6rem 0;
  position: relative;
}

.profile-grid {
  background: linear-gradient(135deg,
    rgba(12, 0, 20, 0.9),
    rgba(36, 0, 70, 0.9));
  padding: 3rem;
  border: 2px solid rgba(255, 16, 240, 0.3);
  box-shadow:
    0 0 60px rgba(255, 16, 240, 0.3),
    inset 0 0 30px rgba(157, 78, 221, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 0;
}

/* Text Colors */
.name-title {
  font-family: 'Orbitron', monospace !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  min-height: 1.2em;
}

/* Fix name switcher overlap */
.name-switcher {
  position: relative !important;
  display: inline-block !important;
  min-height: 1.2em !important;
}

.english-name,
.chinese-name {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
}

.english-name {
  background: linear-gradient(135deg, #ff10f0, #00fff0, #ffb700) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  z-index: 2 !important;
  filter: drop-shadow(0 0 30px #ff10f0);
}

.chinese-name {
  font-family: 'STFangsong', 'SimSun', serif !important;
  font-size: 2.2rem !important;
  background: linear-gradient(135deg, #00fff0, #ff10f0, #9d4edd) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 600 !important;
  opacity: 0 !important;
  transform: translateY(10px) !important;
  z-index: 1 !important;
  filter: drop-shadow(0 0 30px #00fff0);
}

.name-switcher:hover .english-name {
  opacity: 0 !important;
  transform: translateY(-10px) !important;
}

.name-switcher:hover .chinese-name {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.current-position,
.affiliation {
  color: #c8b6ff !important;
}

.company-link {
  color: #00fff0 !important;
  text-shadow: 0 0 10px rgba(0, 255, 240, 0.5);
}

.bio-text {
  color: #f0e6ff !important;
}

/* Highlight important organizations and institutions */
.bio-text strong {
  color: #ffb700 !important;
  text-shadow:
    0 0 20px rgba(255, 183, 0, 0.8),
    0 0 40px rgba(255, 103, 0, 0.5) !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  font-family: 'Orbitron', monospace !important;
  text-transform: uppercase;
  font-size: 0.95em;
}

.bio-text a {
  color: #00fff0 !important;
  text-decoration: none !important;
  text-shadow:
    0 0 15px rgba(0, 255, 240, 0.8),
    0 0 30px rgba(0, 255, 240, 0.4) !important;
  font-weight: 600 !important;
  border-bottom: 2px solid rgba(0, 255, 240, 0.5) !important;
  transition: all 0.3s ease;
  padding-bottom: 2px;
}

.bio-text a:hover {
  color: #ff10f0 !important;
  text-shadow:
    0 0 20px rgba(255, 16, 240, 1),
    0 0 40px rgba(255, 16, 240, 0.6) !important;
  border-bottom-color: #ff10f0 !important;
}

/* Make Altos Radar link with strong tag match other institutions */
.bio-text a strong {
  color: #ffb700 !important;
  text-shadow:
    0 0 20px rgba(255, 183, 0, 0.8),
    0 0 40px rgba(255, 103, 0, 0.5) !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  font-family: 'Orbitron', monospace !important;
  text-transform: uppercase;
  font-size: 1em !important;
}

.bio-text a:hover strong {
  color: #ff10f0 !important;
  text-shadow:
    0 0 25px rgba(255, 16, 240, 1),
    0 0 50px rgba(255, 16, 240, 0.6) !important;
}

.section-title {
  color: #00fff0 !important;
  font-family: 'Orbitron', monospace !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(0, 255, 240, 0.6);
}

.subsection-title {
  color: #ff10f0 !important;
  text-shadow: 0 0 15px rgba(255, 16, 240, 0.6);
}

/* Interest Cards */
.interests-card {
  background: linear-gradient(135deg,
    rgba(36, 0, 70, 0.8),
    rgba(157, 78, 221, 0.2)) !important;
  border: 1px solid #9d4edd !important;
  box-shadow:
    0 0 30px rgba(157, 78, 221, 0.4),
    inset 0 0 20px rgba(255, 16, 240, 0.1) !important;
}

.interests-list-compact li {
  color: #c8b6ff !important;
}

.interests-list-compact li::before {
  color: #ff10f0 !important;
  text-shadow: 0 0 5px rgba(255, 16, 240, 0.6);
}

/* Contact Cards */
.contact-card {
  background: linear-gradient(135deg,
    rgba(12, 0, 20, 0.95),
    rgba(36, 0, 70, 0.95)) !important;
  border: 1px solid rgba(0, 255, 240, 0.3) !important;
  box-shadow: 0 0 20px rgba(0, 255, 240, 0.2) !important;
}

.contact-card:hover {
  border-color: #ff10f0 !important;
  box-shadow: 0 0 30px rgba(255, 16, 240, 0.5) !important;
}

.card-icon {
  background: rgba(255, 16, 240, 0.1) !important;
  color: #00fff0 !important;
}

.card-title {
  color: #9d4edd !important;
}

.card-link {
  color: #00fff0 !important;
}

.card-link:hover {
  color: #ff10f0 !important;
  text-shadow: 0 0 10px rgba(255, 16, 240, 0.6);
}

.card-text {
  color: #c8b6ff !important;
}

/* Blog Section */
.blog-section {
  padding: 4rem 0;
  position: relative;
}

.blog-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    #ff10f0 20%,
    #00fff0 50%,
    #ff10f0 80%,
    transparent);
  animation: scan-line 5s linear infinite;
}

@keyframes scan-line {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.blog-post {
  background: linear-gradient(135deg,
    rgba(36, 0, 70, 0.9),
    rgba(12, 0, 20, 0.9)) !important;
  border: 1px solid rgba(255, 16, 240, 0.3) !important;
  box-shadow: 0 0 25px rgba(255, 16, 240, 0.2) !important;
  transition: all 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
  border-color: #00fff0 !important;
  box-shadow: 0 10px 40px rgba(0, 255, 240, 0.4) !important;
}

.blog-title {
  color: #00fff0 !important;
  text-shadow: 0 0 10px rgba(0, 255, 240, 0.5);
}

.blog-link {
  color: #00fff0 !important;
}

.blog-link:hover {
  color: #ff10f0 !important;
}

.blog-excerpt {
  color: #c8b6ff !important;
}

.blog-date {
  color: #9d4edd !important;
}

.blog-category {
  background: linear-gradient(135deg, #ff10f0, #9d4edd) !important;
  color: #0c0014 !important;
  font-weight: 600;
}

.blog-tag {
  background: rgba(0, 255, 240, 0.1) !important;
  color: #00fff0 !important;
  border: 1px solid rgba(0, 255, 240, 0.3) !important;
}

.blog-tag:hover {
  background: rgba(0, 255, 240, 0.2) !important;
  box-shadow: 0 0 10px rgba(0, 255, 240, 0.5);
}

.read-more-btn {
  background: linear-gradient(135deg, #ff10f0, #00fff0) !important;
  color: #0c0014 !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(255, 16, 240, 0.4);
}

.read-more-btn:hover {
  box-shadow: 0 0 30px rgba(0, 255, 240, 0.6);
  transform: translateY(-3px) scale(1.05);
}

/* News Section */
.news-section {
  background: transparent !important;
  padding: 4rem 0;
}

.news-item {
  border-bottom-color: rgba(255, 16, 240, 0.2) !important;
}

.news-date {
  background: linear-gradient(135deg, #9d4edd, #ff10f0) !important;
  box-shadow: 0 0 20px rgba(157, 78, 221, 0.4) !important;
}

.news-title {
  color: #00fff0 !important;
}

.news-description {
  color: #c8b6ff !important;
}

.news-tag {
  background: rgba(255, 16, 240, 0.1) !important;
  color: #ff10f0 !important;
  border: 1px solid rgba(255, 16, 240, 0.3) !important;
}

/* Contact Section */
.contact-section {
  background: transparent !important;
  border-top: 2px solid rgba(255, 16, 240, 0.3) !important;
  padding: 4rem 0;
}

/* Footer */
.academic-footer {
  background: linear-gradient(180deg,
    rgba(36, 0, 70, 0.95),
    rgba(12, 0, 20, 1)) !important;
  border-top: 2px solid #9d4edd !important;
  color: #c8b6ff !important;
  padding: 3rem 0;
}

/* Profile Image */
.profile-image {
  border: 3px solid #ff10f0 !important;
  box-shadow:
    0 0 30px rgba(255, 16, 240, 0.5),
    0 0 60px rgba(0, 255, 240, 0.3) !important;
  filter: saturate(1.2) contrast(1.1);
}

/* Metric Cards */
.metric-card {
  background: linear-gradient(135deg,
    rgba(36, 0, 70, 0.9),
    rgba(157, 78, 221, 0.2)) !important;
  border: 2px solid rgba(0, 255, 240, 0.3) !important;
  box-shadow: 0 0 20px rgba(0, 255, 240, 0.2) !important;
}

.metric-card:hover {
  border-color: #ff10f0 !important;
  box-shadow: 0 0 30px rgba(255, 16, 240, 0.4) !important;
}

.metric-label {
  color: #00fff0 !important;
}

.metric-desc {
  color: #c8b6ff !important;
}

/* Action Buttons */
.action-btn {
  background: rgba(255, 16, 240, 0.1) !important;
  border: 2px solid rgba(255, 16, 240, 0.3) !important;
  box-shadow: 0 0 15px rgba(255, 16, 240, 0.3) !important;
}

.action-btn:hover {
  background: rgba(0, 255, 240, 0.2) !important;
  border-color: #00fff0 !important;
  box-shadow: 0 0 25px rgba(0, 255, 240, 0.5) !important;
}

/* Remove all remaining white backgrounds */
* {
  background-color: transparent;
}

.container,
.message-box,
.profile-info,
.academic-bio,
.research-interests,
.personal-interests,
.contact-info,
.contact-message {
  background: transparent !important;
}

/* Ensure text is visible */
p, span, div, h1, h2, h3, h4, h5, h6, li, a {
  color: inherit;
}

/* Hide original backgrounds that conflict */
.hero-section::before,
.hero-section::after,
.blog-section::before,
.blog-section::after,
.news-section::before,
.news-section::after {
  display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0c0014;
  border: 1px solid rgba(255, 16, 240, 0.2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff10f0, #00fff0, #9d4edd);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #00fff0, #ffb700, #ff10f0);
}