/* --- Global Styles & Background --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg,
            #0a0a0a 0%,
            #111111 25%,
            #1a1a1a 50%,
            #222222 75%,
            #000000 100%);


    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}



/* --- Navigation Bar --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    z-index: 1001;
    background: rgba(0, 20, 50, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.nav-logo img {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px;
}

.nav-menu a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.nav-menu .nav-btn {
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu .nav-join-btn {
    background-color: #7289da;
    color: white;
}

.nav-menu .nav-staff-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1002;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}





/* --- Responsive & Hamburger Menu --- */
@media (max-width: 1024px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 73px;
        gap: 0;
        flex-direction: column;
        background-color: rgba(0, 15, 35, 0.9);
        backdrop-filter: blur(10px);
        width: 100%;
        height: calc(100vh - 73px);
        text-align: center;
        transition: 0.3s;
        justify-content: center;
        align-items: center;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        padding: 20px 0;
        font-size: 1.5rem;
        width: 100%;
    }

    .nav-menu a:hover {
        background-color: rgba(0, 212, 255, 0.1);
        transform: translateY(0);
    }

    .nav-menu .nav-btn {
        border-radius: 0;
        border: none;
        background: none;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo-section {
        order: -1;
    }

    .stats-bar {
        flex-direction: column;
    }

    .shop-container {
        padding: 100px 20px 20px 20px;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }
}






.code-main {
    display: inline-block;
    padding: 20px 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}

.code-main h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.code-main span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #00d4ff;
    letter-spacing: 2px;
}

.code-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}


/* --- Footer --- */
.footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    padding: 40px 0;
    width: 100%;
}


/* ======================
   NEW YEAR EVENT CARD 
========================= */

/* =========================================
   NEW YEAR REDESIGN: FROSTED GLASS THEME
========================================= */

.newyear-card {
    max-width: 850px;
    margin: 80px auto 40px;
    padding: 35px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    animation: cardFloat 4s ease-in-out infinite alternate;
}

/* Subtle inner glow */
.newyear-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Header Layout */
.event-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.event-logo {
    width: 65px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.4));
}

.event-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 5px;
}

.newyear-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(to right, #fff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Countdown Redesign */
.countdown-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 20px;
    margin: 25px auto;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.countdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-box {
    text-align: center;
    min-width: 80px;
}

.time-box span {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.time-box small {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
}


/* Footer Line */
.event-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-line {
    height: 1px;
    width: 50px;
    background: linear-gradient(to right, transparent, rgba(0, 212, 255, 0.3), transparent);
}

/* =========================================
   DYNAMIC SCALING FOR NEW YEAR CARD
========================================= */

/* Tablets (Max 768px) */
@media (max-width: 768px) {
    .newyear-card {
        max-width: 90%;
        padding: 20px;
        margin-top: 40px;
    }

    .newyear-card h2 {
        font-size: 1.5rem;
    }

    /* Hide the long description on smaller screens */
    .event-desc {
        display: none;
    }

    .time-box span {
        font-size: 1.8rem;
    }

    .event-logo {
        width: 50px;
    }
}

/* Mobile Phones (Max 480px) */
@media (max-width: 480px) {
    .newyear-card {
        max-width: 95%;
        padding: 15px;
        border-radius: 20px;
    }

    .event-header {
        flex-direction: column; /* Stack logo and title */
        gap: 10px;
        text-align: center;
    }

    .event-tag {
        font-size: 0.55rem;
        padding: 2px 8px;
    }

    .newyear-card h2 {
        font-size: 1.2rem;
        letter-spacing: 0px;
    }

    .countdown-container {
        padding: 10px;
        margin: 15px auto;
    }

    .countdown {
        gap: 5px; /* Tighten gap between numbers */
    }

    .time-box {
        min-width: 55px;
    }

    .time-box span {
        font-size: 1.4rem; /* Smaller numbers to fit screen */
    }

    .time-box small {
        font-size: 0.5rem;
    }

    /* Hide the decorative footer lines on tiny screens */
    .footer-line {
        display: none;
    }
    
    .event-footer {
        font-size: 0.6rem;
    }
}

/* Tiny Screens (Max 350px) */
@media (max-width: 350px) {
    .time-box span {
        font-size: 1.1rem;
    }
    .time-box {
        min-width: 45px;
    }
}



/* Animations */
@keyframes cardFloat {
    from {
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    to {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(0, 212, 255, 0.15);
    }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .event-header {
        flex-direction: column;
        text-align: center;
    }

    .time-box span {
        font-size: 1.8rem;
    }

    .time-box {
        min-width: 50px;
    }

}



/* BACK TO TOP BUTTON */

:root {
    --dark-bg: #1e1e2f;
    --dark-bg-light: #353556;
    --dark-color: #ffffff;
    --dark-shadow: rgba(0, 0, 0, 0.4);


    #back-to-top {
        display: none;
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        z-index: 999;
        width: 48px;
        height: 48px;
        border: none;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--dark-bg), var(--dark-bg-light));
        color: var(--dark-color);
        font-size: 2rem;
        font-weight: bold;
        box-shadow: 0 4px 16px var(--dark-shadow);
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
        outline: none;
        display: flex;
    }

    #back-to-top:hover,
    #back-to-top:focus {
        background: linear-gradient(135deg, var(--dark-bg-light), var(--dark-bg));
        box-shadow: 0 8px 24px var(--dark-shadow);
        transform: translateY(-4px) scale(1.08);
        color: var(--dark-color);
    }

    @media (max-width: 600px) {
        #back-to-top {
            width: 40px;
            height: 40px;
            font-size: 1.5rem;
            bottom: 1rem;
            right: 1rem;
        }
    }

}








/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
    .newyear-card {
        max-width: 92%;
        padding: 22px;
    }

    .newyear-card h2 {
        font-size: 1.7rem;
    }

    .event-desc {
        font-size: 1rem;
    }

    .event-logo {
        width: 68px;
    }

    .countdown span {
        font-size: 1.45rem;
    }
}

@media (max-width: 480px) {
    .newyear-card {
        margin: 60px auto 30px;
        padding: 18px;
    }

    .newyear-card h2 {
        font-size: 1.55rem;
    }

    .event-desc {
        font-size: 0.95rem;
    }

    .countdown {
        gap: 12px;
    }

    .countdown div {
        min-width: 68px;
        padding: 10px 12px;
    }

    .countdown span {
        font-size: 1.3rem;
    }
}





@media (max-width: 425px) {
    .nigga {
        margin-left: 37px;

    }
}


/* --- Bubble & Particle Effects --- */
.bg-animation,
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.floating-shape:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: particleFloat 10s linear infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}










/* --- Animations --- */
@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, .5));
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, .8));
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px) rotate(2deg)
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, .15), 0 0 20px rgba(78, 205, 196, .3)
    }

    50% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, .15), 0 0 30px rgba(78, 205, 196, .5)
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .5
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0
    }

    100% {
        transform: translateX(0);
        opacity: 1
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100px);
        opacity: 0
    }

    100% {
        transform: translateX(0);
        opacity: 1
    }
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(50px);
        opacity: 0
    }

    100% {
        transform: translateY(0);
        opacity: 1
    }
}