:root {
  --bg-color: #0a0e17;
  --text-color: #ffffff;
  --primary: #6c63ff;
  --secondary: #ff6584;
  --accent: #36d1dc;
  --card-bg: rgba(20, 30, 50, 0.6);
  --border-color: rgba(255, 255, 255, 0.1);
  --panel-bg-color: #1e293b;
}

body[data-theme="light"] {
  --bg-color: #f5f7fa;
  --text-color: #1e293b;
  --primary: #4f46e5;
  --secondary: #e11d48;
  --accent: #0891b2;
  --card-bg: rgba(255, 255, 255, 0.7);
  --border-color: rgba(0, 0, 0, 0.1);
  --panel-bg-color: #ffffff;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition:
    background-color 0.3s,
    color 0.3s;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.2rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}
.logo i {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.main-nav {
  display: flex;
  gap: 20px;
}
.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  font-size: 0.95rem;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s;
}
.main-nav a:hover::after {
  width: 100%;
}
.main-nav a.active::after {
  width: 100%;
  opacity: 1;
}
.main-nav a.active {
  color: var(--primary);
}
.theme-toggle {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  transition: all 0.3s;
  font-size: 0.85rem;
}
.theme-toggle:hover {
  transform: scale(1.05);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 20px;
  pointer-events: none;
}
.content section {
  pointer-events: auto;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  margin: 3rem 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(30px);
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.content section.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  text-align: center;
}
.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.slider-container {
  position: relative;
  height: 500px;
  margin: 2rem 0;
}
.team-slider {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-card {
  position: absolute;
  width: 280px;
  height: 420px;
  left: 50%;
  top: 50%;
  margin-left: -140px;
  margin-top: -210px;
  border-radius: 30px;
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: all 0.5s;
  cursor: pointer;
}
.team-card:hover {
  transform: scale(1.05) translateZ(50px);
  border-color: var(--primary);
  box-shadow: 0 40px 60px rgba(108, 99, 255, 0.4);
}
.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  transition: opacity 0.8s;
}
.team-card:hover .card-bg {
  opacity: 0.8;
  transform: scale(1.1);
}
.card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7) 90%);
}
.card-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 1.2rem;
  border: 4px solid var(--primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background-size: cover;
  background-position: center;
  background-color: var(--primary);
  transition:
    transform 0.5s,
    box-shadow 0.5s;
  animation: float 3s ease-in-out infinite;
}
.team-card:hover .card-avatar {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 20px 30px rgba(108, 99, 255, 0.6);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.card-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card-role {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  border: 1px solid var(--border-color);
}
.card-bio {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 1.2rem;
  max-width: 220px;
}
.card-social {
  display: flex;
  gap: 0.8rem;
}
.card-social a {
  color: var(--text-color);
  font-size: 1.1rem;
  transition: all 0.3s;
}
.card-social a:hover {
  color: var(--primary);
  transform: translateY(-3px) scale(1.1);
}
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}
.slider-nav:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.6);
}
.slider-nav.prev {
  left: 15px;
}
.slider-nav.next {
  right: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  border: 1px solid var(--border-color);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
}

