/* MineUnity Website Styles - Production Version */


/* ----- Variables ----- */

:root {
    --background: #06081f;
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --primary: #7928ca;
    --secondary: #ff0080;
    --glass-bg: rgba(20, 20, 42, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(30, 30, 60, 0.4);
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
}


/* ----- Reset & Base Styles ----- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lexend Deca', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(121, 40, 202, 0.1), transparent 60%), radial-gradient(circle at bottom left, rgba(255, 0, 128, 0.1), transparent 60%);
    z-index: -1;
}


/* ----- Layout Components ----- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

section {
    padding: 6rem 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--text), rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}


/* ----- Buttons ----- */

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 10px rgba(121, 40, 202, 0.5);
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text);
}

.btn-outline:hover {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* ----- Header and Navigation ----- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.ios-device .header {
    background-color: rgba(6, 8, 15, 0.85);
}

.header.scrolled {
    background-color: rgba(6, 8, 15, 0.9);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    z-index: 2001;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.logo img {
    height: 40px;
    margin-right: 0.75rem;
    filter: drop-shadow(0 0 8px var(--primary));
    transition: all 0.3s ease;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo:hover img {
    transform: rotate(10deg);
    filter: drop-shadow(0 0 12px var(--primary));
}

.logo:hover span {
    text-shadow: 0 0 8px rgba(121, 40, 202, 0.5);
}

.logo:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.logo:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    opacity: 0.8;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:not(.btn):hover {
    opacity: 1;
}

.nav-links a.active {
    opacity: 1;
}

.hamburger {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.5rem;
    transition: color 0.3s ease;
    z-index: 2010;
    padding: 0;
}

.hamburger:hover,
.hamburger:focus {
    color: var(--primary);
}


/* ----- Mobile Animation Container ----- */

.mobile-animation-container {
    width: 100%;
    display: block;
    margin-bottom: 2rem;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
}

.mobile-animation-container dotlottie-player {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), inset 0 0 1px 1px rgba(255, 255, 255, 0.1);
}


/* Hide desktop animation on mobile */

.desktop-only {
    display: none;
}


/* ----- Hero Section ----- */

.hero {
    padding-top: 120px;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at top right, rgba(121, 40, 202, 0.15), transparent 50%);
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    text-align: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #ffffff, #b3b3b3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.hero-btns .btn {
    width: 100%;
}

.hero-animation {
    width: 100%;
}

.glassmorphic-animation {
    height: 280px;
    max-width: 100%;
    padding: 1.5rem;
    border-radius: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), inset 0 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 1;
    display: block;
    visibility: visible;
    opacity: 1;
}


/* ----- Animation Effects ----- */

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.glowing {
    position: relative;
}

.glowing::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--primary));
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.glowing:hover::after {
    opacity: 0.5;
}


/* ----- About Section ----- */

.about {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.about-content {
    display: flex;
    gap: 2rem;
    flex-direction: column;
}

.about-box {
    padding: 2rem;
    border-radius: 20px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
}

.about-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.about-box h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.about-box:hover::before {
    opacity: 0.05;
}


/* ----- Features Section ----- */

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 20px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    position: relative;
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.2), rgba(255, 0, 128, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    filter: blur(15px);
    opacity: 0.3;
    z-index: -1;
}

.feature-icon i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}


/* ----- Tokenomics Section ----- */

.tokenomics {
    background-color: rgba(6, 8, 31, 0.5);
}

.token-distribution {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.token-item {
    padding: 2rem;
    border-radius: 20px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    text-align: center;
}

.token-percentage {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.token-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.token-item p {
    margin-bottom: 0;
    color: var(--text-secondary);
}


/* ----- Roadmap Section ----- */

.roadmap-container {
    position: relative;
    max-width: 1200px;
    margin: 5rem auto 2rem;
}

.roadmap-container::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.roadmap-item {
    margin-bottom: 4rem;
    position: relative;
    width: 100%;
}

.roadmap-item:nth-child(odd) .roadmap-content {
    margin-left: auto;
    margin-right: 60px;
}

.roadmap-item:nth-child(even) .roadmap-content {
    margin-right: auto;
    margin-left: 60px;
}

.roadmap-content {
    width: calc(50% - 40px);
    position: relative;
    padding: 2rem;
}

.roadmap-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    top: 20px;
}

.roadmap-item:nth-child(odd) .roadmap-content::before {
    right: -50px;
}

.roadmap-item:nth-child(even) .roadmap-content::before {
    left: -50px;
}

.roadmap-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.roadmap-content ul {
    padding-left: 1.5rem;
    margin: 0;
}

.roadmap-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}


