/* Animations and Effects */

/* Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: particleFloat infinite linear;
    opacity: 0.6;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(1px);
}

.floating-element.element-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 10%;
    animation: float-1 20s ease-in-out infinite;
}

.floating-element.element-2 {
    width: 180px;
    height: 180px;
    top: 60%;
    left: 80%;
    animation: float-2 25s ease-in-out infinite;
}

.floating-element.element-3 {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation: float-3 18s ease-in-out infinite;
}

.floating-element.element-4 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 70%;
    animation: float-4 22s ease-in-out infinite;
}

.floating-element.element-5 {
    width: 90px;
    height: 90px;
    top: 50%;
    left: 5%;
    animation: float-5 16s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-40px, -40px) rotate(180deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -25px) rotate(90deg); }
    75% { transform: translate(-25px, 15px) rotate(270deg); }
}

@keyframes float-4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(25px, 30px) rotate(180deg); }
}

@keyframes float-5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-15px, -20px) rotate(120deg); }
    66% { transform: translate(25px, -10px) rotate(240deg); }
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: 21px;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: 4px solid var(--background-dark);
    z-index: 1;
}

.timeline-content {
    margin-left: 80px;
}

.experience-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.experience-header {
    margin-bottom: 20px;
}

.experience-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.company-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.company {
    font-weight: 600;
    color: var(--text-color);
}

.date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(0, 212, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

.experience-description {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.project-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.project-item p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transition: box-shadow 0.3s ease;
}

/* Progress bars for skills */
.skill-level {
    --skill-width: 0%;
}

.skill-level::after {
    width: var(--skill-width);
}

/* Mobile Timeline adjustments */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 11px;
    }

    .timeline-content {
        margin-left: 60px;
    }

    .project-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    header,
    .floating-elements,
    .particles,
    .scroll-indicator {
        display: none;
    }

    .section {
        page-break-inside: avoid;
        margin: 20px 0;
    }

    body {
        background: white !important;
        color: black !important;
    }
}