/* Reset y Variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales */
    --bg-dark: #0b0b12;
    --gradient-purple: #a855f7;
    --gradient-cyan: #22d3ee;
    --gradient-pink: #fb37ad;
    
    /* Tipografías */
    --font-title: 'Space Grotesk', sans-serif;
    --font-body: 'JetBrains Mono', monospace;
    
    /* Espaciados */
    --section-padding: 2rem;
    
    /* Z-index layers */
    --z-particles: 1;
    --z-content: 10;
    --z-nav: 100;
    --z-mask: 1000;
}

/* Configuración global */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: white;
    overflow-x: hidden;
    cursor: none;
}

/* Cursor personalizado */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--gradient-pink), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

/* Canvas de partículas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-particles);
    pointer-events: none;
}

/* Navegación flotante */
.floating-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-nav);
}

.nav-dots {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gradient-purple), var(--gradient-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-dot.active,
.nav-dot:hover {
    background: linear-gradient(45deg, var(--gradient-purple), var(--gradient-cyan));
    transform: scale(1.2);
}

.nav-dot.active::before,
.nav-dot:hover::before {
    opacity: 0.5;
}

/* Secciones principales */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: var(--z-content);
    padding: var(--section-padding);
}

.section-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: var(--z-content);
}

/* Máscaras de transición */
.section-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    z-index: var(--z-mask);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.section-mask.active {
    opacity: 1;
}

/* === SECCIÓN INTRO === */
.intro-section {
    text-align: center;
    flex-direction: column;
}

.logo-container {
    margin-bottom: 3rem;
    position: relative;
}

.ngv-logo {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.5));
    animation: float 6s ease-in-out infinite;
}

/* Animaciones del logo */
.glow-halo {
    animation: rotate 20s linear infinite, pulse 3s ease-in-out infinite alternate;
    transform-origin: center;
}

.fluid-shape {
    animation: morphFluid 6s ease-in-out infinite alternate;
    transform-origin: center;
}

.inner-shape {
    animation: morphInner 4s ease-in-out infinite alternate;
    transform-origin: center;
}

.highlight {
    animation: twinkle 2s ease-in-out infinite alternate;
}

/* Texto animado */
.animated-title .title-word {
    font-family: var(--font-title);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-purple), var(--gradient-cyan), var(--gradient-pink));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 3s ease-in-out infinite;
    display: inline-block;
    letter-spacing: -0.05em;
}

.animated-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.subtitle-char {
    display: inline-block;
    opacity: 0;
    animation: charReveal 0.1s ease forwards;
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--gradient-cyan), transparent);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid var(--gradient-cyan);
}

/* === SECCIÓN ABOUT === */
.about-section {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(34, 211, 238, 0.05));
    position: relative;
}

.content-wrapper {
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--gradient-purple), var(--gradient-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Formas decorativas */
.decorative-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gradient-purple), var(--gradient-cyan));
    opacity: 0.1;
    z-index: 1;
    animation: morphShape 8s ease-in-out infinite alternate;
}

.shape-1 {
    width: 300px;
    height: 200px;
    top: 20%;
    left: -10%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 300px;
    bottom: 20%;
    right: -5%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 2s;
}

/* === SECCIÓN TOKENOMICS === */
.tokenomics-section {
    background: radial-gradient(ellipse at center, rgba(251, 55, 173, 0.05), transparent);
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.token-block {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    position: relative;
    overflow: hidden;
}

.token-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-purple), var(--gradient-cyan), var(--gradient-pink));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.token-block:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
    border-color: var(--gradient-purple);
}

.token-block:hover::before {
    opacity: 1;
}

.token-value {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--gradient-purple), var(--gradient-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.token-label {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* === SECCIÓN ROADMAP === */
.roadmap-section {
    background: linear-gradient(225deg, rgba(34, 211, 238, 0.05), rgba(168, 85, 247, 0.05));
    text-align: center;
}

.roadmap-container {
    margin-top: 3rem;
    position: relative;
    height: 400px;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.roadmap-line {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.roadmap-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    opacity: 0;
    animation: none;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.3));
    transition: all 0.5s ease;
}

.roadmap-path.animated {
    animation: drawPath 3s ease-out forwards;
}

.roadmap-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.roadmap-point {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.roadmap-point.visible {
    opacity: 1;
}

.point-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gradient-purple), var(--gradient-cyan));
    position: relative;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    z-index: 10;
    transform: scale(0);
    transition: transform 0.5s ease;
}

