/* Add font-face declaration at the top of the file */
@font-face {
    font-family: 'TradeWinds';
    src: url('TradeWinds-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* This helps with font loading performance */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    font-family: 'TradeWinds', sans-serif; /* Add TradeWinds as primary font */
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

body {
    overflow-x: hidden;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    background-color:#000;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for all elements */
*::-webkit-scrollbar {
    display: none;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1070;
    background: rgba(0, 0, 0, 0.4); /* Add semi-transparent background */
    padding: 20px 0;
    backdrop-filter: blur(8px); /* Add blur effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}

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

/* Replace logo img with text styling */
.header__logo {
    text-decoration: none;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.header__logo:hover {
    color: #007bff;
    text-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.header__list {
    display: flex;
    gap: 40px;
    list-style: none;
}

.header__list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.header__list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.header__list a:hover::after {
    width: 100%;
}

.header__list a:hover {
    color: #007bff;
}

.header__button {
    background: transparent;
    color: white;
    padding: 12px 24px;
    border: 2px solid #007bff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.header__button:hover {
    background: #007bff;
    color: white;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

/* Hero Section Styles */
.hero {
    position: relative;
    overflow: hidden;
    background: #87CEEB;
    scroll-snap-type: y mandatory;
    height: 100vh;
    z-index: 1;
    transform: translateZ(0); /* Create new stacking context */
}

.hero__layers {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    scroll-snap-align: start;
}

.hero__layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    /* Extend width to accommodate movement */
    height: 100%;
    transform-origin: left center;
    /* Set transform origin to left */
}

.hero__layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateX(0);
    /* Initial position */
}

/* Update specific layers */
.hero__layer-wall,
.hero__layer-road {
    width: 150%;
    /* Extra width for movement */
    left: 0;
}

.hero__layer-bg {
    width: 100%;
    /* Background stays at normal width */
}

.hero__layer-behind-wall {
    right: 0 !important;
    z-index: 2;
}

/* Parallax Layer Specific Styles */
.hero__layer-bg {
    z-index: 1;
}

.hero__layer-wall {
    z-index: 2;
    transition: transform 0.3s ease-out;
}

.hero__layer-lights {
    z-index: 3;
    transition: transform 0.3s ease-out;
    width: 150%;
    /* Extra width for movement */
}

.hero__layer-road {
    z-index: 4;
    transition: transform 0.3s ease-out;
}

.hero__layer-character {
    z-index: 5;
    transition: transform 0.3s ease-out;
}

.hero__layer-character img {
    width: auto;
    height: 70%;
    object-fit: contain;
    position: absolute;
    bottom: 10px;
    left: 250px;
    transform: translateX(-50%);
}

/* Second Section Styles */
.section-two {
    position: relative;
    z-index: 100; /* Much higher z-index */
    min-height: 100vh;
    background-size: cover;
    transform: translateZ(0); /* Create new stacking context */
    padding-top: 200px;
    color: white;
}

.section-two__layers {
    position: relative;  /* Changed from sticky */
    min-height: 230vh;  /* Changed to match pare    nt */
    width: 100%;
    overflow: hidden;
}

.section-two__layer {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 99;
}

/* Remove the transform on background and overlay */
.section-two__layer-bg {
    position: absolute;
    will-change: transform;
    transition: transform 0.3s ease-out;  /* Add smooth transition */
    z-index: 91;
    pointer-events: none;
}

.section-two__layer-bg img {
    width: 100%;
    will-change: transform;  /* Optimize for animations */
}

/* Overlay Layer */
.section-two__layer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;  /* Place overlay between background and content */
}

.section-two__title {
    font-size: 6rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.gallery__row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Add this new rule to target the first gallery row */
.gallery__row:first-child {
    margin-right: 200px; /* Adjust this value to control how far left you want it */
}

.gallery__row img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    margin:15px;
}

.gallery__row img:hover {
    transform: scale(1.05);
}

.section-two__text {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto;
    line-height: 1.6;
}

/* Show content when section is active */
.section-two.active .section-two__layer-content {
    opacity: 1;
    transform: translateY(0);
}

/* How to Buy Section Styles */
.how-to-buy {
    padding: 100px 20px;
    text-align: center;
    color: white;
    position: relative;
    z-index: 92;
    background-color: black;
    height: 81vh;
}

.section-title {
    font-size: 6rem;
    margin-bottom: 4rem;
}

.tokenomicsContainer {
    z-index: 100;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    padding: 0 20px;
}

.step {
    flex: 1;
    max-width: 300px;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Social icons container styles */
.socials-container,
.floating-socials {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    grid-template-rows: repeat(2, 1fr); /* 2 rows */
    gap: 20px;
    max-width: 400px; /* Adjust this value to control overall width */
    margin: 30px auto;
    padding: 0 20px;
}

/* Individual social icon styles */
.social-icon {
    width: 50px;
    height: 50px;
    border: 2px solid white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 24px;
    text-decoration: none;
    margin: 0 auto; /* Center icons in grid cells */
}

.social-icon:hover {
    transform: scale(1.1);
    border-style: solid;
}

/* New parallax image layers */
.section-two__layer-1214 {
    position: absolute;
    top: -20%;
    left: 0px;
    width: 1400px;
    z-index: 93;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s ease-out;
}

.section-two__layer-1213 {
    position: absolute;
    top: 40%;
    right: -100px;
    width: 300px;
    z-index: 93;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s ease-out;
}

.section-two__layer-1214 img,
.section-two__layer-1213 img {
    width: 100%;
    height: auto;
}

/* Add these classes that will be applied when scrolled into view */
.section-two__layer-1214.visible,
.section-two__layer-1213.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tokenomics Section Styles */
.tokenomics {
    position: relative;
    background-color: #000;
    overflow: hidden;
    min-height: 140vh;
    display: flex;
    justify-content: center;
    flex-direction:column;
}

.tokenomics__bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 100;
}

.cloud-bg {
    width: 100%;
    position: absolute;
    transition: transform 0.3s ease-out;
    will-change: transform;
    background-color: black;
}

.tokenomics__content {
    color: #000 !important;
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    margin-top: 50%;
}

.tokenomics__content .section-title {
text-shadow: 1px 1px 20px #fff;
}

.tokenomics__container{
    z-index: 101;
}

.tokenomics__details {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.tokenomics__item {
    text-align: center;
}

.tokenomics__item h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tokenomics__item p {
    font-size: 3rem;
    font-weight: bold;
}

/* Final Hero Section Styles */
.final-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1a1a 0%, #4a1625 50%, #1a1a1a 100%);
    height: 100vh;
    z-index: 1;
    scroll-snap-type: y mandatory;
}

.final-hero__layers {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    scroll-snap-align: start;
}

.final-hero__layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 150%; /* Important: Make sure layers are wide enough for movement */
    height: 100%;
    transform-origin: left center;
}

.final-hero__layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateX(0);
    will-change: transform;
}

/* Layer specific styles */
.final-hero__layer-bg {
    width: 150%;
    z-index: 1;
}

.final-hero__layer-wall {
    z-index: 2;
    transition: transform 0.3s ease-out;
}

.final-hero__layer-lights {
    z-index: 3;
    transition: transform 0.3s ease-out;
    width: 150%;
}

.final-hero__layer-road {
    z-index: 4;
    transition: transform 0.3s ease-out;
}

.final-hero__layer-character {
    z-index: 5;
    transition: transform 0.3s ease-out;
}

.final-hero__layer-character img {
    width: auto;
    height: 60%;
    object-fit: contain;
    position: absolute;
    bottom: 10px;
    left: 260px;
    transform: translateX(-50%);
}

/* Floating Social Icons */
.final-hero__layer-socials {
    position: absolute;
    top: 20%;
    right: 15%;
    z-index: 6;
}

.floating-socials {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    max-width: 400px;
    margin: 30px auto;
    padding: 0 20px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.floating-socials .social-icon {
    width: 50px;
    height: 50px;
    border: 2px dashed white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 24px;
    text-decoration: none;
}

.floating-socials .social-icon:hover {
    transform: scale(1.1);
    border-style: solid;
}

/* Add this to your existing JavaScript parallax logic */
.final-hero__layer.parallax {
    transform: translateX(var(--parallax-offset));
}

/* Base responsive adjustments */
@media (max-width: 1024px) {
    /* First section container fixes */
    .hero {
        overflow: hidden;
        width: 100%;
        position: relative;
        height: 100vh; /* Ensure full viewport height */
    }

    .hero__layers {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }

    /* First section layer positioning */
    .hero__layer {
        width: 400%; /* Even wider to prevent cut-off during scroll */
        left: -150%; /* Adjust starting position */
        position: absolute;
        top: 0;
        height: 100%;
    }

    .hero__layer img {
        width: unset !important;
        height: 100%;
        object-fit: cover;
        transform-origin: center center;
        will-change: transform;
    }

    /* Specific layer adjustments */
    .hero__layer-behind-wall {
        width: 400%;
        left: -150%;
    }

    .hero__layer-wall {
        width: 400%;
        left: -150%;
    }

    .hero__layer-lights {
        width: 400%;
        left: -150%;
    }

    .hero__layer-road {
        width: 400%;
        left: -150%;
    }

    .hero__layer-character {
        width: 200%;
        left: -50%;
    }

    .hero__layer-character img {
        width: auto;
        height: 60%;
        left: 35%;
        bottom: 0;
        position: absolute;
        transform: translateX(-50%);
    }

    /* Final section adjustments to match */
    .final-hero {
        overflow: hidden;
        width: 100%;
        position: relative;
        height: 100vh;
    }

    .final-hero__layers {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }

    .final-hero__layer {
        width: 400%;
        left: -150%;
        position: absolute;
        top: 0;
        height: 100%;
    }

    .final-hero__layer img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform-origin: center center;
        will-change: transform;
    }

    /* Ensure smooth transitions */
    .hero__layer,
    .final-hero__layer {
        transition: transform 0.3s ease-out;
        will-change: transform;
    }

    /* Container overflow handling */
    .hero,
    .final-hero {
        overflow: hidden;
        width: 100%;
        position: relative;
    }

    .hero__layers,
    .final-hero__layers {
        overflow: hidden;
        width: 100%;
        position: relative;
    }

    /* Ensure proper scaling for all layers */
    .hero__layer-behind-wall,
    .hero__layer-wall,
    .hero__layer-lights,
    .hero__layer-road,
    .final-hero__layer-bg,
    .final-hero__layer-wall,
    .final-hero__layer-lights,
    .final-hero__layer-road {
        width: 200%;
        left: -100%;
    }

    /* Center image between sections */
    .center-image {
        width: 80%;
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        bottom: -100px; /* Adjust position between sections */
    }

    /* Section height fixes */
    .section-two {
        min-height: 100vh;
        padding-top: 150px; /* Adjust top padding */
    }


    /* How to buy section */
    .how-to-buy {
        min-height: 100vh;
        padding: 80px 20px;
    }

    /* Tokenomics section */
    .tokenomics {
        min-height: 100vh;
    }

    /* Title and content adjustments */
    .section-two__title,
    .section-title {
        font-size: 4rem;
        margin-bottom: 2rem;
    }

    /* Gallery adjustments */
    .gallery__row {
        padding: 0 20px;
    }

    .gallery__row img {
        width: 180px;
        height: 180px;
    }

    /* Steps container */
    .steps-container {
        padding: 0 40px;
    }

    /* Tokenomics content */
    .tokenomics__content {
        padding: 0 20px;
    }

    /* Cloud background positioning */
    .cloud-bg-img {
        margin-top: -120px;
    }

    .header__container {
        padding: 0 15px;
    }

    .header__list {
        gap: 20px;
    }

    .header__logo {
        font-size: 2rem;
    }

    .section-two__title {
        font-size: 4rem;
    }

    .gallery__row {
        flex-wrap: wrap;
    }

    .gallery__row img {
        width: 200px;
        height: 200px;
    }

    .steps-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .step {
        flex: 0 1 calc(50% - 1rem);
        max-width: none;
    }

    /* Adjust hero and final hero layers */
    .hero__layer,
    .final-hero__layer {
        width: 100%; /* Reset width to full */
        height: 100%;
        left: 0;
    }

    .hero__layer img,
    .final-hero__layer img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        left: 0;
    }
    .gallery__row:first-child {
        margin-right: 0; /* Reset margin */
    }

    .section-two__layer-1213 { 
        top: 0%;
    }
    .section-two__layer-1214 {
        top:-50%;
    }
    .hero__layer-center img {
        max-width: 600px;
    }

    .final-hero__layer-character img {
        left: -130px !important;
    }

    /* Character positioning */
    .hero__layer-character,
    .final-hero__layer-character {
        width: auto;
        height: 100%;
    }

    .hero__layer-character img,
    .final-hero__layer-character img {
        width: auto;
        height: 60%;
        position: absolute;
        bottom: 0;
        left: 10%; /* Position character on the left */
        transform: translateX(0);
    }

    /* Section two background adjustments */
    .section-two__layer-bg {
        height: 100%;
    }

    .section-two__layer-bg img {
        margin-top: 0;
        object-fit: cover;
    }
}

.cloud-bg-img { 
    margin-top: -240px;
}

/* Tablet specific styles */
@media (max-width: 768px) {
    .header__menu {
        display: none; /* We'll add a mobile menu later */
    }

    .tokenomics__bg img {
        object-fit: cover;
    }

    .cloud-bg-img { 
        margin-top: 20px;
    }

    .cloud-bg {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        transform: none !important;
    }

    .header__button {
        display: none; /* Hide the button in header */
    }

    .header__menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(8px);
        padding: 20px 0;
        text-align: center;
    }

    .header__menu.active {
        display: block;
    }

    .header__list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 20px; /* Add space for button */
    }

    /* Show button inside mobile menu */
    .header__menu .header__button {
        display: inline-block;
        margin: 10px auto;
    }

    .section-two__title {
        font-size: 3rem;
    }

    .gallery__row {
        justify-content: center;
    }

    .gallery__row img {
        width: 150px;
        height: 150px;
    }

    .section-title {
        font-size: 3rem;
    }

    .tokenomics__details {
        flex-direction: column;
        gap: 30px;
    }

    .step {
        flex: 0 1 100%;
    }

    /* Adjust parallax layers for better mobile experience */

    .hero__layer-character img,
    .final-hero__layer-character img {
        height: 50%;
        left: 50%;
    }

    /* Social icons adjustments */
    .socials-container,
    .floating-socials {
        gap: 15px;
        max-width: 300px;
        z-index: 99;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .floating-socials {
        gap: 15px;
        max-width: 300px;
        bottom: 20px;
        height: 140px;
    }

    .final-hero__layer {
        width: 100%;
    }
    
    .final-hero__layer-character img {
        height: 50%;
        left: 50%;
    }
}