/* ----- Join Section ----- */

.socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.social-link {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-link::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    top: -25%;
    left: -25%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-link:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.social-link:hover::after {
    opacity: 0.15;
}

.social-link i {
    font-size: 2rem;
}

.social-link:hover i {
    color: var(--primary);
}


/* ----- Footer ----- */

footer {
    background-color: rgba(6, 8, 31, 0.8);
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 3rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.9rem;
}


/* ----- Back to Top Button ----- */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
    z-index: 99;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}


/* ----- Accessibility Focus Styles ----- */

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:focus,
.hamburger:focus,
.back-to-top:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}


/* ----- Loading Animation ----- */

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.loading {
    animation: pulse 1.5s infinite;
}


/* ----- Selection Styling ----- */

::selection {
    background-color: var(--primary);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

::-moz-selection {
    background-color: var(--primary);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


/* For Safari/Webkit specific selection */

::-webkit-selection {
    background-color: var(--primary);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


/* ----- Scrollbar Styling ----- */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--secondary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--secondary), var(--primary));
}


/* ----- Media Settings (Print) ----- */

@media print {
    .header,
    .back-to-top,
    .socials,
    .hero-btns {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .container {
        max-width: 100%;
        padding: 0;
    }
}


/* ----- Notification ----- */

.notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s ease;
}

.notification-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 300px;
    max-width: 500px;
}

.notification i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary);
}

.notification p {
    margin: 0;
    font-size: 0.95rem;
}

.notification .close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    margin-left: auto;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.notification .close-btn:hover {
    color: var(--primary);
}


/* ----- Animation Keyframes ----- */

@keyframes slideIn {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
}


/* ----- Media Queries ----- */

