/* Additional animations and utilities */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

/* Responsive improvements */
@media (max-width: 480px) {
    .cv-container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .sidebar, .main-content {
        padding: 20px;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    .sidebar h1 {
        font-size: 20px;
    }
    
    .main-content h2 {
        font-size: 18px;
    }
    
    .skills ul {
        justify-content: center;
    }
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1abc9c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Theme toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1abc9c;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    background: #16a085;
    transform: scale(1.1);
}

/* Dark theme */
.dark-theme {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

.dark-theme .cv-container {
    background: #34495e;
    color: #ecf0f1;
}

.dark-theme .main-content {
    background: #2c3e50;
}

.dark-theme .experience-item,
.dark-theme .education-item,
.dark-theme .contact-section {
    background: #34495e;
    border: 1px solid #4a5568;
}

.dark-theme .form-group input,
.dark-theme .form-group textarea {
    background: #4a5568;
    border-color: #2d3748;
    color: #ecf0f1;
}

.dark-theme .form-group input::placeholder,
.dark-theme .form-group textarea::placeholder {
    color: #a0aec0;
}

/* Navigation dots */
.scroll-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(26, 188, 156, 0.5);
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot:hover,
.nav-dot.active {
    background: #1abc9c;
    transform: scale(1.3);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #27ae60;
}

.notification-error {
    background: #e74c3c;
}

.notification-info {
    background: #3498db;
}

/* Animation classes */
.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .scroll-nav {
        display: none;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
        padding: 8px;
        font-size: 14px;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
