/* ==================================================

ECHOES OF AETHEL ROADMAP STYLES

======================================================*/

/* Roadmap Introduction */
.roadmap-intro {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ffffff;
    opacity: 0.9;
    font-weight: 300;
}

/* Roadmap Phases */
.roadmap-phases {
    padding: 40px 0 60px;
    background: #0a0a0a;
}

.phase-item {
    margin-bottom: 48px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    max-width: 100%;
}

.phase-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.phase-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -60px;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #00d4ff);
    transform: translateX(-50%);
}

.phase-item:first-child::before {
    display: none;
}

.phase-content {
    padding: 52px 32px 28px 32px;
    margin: 0 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: none;
}

.phase-content:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
    transform: translateY(-5px);
}

/* Cursor styles for roadmap */
.phase-content.cursorExplore {
    cursor: none;
}

.phase-content.cursorExplore:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.15);
}

/* Phase number hover effects */
.phase-number {
    font-size: 4rem;
    font-weight: 800;
    color: #00d4ff;
    opacity: 0.3;
    position: absolute;
    top: 8px;
    left: 20px;
    line-height: 1;
    transition: all 0.3s ease;
    cursor: none;
}

.phase-number:hover {
    opacity: 0.6;
    transform: scale(1.1);
    color: #00d4ff;
}

.phase-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    margin-top: 18px;
    transition: color 0.3s ease;
}

.phase-content:hover h3 {
    color: #00d4ff;
}

.phase-time {
    font-size: 1rem;
    color: #00d4ff;
    font-style: italic;
    margin-bottom: 20px;
    font-weight: 500;
}

.phase-summary {
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.8;
    margin-bottom: 25px;
    line-height: 1.6;
    transition: opacity 0.3s ease;
}

.phase-content:hover .phase-summary {
    opacity: 1;
}

.phase-milestones {
    list-style: none;
    padding: 0;
    margin: 0;
}

.phase-milestones li {
    color: #ffffff;
    opacity: 0.7;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
    transition: all 0.3s ease;
    cursor: none;
}

.phase-milestones li:hover {
    opacity: 1;
    color: #00d4ff;
    transform: translateX(5px);
}

.phase-milestones li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.phase-milestones li:hover::before {
    transform: scale(1.2);
    color: #ffffff;
}

.phase-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
}

.phase-image {
    width: 100%;
    height: 300px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phase-item:hover .phase-image {
    transform: scale(1.02);
}

.phase-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.1) 0%, 
        rgba(138, 43, 226, 0.1) 50%, 
        rgba(255, 69, 0, 0.1) 100%);
    position: relative;
    animation: phaseGlow 3s ease-in-out infinite alternate;
}

.phase-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes phaseGlow {
    0% {
        background: linear-gradient(135deg, 
            rgba(0, 212, 255, 0.1) 0%, 
            rgba(138, 43, 226, 0.1) 50%, 
            rgba(255, 69, 0, 0.1) 100%);
    }
    100% {
        background: linear-gradient(135deg, 
            rgba(0, 212, 255, 0.2) 0%, 
            rgba(138, 43, 226, 0.2) 50%, 
            rgba(255, 69, 0, 0.2) 100%);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Phase-specific colors */
.phase-item[data-phase="1"] .phase-bg {
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.15) 0%, 
        rgba(0, 150, 255, 0.1) 100%);
}

.phase-item[data-phase="2"] .phase-bg {
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.15) 0%, 
        rgba(75, 0, 130, 0.1) 100%);
}

.phase-item[data-phase="3"] .phase-bg {
    background: linear-gradient(135deg, 
        rgba(255, 69, 0, 0.15) 0%, 
        rgba(255, 140, 0, 0.1) 100%);
}

.phase-item[data-phase="4"] .phase-bg {
    background: linear-gradient(135deg, 
        rgba(0, 255, 127, 0.15) 0%, 
        rgba(34, 139, 34, 0.1) 100%);
}

.phase-item[data-phase="5"] .phase-bg {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.15) 0%, 
        rgba(255, 165, 0, 0.1) 100%);
}

/* Progress Bar */
.roadmap-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
}

.progress-bar {
    width: 100%;
    height: 100%;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #8a2be2, #ff4500);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

/* Phase Counter */
.phase-counter {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 9998;
    transition: all 0.3s ease;
}

.phase-counter:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 991px) {
    .roadmap-intro {
        padding: 80px 0 60px;
    }
    
    .roadmap-phases {
        padding: 24px 0 40px;
    }
    
    .phase-item {
        margin-bottom: 32px;
    }
    
    .phase-content {
        padding: 32px 8px 16px 8px;
        margin: 0 2px;
    }
    
    .phase-content h3 {
        font-size: 1.5rem;
        margin-top: 12px;
    }
    
    .phase-number {
        font-size: 3rem;
        top: 4px;
        left: 15px;
    }
    
    .phase-visual {
        min-height: 200px;
    }
    
    .phase-image {
        height: 200px;
    }
    
    .phase-counter {
        bottom: 20px;
        right: 20px;
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

@media (max-width: 767px) {
    .intro-text p {
        font-size: 1rem;
    }
    
    .phase-content {
        padding: 25px;
    }
    
    .phase-content h3 {
        font-size: 1.3rem;
    }
    
    .phase-summary {
        font-size: 1rem;
    }
    
    .phase-milestones li {
        font-size: 0.9rem;
    }
    
    .phase-item::before {
        display: none;
    }
    
    .roadmap-progress {
        height: 3px;
    }
    
    .phase-counter {
        bottom: 15px;
        right: 15px;
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* Custom scrollbar for roadmap */
.roadmap-phases::-webkit-scrollbar {
    width: 8px;
}

.roadmap-phases::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.roadmap-phases::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00d4ff, #8a2be2);
    border-radius: 4px;
}

.roadmap-phases::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #00b8e6, #7a1be2);
}

/* Loading animation for phases */
.phase-item.loading {
    animation: phaseLoad 0.6s ease-out;
}

@keyframes phaseLoad {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Ripple effect styles */
.phase-content {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00d4ff 60%, #8a2be2 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
    transition: opacity 0.3s, background 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top svg {
    width: 28px;
    height: 28px;
    display: block;
    fill: #fff;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #8a2be2 0%, #00d4ff 100%);
    box-shadow: 0 6px 24px rgba(0,212,255,0.18);
}

.phase-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    text-align: left;
    transition: background 0.2s;
}
.phase-toggle h3 {
    margin: 0;
    flex: 1;
    font-size: 1.8rem;
    font-weight: 700;
    color: #00d4ff;
    transition: color 0.3s;
}
.phase-toggle .phase-time {
    margin-left: 16px;
    font-size: 1.1rem;
    color: #00d4ff;
    font-style: italic;
    font-weight: 500;
}
.phase-toggle[aria-expanded="true"] h3 {
    color: #fff;
}
.phase-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
    will-change: max-height, opacity;
}
.phase-details[open],
.phase-details:not([hidden]) {
    max-height: 800px;
    opacity: 1;
    margin-top: 18px;
    transition: max-height 0.7s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
}
.phase-toggle:after {
    content: '\25BC';
    font-size: 1.2rem;
    color: #00d4ff;
    margin-left: 12px;
    transition: transform 0.3s;
}
.phase-toggle[aria-expanded="true"]:after {
    transform: rotate(180deg);
    color: #fff;
}
@media (max-width: 991px) {
    .phase-toggle h3 {
        font-size: 1.2rem;
    }
    .phase-toggle .phase-time {
        font-size: 0.95rem;
    }
} 