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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

.template-selector {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  padding: 15px;
  border-radius: 10px;
  border: 2px solid #ff6b35;
}

.template-selector button {
  display: block;
  margin: 5px 0;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.template-selector button:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.template {
  display: none;
}

.template.active {
  display: block;
}

/* ========== SAMURAI TEMPLATE ========== */
.samurai {
  background: #1a1612;
  color: #e8d5b7;
}

.samurai-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  background: rgba(26, 22, 18, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 3px solid #c41e3a;
}

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

.samurai-logo {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: 'Georgia', serif;
  color: #c41e3a;
  text-shadow: 0 0 15px rgba(196, 30, 58, 0.6);
  letter-spacing: 3px;
}

.samurai-nav-links {
  display: flex;
  gap: 30px;
}

.samurai-nav-links a {
  color: #e8d5b7;
  text-decoration: none;
  transition: all 0.3s;
  font-family: 'Georgia', serif;
  font-weight: 600;
}

.samurai-nav-links a:hover {
  color: #c41e3a;
  text-shadow: 0 0 10px rgba(196, 30, 58, 0.5);
}

.samurai-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1612 0%, #2d0a0e 100%);
  position: relative;
  overflow: hidden;
}

.samurai-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.samurai-particle {
  position: absolute;
  background: #c41e3a;
  animation: sakuraFall 8s infinite ease-in-out;
}

@keyframes sakuraFall {
  0% {
    transform: translateY(-10%) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(110%) rotate(360deg);
    opacity: 0;
  }
}

.samurai-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.samurai-hero h1 {
  font-size: 5rem;
  font-family: 'Georgia', serif;
  color: #c41e3a;
  text-shadow: 0 0 30px rgba(196, 30, 58, 0.8);
  margin-bottom: 20px;
  letter-spacing: 5px;
}

.samurai-hero p {
  font-size: 1.5rem;
  letter-spacing: 3px;
  margin-bottom: 40px;
  color: #e8d5b7;
}

.samurai-btn {
  padding: 15px 40px;
  background: #c41e3a;
  border: 2px solid #8b0000;
  color: #e8d5b7;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Georgia', serif;
  font-weight: bold;
}

.samurai-btn:hover {
  background: #8b0000;
  box-shadow: 0 0 30px rgba(196, 30, 58, 0.8);
  transform: translateY(-2px);
}

.samurai-section {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.samurai-section-title {
  font-size: 3rem;
  margin-bottom: 60px;
  color: #c41e3a;
  text-align: center;
  font-family: 'Georgia', serif;
  text-shadow: 0 0 20px rgba(196, 30, 58, 0.4);
}

.samurai-about {
  background: linear-gradient(135deg, #2d0a0e 0%, #1a1612 100%);
}

.samurai-about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.samurai-about-text h3 {
  font-size: 2rem;
  color: #c41e3a;
  margin-bottom: 20px;
  font-family: 'Georgia', serif;
}

.samurai-about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e8d5b7;
  margin-bottom: 15px;
}

.samurai-about-image {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.3), rgba(139, 0, 0, 0.3));
  border: 3px solid #c41e3a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #c41e3a;
}

.samurai-games {
  background: #1a1612;
}

.samurai-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.samurai-game-card {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.2), rgba(139, 0, 0, 0.2));
  border: 3px solid #c41e3a;
  transition: all 0.3s;
  cursor: pointer;
}

.samurai-game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(196, 30, 58, 0.5);
}

.samurai-game-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.4), rgba(139, 0, 0, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-bottom: 3px solid #c41e3a;
}

.samurai-game-info {
  padding: 20px;
}

.samurai-game-info h3 {
  color: #c41e3a;
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-family: 'Georgia', serif;
}

.samurai-game-info p {
  color: #e8d5b7;
  line-height: 1.6;
  margin-bottom: 15px;
}

.samurai-contact {
  background: linear-gradient(135deg, #2d0a0e 0%, #1a1612 100%);
}

.samurai-form {
  max-width: 600px;
  margin: 0 auto;
}

.samurai-form input,
.samurai-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  background: rgba(196, 30, 58, 0.1);
  border: 2px solid #c41e3a;
  color: #e8d5b7;
  font-size: 1rem;
}

.samurai-form textarea {
  height: 150px;
  resize: none;
}

.samurai-footer {
  padding: 60px 5%;
  text-align: center;
  background: #1a1612;
  border-top: 3px solid #c41e3a;
}

/* ========== MECHA TEMPLATE ========== */
.mecha {
  background: #0a0e1a;
  color: #00d4ff;
}

.mecha-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 2px solid #00d4ff;
}

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

.mecha-logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: #00d4ff;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
  letter-spacing: 2px;
}

.mecha-nav-links {
  display: flex;
  gap: 30px;
}

.mecha-nav-links a {
  color: #00d4ff;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 600;
  position: relative;
}

