/* Slide 2 - The Journey Ahead Specific Styles */

/* Custom scrollbar styling for modern look */
.slide-journey::-webkit-scrollbar {
    width: 10px;
}

.slide-journey::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.slide-journey::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    transition: background 0.3s ease;
}

.slide-journey::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Main slide background with a different gradient */
.slide-journey {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    overflow-y: auto; /* Allow vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative;
    justify-content: flex-start; /* Align content to top instead of center */
    padding-top: 80px; /* Ensure title has space from top */
    padding-bottom: 60px; /* Space at bottom */
}

/* Subtle background pattern */
.background-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px);
}

/* Content container for proper spacing */
.content-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding-bottom: 80px; /* Add padding at bottom to ensure last item is visible */
}

/* Slide title styling */
.slide-title {
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 1.8rem;
    margin-bottom: 60px;
}

/* Roadmap container */
.roadmap-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* The connecting line that runs through milestones */
.roadmap-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, 
        rgba(255,255,255,0.3) 0%, 
        rgba(255,255,255,0.6) 50%, 
        rgba(255,255,255,0.3) 100%);
    transform: translateX(-50%);
    z-index: 0;
}

/* Create a zigzag effect with pseudo-elements */
.roadmap-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    right: -2px;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    filter: blur(10px);
}

/* Milestone styling */
.milestone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 1;
}

/* Alternate milestone positions */
.milestone-1,
.milestone-3,
.milestone-5 {
    flex-direction: row-reverse;
    padding-right: calc(50% + 60px);
}

.milestone-2,
.milestone-4 {
    padding-left: calc(50% + 60px);
}

/* Milestone number circle */
.milestone-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    z-index: 2;
}

/* Glowing effect for milestone numbers */
.milestone-number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

/* Milestone content card */
.milestone-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px 35px;
    max-width: 500px;
    transition: all 0.3s ease;
}

/* Hover effect for milestone content */
.milestone-content:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Milestone content typography */
.milestone-content h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.milestone-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Animated background circles */
.animated-bg-elements {
    position: fixed; /* Changed from absolute to fixed so background doesn't scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation: float 20s ease-in-out infinite;
}

.bg-circle-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation: float 25s ease-in-out infinite reverse;
}

.bg-circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 5%;
    animation: float 30s ease-in-out infinite 2s;
}

/* Floating animation for background elements */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .roadmap-container {
        padding: 0 20px;
    }
    
    .milestone-1,
    .milestone-3,
    .milestone-5 {
        padding-right: calc(50% + 40px);
    }
    
    .milestone-2,
    .milestone-4 {
        padding-left: calc(50% + 40px);
    }
    
    .milestone-content {
        padding: 20px 25px;
    }
}

@media (max-width: 768px) {
    /* Stack milestones vertically on mobile */
    .milestone {
        flex-direction: column !important;
        padding: 0 20px !important;
        text-align: center;
    }
    
    .milestone-number {
        position: relative;
        left: auto;
        transform: none;
        margin-bottom: 20px;
    }
    
    .roadmap-line {
        display: none;
    }
    
    .milestone-content {
        max-width: 100%;
    }
    
    .slide-subtitle {
        font-size: 1.3rem;
    }
}