/* Additional custom styles for Max Demidov theme */

/* Timeline for experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #00D4FF, #0099FF);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: #00D4FF;
    border: 4px solid #0a0a1a;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    width: calc(50% - 40px);
    background: rgba(20, 20, 40, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    position: relative;
}

.timeline-content h3 {
    color: #00D4FF;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.timeline-period {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    color: #00D4FF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Skills progress bars */
.skill-item {
    margin-bottom: 25px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 600;
    color: #ffffff;
}

.skill-percentage {
    color: #00D4FF;
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #00D4FF, #0099FF);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
}

/* Contact form */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(20, 20, 40, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: #00D4FF;
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 24px;
    color: #00D4FF;
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: #ffffff;
}

.contact-item p {
    margin: 0;
    color: #b0b0d0;
}

.form-message {
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
}

.form-message.success {
    background: rgba(0, 200, 83, 0.1);
    color: #00C853;
    border: 1px solid rgba(0, 200, 83, 0.2);
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00D4FF 0%, #0099FF 100%);
    color: #0a0a1a;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

/* Tooltips */
.tooltip {
    position: absolute;
    background: rgba(10, 10, 26, 0.95);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1001;
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Social links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00D4FF;
    transform: translateX(5px);
}

/* Theme toggle */
.theme-toggle {
    position: fixed;
    top: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    color: #00D4FF;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00D4FF;
    transform: rotate(30deg);
}

/* Light theme */
.light-theme {
    background: #f8f9fa;
    color: #333333;
}

.light-theme h1,
.light-theme h2,
.light-theme h3,
.light-theme h4,
.light-theme h5,
.light-theme h6 {
    color: #333333;
}

.light-theme p {
    color: #666666;
}

.light-theme .project-card,
.light-theme .contact-item,
.light-theme .timeline-content {
    background: #ffffff;
    border-color: #e0e0e0;
}

.light-theme .site-header {
    background: rgba(248, 249, 250, 0.9);
    border-bottom-color: #e0e0e0;
}

.light-theme .site-footer {
    background: #e9ecef;
    border-top-color: #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
        width: calc(100% - 60px);
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .theme-toggle {
        top: auto;
        bottom: 30px;
        right: 30px;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .theme-toggle,
    .back-to-top {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}