.mecha-nav-links a::before {
  content: '>';
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: all 0.3s;
}

.mecha-nav-links a:hover::before {
  opacity: 1;
  left: -20px;
}

.mecha-nav-links a:hover {
  color: #ff6b00;
  text-shadow: 0 0 10px rgba(255, 107, 0, 0.8);
}

.mecha-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a0a2e 100%);
  position: relative;
  overflow: hidden;
}

.mecha-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 212, 255, 0.1) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.1) 2px, transparent 2px);
  background-size: 40px 40px;
  animation: mechaGrid 15s linear infinite;
}

@keyframes mechaGrid {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(40px);
  }
}

.mecha-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.mecha-hero h1 {
  font-size: 5rem;
  font-weight: 900;
  color: #00d4ff;
  text-shadow: 0 0 40px rgba(0, 212, 255, 1);
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.mecha-hero p {
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 40px;
  color: #ff6b00;
}

.mecha-btn {
  padding: 15px 40px;
  background: transparent;
  border: 2px solid #00d4ff;
  color: #00d4ff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

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

.mecha-btn:hover::before {
  left: 100%;
}

.mecha-btn:hover {
  background: #00d4ff;
  color: #0a0e1a;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
}

.mecha-section {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.mecha-section-title {
  font-size: 3rem;
  margin-bottom: 60px;
  color: #00d4ff;
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.mecha-about {
  background: linear-gradient(135deg, #1a0a2e 0%, #0a0e1a 100%);
}

.mecha-about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mecha-about-text h3 {
  font-size: 2rem;
  color: #ff6b00;
  margin-bottom: 20px;
}

.mecha-about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #00d4ff;
  margin-bottom: 15px;
}

.mecha-about-image {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(255, 107, 0, 0.3));
  border: 2px solid #00d4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #00d4ff;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.mecha-games {
  background: #0a0e1a;
}

.mecha-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.mecha-game-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 107, 0, 0.1));
  border: 2px solid #00d4ff;
  transition: all 0.3s;
  cursor: pointer;
}

.mecha-game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.5);
  border-color: #ff6b00;
}

.mecha-game-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(255, 107, 0, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-bottom: 2px solid #00d4ff;
}

.mecha-game-info {
  padding: 20px;
}

.mecha-game-info h3 {
  color: #00d4ff;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.mecha-game-info p {
  color: #00d4ff;
  line-height: 1.6;
  margin-bottom: 15px;
  opacity: 0.8;
}

.mecha-contact {
  background: linear-gradient(135deg, #1a0a2e 0%, #0a0e1a 100%);
}

.mecha-form {
  max-width: 600px;
  margin: 0 auto;
}

.mecha-form input,
.mecha-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  background: rgba(0, 212, 255, 0.1);
  border: 2px solid #00d4ff;
  color: #00d4ff;
  font-size: 1rem;
}

.mecha-form textarea {
  height: 150px;
  resize: none;
}

.mecha-footer {
  padding: 60px 5%;
  text-align: center;
  background: #0a0e1a;
  border-top: 2px solid #00d4ff;
}

/* ========== YOKAI TEMPLATE ========== */
.yokai {
  background: #0f0a15;
  color: #b19cd9;
}

.yokai-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  background: rgba(15, 10, 21, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 2px solid #9d4edd;
}

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

.yokai-logo {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: 'Georgia', serif;
  color: #9d4edd;
  text-shadow: 0 0 20px rgba(157, 78, 221, 0.8);
  letter-spacing: 2px;
}

.yokai-nav-links {
  display: flex;
  gap: 30px;
}

.yokai-nav-links a {
  color: #b19cd9;
  text-decoration: none;
  transition: all 0.3s;
  font-family: 'Georgia', serif;
  font-weight: 600;
}

.yokai-nav-links a:hover {
  color: #7209b7;
  text-shadow: 0 0 15px rgba(114, 9, 183, 0.8);
}

.yokai-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #240046 0%, #0f0a15 100%);
  position: relative;
  overflow: hidden;
}

.yokai-mist {
  position: absolute;
  width: 100%;
  height: 100%;
}

.yokai-spirit {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.4), transparent);
  animation: spiritFloat 10s infinite ease-in-out;
}

@keyframes spiritFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(50px, -30px) scale(1.2);
    opacity: 0.6;
  }
}

.yokai-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.yokai-hero h1 {
  font-size: 5rem;
  font-family: 'Georgia', serif;
  color: #9d4edd;
  text-shadow: 0 0 40px rgba(157, 78, 221, 0.8);
  margin-bottom: 20px;
  letter-spacing: 4px;
}

.yokai-hero p {
  font-size: 1.5rem;
  letter-spacing: 3px;
  margin-bottom: 40px;
  color: #b19cd9;
}