@media (min-width: 480px) {
    .hero {
        padding-top: 130px;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .glassmorphic-animation {
        height: 320px;
    }
}

@media (min-width: 768px) {
    .hero {
        padding-top: 150px;
    }
    .hero-text h1 {
        font-size: 2.8rem;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-text p {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-btns {
        flex-direction: row;
        justify-content: center;
    }
    .hero-btns .btn {
        width: auto;
    }
    .glassmorphic-animation {
        height: 380px;
    }
    .about-content {
        flex-direction: row;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .token-distribution {
        grid-template-columns: 1fr 1fr;
    }
    .social-link {
        width: 70px;
        height: 70px;
    }
    .roadmap-item {
        padding-left: 60px;
    }
    .roadmap-container::before {
        left: 22px;
        width: 3px;
    }
    .roadmap-content::before {
        left: -32px !important;
    }
    .roadmap-content {
        padding: 1.5rem;
    }
}

@media (min-width: 992px) {
    /* Fix for desktop navigation display */
    .hamburger {
        display: none !important;
        /* Ensure hamburger is hidden on desktop */
    }
    .nav-links {
        position: static !important;
        height: auto !important;
        width: auto !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        background: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
        z-index: auto !important;
        right: 0 !important;
    }
    .nav-links li {
        margin: 0 0 0 1.5rem !important;
        width: auto !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .nav-links a {
        padding: 0.5rem !important;
        font-size: 1rem !important;
        width: auto !important;
        display: inline-block !important;
        opacity: 0.8;
        transition: opacity 0.3s ease !important;
    }
    .nav-links a.btn {
        padding: 0.8rem 1.8rem !important;
        display: inline-block !important;
    }
    .nav-links a:not(.btn):hover,
    .nav-links a:not(.btn):focus {
        background: transparent !important;
        opacity: 1;
    }
    /* Fix button styling for desktop */
    .nav-links .btn {
        width: auto !important;
        margin: 0 !important;
        text-align: center !important;
    }
    /* Fix for buttons in navbar on desktop */
    .nav-links li:last-child,
    .nav-links li:nth-last-child(2) {
        width: auto !important;
    }
    /* Restore hover line below links */
    .nav-links a:not(.btn)::after {
        display: block !important;
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 0;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        transition: width 0.3s ease;
    }
    .nav-links a:not(.btn):hover::after,
    .nav-links a.active::after {
        width: 100%;
    }
    .hero-content {
        flex-direction: row;
    }
    .hero-text {
        text-align: left;
    }
    .hero-text h1 {
        margin-left: 0;
        font-size: 3.2rem;
    }
    .hero-text p {
        margin-left: 0;
    }
    .hero-btns {
        justify-content: flex-start;
    }
    .desktop-only {
        display: block;
    }
    .mobile-animation-container {
        display: none;
    }
    /* Reset hero-content layout for desktop */
    .hero-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .token-distribution {
        grid-template-columns: repeat(3, 1fr);
    }
    .roadmap-container {
        position: relative;
        max-width: 1200px;
        margin: 4rem auto 2rem;
        padding: 2rem 0;
    }
    .roadmap-container::before {
        content: '';
        position: absolute;
        width: 4px;
        height: 100%;
        background: linear-gradient(to bottom, var(--primary), var(--secondary));
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        top: 0;
    }
    .roadmap-item {
        display: flex;
        margin-bottom: 5rem;
        position: relative;
        width: 100%;
        padding: 0;
    }
    .roadmap-item:nth-child(odd),
    .roadmap-item:nth-child(even) {
        padding: 0;
    }
    .roadmap-item:nth-child(odd) {
        justify-content: flex-end;
        padding-right: 50%;
    }
    .roadmap-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 50%;
    }
    .roadmap-content {
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 2rem;
        position: relative;
        width: calc(100% - 60px);
        max-width: 450px;
        margin: 0;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    .roadmap-content:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(121, 40, 202, 0.1);
    }
    .roadmap-item:nth-child(odd) .roadmap-content {
        margin-right: 30px;
        text-align: right;
    }
    .roadmap-item:nth-child(even) .roadmap-content {
        margin-left: 30px;
        text-align: left;
    }
    .roadmap-content::before {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        border-radius: 50%;
        top: 24px;
        z-index: 2;
        border: 2px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 10px rgba(121, 40, 202, 0.5);
    }
    .roadmap-item:nth-child(odd) .roadmap-content::before {
        right: -40px;
        left: auto;
    }
    .roadmap-item:nth-child(even) .roadmap-content::before {
        left: -40px;
        right: auto;
    }
    .roadmap-item .roadmap-content::after {
        content: '';
        position: absolute;
        height: 2px;
        width: 30px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        top: 33px;
        z-index: 1;
    }
    .roadmap-item:nth-child(odd) .roadmap-content::after {
        right: -30px;
        left: auto;
        background: linear-gradient(270deg, var(--primary), var(--secondary));
    }
    .roadmap-item:nth-child(even) .roadmap-content::after {
        left: -30px;
        right: auto;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
    }
    .roadmap-item:nth-child(odd) .roadmap-date {
        text-align: right;
    }
    .roadmap-item:nth-child(even) .roadmap-date {
        text-align: left;
    }
    .roadmap-item:nth-child(odd) .roadmap-content ul {
        text-align: right;
        padding-right: 1.5rem;
        padding-left: 0;
    }
    .roadmap-item:nth-child(even) .roadmap-content ul {
        text-align: left;
        padding-left: 1.5rem;
        padding-right: 0;
    }
    .roadmap-item[data-aos="fade-left"] {
        transform: translateX(50px);
    }
    .roadmap-item[data-aos="fade-right"] {
        transform: translateX(-50px);
    }
    .roadmap-item.aos-animate[data-aos="fade-left"],
    .roadmap-item.aos-animate[data-aos="fade-right"] {
        transform: translateX(0);
    }
    /* Extra styles for roadmap section */
    #roadmap .container {
        max-width: 1200px;
        padding: 0 3rem;
    }
    .roadmap-container::after {
        content: '';
        display: table;
        clear: both;
    }
    /* Fix for better line alignment */
    .roadmap-container::before {
        box-shadow: 0 0 15px rgba(121, 40, 202, 0.3);
    }
    /* Fix list item alignment */
    .roadmap-item:nth-child(odd) .roadmap-content li {
        text-align: right;
    }
    .roadmap-item:nth-child(even) .roadmap-content li {
        text-align: left;
    }
    /* Fix content box padding and alignment */
    .roadmap-content {
        padding: 1.75rem;
    }
    /* Ensure last item has proper spacing */
    .roadmap-item:last-child {
        margin-bottom: 2rem;
    }
}

@media (min-width: 1200px) {
    h1 {
        font-size: 4rem;
    }
    h2 {
        font-size: 2.8rem;
    }
    .hero-text h1 {
        font-size: 3.5rem;
    }
    .glassmorphic-animation {
        height: 450px;
    }
    .features-grid {
        gap: 2.5rem;
    }
    .token-distribution {
        gap: 2.5rem;
    }
}


/* Text center utility class - ensure proper centering */

.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
}


/* Join section subtitle - improve centering */

#join p.text-center {
    font-size: 1.2rem;
    max-width: 760px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    width: 100%;
}

@media (min-width: 992px) {
    #join p.text-center {
        font-size: 1.3rem;
        margin-bottom: 4rem;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), #ffffff, rgba(255, 255, 255, 0.7));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 400;
    }
}

