/* ===== Blue Archive Theme - ShittimChests ===== */

:root {
  --ba-blue: #128AFA;
  --ba-blue-light: #56B4FC;
  --ba-blue-dark: #0A6CD4;
  --ba-white: #FFFFFF;
  --ba-gray: #F5F7FA;
  --ba-text: #2C3E50;
  --ba-text-light: #6C7A89;
  --ba-card-shadow: 0 4px 20px rgba(18, 138, 250, 0.15);
  --ba-radius: 16px;
  --ba-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--ba-text);
  background: var(--ba-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ba-transition);
}

a:hover {
  color: var(--ba-blue);
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 138, 250, 0.1);
  transition: background var(--ba-transition);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ba-blue);
}

.navbar-brand .brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--ba-blue), var(--ba-blue-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
}

.navbar-brand .brand-logo {
  height: 32px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ba-text-light);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: all var(--ba-transition);
}

.navbar-links a:hover {
  color: var(--ba-blue);
  background: rgba(18, 138, 250, 0.08);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background-color: #e8f4ff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(232, 244, 255, 0.85) 0%, rgba(255, 255, 255, 0.7) 40%, rgba(240, 248, 255, 0.75) 70%, rgba(227, 241, 255, 0.85) 100%);
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(18, 138, 250, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(86, 180, 252, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 50%, rgba(18, 138, 250, 0.03) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, -1%) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(18, 138, 250, 0.1);
  border: 1px solid rgba(18, 138, 250, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ba-blue);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--ba-text) 0%, var(--ba-blue-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--ba-text-light);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ba-blue);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--ba-text-light);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Floating Particles (CSS-only) ===== */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--ba-blue-light);
  border-radius: 50%;
  opacity: 0.4;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 1s; animation-duration: 5s; }
.particle:nth-child(3) { left: 40%; top: 30%; animation-delay: 2s; animation-duration: 8s; }
.particle:nth-child(4) { left: 60%; top: 70%; animation-delay: 0.5s; animation-duration: 6s; }
.particle:nth-child(5) { left: 80%; top: 40%; animation-delay: 1.5s; animation-duration: 7s; }
.particle:nth-child(6) { left: 90%; top: 80%; animation-delay: 3s; animation-duration: 5.5s; }
.particle:nth-child(7) { left: 50%; top: 85%; animation-delay: 2.5s; animation-duration: 6.5s; }
.particle:nth-child(8) { left: 70%; top: 15%; animation-delay: 4s; animation-duration: 8s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-20px) scale(1.5); opacity: 0.7; }
}

/* ===== Section Common ===== */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ba-blue);
  background: rgba(18, 138, 250, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ba-text);
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--ba-text-light);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Projects Section ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--ba-white);
  border: 1px solid rgba(18, 138, 250, 0.1);
  border-radius: var(--ba-radius);
  padding: 2rem;
  transition: all var(--ba-transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ba-blue), var(--ba-blue-light));
  opacity: 0;
  transition: opacity var(--ba-transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ba-card-shadow);
  border-color: rgba(18, 138, 250, 0.2);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.project-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--ba-blue), var(--ba-blue-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.project-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.project-desc {
  color: var(--ba-text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--ba-gray);
  color: var(--ba-text-light);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ba-blue);
}

.project-link:hover {
  gap: 0.6rem;
}

/* ===== About / Team Section ===== */
.about-section {
  background: var(--ba-gray);
  padding: 5rem 2rem;
}

.about-content {
  max-width: 1100px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.member-card {
  background: var(--ba-white);
  border-radius: var(--ba-radius);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(18, 138, 250, 0.08);
  transition: all var(--ba-transition);
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ba-card-shadow);
}

.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ba-blue-light), var(--ba-blue));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 4px 15px rgba(18, 138, 250, 0.3);
}

.member-avatar-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid var(--ba-blue-light);
  box-shadow: 0 4px 15px rgba(18, 138, 250, 0.3);
  transition: transform var(--ba-transition), box-shadow var(--ba-transition);
}

.member-card:hover .member-avatar-img {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(18, 138, 250, 0.4);
}

.member-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.member-role {
  font-size: 0.8rem;
  color: var(--ba-blue);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.member-bio {
  font-size: 0.85rem;
  color: var(--ba-text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.member-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.member-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ba-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--ba-text-light);
  transition: all var(--ba-transition);
}

.member-links a:hover {
  background: var(--ba-blue);
  color: white;
  transform: scale(1.1);
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(18, 138, 250, 0.1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--ba-text-light);
  font-weight: 500;
}

.footer-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--ba-blue), var(--ba-blue-light));
  border-radius: 2px;
  margin: 1.5rem auto;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--ba-text-light);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }

  .navbar-links {
    gap: 0.75rem;
  }

  .navbar-links a {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .about-section {
    padding: 3rem 1.5rem;
  }

  .projects-grid, .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

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

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar-brand span {
    display: none;
  }
}
