/* MyTimeline Section */
.timeline-section {
    padding: 100px 0;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.95) 50%, 
        rgba(51, 65, 85, 0.95) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><circle cx="30" cy="30" r="1"/></g></svg>') repeat;
    pointer-events: none;
}

.timeline-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Map Container */
.map-container {
    position: relative;
    height: 800px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 2rem;
}

.world-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Custom Map Styles */
.leaflet-container {
    background: #f0f4f8;
    font-family: 'Inter', sans-serif;
}

.leaflet-tile {
    filter: contrast(1.05) brightness(0.98);
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.leaflet-control-zoom a {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    color: #333333 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom a:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.05);
    border-color: rgba(0, 0, 0, 0.25) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Timeline Info Panel */
.timeline-info-panel {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 1rem;
    max-width: 300px;
    min-width: 280px;
    z-index: 1000;
    transform: translateY(-10px);
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
    animation-delay: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.info-content {
    color: #1f2937;
}

.info-date {
    font-size: 1rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 0.3rem;
}

.info-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #111827;
}

.info-description {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    color: #4b5563;
}

.info-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.info-location i {
    color: #6366f1;
}

/* Age Counter */
.age-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 0.8rem;
    text-align: center;
    z-index: 1000;
    min-width: 85px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.age-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #6366f1;
    line-height: 1;
}

.age-label {
    font-size: 0.7rem;
    color: #4b5563;
    margin-top: 0.2rem;
}

/* Timeline Controls */
.timeline-controls {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Timeline Progress */
.timeline-progress {
    margin-bottom: 1.5rem;
    position: relative;
}

.progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    position: relative;
    margin-bottom: 1rem;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
}

.progress-handle {
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #ffffff;
    border: 2px solid #6366f1;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.progress-handle:hover {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.progress-handle:active {
    cursor: grabbing;
}

/* Timeline Markers */
.timeline-markers {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.timeline-marker {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.05);
}

.timeline-marker.active {
    background: #6366f1;
    border-color: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.timeline-marker.education {
    border-color: #10b981;
}

.timeline-marker.work {
    border-color: #f59e0b;
}

.timeline-marker.travel {
    border-color: #ef4444;
}

.timeline-marker.achievement {
    border-color: #8b5cf6;
}

.timeline-marker:hover {
    transform: scale(1.4);
}

/* Control Buttons */
.control-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.control-btn:active {
    transform: translateY(0);
}

#speed-btn {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Timeline Legend */
.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 500;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-color.education {
    background: #10b981;
}

.legend-color.work {
    background: #f59e0b;
}

.legend-color.travel {
    background: #ef4444;
}

.legend-color.achievement {
    background: #8b5cf6;
}

/* Custom Map Markers */
.timeline-map-marker {
    background: #6366f1;
    border: 3px solid #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.7rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.travel-line {
    stroke: #6366f1;
    stroke-width: 3;
    stroke-dasharray: 10, 5;
    fill: none;
    animation: dashMove 2s linear infinite;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes dashMove {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: 30;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.timeline-popup {
    animation: fadeInScale 0.5s ease;
}

/* Achievement Notification */
.achievement-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 2rem 3rem;
    border-radius: 15px;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: achievementPopup 3s ease forwards;
}

.achievement-notification h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.achievement-notification p {
    margin: 0;
    opacity: 0.9;
}

@keyframes achievementPopup {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    15%, 85% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-section {
        padding: 60px 0;
    }
    
    .map-container {
        height: 500px;
    }
    
    .timeline-info-panel {
        left: 8px;
        right: 8px;
        max-width: none;
        min-width: auto;
        padding: 0.8rem;
        top: 10px;
    }
    
    .info-title {
        font-size: 1.1rem;
    }
    
    .info-description {
        font-size: 0.75rem;
    }
    
    .age-counter {
        top: 10px;
        right: 8px;
        padding: 0.6rem;
        min-width: 70px;
    }
    
    .age-number {
        font-size: 1.5rem;
    }
    
    .age-label {
        font-size: 0.65rem;
    }
    
    .timeline-controls {
        padding: 1rem;
    }
    
    .timeline-legend {
        gap: 1rem;
    }
    
    .control-buttons {
        gap: 0.5rem;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
} 