:root {
  --primary: #ffd700;
  --primary-hover: #e6c200;
  --bg-dark: #0a0a0c;
  --bg-darker: #050506;
  --bg-card: #141417;
  --text-main: #f5f5f5;
  --text-muted: #a1a1aa;
  --border-color: #27272a;
  
  --font-primary: 'Outfit', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* Japanese typography mapping */
h1:lang(ja), h2:lang(ja), h3:lang(ja), p:lang(ja), .concept, .btn-primary:lang(ja) {
  font-family: var(--font-jp);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-padding {
  padding: 100px 0;
}

/* Typography styles */
.section-title {
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-family: var(--font-jp);
}

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

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-jp);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-darker);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.btn-primary.large {
  padding: 16px 40px;
  font-size: 1.2rem;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-darker);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background-color: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 15px 5%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 1px;
}

.navbar nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navbar nav a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.navbar nav a:not(.btn-outline):hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
  overflow: hidden;
  background: radial-gradient(circle at center, var(--bg-card) 0%, var(--bg-darker) 100%);
}

.honeycomb-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L40 11.5v23L20 40 0 34.5v-23z' fill='none' stroke='%23ffd700' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px;
  z-index: 0;
  animation: pulse 10s infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.03; transform: scale(1); }
  100% { opacity: 0.08; transform: scale(1.05); }
}

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

.slogan {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 600;
  animation: fadeUp 1s ease 0.2s forwards;
  opacity: 0;
}

.club-name {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeUp 1s ease 0.4s forwards;
  opacity: 0;
}

.concept {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-family: var(--font-jp);
  animation: fadeUp 1s ease 0.6s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeUp 1s ease 0.8s forwards;
  opacity: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 1s ease 1s forwards;
  z-index: 1;
}

.scroll-indicator span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.mouse {
  width: 24px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 25px;
  line-height: 1.4;
  font-family: var(--font-jp);
}

.about-text p {
  color: var(--text-muted);
  font-family: var(--font-jp);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.stats {
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stats li {
  font-family: var(--font-jp);
  color: var(--text-main);
  display: flex;
  align-items: center;
}

.stats li strong {
  color: var(--primary);
  width: 80px;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.hexagon-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
}

.hexagon {
  position: absolute;
  width: 100px;
  height: 115px;
  background-color: rgba(255, 215, 0, 0.1);
  border: 2px solid var(--primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: var(--transition);
}

.hexagon:nth-child(1) { top: 0; left: 50px; animation: float 6s ease-in-out infinite; }
.hexagon:nth-child(2) { top: 0; left: 150px; animation: float 5s ease-in-out infinite 1s; }
.hexagon:nth-child(3) { top: 90px; left: 0; animation: float 7s ease-in-out infinite 2s; }
.hexagon:nth-child(4) { top: 90px; left: 100px; animation: float 6s ease-in-out infinite 0.5s; }
.hexagon:nth-child(5) { top: 90px; left: 200px; animation: float 8s ease-in-out infinite 1.5s; }

.hexagon:hover {
  background-color: rgba(255, 215, 0, 0.3);
  transform: scale(1.05);
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Teams Section */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 40px;
  margin-top: 50px;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 215, 0, 0.3);
}

.card:hover::before {
  transform: scaleX(1);
}

.team-crest {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto 25px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  transition: var(--transition);
}

.card:hover .team-crest {
  transform: scale(1.05) translateY(-5px);
}

.card-icon {
  display: none; /* Replaced by crests */
  font-size: 3rem;
  margin-bottom: 20px;
}

.team-card h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.team-card h4 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: var(--font-jp);
}

.team-card p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-family: var(--font-jp);
}

.team-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-features li {
  position: relative;
  padding-left: 25px;
  font-family: var(--font-jp);
  font-size: 0.95rem;
}

.team-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Top Team Specific Styles (Light Blue) */
.top-team::before {
  background: #38bdf8;
}

.top-team:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15);
}

.top-team h4 {
  color: #38bdf8;
}

.top-team .team-features li::before {
  color: #38bdf8;
}

/* Activities */
.activities {
  background-color: var(--bg-card);
}

.activities-flex {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.activity-item {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.activity-item:hover {
  border-color: var(--primary);
}

.activity-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-main);
}

.activity-content p {
  color: var(--text-muted);
  font-family: var(--font-jp);
}

/* Join Section */
.join-banner {
  background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(10,10,12,1) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.join-banner h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.join-banner p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-family: var(--font-jp);
}

/* Footer */
footer {
  background-color: var(--bg-darker);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand h2 {
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 5px;
}

.footer-brand p {
  color: var(--primary);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Scroll Revel animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .club-name {
    font-size: 3.5rem;
  }

  .about-visual {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .navbar nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--bg-card);
    flex-direction: column;
    padding: 100px 40px;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border-color);
  }
  
  .navbar nav.active {
    right: 0;
  }
  
  .navbar nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .section-padding {
    padding: 80px 0;
  }

  .card {
    padding: 30px 20px;
  }

  .team-crest {
    width: 110px;
  }

  .team-card h3 {
    font-size: 1.6rem;
  }

  .cards-grid {
    gap: 25px;
  }
}
