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

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

@keyframes slowBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes errorBlink {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.3; }
}

#timeline{
    margin-bottom: 5rem;
}

.terminal {
    background: rgba(6, 182, 212, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto 80px auto;
    max-width: 800px;
    font-family: monospace;
    position: relative;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.terminal-header {
    height: 40px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 50px;
    background: rgba(6, 182, 212, 0.2);
    border-radius: 12px 12px 0 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.terminal-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
}

.terminal-content {
    margin-top: 35px;
    color: #fff;
    font-size: 1rem;
    padding: 10px;
}

.cursor::after {
    content: '█';
    animation: slowBlink 1s infinite;
}

.dev-timeline {
    max-width: 1200px;
    margin: 4rem auto;
    position: relative;
    padding: 0 3rem;
}

.timeline-center {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, 
        rgba(6, 182, 212, 0.2),
        rgba(6, 182, 212, 1),
        rgba(6, 182, 212, 0.2)
    );
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.dev-timeline-item {
    width: calc(50% - 3rem);
    min-height: 110px;
    padding: 1.2rem 1.8rem;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 8px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    position: relative;
    margin: -1rem 0;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
}

.dev-timeline-item:hover {
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.15);
    transform: translateY(-2px);
}

.dev-timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #06b6d4;
    border-radius: 50%;
    top: 50%;
    animation: pulseGlow 4s ease-in-out infinite;
    box-shadow: 0 0 15px #06b6d4;
}
.dev-timeline-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #06b6d4;
    transition: width 0.6s ease-in-out;
}

.dev-timeline-item:hover::after {
    width: 100%;
}

.dev-timeline-item:nth-child(odd) {
    margin-left: auto;
}

.dev-timeline-item:nth-child(odd)::before {
    left: -40px;
    transform: translateY(-50%);
}

.dev-timeline-item:nth-child(even)::before {
    right: -40px;
    transform: translateY(-50%);
}

.funny-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #06b6d4;
    font-family: monospace;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    background: rgba(15, 23, 42, 0.98);
    padding: 1rem;
    border-radius: 8px;
    z-index: 10;
    line-height: 1.8;
    pointer-events: none;
    visibility: hidden;
}

.dev-timeline-item:hover .funny-text {
    visibility: visible;
    opacity: 1;
    animation: errorBlink 2s infinite;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.dev-timeline-item:hover .content {
    opacity: 0;
}

.title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.subtitle {
    font-size: 1rem;
    color: #06b6d4;
    font-family: monospace;
}

.description {
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0.3rem 0;
}

.footnote {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-family: monospace;
    margin-top: auto;
}
@media (min-width: 1024px) and (max-width: 1280px) {
    #timeline{
        margin-left: 6rem;
        margin-right: 6rem;
    }
}

@media (max-width: 768px) {
    .terminal{
        margin-left: 2rem;
        margin-right: 2rem;
    }
    .dev-timeline {
        padding: 0 1rem;
    }
    
    .timeline-center {
        left: 2rem;
    }
    
    .dev-timeline-item {
        margin: 3rem 0;
        width: calc(100% - 4rem);
        margin-left: 3rem !important;
    }
    
    .dev-timeline-item::before {
        left: -40px !important;
        right: auto !important;
    }
    
    .funny-text {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .description {
        font-size: 0.85rem;
    }
    
    .footnote {
        font-size: 0.8rem;
    }
}


@media (max-width: 480px) {
    .terminal {
        margin: 20px 10px 40px 10px;
        padding: 15px;
    }
    
    .terminal-title {
        font-size: 0.85rem;
    }
    
    .terminal-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 320px) {
    .terminal {
        margin: 20px 5px 40px 5px;
        padding: 10px;
    }
    
    .dev-timeline-item {
        padding: 1rem 1.4rem;
    }
    
    .funny-text {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
}