@media (min-width: 1200px) {
    #join p.text-center {
        font-size: 1.4rem;
    }
}


/* Highlighted text effect - enhanced for better centering */

.highlight-text {
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
    display: block;
    width: 100%;
    text-align: center;
}

@media (min-width: 992px) {
    .highlight-text {
        font-weight: 500;
        padding: 0.75rem 3rem;
        margin: 0 auto 3rem;
        display: inline-block;
        max-width: 80%;
        background: linear-gradient(135deg, rgba(121, 40, 202, 0.1), rgba(255, 0, 128, 0.1));
        backdrop-filter: blur(3px);
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        color: white;
        animation: pulse-subtle 3s infinite;
    }
    @keyframes pulse-subtle {
        0% {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        50% {
            box-shadow: 0 5px 25px rgba(121, 40, 202, 0.3);
        }
        100% {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
    }
}


/* Join section enhancements */

#join {
    text-align: center;
}

#join .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#join h2 {
    margin-bottom: 2rem;
}


/* Join text wrapper styling */

.join-text-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

@media (min-width: 992px) {
    .join-text-wrapper {
        margin-bottom: 2rem;
    }
    /* Extra fixes for the roadmap in desktop view */
    .roadmap-item {
        width: 100%;
        display: flex;
    }
    .roadmap-item:nth-child(odd) {
        justify-content: flex-end;
        padding-right: calc(50% + 20px);
    }
    .roadmap-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: calc(50% + 20px);
    }
    .roadmap-content {
        width: calc(100% - 80px);
        max-width: 500px;
    }
}


/* Mobile view fixes for roadmap */

@media (max-width: 768px) {
    /* Roadmap mobile specific fixes */
    .roadmap-container {
        margin-top: 2rem;
        position: relative;
        padding-left: 10px;
    }
    .roadmap-container::before {
        left: 20px;
        width: 2px;
        background: linear-gradient(to bottom, var(--primary), var(--secondary));
        opacity: 0.8;
    }
    .roadmap-item {
        margin-bottom: 2.5rem;
        padding-left: 50px;
        position: relative;
        width: 100%;
    }
    .roadmap-content {
        width: 100%;
        padding: 1.25rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
        background: rgba(20, 20, 42, 0.5);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        border-radius: 12px;
    }
    .roadmap-content::before {
        left: -35px !important;
        top: 20px;
        width: 14px;
        height: 14px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        border-radius: 50%;
        box-shadow: 0 0 10px var(--primary);
        border: 1px solid rgba(255, 255, 255, 0.3);
        z-index: 2;
    }
    /* Mobile timeline connector */
    .roadmap-content::after {
        content: '';
        position: absolute;
        top: 26px;
        left: -20px;
        width: 20px;
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        z-index: 1;
    }
    .roadmap-date {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
        color: var(--primary);
    }
    .roadmap-content ul {
        padding-left: 1.25rem;
        margin-bottom: 0;
    }
    .roadmap-content li {
        margin-bottom: 0.4rem;
        font-size: 0.95rem;
    }
    /* Fix AOS animations for mobile */
    .roadmap-item[data-aos] {
        opacity: 1 !important;
        transform: translateX(0) !important;
        transition: all 0.3s ease;
    }
}


