@import url('https://fonts.cdnfonts.com/css/chinese-rocks');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&display=swap');

@font-face {
  font-family: 'rdr1';
  src: url('../fonts/rdr1.otf') format('opentype');
}

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  scroll-behavior: smooth;
  user-select: none;
}

section {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: background 0.5s ease;
}

#section4 {
  height: auto;
  padding: 0;
  font-size: 1rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

#section1,
#section2 {
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

#section1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/section1.webp') no-repeat center center;
  background-size: cover;
  filter: blur(3px);
  z-index: -1;
}

#section1 > * {
  position: relative;
  z-index: 1;
}

#section2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/section2.webp') no-repeat center center;
  background-size: cover;
  filter: blur(3px);
  z-index: -1;
}

#section2 > * {
  position: relative;
  z-index: 1;
}

#section3 {
  position: relative;
  color: white;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
  min-height: 100vh;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  overflow: hidden;
}

#section3::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/section3.webp') no-repeat center center;
  background-size: cover;
  filter: blur(3px);
  z-index: -1;
}

#section3 > * {
  position: relative;
  z-index: 1;
}

.dot-nav {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #888;
  cursor: pointer;
}

.dot.active {
  background: white;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  animation: fadeIn 1.5s ease-out forwards;
  position: relative;
}

.hero-left,
.hero-right {
  font-family: 'Chinese Rocks Rg', rdr1, 'Cinzel', 'Times New Roman', serif;
  font-size: 4.5rem;
  font-weight: bold;
  color: #ededed;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.717);
}

.hero-left {
  text-align: center;
  animation: slideInLeft 1s ease-out forwards;
  transform: translateX(-100%);
  opacity: 0;
}

.hero-right {
  animation: slideInRight 1s ease-out forwards;
  transform: translateX(100%);
  opacity: 0;
  text-align: center;
}

.textured-text {
  font-family: 'Chinese Rocks Rg', rdr1, 'Cinzel', 'Times New Roman', serif;
  font-weight: bold;
  font-size: 4.5rem;
  background: linear-gradient(120deg, #a21212 0%, #2abd28 25%, #ffffff 50%, #ff2828 75%, #a21212 90%);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: textureShift 6s ease infinite;
  -webkit-text-stroke: 1px black;
}

/* KÖZÉPSŐ LOGO KISEBB */
.hero-logo {
  position: absolute;
  top: -370px;
  left: -690px;
  width: 65px;
  height: 45px;
  object-fit: contain;
  opacity: 1;
  animation: none;
  transition: none;
  filter: none;
  box-shadow: none;
  z-index: 50;
}

.hero-logo:hover {
  transform: none;
  filter: none;
  box-shadow: none;
}

/* BAL FELSŐ SAROK LOGO */
.corner-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 70px;
  height: 70px;
  object-fit: contain;
  z-index: 20;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.corner-logo:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* TÖRÖLD A RÉGI IKONOS DESIGNT, HELYETTE DISCORD GOMB */
.social-icon-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.95), rgba(114, 137, 218, 0.9));
  color: white;
  text-decoration: none;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.discord-button i {
  font-size: 1.4rem;
}

.discord-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 35px rgba(88, 101, 242, 0.45);
  filter: brightness(1.05);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glowPulse {
  0% {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 10px rgba(255, 0, 0, 0.3)) drop-shadow(0 0 15px rgba(255, 0, 0, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 20px rgba(255, 0, 0, 0.3)) drop-shadow(0 0 30px rgba(255, 0, 0, 0.4));
  }
  100% {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 10px rgba(255, 0, 0, 0.3)) drop-shadow(0 0 15px rgba(255, 0, 0, 0.2));
  }
}

@keyframes logoPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slideInLeft {
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  to { transform: translateX(0); opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes textureShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.section2-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  max-width: 1200px;
  padding: 20px;
  margin: 0 auto;
  box-sizing: border-box;
}

.char-image {
  flex: 1 1 400px;
  max-width: 800px;
  transform: scale(1.25);
  animation: fadeInLeft 1s ease forwards;
  align-self: flex-end;
}

.char-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  object-fit: contain;
  max-height: 85vh;
}

