body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #000000;
    color: #cccccc;
    position: relative;
    overflow-x: hidden;
}

header {
    background-color: #000000;
    color: white;
    padding: 25px 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 2;
    transform: scale(0.8);  /* Start with smaller scale */
    opacity: 0;  /* Start hidden */
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;  /* Pop in and fade effect */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
}

nav .logo {
    display: flex;
    align-items: center;
}

nav .logo a {
    color: white;
    text-decoration: none;
    font-size: 30px;
    font-weight: 900;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

nav .logo a:hover {
    color: #8e44ad;
}

nav .logo a:hover .logo-icon {
    transform: scale(1.1);
}

nav .logo .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 25%;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
    color: #8e44ad;
    transform: scale(1.1);
}

main {
    text-align: center;
    position: relative;
    z-index: 0;
}

.hero {
    height: 100vh;
    background: url('img.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    flex-direction: column;
    transform: scale(0.8);  /* Start with smaller scale */
    opacity: 0;  /* Start hidden */
    transition: transform 0.6s ease-out 0.5s, opacity 0.6s ease-out 0.5s;  /* Pop in with delay */
}

.hero h1 {
    position: relative;
    z-index: 1;
    font-size: 70px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.hero-description {
    font-size: 28px;
    margin-bottom: 90px;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
    text-align: center;
    z-index: 1;
    user-select: text;
    font-weight: normal;
    transform: scale(0.8);  /* Start with smaller scale */
    opacity: 0;  /* Start hidden */
    transition: transform 0.6s ease-out 1s, opacity 0.6s ease-out 1s;  /* Pop in with delay */
}

.hero .hero-logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 25%;
    margin-right: 15px;
    vertical-align: middle;
}

.hero .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    z-index: 2;
    margin-top: 50px;
    transform: scale(0.8);  /* Start with smaller scale */
    opacity: 0;  /* Start hidden */
    transition: transform 0.6s ease-out 1.5s, opacity 0.6s ease-out 1.5s;  /* Pop in with delay */
}

.btn {
    padding: 20px 40px;
    font-size: 24px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.color-party-btn {
    background-color: #9b59b6;
    color: white;
}

.join-us-btn {
    background-color: white;
    color: black;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

.color-party-btn:hover {
    background-color: #8e44ad;
}

.join-us-btn:hover {
    background-color: #f0f0f0;
}

body.loaded header,
body.loaded .hero,
body.loaded .hero-description,
body.loaded .hero-buttons {
    transform: scale(1);  /* Return to normal scale */
    opacity: 1;  /* Make visible */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    nav {
        padding: 0 20px;
    }

    nav .logo a {
        font-size: 24px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-description {
        font-size: 20px;
        margin-bottom: 40px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 20px;
    }

    .btn {
        padding: 15px 30px;
        font-size: 20px;
    }

    /* Mobile header animations */
    header {
        padding: 15px 0;
    }

    .hero {
        height: 100vh; /* Ensure it covers the full height */
        padding: 50px 20px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero-description {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 18px;
    }

    .hero {
        height: 100vh; /* Ensure it covers the full height */
        padding: 50px 10px; /* Add some padding for better look */
    }
}
