:root {
  --primary-color: #ff6b6b;
  --secondary-color: #4ecdc4;
  --dark-color: #293241;
  --light-color: #fff5f5;
  --accent-color: #ffd166;
  --telegram-color: #0088cc;
  --twitter-color: #1da1f2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--light-color);
  color: var(--dark-color);
  overflow-x: hidden;
  position: relative;
  background-image: radial-gradient(var(--light-color) 2px, transparent 2px),
    radial-gradient(var(--primary-color) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

/* SVG Background */
.bg-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.svg-background {
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

/* Animated Icons */
.animated-icon {
  position: fixed;
  font-size: 24px;
  color: var(--primary-color);
  opacity: 0.3;
  z-index: -1;
  filter: drop-shadow(0 0 5px rgba(255, 107, 107, 0.5));
}

.sake-icon {
  color: var(--accent-color);
  font-size: 28px;
}

.cigar-icon {
  color: #795548;
  font-size: 26px;
}

.dice-icon {
  color: var(--secondary-color);
  font-size: 30px;
}

.yen-icon {
  color: #5d9c59;
  font-size: 24px;
}

/* Background Animation */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(5px);
  transition: transform 2s ease-in-out;
}

.bubble-1 {
  width: 150px;
  height: 150px;
  background-color: var(--primary-color);
  top: 10%;
  left: 10%;
  animation: float 15s infinite ease-in-out;
}

.bubble-2 {
  width: 100px;
  height: 100px;
  background-color: var(--secondary-color);
  top: 20%;
  right: 20%;
  animation: float 12s infinite ease-in-out reverse;
}

.bubble-3 {
  width: 200px;
  height: 200px;
  background-color: var(--accent-color);
  bottom: 15%;
  left: 15%;
  animation: float 18s infinite ease-in-out 2s;
}

.bubble-4 {
  width: 120px;
  height: 120px;
  background-color: var(--primary-color);
  bottom: 10%;
  right: 10%;
  animation: float 14s infinite ease-in-out 1s;
}

.bubble-5 {
  width: 180px;
  height: 180px;
  background-color: var(--secondary-color);
  top: 40%;
  left: 30%;
  animation: float 16s infinite ease-in-out 3s;
}

.bubble-6 {
  width: 160px;
  height: 160px;
  background-color: var(--primary-color);
  top: 60%;
  right: 30%;
  animation: float 17s infinite ease-in-out 2.5s;
}

.bubble-7 {
  width: 140px;
  height: 140px;
  background-color: var(--accent-color);
  top: 30%;
  left: 50%;
  animation: float 13s infinite ease-in-out 1.5s;
}

.bubble-8 {
  width: 120px;
  height: 120px;
  background-color: var(--secondary-color);
  bottom: 40%;
  right: 40%;
  animation: float 11s infinite ease-in-out 3.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-30px) translateX(15px);
  }
  50% {
    transform: translateY(0) translateX(30px);
  }
  75% {
    transform: translateY(30px) translateX(15px);
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Floating elements */
.floating-sake {
  position: absolute;
  width: 50px;
  height: 70px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd166' d='M8,2H16L15,9H9L8,2M9,10H15L14,16H10L9,10M10,17H14L13,22H11L10,17Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  right: 10%;
  top: 20%;
  animation: floatItem 5s infinite ease-in-out;
  opacity: 0.8;
}

.floating-cigar {
  position: absolute;
  width: 70px;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23795548' d='M18,4L14,8H8L4,12L2,11L4,9L6,10L9,7H15L18,4M18,18V16H17A1,1 0 0,1 16,15V8.5C16,8.22 16.22,8 16.5,8H18V7H20V8H21.5C21.78,8 22,8.22 22,8.5V15A1,1 0 0,1 21,16H20V18H18Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  right: 15%;
  top: 30%;
  animation: floatItem 6s infinite ease-in-out reverse;
  opacity: 0.8;
}

.floating-pachinko {
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23C0C0C0' d='M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  right: 12%;
  top: 25%;
  animation: floatItem 7s infinite ease-in-out;
  opacity: 0.8;
}

@keyframes floatItem {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(10deg);
  }
}

/* Header Styles */
header {
  background-color: var(--primary-color);
  padding: 15px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 0 var(--dark-color);
  transform: rotate(-2deg);
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  transform: scale(1.1);
  color: var(--accent-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  background-color: var(--accent-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 200;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
  padding: 30px 0;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.banner-img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: rotate(1deg);
  transition: transform 0.3s ease;
}

.banner-img:hover {
  transform: rotate(-1deg) scale(1.02);
}

.story-intro {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 800px;
  text-align: center;
  transform: rotate(-1deg);
  border: 4px solid var(--primary-color);
  transition: transform 0.3s ease;
}

.story-intro:hover {
  transform: rotate(1deg);
}

.story-intro h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--primary-color);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
  line-height: 1.2;
}

.subtitle {
  font-size: 18px;
  margin-bottom: 25px;
  font-style: italic;
  color: var(--dark-color);
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.main-btn,
.chart-btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid var(--dark-color);
  box-shadow: 3px 3px 0 var(--dark-color);
  text-align: center;
}

.main-btn {
  background-color: var(--primary-color);
  color: white;
}

.chart-btn {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.main-btn:hover,
.chart-btn:hover {
  transform: translateY(-5px);
  box-shadow: 5px 5px 0 var(--dark-color);
}

.main-btn:active,
.chart-btn:active {
  transform: translateY(0);
  box-shadow: 1px 1px 0 var(--dark-color);
}

.pulse-effect {
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 3px 3px 0 var(--dark-color);
  }
  50% {
    box-shadow: 3px 3px 0 var(--dark-color), 0 0 0 10px rgba(255, 107, 107, 0.2);
  }
  100% {
    box-shadow: 3px 3px 0 var(--dark-color), 0 0 0 0 rgba(255, 107, 107, 0);
  }
}

.contract h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.address-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f8f8;
  padding: 10px 15px;
  border-radius: 10px;
  border: 2px solid var(--dark-color);
}