/* Extra small devices */

@media (max-width: 480px) {
    .roadmap-container {
        padding-left: 5px;
    }
    .roadmap-container::before {
        left: 15px;
    }
    .roadmap-item {
        padding-left: 40px;
        margin-bottom: 2rem;
    }
    .roadmap-content {
        padding: 1rem;
    }
    .roadmap-content::before {
        left: -30px !important;
        width: 12px;
        height: 12px;
    }
    .roadmap-content::after {
        left: -17px;
        width: 17px;
    }
    .roadmap-content li {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}


/* Mobile menu styles */

@media (max-width: 991px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        max-width: 80%;
        background-color: rgba(10, 10, 30, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 5rem 1.5rem 2rem;
        z-index: 999;
        overflow-y: auto;
        transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        transform: translateX(100%);
        opacity: 0.95;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links.active {
        transform: translateX(0);
        right: 0;
    }
    /* Fix for iOS scroll bounce issue */
    body.menu-open {
        position: fixed;
        width: 100%;
        overflow: hidden;
    }
    /* Button styling in mobile menu */
    .nav-links .btn {
        position: relative;
        z-index: 5;
        pointer-events: auto;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(121, 40, 202, 0.2);
        width: 100%;
        max-width: 300px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin: 0.75rem auto;
        padding: 0.9rem 1.5rem;
        font-size: 1.1rem;
        touch-action: manipulation;
        transform: translate3d(0, 0, 0);
        will-change: transform, opacity;
    }
    /* Fix button hover/active states for mobile */
    .nav-links .btn:active {
        transform: translateY(2px);
        opacity: 0.9;
    }
    /* Fix padding and margins for mobile menu items */
    .nav-links li {
        width: 100%;
        margin: 0.5rem 0;
        padding: 0 1rem;
    }
    /* Fix navigation links */
    .nav-links a {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        display: block;
        width: 100%;
        pointer-events: auto;
    }
    /* Make sure the entire button area is clickable */
    .nav-links a.btn {
        display: flex !important;
    }
    /* Reset any opacity settings that might interfere */
    .nav-links.active li,
    .nav-links.active a,
    .nav-links.active .btn {
        opacity: 1 !important;
    }
    /* Specific fix for whitepaper button */
    .nav-links a[href="#whitepaper"] {
        position: relative;
        z-index: 10;
        pointer-events: auto !important;
        -webkit-touch-callout: default;
        touch-action: manipulation;
        cursor: pointer !important;
        opacity: 1 !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
    }
    /* Added specific active state for whitepaper button */
    .nav-links a[href="#whitepaper"]:active,
    .nav-links a[href="#whitepaper"].btn-outline:active {
        transform: translateY(3px);
        transition: transform 0.1s ease-out;
    }
    /* Fix any potential stacking issues */
    .nav-links li:nth-last-child(2) {
        z-index: 10;
        position: relative;
    }
}


/* Support for smaller screens */

@media (max-width: 350px) {
    .nav-links {
        width: 250px;
        padding: 5rem 1rem 2rem;
    }
    .header .container {
        padding: 0.75rem 1rem;
    }
    .logo span {
        font-size: 1.3rem;
    }
    .logo img {
        height: 35px;
        width: 35px;
    }
}


/* Improve mobile tap targets */

@media (max-width: 767px) {
    .btn,
    .nav-links a,
    .social-link {
        padding: 0.8rem 1.5rem;
        min-height: 44px;
        /* Minimum touch target size */
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .container {
        padding: 0 1.25rem;
    }
    /* Ensure header is always on top */
    .header {
        z-index: 1000;
    }
    /* Fix for buttons on very small screens */
    .hero-btns .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    /* Roadmap item fix for very small screens */
    .roadmap-date {
        font-size: 1rem;
        line-height: 1.3;
    }
    .roadmap-content li {
        margin-bottom: 0.5rem;
    }
}


/* Fix for desktop hover effects */

@media (min-width: 992px) {
    .nav-links a:not(.btn) {
        position: relative;
        transition: all 0.3s ease;
    }
    .nav-links a:not(.btn):hover {
        color: var(--primary);
    }
    /* Restore original styles for desktop */
    .nav-links a {
        opacity: 0.8;
    }
    .nav-links a:hover,
    .nav-links a.active {
        opacity: 1;
    }
}


/* Mobile menu overlay improvements */

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1990;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Mobile nav items styling */

@media (max-width: 991px) {
    /* Basic nav item styling */
    .nav-links li {
        margin: 0.75rem 0;
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
        transition-delay: calc(0.1s * var(--i, 1));
    }
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    /* General nav link styling */
    .nav-links a {
        display: block;
        font-size: 1.2rem;
        padding: 0.75rem 1rem;
        width: 100%;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    .nav-links a:not(.btn)::after {
        display: none;
    }
    .nav-links a:not(.btn):hover,
    .nav-links a:not(.btn):focus {
        background: rgba(255, 255, 255, 0.05);
        color: var(--primary);
    }
    /* Fix nav buttons in mobile menu */
    .nav-links .btn {
        width: 100%;
        margin: 0.5rem 0;
        text-align: center;
        padding: 0.8rem 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50px;
        font-weight: 500;
        opacity: 1;
    }
    /* Fix primary button in mobile nav */
    .nav-links .btn-primary {
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        color: white;
        border: none;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4), 0 0 10px rgba(121, 40, 202, 0.2);
    }
    /* Fix outline button in mobile nav */
    .nav-links .btn-outline {
        background-color: rgba(0, 0, 0, 0.3);
        border: 1px solid var(--glass-border);
        color: var(--text);
    }
    /* Fix hover states for nav buttons */
    .nav-links .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(121, 40, 202, 0.3);
    }
    /* Ensure buttons don't inherit unwanted styles */
    .nav-links li:last-child,
    .nav-links li:nth-last-child(2) {
        width: 100%;
        opacity: 1;
    }
    /* Add extra spacing for buttons in nav */
    .nav-links li:nth-last-child(2) {
        margin-top: 1rem;
    }
}


/* Ensure proper focus states for accessibility */

.nav-links a:focus,
.hamburger:focus,
.logo:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


/* Fix initial loading flicker by hiding nav links until JS loads */

#main-menu[aria-hidden="true"] {
    visibility: hidden;
}


/* Fix for iOS fixed position issues */

.ios-device body.menu-open {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}


/* Improved tap targets for mobile */

@media (max-width: 991px) {
    .nav-links a {
        margin: 0.25rem 0;
    }
    /* Fix spacing for better touch targets */
    .nav-links li {
        margin: 0.5rem 0;
    }
}


/* General navbar fixes for all screen sizes */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    z-index: 2001;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
}


