/* Navbar Custom Styles */
.navbar {
    transition: all 0.3s ease;
    z-index: 1030;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Logo Animation */
@keyframes logo-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Nav Links Custom Styles */
.nav-link {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: #3b82f6 !important;
    transform: translateY(-2px);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #f59e0b);
    border-radius: 2px;
}

/* Avatar Styles */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3b82f6, #f59e0b);
}

.avatar-lg {
    width: 60px;
    height: 60px;
    font-size: 20px;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #f59e0b);
    z-index: 1100;
    transition: width 0.1s ease;
}

/* Scroll To Top Button */
.scroll-top-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    width: 56px;
    height: 56px;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Offcanvas Custom Styles */
.offcanvas {
    transition: transform 0.3s ease-in-out;
}

/* Custom Colors */
.text-purple {
    color: #6f42c1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .scroll-top-btn {
        width: 48px;
        height: 48px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .offcanvas {
        width: 280px;
    }
}

@media (max-width: 576px) {
    .offcanvas {
        width: 250px;
    }
}

/* Button Hover Effects */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #b02a37);
    border: none;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

/* Focus States */
.nav-link:focus-visible,
.btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}