/* Add hamburger menu for mobile */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

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

    .header__menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(8px);
        padding: 20px 0;
    }

    .header__menu.active {
        display: block;
    }

    .header__list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .header__list a {
        font-size: 18px;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero,
    .hero__layers,
    .final-hero,
    .final-hero__layers {
        height: -webkit-fill-available;
    }
}

/* Fix for any potential overflow issues */
.hero,
.final-hero,
.section-two {
    overflow: hidden;
    width: 100%;
}

/* Scroll Indicator Styles */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-indicator.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(45deg);
    animation: arrowBounce 2s infinite;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.scroll-indicator span {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

@keyframes arrowBounce {
    0% {
        transform: rotate(45deg) translate(0, 0);
    }
    50% {
        transform: rotate(45deg) translate(10px, 10px);
    }
    100% {
        transform: rotate(45deg) translate(0, 0);
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
        right: 20px;
    }

    .scroll-arrow {
        width: 20px;
        height: 20px;
    }

    .scroll-indicator span {
        font-size: 12px;
    }

    .cloud-bg {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        transform: none !important;
    }
}

/* Small screen adjustments */
@media (max-width: 375px) {
    .socials-container,
    .floating-socials {
        gap: 10px;
        max-width: 280px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .floating-socials {
        gap: 10px;
        max-width: 280px;
    }
}

/* Add these styles */
.hero__layer-center {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.center-image {
    width: 100%;
    height: 100%;
    max-width: 900px;
    object-fit: contain !important;
    transform: translateY(100%);
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease; /* Added opacity transition */
    opacity: 0; /* Initial state */
    z-index: 99;
    will-change: transform, opacity;
}

.center-image.slide-up {
    transform: translateY(0);
    opacity: 1 !important; /* Force opacity */
    animation: floatBounce 3s ease-in-out infinite;
}

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

@media (max-width: 768px) {
    .center-image {
        width: 100%;
        height: auto;
    }

    .hero__layer-center img {
        max-width: 400px;
    }
}

/* Add new middle layer styles */
.section-two__layer-1216 {
    position: absolute;
    top: -20%;
    left: 30%;
    transform: translateX(-50%);
    width: 400px;
    z-index: 93;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s ease-out;
}

.section-two__layer-1216 img {
    width: 200%;
    height: auto;
}

.section-two__layer-1216.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add these styles for the final section layers */
.final-hero__layer-wall img,
.final-hero__layer-lights img,
.final-hero__layer-road img {
    background-repeat: repeat-x; /* Make the image repeat horizontally */
    width: 200%; /* Make the image wider */
    object-fit: repeat; /* Use repeat instead of cover */
}

/* Update these section styles */
.hero,
.section-two,
.how-to-buy,
.tokenomics,
.final-hero {
    width: 100%; /* Change max-width to width */
    margin: 0;
    position: relative;
}

.desktop {
    display: block;
}

.mobile {
    display: none;
}
@media(max-width: 768px) {
    .desktop {
        display: none;
    }
    .mobile {
        display: block;
    }

    .final-hero__layer-wall img {
        width: 440% !important;
    }

    .new-section {
        flex-direction: column;
        align-items: center;
    }

    .new-section__item {
        margin-top:12px;
    }
}

/* Mobile-specific fixes for section visibility */
@media (max-width: 768px) {
    /* Section Two (About) Container */
    .section-two {
        position: relative;
        z-index: 2;
        overflow: visible;
        min-height: auto; /* Remove fixed height */
        height: auto;
        padding: 100px 0; /* Add proper padding */
    }

    .section-two__layers {
        position: relative;
        overflow: visible;
        height: auto;
        min-height: auto; /* Remove fixed height */
    }

    /* Background layer */
    .section-two__layer-bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1; /* Push background behind content */
    }

    /* Content container */
    .section-two__layer-content {
        position: relative;
        z-index: 95;
        padding: 20px;
        height: auto;
        min-height: auto;
    }

    /* Gallery container */
    .section-two__gallery {
        position: relative;
        z-index: 96;
        margin: 30px 0;
        width: 100%;
        overflow: visible;
    }

    /* Gallery rows */
    .gallery__row {
        position: relative;
        z-index: 96;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        margin: 0;
        padding: 15px;
    }

    /* Gallery images */
    .gallery__row img {
        width: calc(33.333% - 20px);
        height: auto;
        aspect-ratio: 1;
        min-width: 100px;
        max-width: 150px;
    }

    /* Text content */
    .section-two__text {
        position: relative;
        z-index: 96;
        margin: 30px 15px;
        padding: 0 15px;
    }

    /* Social icons container */
    .socials-container {
        position: relative;
        z-index: 97;
        margin: 30px auto;
        padding: 0 15px;
        width: 100%;
        max-width: 300px;
    }

    /* Decorative layers */
    .section-two__layer-1214,
    .section-two__layer-1213,
    .section-two__layer-1216 {
        display: none; /* Hide decorative elements on mobile */
    }

    /* Ensure proper stacking for all sections */
    .hero,
    .how-to-buy,
    .tokenomics,
    .final-hero {
        position: relative;
        z-index: 2;
    }

    /* Fix for iOS Safari 100vh issue */
    @supports (-webkit-touch-callout: none) {
        .section-two {
            min-height: -webkit-fill-available;
        }
    }

    /* Hide image tags used as backgrounds */
    .section-two__layer-bg img,
    .section-two__layer-overlay img,
    .section-two img[src*="IMG_1211"],
    .section-two img[src*="IMG_1212"],
    .section-two img[src*="IMG_1215"] {
        display: none;
    }

    /* Replace with CSS backgrounds */
    .section-two {
        background: url('../img/IMG_1211.png') no-repeat center center;
        background-size: cover;
        position: relative;
    }

    .section-two::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('../img/IMG_1212.png') no-repeat center center;
        background-size: cover;
        z-index: 1;
        pointer-events: none;
    }

    .section-two::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('../img/IMG_1215.png') no-repeat center bottom;
        background-size: cover;
        z-index: 1;
        pointer-events: none;
    }

    /* Ensure content stays above backgrounds */
    .section-two__layer-content {
        position: relative;
        z-index: 2;
    }

    /* Remove unnecessary containers */
    .section-two__layer-bg,
    .section-two__layer-overlay {
        display: none;
    }

    /* Add parallax container */
    .section-two {
        position: relative;
        overflow: hidden;
        background-attachment: fixed; /* Basic parallax for main background */
    }

    /* Parallax layers with transform3d for better performance */
    .section-two::before {
        content: '';
        position: fixed; /* Change to fixed for parallax effect */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('../img/IMG_1212.png') no-repeat center center;
        background-size: cover;
        z-index: 1;
        transform: translateZ(0);
        will-change: transform;
        pointer-events: none;
    }

    .section-two::after {
        content: '';
        position: fixed; /* Change to fixed for parallax effect */
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('../img/IMG_1215.png') no-repeat center bottom;
        background-size: cover;
        z-index: 1;
        transform: translateZ(0);
        will-change: transform;
        pointer-events: none;
    }

    /* Add scroll-based animation */
    @supports (animation-timeline: scroll()) {
        .section-two::before {
            animation: parallaxBefore linear;
            animation-timeline: scroll();
        }

        .section-two::after {
            animation: parallaxAfter linear;
            animation-timeline: scroll();
        }
    }

    /* Fallback for browsers that don't support scroll timeline */
    @keyframes parallaxBefore {
        from {
            transform: translateY(0);
        }
        to {
            transform: translateY(-20%);
        }
    }

    @keyframes parallaxAfter {
        from {
            transform: translateY(0);
        }
        to {
            transform: translateY(-30%);
        }
    }

    /* Content parallax */
    .section-two__gallery {
        transform: translateZ(0);
        will-change: transform;
    }

    .gallery__row img {
        transition: transform 0.1s linear;
        will-change: transform;
    }

    /* Add subtle movement to gallery images */
    .gallery__row:nth-child(odd) img {
        transform: translateY(calc(var(--scroll-ratio, 0) * -20px));
    }

    .gallery__row:nth-child(even) img {
        transform: translateY(calc(var(--scroll-ratio, 0) * 20px));
    }
}