/* Fix for desktop nav items visibility on load */

@media (min-width: 992px) {
    #main-menu[aria-hidden="true"] {
        visibility: visible !important;
    }
}


/* Fix for initial visible state */

body:not(.js-loaded) .nav-links {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.js-loaded .nav-links {
    opacity: 1;
}


/* Make sure nav-links are displayed properly on larger screens */

@media (min-width: 992px) {
    body:not(.js-loaded) .nav-links {
        opacity: 1;
    }
}


/* Fix stacking context and z-index issues in mobile menu */

@media (max-width: 991px) {
    /* Ensure buttons have no transform that might create new stacking contexts */
    .nav-links .btn {
        transform: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    /* Make sure mobile menu has proper stacking order */
    .nav-links {
        z-index: 1999 !important;
    }
    /* Fix active state for buttons */
    .nav-links .btn:active {
        transform: translateY(2px);
    }
    /* Fix for iOS webkit touch issues */
    .nav-links .btn,
    .nav-links a {
        -webkit-touch-callout: none;
    }
    /* Fix for any perspective or transform issues */
    .nav-links,
    .nav-links li,
    .nav-links a,
    .nav-links .btn {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}


/* Add tooltip on hover for desktop */

@media (min-width: 992px) {
    .logo::after {
        content: 'Back to top';
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: rgba(10, 10, 30, 0.8);
        color: white;
        padding: 0.3rem 0.8rem;
        border-radius: 4px;
        font-size: 0.8rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
        white-space: nowrap;
    }
    .logo:hover::after {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}