/* Modern CSS for Krypton Cryptocurrency Pages */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-top: 80px; /* Pour compenser le header fixe */
}

/* Header Navigation Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-section .logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00e5ff, #00ff80);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #000;
    box-shadow: none;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00e5ff, #00ff80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(224, 224, 224, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #00e5ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #00e5ff, #00ff80);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Animated Background */
.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(0, 255, 127, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundPulse 10s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Hero Section Styles */
.hero-section {
    text-align: center;
    padding: 80px 0;
    position: relative;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.hero-section .logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.5);
    transition: all 0.3s ease;
    animation: logoFloat 6s ease-in-out infinite;
}

.hero-section .logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 60px rgba(0, 229, 255, 0.8);
}

.logo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #00e5ff, #ff00ff, #00ff80, #00e5ff);
    opacity: 0.3;
    z-index: -1;
    animation: rotate 10s linear infinite;
}

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

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00e5ff, #00ff80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.5)); }
    to { filter: drop-shadow(0 0 30px rgba(0, 255, 127, 0.8)); }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat-value {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Button Styles */
.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button::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: left 0.5s;
}

.button:hover::before {
    left: 100%;
}

.button.primary {
    background: linear-gradient(135deg, #00e5ff, #00ff80);
    color: #000;
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.3);
}

.button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.5);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 2px solid rgba(0, 229, 255, 0.3);
    backdrop-filter: blur(10px);
}

.button.secondary:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: #00e5ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.2);
}

.button-icon {
    font-size: 1.2em;
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00e5ff, #00ff80, #ff00ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #00e5ff;
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #00e5ff;
}

.feature-card p {
    opacity: 0.8;
    line-height: 1.6;
}

/* Roadmap Section Styles */
.roadmap-section {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #00e5ff, #00ff80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.roadmap-phase {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.roadmap-phase.active {
    border-color: #00e5ff;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

.roadmap-phase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00e5ff, #00ff80);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.roadmap-phase.active::before {
    transform: scaleX(1);
}

.roadmap-phase:hover {
    transform: translateY(-5px);
    border-color: #00e5ff;
    box-shadow: 0 15px 30px rgba(0, 229, 255, 0.15);
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.phase-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.roadmap-phase.active .phase-icon {
    background: rgba(0, 229, 255, 0.2);
    border-color: #00e5ff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 229, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.phase-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.phase-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00e5ff;
}

.phase-date {
    font-size: 0.9rem;
    color: rgba(224, 224, 224, 0.6);
}

.phase-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #e0e0e0;
}

.phase-tasks {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    transition: all 0.3s ease;
}

.task:hover {
    padding-left: 10px;
}

.task-icon {
    font-size: 1.1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.task.completed .task-icon {
    background: rgba(0, 255, 127, 0.2);
    border: 1px solid rgba(0, 255, 127, 0.4);
}

.task.in-progress .task-icon {
    background: rgba(255, 170, 0, 0.2);
    border: 1px solid rgba(255, 170, 0, 0.4);
    animation: pulse 1.5s infinite;
}

.task.pending .task-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.task-text {
    font-size: 1rem;
    color: rgba(224, 224, 224, 0.9);
    line-height: 1.4;
}

.task.completed .task-text {
    color: #00ff80;
}

.task.in-progress .task-text {
    color: #ffaa00;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    padding: 40px 0;
    margin-top: 80px;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #00e5ff;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: block;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .roadmap-phase {
        padding: 20px;
    }

    .phase-name {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .roadmap-section {
        padding: 40px 0;
    }

    .phase-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .phase-info {
        margin-left: 0;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .task {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
    }
    
    .task-icon {
        align-self: flex-start;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00e5ff, #00ff80);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00b8cc, #00cc66);
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
.button:focus {
    outline: 2px solid #00e5ff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .hero-background {
        display: none;
    }
    
    body {
        background: white;
        color: black;
        padding-top: 0;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .roadmap-phase {
        page-break-inside: avoid;
        border: 1px solid #ccc;
        background: white;
    }
    
    .roadmap-phase::before {
        display: none;
    }
}