.roadmap-point.visible .point-dot {
    transform: scale(1);
    animation: pulsePoint 2s ease-in-out infinite;
}

.point-dot::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 2px solid var(--gradient-cyan);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.roadmap-point.visible .point-dot::before {
    opacity: 0.5;
    animation: ripple 2s ease-out infinite;
}

.point-content {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    background: rgba(11, 11, 18, 0.95);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    min-width: 140px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.roadmap-point.visible .point-content {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.point-content h4 {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--gradient-purple), var(--gradient-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.point-content p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* === SECCIÓN COMUNIDAD === */
.community-section {
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.05), transparent);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.community-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    text-decoration: none;
    color: white;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.community-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.community-item:hover::before {
    left: 100%;
}

.community-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
    border-color: var(--gradient-purple);
}

.community-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gradient-purple), var(--gradient-cyan));
    transition: transform 0.3s ease;
}

.community-item:hover .community-icon {
    transform: scale(1.1);
}

.community-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.pulse-item {
    animation: gentlePulse 3s ease-in-out infinite;
}

/* CTA Button */
.cta-section {
    margin-top: 4rem;
}

.cta-button {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--gradient-purple), var(--gradient-cyan));
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

.button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 3s linear infinite;
}

.cta-button:hover .button-glow {
    opacity: 1;
}

/* Clases de utilidad para animaciones */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Animaciones CSS */
@keyframes morphFluid {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.05) rotate(2deg);
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(34, 211, 238, 0.5));
    }
}

@keyframes morphInner {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
    }
    50% { 
        transform: scale(0.95) rotate(-1deg);
        opacity: 0.9;
    }
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3) drop-shadow(0 0 20px var(--gradient-pink)); }
}

@keyframes wave {
    0%, 100% { transform: skewY(0deg) scaleX(1); }
    50% { transform: skewY(2deg) scaleX(1.05); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes charReveal {
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes morphShape {
    0%, 100% { 
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }
    50% { 
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: rotate(180deg) scale(1.1);
    }
}

@keyframes drawPath {
    from { 
        stroke-dashoffset: 2000;
        opacity: 0;
    }
    to { 
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes pulsePoint {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 1rem;
    }
    
    .floating-nav {
        right: 1rem;
    }
    
    .nav-dots {
        gap: 0.5rem;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
    }
    
    .ngv-logo {
        width: 200px;
        height: 200px;
    }
    
    .tokenomics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .token-block {
        padding: 1.5rem;
    }
    
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 300px;
    }
    
    .community-item {
        padding: 1.5rem;
    }
    
    .roadmap-container {
        height: 320px;
        max-width: 95%;
    }
    
    .roadmap-line {
        height: 100%;
    }
    
    .point-content {
        top: 25px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        min-width: 100px;
    }
    
    .point-content h4 {
        font-size: 0.9rem;
    }
    
    /* Ajustar posiciones en móvil para seguir la línea */
    .roadmap-point:nth-child(1) {
        left: 7.5% !important;
        top: 50% !important;
    }
    
    .roadmap-point:nth-child(2) {
        left: 35% !important;
        top: 35% !important;
    }
    
    .roadmap-point:nth-child(3) {
        left: 65% !important;
        top: 65% !important;
    }
    
    .roadmap-point:nth-child(4) {
        left: 92.5% !important;
        top: 50% !important;
    }
    
    /* Ajustar contenido de puntos para evitar overflow */
    .roadmap-point:nth-child(4) .point-content {
        transform: translateX(-85%);
    }
    
    .roadmap-point:nth-child(1) .point-content {
        transform: translateX(-15%);
    }
}

@media (max-width: 480px) {
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 350px;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    /* Roadmap específico para pantallas muy pequeñas */
    .roadmap-container {
        height: 350px;
    }
    
    .point-content {
        min-width: 110px;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .point-content h4 {
        font-size: 0.85rem;
    }
    
    .point-content p {
        font-size: 0.7rem;
    }
    
    /* Ajustar posiciones extremas en pantallas muy pequeñas */
    .roadmap-point:nth-child(1) .point-content {
        transform: translateX(-5%);
    }
    
    .roadmap-point:nth-child(4) .point-content {
        transform: translateX(-95%);
    }
}

/* Reducir animaciones para usuarios que lo prefieran */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .ngv-logo {
        animation: none;
    }
    
    .roadmap-path {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
    }
}