html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  display: grid;
  /* grid-template-rows: 1fr 10rem auto; */
  grid-template-areas: "main" "." "footer";
  overflow-x: hidden;
  background: #2d0839;
  min-height: 100vh;
  font-family: "Open Sans", sans-serif;
  width: 100%;
}

.glow {
  font-size: 80px;
  color: #fff;
  text-align: center;
  animation: glow 1s ease-in-out infinite alternate;
}

@-webkit-keyframes glow {
  from {
    text-shadow: 0 0 10px #9d00ff, 0 0 20px #fff, 0 0 30px #b000e6, 0 0 40px #901ade, 0 0 50px #7d1cbd, 0 0 60px #8726e8, 0 0 70px #530592;
  }
  
  to {
    text-shadow: 0 0 20px #9d00ff, 0 0 30px #8e4dff, 0 0 40px #b000e6, 0 0 50px #901ade, 0 0 60px #7d1cbd, 0 0 70px #8726e8, 0 0 80px #530592;
  }
}

img {
  width: 100%;
  height: auto;
}

/* Home Section Layout */
.home-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  flex-direction: column;
  text-align: center;
  min-height: 100vh;
  justify-content: center;
   padding-top: 100px; /* Adjust based on your .nav-header height */
}

.home-hero h2{
  padding-bottom: 0px;
}
.hero-container {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-img {
  margin-top: 5%;
  max-width: 800px;
  width: 49% !important;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;

}

.hero-text h1,
.hero-text h3,
.hero-text p {
  margin: 10px 0;
}

.hero-paragraph{
  font-size: 1.65rem;
  font-weight: 600;
  color:#ffffff;
  animation: glow 1s ease-in-out infinite alternate;
}

.nft-container {
  top:25%;
/*  max-width: 1000px; */
  max-width: 1225px !important;  
width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nft-text h1,
.nft-text h2,
.nft-text p {
  margin: 10px 0;
  color: white;
}
.nft-text h3{
  color:white;
  animation: glow 1s ease-in-out infinite alternate;
}

.why-container {
  top:25%;
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-text h1,
.why-text h2,
.why-text p {
  margin: 10px 0;
}

.why-text h3{
  color:white;
  animation: glow 1s ease-in-out infinite alternate;
}

.about-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 40px 20px; */
  flex-direction: column;
  text-align: center;
  min-height: 100vh;
  justify-content: center;
}

.about-container {
  top:25%;
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-text h1,
.about-text p {
  margin: 5px 0;
}

.about-text h2,
.about-text h3{
  margin: 5px 0;
  color: white;
  animation: glow 1s ease-in-out infinite alternate;
}

.about-text {
  margin-top: 30px;
  margin-bottom: 15%;
}

.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* height: 100vh; */
  text-align: center;
  background-image: url('imgs/BIG.webp') !important;
  background-repeat: no-repeat !important;
/* background-attachment: fixed !important; */
    background-attachment: scroll !important; /* Changed from fixed */
  background-size: 100% 100% !important;
  scroll-margin-top: 100px; /* Same height as nav */
}

.sectionNFTS {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
 /* height: 100vh; */
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; 
}

.sectionWhy{
  background: linear-gradient(145deg, #1d0423, #2c2c2c); 
  color: #f0f0f0; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
 /* height: 100vh; */
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
}

.sectionAbout{
  background-color: #280c32; 
  color: rgb(227, 124, 248); 
   display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
}

p {
  max-width: 630px;
  margin: 0 auto;
  font-size: 1.5em;
  font-weight: 600;
  color: white;
}


.glitch {
  position: relative;
  width: 48%;
  height: 35vh;
  background: url('imgs/assets/main-hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Before pseudo-element (glitch overlay) */
.glitch:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('imgs/assets/main-hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  mix-blend-mode: hard-light;
  animation: glitch2 10s linear infinite;
}

/* Glitch hover effect */
.glitch:hover:before {
  animation: glitch1 1s linear infinite;
}

/* Glitch animations */
@keyframes glitch1 {
  0%   { background-position: 0 0; filter: hue-rotate(0deg); }
  10%  { background-position: 5px 0; }
  20%  { background-position: -5px 0; }
  30%  { background-position: 15px 0; }
  40%  { background-position: -5px 0; }
  50%  { background-position: -25px 0; }
  60%  { background-position: -50px 0; }
  70%  { background-position: 0 -20px; }
  80%  { background-position: -60px -20px; }
  81%  { background-position: 0 0; }
  100% { background-position: 0 0; filter: hue-rotate(360deg); }
}

@keyframes glitch2 {
  0%   { background-position: 0 0; filter: hue-rotate(0deg); }
  10%  { background-position: 15px 0; }
  15%  { background-position: -15px 0; }
  20%  { filter: hue-rotate(360deg); }
  25%  { background-position: 0 0; filter: hue-rotate(0deg); }
  100% { background-position: 0 0; filter: hue-rotate(0deg); }
}

.glitchNew {
  position: relative;
  margin-right: 25px;
  width: 120%;
  height: 45vh;
  background: url('imgs/assets/lovin.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.glitchNew:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('imgs/assets/lovin.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  mix-blend-mode: hard-light;
  animation: glitch2 10s linear infinite;
}

.glitchNew:hover:before {
  animation: glitch1 1s linear infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

body .footer {
  z-index: 1;
  --footer-background: rgb(182, 46, 209);
  display: grid;
  position: relative;
  grid-area: footer;
  min-height: 10rem;
}
body .footer .bubbles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1rem;
  background: var(--footer-background);
  filter: url("#blob");
}
body .footer .bubbles .bubble {
  position: absolute;
  left: var(--position, 50%);
  background: var(--footer-background);
  border-radius: 100%;
  -webkit-animation: bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s), bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s);
          animation: bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s), bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s);
  transform: translate(-50%, 100%);
}
body .footer .content {
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 4rem;
  padding: 2rem;
  background: var(--footer-background);
  width:100%;
  height:100%;
}
body .footer .content a, body .footer .content p {
  color: #F5F7FA;
  text-decoration: none;
}
body .footer .content b {
  color: white;
}
body .footer .content p {
  margin: 0;
  font-size: 0.75rem;
}
body .footer .content > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body .footer .content > div > div {
  margin: 0.25rem 0;
}
body .footer .content > div > div > * {
  margin-right: 0.5rem;
}
body .footer .content > div .image {
  align-self: center;
  width: 4rem;
  height: 4rem;
  margin: 0.25rem 0;
  background-size: cover;
  background-position: center;
}

.social{
 padding-top: 5%;
  margin: 0;
   display: flex;
  justify-content: center; /* centers horizontally */
  align-items: center;     /* centers vertically */  
  position: static;
  width: 100%;
  padding: 10px 10px;
  font-size: 24px;
  font-family: 'Open Sans', sans-serif;
  animation: glow 1s ease-in-out infinite alternate;
}

.social ul {
  display: flex;
  flex-wrap: wrap; /* allow wrapping on small screens */
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.social li {
  display: flex;
  align-items: center;
}

.logo {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
}

.nav-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent */
  z-index: 1000;
  padding: 10px 10px;
  font-family: 'Open Sans', sans-serif;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hamburger {
  padding-right: 20px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  display: block;
}

/* Hide menu by default on small screens */
.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  right: 20px;
  top: 60px;
  background: rgba(0, 0, 0, 0.9);
  padding: 15px;
  border-radius: 8px;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
}

.nav-menu a {
  color: #e37cf7;
  padding: 10px 0;
  text-decoration: none;
  font-size: 18px;
  animation: glow 1s ease-in-out infinite alternate;
}

.nav-menu a:hover {
  color: #ccc;
  animation: glow 1s ease-in-out infinite alternate;
}

/* Show menu when active */
.nav-menu.active {
  display: flex;
}

/* Adjust for larger screens */
@media screen and (min-width: 768px) {
  .hero-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .hero-img {
    width: 45%;
    margin-right: 20px;
  }

  .hero-text {
    width: 50%;
  }

   .nft-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .nft-img {
    width: 45%;
    margin-right: 20px;
  }

  .nft-text {
    width: 50%;
  }

  .why-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .why-img {
    width: 45%;
    margin-right: 20px;
  }

  .why-text {
    width: 50%;
  }
  

   .about-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .about-img {
    width: 45%;
    margin-right: 20px;
  }

  .about-text {
    width: 50%;
  }
}

@media (max-width: 480px) {
  .glow {
    font-size: 40px;
  }
}

@media (max-width: 767px) {
  
  img {
    max-width: 100% !important;
  }
}

/* Optional: Responsive tweak for larger screens */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    padding-left: 15px;
    /*padding: 0;*/
    border-radius: 0;
  }

  .nav-menu a {
    padding: 14px 0;
    font-size: 20px;
  }
}

@-webkit-keyframes bubble-size {
  0%, 75% {
    width: var(--size, 4rem);
    height: var(--size, 4rem);
  }
  100% {
    width: 0rem;
    height: 0rem;
  }
}

@keyframes bubble-size {
  0%, 75% {
    width: var(--size, 4rem);
    height: var(--size, 4rem);
  }
  100% {
    width: 0rem;
    height: 0rem;
  }
}
@-webkit-keyframes bubble-move {
  0% {
    bottom: -4rem;
  }
  100% {
    bottom: var(--distance, 10rem);
  }
}
@keyframes bubble-move {
  0% {
    bottom: -4rem;
  }
  100% {
    bottom: var(--distance, 10rem);
  }  
}

@media (max-width: 600px) {
  .social {
    font-size: 4.5vw;
  }

  .social ul {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .glitch {
    width: 90%;
    height: 30vh;
    margin-top: 60px;
  }
}

@media (max-width: 768px) {
  .glitchNew {
    width: 100%;
    height: 25vh;
    margin-right: 0px;
  }
}
@media screen and (min-width: 1024px) and (max-width: 1366px) {
  .home-hero {
    padding-top: 120px;
  }
}