.cube-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  perspective: 1000px;
  height: 250px;
}
.cube {
  width: 150px;
  height: 150px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 20s infinite linear;
}
.cube-face {
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(108, 99, 255, 0.2);
  border: 2px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  backdrop-filter: blur(5px);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
}
.cube-face i {
  font-size: 1.8rem;
  margin-bottom: 5px;
  color: var(--primary);
}
.front {
  transform: translateZ(75px);
}
.back {
  transform: rotateY(180deg) translateZ(75px);
}
.right {
  transform: rotateY(90deg) translateZ(75px);
}
.left {
  transform: rotateY(-90deg) translateZ(75px);
}
.top {
  transform: rotateX(90deg) translateZ(75px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(75px);
}
@keyframes rotateCube {
  from {
    transform: rotateX(0) rotateY(0);
  }
  to {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

.mission-text {
  text-align: center;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 2rem auto;
  line-height: 2;
}

.site-footer {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  margin-top: 4rem;
  position: relative;
  z-index: 10;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col .logo {
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.footer-col h4 {
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 1rem;
}
.footer-col a {
  display: block;
  color: var(--text-color);
  opacity: 0.8;
  text-decoration: none;
  margin-bottom: 8px;
  transition: opacity 0.3s;
  font-size: 0.85rem;
}
.footer-col a:hover {
  opacity: 1;
  color: var(--primary);
}
.footer-col p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  text-align: center;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 0.8rem;
}

body[data-theme="light"] .team-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}
body[data-theme="light"] .card-content {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.95) 80%
  );
}
body[data-theme="light"] .card-name {
  -webkit-text-fill-color: var(--primary);
  background: none;
  color: var(--primary);
}
body[data-theme="light"] .card-role {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #2d3748;
}
body[data-theme="light"] .card-bio {
  color: #4a5568;
  opacity: 1;
}
body[data-theme="light"] .card-social a {
  color: #5d687a;
}
body[data-theme="light"] .card-bg {
  opacity: 1;
}

.logo-dark.logo-desktop {
  display: block;
}
.logo-light.logo-desktop {
  display: none;
}
.logo-dark.logo-mobile {
  display: none;
}
.logo-light.logo-mobile {
  display: none;
}
body[data-theme="light"] .logo-dark.logo-desktop {
  display: none;
}
body[data-theme="light"] .logo-light.logo-desktop {
  display: block;
}
body[data-theme="light"] .logo-dark.logo-mobile {
  display: none;
}
body[data-theme="light"] .logo-light.logo-mobile {
  display: none;
}

.hero-logo-zc {
  max-width: 240px;
  height: auto;
  margin: 0 auto 1rem;
}
.logo-dark.hero-logo-zc {
  display: block !important;
}
.logo-light.hero-logo-zc {
  display: none !important;
}
body[data-theme="light"] .logo-dark.hero-logo-zc {
  display: none !important;
}
body[data-theme="light"] .logo-light.hero-logo-zc {
  display: block !important;
}

@media (min-width: 769px) {
  .site-header {
    padding: 1.8rem 0;
  }
  .logo {
    font-size: 2rem;
  }
  .logo i {
    font-size: 2.4rem;
  }
  .main-nav a {
    font-size: 1.2rem;
    margin: 0 8px;
  }
  .theme-toggle {
    padding: 12px 24px;
    font-size: 1.1rem;
  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .stats-grid {
    gap: 1rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  #canvas-container {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.8rem 0;
  }
  .logo {
    font-size: 1rem;
  }
  .logo i {
    font-size: 1.4rem;
  }
  .theme-toggle {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    z-index: 200;
  }
  .main-nav.show {
    display: flex;
  }
  .main-nav a {
    font-size: 0.8rem;
    padding: 5px 10px;
    white-space: nowrap;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .header-inner {
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 2rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }
  .hero p {
    font-size: 0.9rem !important;
    padding: 0 15px !important;
  }
  .content section h2 {
    font-size: 1.4rem !important;
    text-align: center !important;
  }
  .mission-text pre {
    font-size: 0.85rem !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
    text-align: center !important;
    padding: 0 15px !important;
  }

  .slider-container {
    height: 450px;
  }
  .team-card {
    width: 250px;
    height: 380px;
    margin-left: -125px;
    margin-top: -190px;
  }
  .card-avatar {
    width: 100px;
    height: 100px;
  }
  .card-name {
    font-size: 1.4rem;
  }
  .card-bio {
    font-size: 0.8rem;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-item {
    padding: 12px 5px;
  }
  .stat-number {
    font-size: 1.6rem;
  }

  .cube-container {
    height: 200px;
  }
  .cube {
    width: 120px;
    height: 120px;
  }
  .cube-face {
    width: 120px;
    height: 120px;
    font-size: 0.85rem;
  }
  .cube-face i {
    font-size: 1.4rem;
  }
  .front {
    transform: translateZ(60px);
  }
  .back {
    transform: rotateY(180deg) translateZ(60px);
  }
  .right {
    transform: rotateY(90deg) translateZ(60px);
  }
  .left {
    transform: rotateY(-90deg) translateZ(60px);
  }
  .top {
    transform: rotateX(90deg) translateZ(60px);
  }
  .bottom {
    transform: rotateX(-90deg) translateZ(60px);
  }

  .footer-grid {
    gap: 20px;
  }
  .logo-dark.logo-desktop,
  .logo-light.logo-desktop {
    display: none !important;
  }
  .logo-dark.logo-mobile {
    display: block !important;
  }
  .logo-light.logo-mobile {
    display: none !important;
  }
  body[data-theme="light"] .logo-dark.logo-mobile {
    display: none !important;
  }
  body[data-theme="light"] .logo-light.logo-mobile {
    display: block !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem !important;
  }
  .hero p {
    font-size: 0.8rem !important;
  }
  .content section h2 {
    font-size: 1.2rem !important;
  }
  .mission-text pre {
    font-size: 0.75rem !important;
  }

  .slider-container {
    height: 420px;
  }
  .team-card {
    width: 220px;
    height: 340px;
    margin-left: -110px;
    margin-top: -170px;
  }
  .card-avatar {
    width: 80px;
    height: 80px;
  }
  .card-name {
    font-size: 1.2rem;
  }
  .card-role {
    font-size: 0.8rem;
  }
  .card-bio {
    font-size: 0.75rem;
  }
  .slider-nav {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    padding: 8px 4px;
  }
  .stat-number {
    font-size: 1.2rem;
  }
  .stat-label {
    font-size: 0.7rem;
  }

  .cube-container {
    height: 200px;
  }
  .cube {
    width: 100px;
    height: 100px;
  }
  .cube-face {
    width: 100px;
    height: 100px;
    font-size: 0.7rem;
  }
  .cube-face i {
    font-size: 1.2rem;
  }
  .front {
    transform: translateZ(50px);
  }
  .back {
    transform: rotateY(180deg) translateZ(50px);
  }
  .right {
    transform: rotateY(90deg) translateZ(50px);
  }
  .left {
    transform: rotateY(-90deg) translateZ(50px);
  }
  .top {
    transform: rotateX(90deg) translateZ(50px);
  }
  .bottom {
    transform: rotateX(-90deg) translateZ(50px);
  }

  .hero-logo-zc {
    max-width: 120px;
  }
}
