@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@300;400;700&display=swap');

body {
    font-family: 'Comic Neue', cursive;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    cursor: url('dog-cursor.png'), auto;
    background: #03001e;
    background: -webkit-linear-gradient(to right, #fdeff9, #ec38bc, #7303c0, #03001e);
    background: linear-gradient(to right, #fdeff9, #ec38bc, #7303c0, #03001e);
    overflow-x: hidden;
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

header {
    background: #03001e;
    background: -webkit-linear-gradient(to right, #fdeff9, #ec38bc, #7303c0, #03001e);
    background: linear-gradient(to right, #fdeff9, #ec38bc, #7303c0, #03001e);
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.logo-image {
    width: 57px;
    height: 57px;
    object-fit: contain;
}

nav {
    text-align: right;
    width: 100%;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
    margin-left: 20px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    text-decoration: none;
    background: linear-gradient(to right, #fdeff9, #ec38bc, #7303c0, #03001e);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    padding: 5px 10px;
    transition: background-color 0.3s;
    animation: gradientAnimation 5s ease infinite;
    font-weight: bold;
    font-size: max(1.2rem, 13px);
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

nav ul li a:hover {
    background: linear-gradient(to right, #ec38bc, #7303c0, #03001e);
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: #FBF49D;
    border-radius: 3px;
    animation: none;
}

main {
    padding-top: 60px;
    width: 100%;
    overflow-x: hidden;
}

.parallax {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

.content {
    background: rgba(115, 3, 192, 0.3);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content * {
    opacity: 1;
    color: #FBF49D;
    text-shadow: 2px 2px 0 #000, 2px 2px 0 #000, 2px 2px 0 #000;
}

.content p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-size: max(3vw, 13px);
}

#home .content h1 {
    font-size: max(7vw, 13px);
    margin-bottom: 20px;
}

#home .content p {
    font-size: max(3vw, 13px);
    max-width: 95%;
    margin: 0 auto;
}

#home::before {
    background-image: url('meme-coin-home.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#about::before {
    background-image: url('meme-coin-about.jpg');
}

#about {
    position: relative;
}

#about .about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(82, 0, 117, 0.3);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

#about .about-text {
    flex: 1 1 50%;
    text-align: left;
    padding-right: 1.2rem;
    position: relative;
    z-index: 4;
    max-width: 80%;
}

#about .about-text h2 {
    font-size: max(calc(12px + 1vw), 13px);
    margin-bottom: 15px;
}

#about .about-text p {
    font-size: max(2vw, 13px);
    line-height: 1.4;
}

#about .about-text h2,
#about .about-text p {
    color: #FBF49D;
    text-shadow: 2px 2px 0 #000, 2px 2px 0 #000, 2px 2px 0 #000;
    text-align: left;
    position: relative;
    z-index: 5;
}

#about .overlay-image {
    position: absolute;
    top: 50%;
    right: 0;
    width: 30%;
    height: 80%;
    background-image: url('overlay-image.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    opacity: 1;
    z-index: 3;
    transform: translateY(-50%);
}

#buy::before {
    background-image: url('meme-coin-buy.jpg');
}

#buy .content {
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    height: 100vh;
}

#buy .content h2 {
    font-size: clamp(20px, 5vw, 28px);
    margin-bottom: 1rem;
    margin-top: 1rem;
}

#buy .content ol.highlighted-list {
    font-size: clamp(14px, 3vw, 18px);
    padding-left: 0;
    width: 100%;
    counter-reset: item;
    list-style-type: none;
}

#buy .content ol.highlighted-list li {
    padding: 0.8rem 0.8rem 0.8rem 3rem;
    margin-bottom: 0.5rem;
    background-color: rgba(255, 255, 0, 0.3);
    border-radius: 5px;
    position: relative;
}

#buy .content ol.highlighted-list li:before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2em;
    height: 2em;
    line-height: 2em;
    font-size: 1em;
    background-color: #7303c0;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 0 0 2px #FBF49D;
}

#buy .content p {
    font-size: clamp(14px, 3vw, 18px);
    margin-top: 0.5rem;
}

#community::before {
    background-image: url('meme-coin-community.jpg');
}

#community .content {
    background: rgba(82, 0, 117, 0.3);
}

footer {
    background: #03001e;
    background: -webkit-linear-gradient(to right, #ec38bc, #7303c0, #03001e);
    background: linear-gradient(to right, #ec38bc, #7303c0, #03001e);
    text-align: center;
    padding: 1rem;
    position: relative;
    width: 100%;
    color: #FBF49D;
    text-shadow: 2px 2px 0 #000, 2px 2px 0 #000, 2px 2px 0 #000;
}

footer p {
    font-size: max(2vw, 13px);
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: max(2rem, 13px);
    color: #FBF49D;
    text-shadow: 1px 1px 0 #000;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #03001e;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .nav-menu.show {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }

    #about {
        flex-direction: column;
    }

    #about .about-text {
        padding-right: 0;
        padding-bottom: 2rem;
        flex: 1 1 100%;
        max-width: 100%;
    }

    #about .about-text h2 {
        font-size: max(calc(14px + 1.2vw), 13px);
    }

    #about .about-text p {
        font-size: max(calc(10px + 0.6vw), 13px);
    }

    #home .content h1 {
        font-size: max(10vw, 13px);
    }

    #home .content p {
        font-size: max(15px, 13px);
    }

    #home::before {
        background-attachment: scroll;
    }

    #buy .content {
        align-items: center;
        text-align: center;
        padding: 2rem 1rem;
        height: 100vh;
    }
    
    #buy .content h2 {
        font-size: clamp(20px, 5vw, 28px);
        margin-bottom: 1rem;
        margin-top: 1rem;
    }
    
    #buy .content ol.highlighted-list {
        font-size: clamp(14px, 3vw, 18px);
        padding-left: 0;
        width: 100%;
    }

    #buy .content ol.highlighted-list li {
        padding: 0.8rem 0.8rem 0.8rem 3rem;
    }

    #buy .content ol.highlighted-list li:before {
        width: 1.8em;
        height: 1.8em;
        line-height: 1.8em;
        font-size: 0.9em;
    }
    
    #buy .content p {
        font-size: clamp(14px, 3vw, 18px);
        margin-top: 0.5rem;
    }

    .parallax::before {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }

    #home::before,
    #about::before,
    #buy::before,
    #community::before {
        background-position: center center;
        background-size: cover;
    }

    #about .overlay-image {
        top: auto;
        right: 0;
        bottom: 5%;
        width: 50%;
        height: 25%;
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    #about .about-text h2 {
        font-size: max(calc(12px + 1vw), 13px);
    }

    #about .about-text p {
        font-size: max(calc(8px + 0.5vw), 13px);
    }

    #buy .content h2 {
        font-size: clamp(18px, 4vw, 22px);
    }

    #buy .content ol.highlighted-list {
        font-size: clamp(12px, 3vw, 16px);
    }

    #buy .content ol.highlighted-list li:before {
        width: 1.5em;
        height: 1.5em;
        line-height: 1.5em;
        font-size: 0.8em;
    }

    #buy .content p {
        font-size: clamp(12px, 3vw, 16px);
    }
}

/* Add this new media query to ensure the home image adjusts properly at smaller screen sizes */
@media (max-width: 700px) {
    #home::before {
        background-size: 100% 100%;
        background-position: center;
    }
}
