:root {
    --primary: #6e45e2;
    --primary-light: #9d65ff;
    --secondary: #88d3ce;
    --accent: #ff7e5f;
    --accent-light: #ff9e7d;
    --dark: #0f0f1a;
    --darker: #0a0a12;
    --light: #f8f9fa;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}

header {
    height: 70px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 18, 0.95);
    border-bottom: 1px solid rgba(110, 69, 226, 0.2);
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wallet-btn {
    background: rgba(110, 69, 226, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--primary);
}

.wallet-btn:hover {
    background: rgba(110, 69, 226, 0.4);
    transform: translateY(-2px);
}

.language-switcher {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--darker);
    border-radius: 10px;
    padding: 10px;
    min-width: 120px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
}

.lang-dropdown a {
    display: block;
    padding: 8px 12px;
    color: var(--light);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.lang-dropdown a:hover {
    background: rgba(110, 69, 226, 0.3);
}

.language-switcher:hover .lang-dropdown {
    display: block;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    color: white;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.fa-telegram:hover {
    color: #0088cc;
}

.fa-x-twitter:hover {
    color: #000000;
    background: rgba(255, 255, 255, 0.9);
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(110, 69, 226, 0.5);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, var(--light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title span {
    display: block;
    background: linear-gradient(to right, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    z-index: -1;
    transition: all 0.3s ease;
}

.btn:hover::before {
    transform: scale(1.05);
    opacity: 0.9;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 20px rgba(110, 69, 226, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent), var(--primary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Удаляем анимацию пульсации по умолчанию */
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(110, 69, 226, 0.6);
    animation: none;
}

/* Добавляем анимацию только при наведении */
.btn-primary:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: -2;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    70% {
        transform: scale(1.05);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-image {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.car-container {
    width: 100%;
    max-width: 650px;
    height: 450px;
    position: relative;
    perspective: 1000px;
}

.car-model {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transform: rotateY(20deg);
    transition: transform 0.5s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.car-container:hover .car-model {
    transform: rotateY(10deg) scale(1.02);
}

.car-model img {
    height: 100%;
    width: auto;
    object-fit: cover;
}

.floating-coins {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.coin {
    position: absolute;
    width: 30px;
    height: 30px;
    background: url('https://cryptologos.cc/logos/solana-sol-logo.png') no-repeat center/contain;
    opacity: 0.7;
    animation: float-coin 10s linear infinite;
}

.section {
    padding: 6rem 5%;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.about-image {
    flex: 1;
    position: relative;
    height: 500px;
}

.token-info {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 3rem;
    gap: 2rem;
}

.token-price {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.token-price h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.price-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.market-cap {
    color: var(--gray);
    margin-bottom: 1rem;
}

.price-change {
    margin-bottom: 1rem;
    font-style: italic;
}

.buy-token-btn {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.buy-token-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(110, 69, 226, 0.4);
}

.token-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.stat-card h4 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.game-section {
    background: linear-gradient(135deg, var(--darker) 0%, #121225 100%);
}

.game-updates {
    max-width: 1200px;
    margin: 0 auto;
}

.update-card {
    background: rgba(15, 15, 26, 0.7);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.update-card:hover {
    transform: translateY(-5px);
    border-color: rgba(110, 69, 226, 0.5);
}

.update-date {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.update-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.update-text {
    flex: 1;
}

.update-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    max-height: 300px;
}

.update-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-progress {
    margin-top: 3rem;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    width: 65%;
    border-radius: 5px;
    transition: width 1s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.9rem;
}

.content-creators {
    background: linear-gradient(135deg, var(--darker) 0%, #121225 100%);
    padding: 3rem 5%;
    margin: 3rem 0;
    border-radius: 15px;
}

.creators-container {
    max-width: 1200px;
    margin: 0 auto;
}

.creators-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.creators-text {
    margin-bottom: 2rem;
    max-width: 800px;
}

.creators-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-card h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.roadmap {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.roadmap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.roadmap-item {
    position: relative;
    width: calc(50% - 2rem);
    padding: 1.5rem;
    background: rgba(15, 15, 26, 0.7);
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.roadmap-item.active {
    opacity: 1;
    background: rgba(110, 69, 226, 0.1);
    border-color: var(--primary);
}

.roadmap-item:nth-child(odd) {
    margin-right: auto;
}

.roadmap-item:nth-child(even) {
    margin-left: auto;
}

.roadmap-item::before {
    content: '';
    position: absolute;
    top: 2rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    box-shadow: 0 0 0 4px rgba(110, 69, 226, 0.2);
}

.roadmap-item.active::before {
    box-shadow: 0 0 0 6px rgba(110, 69, 226, 0.4);
    animation: pulse 2s infinite;
}

.roadmap-item .date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(110, 69, 226, 0.2);
    border-radius: 50px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--primary-light);
}

.roadmap-item.active .date {
    background: var(--primary);
    color: white;
}

.team-members {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    max-width: 300px;
    width: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 3px solid rgba(110, 69, 226, 0.3);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--light);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

footer {
    background: linear-gradient(to bottom, var(--darker) 0%, #050508 100%);
    padding: 5rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #1e1e3a, #232347);
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    animation: modalFadeIn 0.4s ease-out;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
    color: var(--gray);
}

.close-modal:hover {
    color: var(--accent);
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.wallet-option img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(110, 69, 226, 0.3);
    z-index: 4000;
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification.error {
    background: linear-gradient(45deg, #ff4d4d, #ff7e5f);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes float-coin {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(110, 69, 226, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(110, 69, 226, 0); }
    100% { box-shadow: 0 0 0 0 rgba(110, 69, 226, 0); }
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(20px); }
}

/* Mobile Optimizations */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        min-height: auto;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .car-container {
        height: 300px;
    }

    .about-content {
        flex-direction: column;
    }

    .roadmap::before {
        left: 2rem;
    }

    .roadmap-item {
        width: calc(100% - 4rem);
        margin-left: 4rem !important;
    }

    .update-content {
        flex-direction: column;
    }

    .update-image {
        width: 100%;
        max-height: 200px;
    }

    .header-right {
        gap: 15px;
    }
    
    .wallet-btn span {
        display: none;
    }
    
    .social-icons {
        display: none;
    }

    .token-info {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    nav ul {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .team-card {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: 4rem 5%;
    }

    .feature-card, .stat-card, .benefit-card {
        padding: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Prevent zooming on mobile input */
@media screen and (max-width: 767px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Improved mobile menu */
#mainNav {
    transition: all 0.3s ease;
}

#mainNav.active {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--darker);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

#mainNav.active ul {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

#mainNav.active a {
    font-size: 1.5rem;
}

/* Improved mobile performance */
img {
    max-width: 100%;
    height: auto;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
