/* Removed html, body, and main formatting (now in base.css) */

/* Remove old about-bot styles */
.about-bot { display: none; }

.hero {
  position: relative;
  height: auto;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: 4rem;
  margin-bottom: 5rem; /* Add more space below hero-content */
}

.hero-left {
  position: static;
  margin-bottom: 2.5rem;
  text-align: center;
}

.hero-left h1 {
  font-size: 4rem;
  margin: 0;
  line-height: 1.1;
  user-select: none;
}

.hero-introduction {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-container {
  top: 55%;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  justify-content: flex-start;
  margin: 0 auto 10rem auto;
  width: 80%;
  height: auto;
  max-width: 100%;
  box-sizing: border-box;
}
/* Hero logo base and highlight mask */
.hero-logo {
  position: relative;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  font-weight: 700;
  color: rgba(56, 56, 56, 0.452);
  user-select: none;
  margin: 0;
  transform: none;
  transition: color 0.5s;
  pointer-events: none;
  background: linear-gradient(to right, rgba(56, 56, 56, 0.452) 0, rgba(202, 201, 209, 0.918) 40%);
  background-position: 0;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: move 3s infinite linear;
  animation-fill-mode: forwards;
  transition: background 3s;
}
@keyframes move {
  0% {
    background-position: 0;
  }
  50% {
    background-position: 39vw; /* half of 500px */
  }
  100% {
    background-position: 78vw; /* 40% of viewport width, matches .hero-logo width */
  }
}

/* Simplify hero-about to inline text with accent */
.hero-about {
  position: relative;
  max-width: 40%;
  margin: 0 auto;
  color: #ddd;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: left;
  border-left: 4px solid #43b7ce;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.hero-about p {
  margin-bottom: 1rem;
}

.Socials {
  width: 100%;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0; /* Remove extra top margin, spacing now handled above */
  margin-bottom: 10rem;
  position: static;
}

.Socials ul {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  display: flex;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}

/* Remove global ul absolute centering for Socials */
ul {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  display: block;
  margin: 0;
  padding: 0;
}

ul li {
  list-style:none;
  margin:0 5px;
}

ul li a {
  text-decoration: none;
  display: block;
  width:210px;
  height:80px;
  background: #fff;
  text-align:left;
  padding-left: 20px;
  position: relative;
  transform: rotate(-30deg) skew(25deg) translate(0,0);
  transition: .5s background, .5s box-shadow, .5s color, .5s transform;
  box-shadow: -20px 20px 10px rgba(0,0,0,.5);
}

ul li a .social-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  margin-right: 0; /* Remove margin-right to prevent shifting */
  color: #fff; /* Always visible, not just on hover */
  transition: none; /* Prevent color transition that causes flicker */
}

ul li a .fa {
  font-size: 40px;
  color: #262626;
  line-height:80px;
  transition: .5s;
  padding-right: 14px;
  margin-left: 40px; /* push text right to make space for icon */
}

ul li a span {
  left: 80px;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  padding:0;
  margin:0;
  color: #262626;
  letter-spacing: 4px;
  transition: .5s;
}

ul li a:before {
  content: '';
  position: absolute;
  top:10px;
  left:-20px;
  height:100%;
  width:20px;
  background: #b1b1b1;
  transform: .5s;
  transform: rotate(0deg) skewY(-45deg);
  transition: .5s background;
}
ul li a:after {
  content: '';
  position: absolute;
  bottom:-20px;
  left:-10px;
  height:20px;
  width:100%;
  background: #b1b1b1;
  transform: .5s;
  transform: rotate(0deg) skewX(-45deg);
  transition: .5s background;
}

ul li a:hover {
  transform: rotate(-30deg) skew(25deg) translate(20px,-15px);
  box-shadow: -50px 50px 50px rgba(0,0,0,.5);
}

/* Discord (first button) vibrant color */
ul li:nth-child(1) a,
ul li:nth-child(1) a:before,
ul li:nth-child(1) a:after {
  background: #5865F2 !important;
}
ul li:nth-child(1) a .social-icon {
  color: #fff; /* Always white for Discord */
}

ul li:hover:nth-child(1) a,
ul li:hover:nth-child(1) a:before,
ul li:hover:nth-child(1) a:after {
  background: #7289DA !important;
}
ul li:hover:nth-child(1) a .social-icon {
  color: #fff;
}