/* Loader Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-image {
    margin-bottom: 30px;
}

.loader-image img {
    width: 200px;
    height: auto;
    animation: pulse 2s infinite;
}

.loader-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 20px auto;
    overflow: hidden;
}

.loader-bar {
    width: 0;
    height: 100%;
    background: #007bff;
    transition: width 0.3s ease-out;
}

.loader-text {
    font-size: 16px;
    letter-spacing: 2px;
    animation: blink 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hide loader when loading is complete */
.loader-wrapper.loaded {
    opacity: 0;
    visibility: hidden;
}

/* Prevent scrolling while loading */
body.loading {
    overflow: hidden;
}

.new-section {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding: 20px;
    background-color: transparent; /* Remove background color */
    border-radius: 10px;
}

.new-section__item {
    border:2px solid white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for card effect */
    padding: 20px;
    text-align: center;
    color: #fff;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.new-section__item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

.new-section__item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.new-section__item p {
    font-size: 1em;
    line-height: 1.5;
}

/* Add these styles for shorter screens */
@media screen and (max-height: 750px) {

    .section-two__title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .gallery__row img {
        width: 120px;
        height: 120px;
        margin: 10px;
    }

    .section-two__text {
        margin: 1rem auto;
    }

    .section-two__text img {
        max-width: 300px;
        margin-bottom: 1rem;
    }

    .section-two__text p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .socials-container {
        margin: 1rem auto;
        gap: 10px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

.additional-section {
    margin-top: 20px;
    padding: 20px;
    background-color: transparent;
    border-radius: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.additional-section__title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
}

.additional-section__content {
    display: flex;
    justify-content: center; /* Center the items */
    align-items: center;
    gap: 20px; /* Add space between cards */
}

.additional-section__item {
    background-color: #1a1a1a;
    border: 2px solid #fff;
    border-radius: 10px; /* Less rounded corners */
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
    padding: 20px;
    color: #fff;
    width: 100%;
    max-width: 700px; /* Set a fixed width for rectangle shape */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    margin-top: 15px;
}

.additional-section__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.5);
}

.additional-section__item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #fff;
}

