/* Custom Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
        transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Project card hover effect */
.project-card {
    transition: all 0.3s ease;
    transform: scale(0.98);
}

.project-card.animated {
    transform: scale(1);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Navbar animation */
.nav-link {
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active-nav::after {
    width: 100%;
}

/* Skill bar animations */
.skill-container {
    position: relative;
}

.skill-bar {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.dark .skill-bar {
    background-color: #374151;
}

.skill-progress {
    height: 100%;
    width: 0;
    background-color: #3b82f6;
    border-radius: 9999px;
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Floating action button */
.fab-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 40;
}

.fab-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.fab-top:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
}

/* Form submission feedback */
.form-message {
    display: none;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-message.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
}

.dark .form-message.success {
    background-color: #064e3b;
    color: #6ee7b7;
}

.form-message.error {
    display: block;
    background-color: #fee2e2;
    color: #b91c1c;
}

.dark .form-message.error {
    background-color: #7f1d1d;
    color: #fca5a5;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

.dark ::-webkit-scrollbar-thumb {
    background: #2563eb;
}

.hidden-project {
    display: none;
}

/* Job title transition */
#jobTitle {
    transition: opacity 0.3s ease-in-out;
}

/* Profile Menu Styles */
.profile-menu-item {
    transition: all 0.2s ease;
}

.profile-menu-item:hover {
    transform: translateX(4px);
}

/* Profile dropdown animation */
#profile-dropdown {
    transform-origin: top right;
}

/* Profile chevron animation */
#profile-chevron {
    transition: transform 0.2s ease;
}

/* Notification styles for profile menu actions */
.notification {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}