/* Discord vibrant gradient - less contrast */
ul li:nth-child(1) a,
ul li:nth-child(1) a:before,
ul li:nth-child(1) a:after {
  background: linear-gradient(135deg, #5865F2, #5b6ee5, #7289DA, #4e5d94) !important;
}
ul li:hover:nth-child(1) a,
ul li:hover:nth-child(1) a:before,
ul li:hover:nth-child(1) a:after {
  background: linear-gradient(135deg, #7289DA, #5865F2, #5b6ee5, #4e5d94) !important;
}

/* Instagram vibrant */
ul li:nth-child(2) a,
ul li:nth-child(2) a:before,
ul li:nth-child(2) a:after {
  background: linear-gradient(135deg, #fd5, #f36, #c3f, #6df);
}
ul li:hover:nth-child(2) a,
ul li:hover:nth-child(2) a:before,
ul li:hover:nth-child(2) a:after {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

ul li:hover .fa {
  color:#fff;
}

ul li:hover span {
  color:#fff;
}

/* Social button entry animation */
@keyframes socialEntry {
  0% {
    opacity: 0;
    transform: translateX(-120px) translateY(var(--entry-offset, 0px)) rotate(-30deg) skew(25deg) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: translateX(10px) translateY(var(--entry-offset, 0px)) rotate(-30deg) skew(25deg) scale(1.05) rotateZ(-3deg);
  }
  75% {
    transform: translateX(-8px) translateY(var(--entry-offset, 0px)) rotate(-30deg) skew(25deg) scale(0.98) rotateZ(2deg);
  }
  85% {
    transform: translateX(4px) translateY(var(--entry-offset, 0px)) rotate(-30deg) skew(25deg) scale(1.01) rotateZ(-1deg);
  }
  100% {
    opacity: 1;
    transform: rotate(-30deg) skew(25deg) translate(0,0);
  }
}

.Socials ul.animated li {
  opacity: 1;
}
.Socials ul.animated li a {
  animation: socialEntry 0.9s cubic-bezier(0.7,1.6,0.5,1) both;
}
.Socials ul.animated li:nth-child(1) a {
  animation-delay: 0s;
  --entry-offset: 0px;
}
.Socials ul.animated li:nth-child(2) a {
  animation-delay: 0.18s;
  --entry-offset: 0px;
}
.Socials ul li {
  opacity: 0;
  transition: opacity 0.2s;
}


/* Features section styles */
.features-section {
  width: 80%;
  margin: 0 auto 10rem auto;
  padding: 1rem 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.features-title {
  font-size: 2.8rem;
  margin-bottom: 4rem;
  color: #43b7ce;
  text-align: center;
}
.features-section .feature-block:first-of-type {
  margin-top: 8rem;
}
.feature-block {
  display: flex;
  align-items: center;
  gap: 5rem;
  margin-bottom: 18rem;
  width: 100%;
  max-width: 1200px;
  justify-content: center;
}
.feature-block:nth-child(even) {
  flex-direction: row-reverse;
}
.feature-img-stack {
  position: relative;
  width: 400px;
  min-width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-img {
  width: 400px;
  height: auto;
  max-width: 100%;
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px 0 rgba(23,189,177,0.10);
  background: #18191c;
  position: absolute;
  left: 0; top: 0;
  transition: box-shadow 0.3s;
}
.base-img {
  z-index: 1;
  opacity: 1;
  position: absolute;
}
.overlay-img {
  z-index: 2;
  opacity: 1;
  transform: translateX(120vw) rotateZ(28deg) scale(0.98);
  transition: none;
}
.feature-block:nth-child(even) .overlay-img {
  transform: translateX(-120vw) rotateZ(-28deg) scale(0.98);
}
.feature-info {
  flex: 1;
  color: #eee;
  min-width: 220px;
}
.feature-info h3 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: #43b7ce;
}
.feature-info p {
  font-size: 1.22rem;
  line-height: 1.8;
}

/* Add more space between sections */
.about-container {
  margin: 0 auto 10rem auto;
}
.Socials {
  margin-top: 2rem;
  margin-bottom: 10rem;
}

.hint-top-right {
  position: absolute;
  top: 12px;
  right: 18px;
  left: auto;
  transform: rotate(45deg);
  text-align: right;
}
.hint-top-left {
  position: absolute;
  left: -70px;
  top: -54px;
  right: auto;
  bottom: auto;
  transform: rotate(-28deg);
  text-align: left;
  color: #aaa;
  font-size: 1.1rem;
  font-family: 'Segoe Script', 'Comic Sans MS', cursive, sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}

/* --- Feature Block Scroll-in Animation (block as a whole) --- */
.feature-img-stack.animate-on-scroll.from-right {
  opacity: 0;
  transform: translateX(80px) scale(0.98);
  transition: opacity 0.45s cubic-bezier(.7,1.6,.5,1), transform 0.45s cubic-bezier(.7,1.6,.5,1);
}
.feature-img-stack.animate-on-scroll.from-right.in-view {
  opacity: 1;
  transform: none;
}
.feature-img-stack.animate-on-scroll.from-left {
  opacity: 0;
  transform: translateX(-80px) scale(0.98);
  transition: opacity 0.45s cubic-bezier(.7,1.6,.5,1), transform 0.45s cubic-bezier(.7,1.6,.5,1);
}
.feature-img-stack.animate-on-scroll.from-left.in-view {
  opacity: 1;
  transform: none;
}

/* --- Card Flip Swap Animation (restored) --- */
.swap-stack {
  perspective: 1200px;
}
.swap-img {
  opacity: 1 !important;
  backface-visibility: hidden;
  transition: transform 0.7s cubic-bezier(.7,1.6,.5,1);
  cursor: pointer;
}
.swap-img-front {
  z-index: 2;
  transform: rotateY(0deg);
}
.swap-img-back {
  z-index: 1;
  transform: rotateY(-180deg);
}
.swap-stack.swapped .swap-img-front {
  z-index: 1;
  transform: rotateY(180deg);
}
.swap-stack.swapped .swap-img-back {
  z-index: 2;
  transform: rotateY(0deg);
}
/* --- End Card Flip Swap Animation --- */

/* --- Main Action Button Styles (Add To Server, etc.) --- */
.invite-btn {
  display: inline-block;
  padding: 0.7em 1.4em;
  margin: 0.5em;
  background-color: #43b7ce;
  color: #fff;
  border: none;
  border-radius: 0.9em;
  cursor: pointer;
  font-size: 0.9em;
  font-family: 'Segoe UI', sans-serif!important;
  font-weight: 500;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(23, 170, 189, 0.1);
}
.invite-btn:hover {
  background-color: #2f8394;
  color: #fff;
  opacity: 1;
}

@media (max-width: 1200px) {
  .hero-content {
    margin-top: 2.5rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .hero-left h1 {
    font-size: 3.1rem;
  }

  .about-container,
  .features-section {
    width: 92%;
    margin-bottom: 6rem;
  }

  .feature-block {
    gap: 2.3rem;
    margin-bottom: 8rem;
  }

  .feature-img-stack,
  .feature-img {
    width: 320px;
  }
}

@media (max-width: 900px) {
  .hero-left h1 {
    font-size: 2.45rem;
  }

  .about-container {
    top: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 1.6rem;
    width: min(94%, 100%);
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto 4.5rem auto;
  }

  .hero-logo,
  .hero-about {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .hero-logo {
    font-size: clamp(2.4rem, 10vw, 4.4rem);
  }

  .hero-about {
    max-width: 100%;
    font-size: 1rem;
  }

  .feature-block,
  .feature-block:nth-child(even) {
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 4.2rem;
    text-align: center;
  }

  .feature-img-stack,
  .feature-img {
    width: min(88vw, 420px);
  }

  .feature-img-stack {
    height: auto;
    min-width: 0;
    position: relative;
  }

  .feature-img:not(.swap-img) {
    position: relative;
  }

  .swap-stack {
    display: grid;
    height: auto;
  }

  .swap-img {
    grid-area: 1 / 1;
    position: relative;
    width: 100%;
    height: auto;
    left: auto;
    top: auto;
    object-fit: initial;
  }

  .feature-info {
    min-width: 0;
  }

  .feature-info h3 {
    font-size: 1.6rem;
  }

  .feature-info p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hint-top-left {
    left: 4px;
    top: -30px;
    transform: rotate(-8deg);
    font-size: 0.82rem;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    margin-top: 1.6rem;
    margin-bottom: 2.2rem;
  }

  .hero-left {
    margin-bottom: 1.1rem;
  }

  .hero-left h1 {
    font-size: 1.95rem;
    line-height: 1.15;
  }

  .hero-introduction {
    font-size: 1rem;
    max-width: 95%;
  }

  .Socials {
    height: auto;
    margin: 1.2rem 0 3rem 0;
    padding: 0.8rem 0;
  }

  .Socials ul {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  ul li {
    margin: 0;
  }

  ul li a {
    width: min(68vw, 210px);
    height: 64px;
    transform: rotate(-18deg) skew(15deg) translate(0, 0);
    box-shadow: -10px 10px 8px rgba(0,0,0,.5);
  }

  ul li a:hover {
    transform: rotate(-18deg) skew(15deg) translate(10px, -8px);
    box-shadow: -26px 26px 26px rgba(0,0,0,.5);
  }

  ul li a:before {
    display: block;
    top: 7px;
    left: -13px;
    height: 100%;
    width: 13px;
  }

  ul li a:after {
    display: block;
    bottom: -13px;
    left: -6px;
    height: 13px;
  }

  @keyframes socialEntryMobile {
    0% {
      opacity: 0;
      transform: translateX(-80px) rotate(-18deg) skew(15deg) scale(0.9);
    }
    60% {
      opacity: 1;
      transform: translateX(6px) rotate(-18deg) skew(15deg) scale(1.04);
    }
    75% {
      transform: translateX(-4px) rotate(-18deg) skew(15deg) scale(0.98);
    }
    85% {
      transform: translateX(2px) rotate(-18deg) skew(15deg) scale(1.01);
    }
    100% {
      opacity: 1;
      transform: rotate(-18deg) skew(15deg) translate(0, 0);
    }
  }

  .Socials ul.animated li a {
    animation-name: socialEntryMobile;
  }

  ul li a .social-icon {
    left: 20px;
    font-size: 26px;
  }

  ul li a span {
    left: 62px;
    letter-spacing: 1.2px;
    font-size: 0.95rem;
  }

  .features-title {
    font-size: 2.1rem;
    margin-bottom: 2rem;
  }
}