/* --- Core Animations & Utilities --- */
@keyframes scrollBlink {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.scroll-blinker {
    animation: scrollBlink 1.5s linear infinite;
}

::-webkit-scrollbar {
    display: none;
}

.view-section {
    display: none;
    opacity: 0;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 5rem;
}

.view-section.active {
    display: block;
    animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUpIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Luxury Terminal Inputs --- */
.terminal-input {
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid #27272a;
    color: white;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    transition: all 0.4s ease;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.terminal-input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    background: #111;
}

select.terminal-input option {
    background: #050505;
    color: white;
}

/* --- THE GLOWING ROADMAP (Itinerary) --- */
.roadmap-container {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.roadmap-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2), transparent);
    z-index: 0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
    .roadmap-line {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 4rem;
    cursor: grab;
}

@media (min-width: 768px) {
    .timeline-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .timeline-item:nth-child(even) {
        flex-direction: row-reverse;
    }
}

.timeline-item.dragging {
    opacity: 0.4;
    transform: scale(0.95);
    cursor: grabbing !important;
}

.waypoint-node {
    position: absolute;
    left: 24px;
    top: 30px;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #050505;
    border: 2px solid white;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.waypoint-node::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: 0.3s;
}

@media (min-width: 768px) {
    .waypoint-node {
        left: 50%;
        top: 50%;
    }
}

.timeline-item:hover .waypoint-node {
    transform: translate(-50%, -50%) scale(1.4);
    background: white;
    box-shadow: 0 0 30px rgba(255, 255, 255, 1);
}

.timeline-item:hover .waypoint-node::after {
    opacity: 1;
    background: black;
}

.roadmap-card {
    width: calc(100% - 60px);
    margin-left: 60px;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.roadmap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: 0.5s;
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    .roadmap-card {
        width: 42%;
        margin-left: 0;
    }

    .timeline-item:nth-child(odd) .roadmap-card {
        text-align: right;
    }
}

.roadmap-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.05);
}

.roadmap-card:hover::before {
    opacity: 1;
}

.tl-input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    color: white;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
    position: relative;
    z-index: 1;
}

.tl-input:focus {
    border-bottom: 1px solid #52525b;
}

@media (min-width: 768px) {
    .timeline-item:nth-child(odd) .tl-input {
        text-align: right;
    }
}

/* Dashboard Analytics Cards */
.analytic-card {
    background: linear-gradient(145deg, #0f0f11 0%, #050505 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
}

.analytic-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

/* AI Loader & Error States */
.ai-pulse {
    animation: aiPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes aiPulse {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }

    50% {
        opacity: 0.3;
        text-shadow: 0 0 0px rgba(255, 255, 255, 0);
    }
}

.api-error-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
    font-family: 'JetBrains Mono';
    font-size: 0.9rem;
}