.additional-section__item ul {
    list-style-type: none;
    padding: 0;
}

.additional-section__item li {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 5px;
}

/* Updated Tokenomics Container Styles */
.tokenomicsContainer {
    z-index: 100;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Chart Container */
#chart {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Token Stats Grid */
.token-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 40px;
}

.tokenStats {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.tokenStats:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.tokenNumber {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #007bff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tokenTitle {
    font-size: 1.1rem;
    color: #fff;
    opacity: 0.9;
    line-height: 1.4;
}

#tokenInfonContainer {
    text-align: center;
    margin-top: 20px;
}

#token {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #007bff;
}

#supply {
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tokenomicsContainer {
        padding: 10px;
    }

    .tokenomics__container {
        margin-top:140px;
    }

    .token-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .tokenNumber {
        font-size: 2rem;
    }

    .tokenTitle {
        font-size: 1rem;
    }

    #chart {
        padding: 15px;
    }
}

/* Circular Chart Section Styles */
.circular-chart {
    padding: 60px 20px;
    position: relative;
    z-index: 100;
}

.chart-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.1);
}

.chart-wrapper {
    position: relative;
    height: 400px;
    margin: 20px auto;
}

.circular-chart .section-title {
    font-size: 3rem;
    color: #000;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

/* Responsive styles for the chart */
@media (max-width: 768px) {
    .circular-chart {
        padding: 40px 15px;
    }

    .chart-container {
        padding: 20px;
    }

    .chart-wrapper {
        height: 300px;
    }

    .circular-chart .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .chart-wrapper {
        height: 250px;
    }

    .circular-chart .section-title {
        font-size: 1.8rem;
    }
}




.chart-info-container {
    display: flex;
    justify-content: space-between;
}

.chart-info-container .chart-info {
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin:0px 10px;
}


@media(max-width:550px) {

    .chart-info-container {
        flex-direction: column;
    }

    .chart-info {
        margin:10px 0px !important;
        text-align: center;
    }
}