.card-container {
  flex: 1 1 450px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 24px 28px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.8s ease forwards;
  font-family: 'Segoe UI', sans-serif;
  word-wrap: break-word;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.3;
}

.card p {
  margin-top: 0;
  line-height: 1.3;
  font-size: 24px;
}

.card a {
  color: #ffcc66;
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
}

.card a:hover {
  text-decoration: underline;
}

.card code {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  color: #fff;
  font-size: 24px;
}

.video-wrapper {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
  background: black;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.rdr2-font {
  font-family: 'Chinese Rocks Rg', rdr1, 'Cinzel', 'Times New Roman', serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #ffffff;
  text-shadow:
    0 1px 0 #ff0000,
    0 2px 0 #ff0000,
    0 3px 14px rgba(0, 0, 0, 0.85);
  -webkit-text-stroke: 1px rgba(255, 0, 0, 0.85);
}

.rdr2-font--red {
  color: #d9c4a1;
  text-shadow:
    0 1px 0 #5e120d,
    0 2px 0 #4d0f0c,
    0 0 16px rgba(0, 0, 0, 0.85);
}

.chinese-rocks-font {
  font-family: 'Chinese Rocks Rg', rdr1, 'Cinzel', 'Times New Roman', serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-box {
  width: 100%;
  max-width: 1000px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 28px 32px;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.7;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.text-box p {
  font-size: 1rem;
}

.text-box h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 700;
}

.text-box ul {
  margin: 0;
  padding-left: 28px;
}

.text-box li {
  font-size: 1rem;
  margin-bottom: 14px;
}

.text-box li:last-child {
  margin-bottom: 0;
}

.text-box em {
  color: #ffcc66;
  font-style: normal;
  font-weight: bold;
}

.site-footer {
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  background-color: #1a1a1a;
  color: #f0f0f0;
  padding: 20px 0;
  width: 100%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-link {
  color: #00aaff;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.rules-wrapper {
  width: 100%;
  max-width: 1260px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.rules-box {
  flex: 1;
}

.rules-box h2 {
  text-align: center;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.rule-nav-btn {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.rule-nav-btn:hover {
  transform: scale(1.08);
  background: rgba(40, 40, 40, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.rule-nav-btn:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .hero-logo {
    width: 50px;
    height: 50px;
    top: 12px;
    left: 12px;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
  }

  .corner-logo {
    width: 56px;
    height: 56px;
    top: 14px;
    left: 14px;
    padding: 6px;
  }

  .section2-container {
    flex-direction: column;
    align-items: center;
  }

  .char-image {
    display: none;
  }

  .card-container {
    width: 100%;
    padding: 0 10px;
  }

  .card {
    padding: 20px;
  }

  .video-wrapper {
    aspect-ratio: unset;
    height: auto;
  }

  .video-wrapper iframe {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  #section3 {
    padding: 32px 12px;
  }

  .rules-wrapper {
    gap: 12px;
  }

  .rule-nav-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 1.5rem;
  }

  .text-box {
    padding: 20px;
  }

  .text-box h2 {
    font-size: 1.5rem;
  }

  .text-box ul {
    padding-left: 22px;
  }

  .discord-button {
    padding: 14px 22px;
    font-size: 1rem;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .nav-links .nav-discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 24px rgba(88, 101, 242, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  }

  .nav-links .nav-discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(88, 101, 242, 0.4);
    filter: brightness(1.05);
  }

  .nav-links .nav-discord-btn:active {
    transform: translateY(0);
  }

  @media (max-width: 768px) {
    .nav-links .nav-discord-btn {
      width: 100%;
      text-align: center;
      padding: 12px 16px;
      border-radius: 12px;
    }
  }

}