.address-box p {
  font-size: 14px;
  font-family: monospace;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--dark-color);
}

.copy-btn:hover {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.copied-message {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  margin-top: 10px;
  color: var(--secondary-color);
  font-weight: 600;
}

/* About Section */
.about {
  padding: 50px 0;
}

.about-box {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 4px solid var(--secondary-color);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-box:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.about-box:nth-child(1) {
  transform: rotate(1deg);
}

.about-box:nth-child(2) {
  transform: rotate(-1deg);
}

.about-box:nth-child(3) {
  transform: rotate(0.5deg);
}

.about-box h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
}

.about-box h2::after {
  content: "";
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: var(--accent-color);
  bottom: -5px;
  left: 0;
}

.about-box p {
  font-size: 16px;
  line-height: 1.6;
}

.about-box em {
  font-style: italic;
  color: var(--primary-color);
}

/* Timeline Section */
.timeline {
  padding: 50px 0;
  position: relative;
  background-color: rgba(255, 255, 255, 0.7);
}

.timeline::before {
  content: "";
  position: absolute;
  width: 6px;
  background-color: var(--secondary-color);
  top: 150px;
  bottom: 50px;
  left: 50%;
  margin-left: -3px;
  border-radius: 10px;
  z-index: 0;
}

.timeline-container {
  position: relative;
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  display: flex;
  width: 100%;
  justify-content: center;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background-color: var(--accent-color);
  border-radius: 50%;
  border: 4px solid var(--secondary-color);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-date {
  position: absolute;
  width: 120px;
  text-align: right;
  right: calc(50% + 30px);
  top: 0;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary-color);
}

.timeline-content {
  width: calc(50% - 40px);
  padding: 20px;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 3px solid var(--secondary-color);
  margin-left: 80px;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-content::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid var(--secondary-color);
  left: -13px;
  top: 15px;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.timeline-content p {
  font-size: 14px;
  line-height: 1.5;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  position: absolute;
  height: 4px;
  width: 100px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Socials Section */
.socials {
  padding: 50px 0;
  background-color: rgba(255, 255, 255, 0.7);
  position: relative;
}

.socials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234ecdc4' fill-opacity='0.15'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
}

.socials-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 20px;
}

.social-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  width: 250px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--dark-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: 4px solid;
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  top: 0;
  left: 0;
  opacity: 0.05;
  z-index: 0;
}

.social-card.telegram {
  border-color: var(--telegram-color);
  color: var(--telegram-color);
  transform: rotate(2deg);
}

.social-card.twitter {
  border-color: var(--twitter-color);
  color: var(--twitter-color);
  transform: rotate(-2deg);
}

.social-card:hover {
  transform: translateY(-10px) rotate(0) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.social-icon {
  font-size: 40px;
  margin-right: 15px;
  position: relative;
  z-index: 1;
}

.social-info {
  position: relative;
  z-index: 1;
  flex: 1;
}

.social-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.social-info p {
  font-size: 14px;
  opacity: 0.8;
}

.social-hover-icon {
  position: absolute;
  right: 20px;
  font-size: 20px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
}

.social-card:hover .social-hover-icon {
  opacity: 1;
  transform: translateX(0);
}

/* Display Section */
.display {
  padding: 50px 0;
}

.pachiko-display {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.pachiko-img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: rotate(-1deg);
  border: 8px solid var(--accent-color);
  transition: all 0.5s ease;
}

.pachiko-img:hover {
  transform: rotate(1deg) scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
  animation: rotateY 5s infinite linear;
}

@keyframes rotateY {
  0% {
    transform: rotate(1deg) scale(1.05) rotateY(0);
  }
  50% {
    transform: rotate(1deg) scale(1.05) rotateY(5deg);
  }
  100% {
    transform: rotate(1deg) scale(1.05) rotateY(0);
  }
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 20px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0V0zm10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

footer p {
  font-size: 14px;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  transform: scale(1.2);
  color: var(--accent-color);
}

/* Media Queries */
@media (max-width: 992px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-date {
    left: 75px;
    right: auto;
    text-align: left;
  }

  .timeline-content {
    width: calc(100% - 120px);
    margin-left: 120px;
    margin-right: 0;
  }

  .timeline-content::before {
    left: -13px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background-color: var(--primary-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.3s ease;
    z-index: 99;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    margin: 0;
    font-size: 18px;
  }

  .hero-content {
    flex-direction: column;
  }

  .story-intro {
    width: 100%;
  }

  .story-intro h1 {
    font-size: 26px;
  }

  .subtitle {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .main-btn,
  .chart-btn {
    width: 100%;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-date {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    text-align: left;
    margin-bottom: 10px;
    padding-left: 50px;
  }

  .timeline-content {
    width: 100%;
    margin-left: 0;
    padding-left: 50px;
  }

  .timeline-content::before {
    display: none;
  }

  .socials-container {
    flex-direction: column;
    align-items: center;
  }

  .social-card {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 26px;
  }

  .about-box {
    padding: 20px;
  }

  .about-box h2 {
    font-size: 22px;
  }

  .about-box p {
    font-size: 14px;
  }

  .timeline-content {
    padding: 15px 15px 15px 50px;
  }

  .timeline-content h3 {
    font-size: 16px;
  }

  .timeline-content p {
    font-size: 13px;
  }
}

/* Animations */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}

.main-btn:hover {
  animation: bounce 0.5s infinite;
}
