html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    background-image:
        radial-gradient(rgb(147, 214, 255) 1px, transparent 1px),
        radial-gradient(rgb(174, 215, 255) 0.8px, transparent 1px),
        radial-gradient(rgb(173, 226, 255) 0.6px, transparent 1px);
    background-size: 180px 180px, 140px 140px, 120px 120px;
    background-attachment: fixed; 
}

header {
    background-color: #ffffff;
    padding: 15px 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

nav a:hover { color: #a3d0f3; }

.logo-item {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.hero {
    background-color: transparent;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.star {
    position: absolute;
    background-color: rgb(143, 212, 255);
    clip-path: polygon(
        50% 0%, 61% 35%, 98% 35%, 68% 57%, 
        79% 91%, 50% 70%, 21% 91%, 32% 57%, 
        2% 35%, 39% 35%
    );
    z-index: 2;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        radial-gradient(rgb(147, 214, 255) 1px, transparent 1px),
        radial-gradient(rgb(174, 215, 255) 0.8px, transparent 1px),
        radial-gradient(rgb(173, 226, 255) 0.6px, transparent 1px);

    background-size: 180px 180px, 140px 140px, 120px 120px;
    opacity: 0.6;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 600px;
    margin: auto;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-img {
    max-width: 400px;
    width: 100%;
    margin: 10px auto;
}

.hero p {
    margin: 8px 0;
    font-size: 1.05rem;
}

.mikacinnamon-container {
    width: 100%;
    height: 300px;
    position: relative;
    margin-top: 100px;
    overflow: visible;
}

.hero-preview {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 560px;
    max-width: 90%;
    z-index: 10;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    transition: 0.3s;
}

.btn.discord {
    background: #96deff;
}

.btn.twitter {
    background: #96deff;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    filter: brightness(1.1);
}

.header-desktop {
    display: block;
}

.header-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hero-preview {
        width: 200px;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

.menu-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    right: 20px;
    top: 45px;
    cursor: pointer;
    z-index: 300;
}

@media (max-width: 768px) {
    .header-desktop {
        display: none;
    }

    .header-mobile {
        display: block;
    }

    .menu-toggle span {
        position: absolute;
        width: 22px;
        height: 2.5px;
        background: #333;
        border-radius: 5px;
        transition: 0.3s;
    }

    .menu-toggle span:nth-child(1) {
        transform: translateY(-6px);
    }

    .menu-toggle span:nth-child(2) {
        transform: translateY(0);
    }

    .menu-toggle span:nth-child(3) {
        transform: translateY(6px);
    }

    .menu-overlay {
        position: fixed;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        top: 0;
        left: 0;
        opacity: 0;
        pointer-events: none;
        transition: 0.3s;
        z-index: 200;
    }

    .header-mobile nav ul {
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        height: 100vh;
        background: #fff;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 100px;
        padding-left: 30px;
        gap: 25px;
        transform: translateX(100%);
        transition: 0.3s;
        z-index: 250;
    }

    .header-mobile nav ul.active {
        transform: translateX(0);
    }

    .menu-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 1024px) {
    .hero-preview {
        width: 550px;
    }
}

@media (max-width: 768px) {
.hero, .header-mobile {
        overflow: hidden;
        width: 100%;
    }


    .logo-img {
        height: 40px;
        margin-left: 20px;
    }

    .welcome-img {
        max-width: 80%;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero p {
        font-size: 0.95rem;
    }


.hero-preview {
        width: 500px; 
        max-width: 90%;
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 0 40px;
    }

    .btn {
        width: 70%;
        text-align: center;
    }

    .menu-toggle {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 400px) {
    .hero-preview {
        width: 460px;
    }
    
    .welcome-img {
        max-width: 90%;
    }

    .mikacinnamon-container::before {
        transform: rotate(-5deg);
    }
}