.yokai-btn {
  padding: 15px 40px;
  background: rgba(157, 78, 221, 0.2);
  border: 2px solid #9d4edd;
  color: #b19cd9;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Georgia', serif;
  font-weight: bold;
}

.yokai-btn:hover {
  background: #9d4edd;
  color: #0f0a15;
  box-shadow: 0 0 40px rgba(157, 78, 221, 0.8);
}

.yokai-section {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.yokai-section-title {
  font-size: 3rem;
  margin-bottom: 60px;
  color: #9d4edd;
  text-align: center;
  font-family: 'Georgia', serif;
  text-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
}

.yokai-about {
  background: radial-gradient(ellipse at center, #240046 0%, #0f0a15 100%);
}

.yokai-about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.yokai-about-text h3 {
  font-size: 2rem;
  color: #9d4edd;
  margin-bottom: 20px;
  font-family: 'Georgia', serif;
}

.yokai-about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #b19cd9;
  margin-bottom: 15px;
}

.yokai-about-image {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.3), rgba(114, 9, 183, 0.3));
  border: 2px solid #9d4edd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #9d4edd;
}

.yokai-games {
  background: #0f0a15;
}

.yokai-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.yokai-game-card {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.15), rgba(114, 9, 183, 0.15));
  border: 2px solid #9d4edd;
  transition: all 0.3s;
  cursor: pointer;
}

.yokai-game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(157, 78, 221, 0.5);
}

.yokai-game-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.3), rgba(114, 9, 183, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-bottom: 2px solid #9d4edd;
}

.yokai-game-info {
  padding: 20px;
}

.yokai-game-info h3 {
  color: #9d4edd;
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-family: 'Georgia', serif;
}

.yokai-game-info p {
  color: #b19cd9;
  line-height: 1.6;
  margin-bottom: 15px;
}

.yokai-contact {
  background: radial-gradient(ellipse at center, #240046 0%, #0f0a15 100%);
}

.yokai-form {
  max-width: 600px;
  margin: 0 auto;
}

.yokai-form input,
.yokai-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  background: rgba(157, 78, 221, 0.1);
  border: 2px solid #9d4edd;
  color: #b19cd9;
  font-size: 1rem;
}

.yokai-form textarea {
  height: 150px;
  resize: none;
}

.yokai-footer {
  padding: 60px 5%;
  text-align: center;
  background: #0f0a15;
  border-top: 2px solid #9d4edd;
}

/* Footer Styles */

.footer-social {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-social a {
  font-size: 1.2rem;
  transition: all 0.3s;
  text-decoration: none;
}

.samurai-footer .footer-social a {
  color: #c41e3a;
}

.samurai-footer .footer-social a:hover {
  color: #e8d5b7;
  text-shadow: 0 0 20px rgba(196, 30, 58, 0.8);
  transform: translateY(-5px);
}

.mecha-footer .footer-social a {
  color: #00d4ff;
}

.mecha-footer .footer-social a:hover {
  color: #ff6b00;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
  transform: translateY(-5px);
}

.yokai-footer .footer-social a {
  color: #9d4edd;
}

.yokai-footer .footer-social a:hover {
  color: #7209b7;
  text-shadow: 0 0 20px rgba(157, 78, 221, 0.8);
  transform: translateY(-5px);
}

.footer-text {
  font-size: 0.9rem;
  opacity: 0.7;
}

.samurai-footer .footer-text {
  color: #e8d5b7;
}

.mecha-footer .footer-text {
  color: #00d4ff;
}

.yokai-footer .footer-text {
  color: #b19cd9;
}

@media (max-width: 768px) {
  .template-selector {
    bottom: 10px;
    right: 10px;
    padding: 10px;
  }

  .template-selector button {
    padding: 8px 15px;
    font-size: 0.8rem;
  }

  .samurai-nav,
  .mecha-nav,
  .yokai-nav {
    padding: 15px 5%;
  }

  .samurai-nav-links,
  .mecha-nav-links,
  .yokai-nav-links {
    gap: 15px;
    font-size: 0.9rem;
  }

  .samurai-logo,
  .mecha-logo,
  .yokai-logo {
    font-size: 1.2rem;
  }

  .samurai-about-content,
  .mecha-about-content,
  .yokai-about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .samurai-games-grid,
  .mecha-games-grid,
  .yokai-games-grid {
    grid-template-columns: 1fr;
  }

  .samurai-hero h1,
  .mecha-hero h1,
  .yokai-hero h1 {
    font-size: 2.5rem;
  }

  .samurai-hero p,
  .mecha-hero p,
  .yokai-hero p {
    font-size: 1rem;
  }

  .samurai-section-title,
  .mecha-section-title,
  .yokai-section-title {
    font-size: 2rem;
  }

  .samurai-section,
  .mecha-section,
  .yokai-section {
    padding: 60px 5%;
  }

  .samurai-about-image,
  .mecha-about-image,
  .yokai-about-image {
    height: 300px;
  }
}
