@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Custom CSS for micro-interactions */
.hover-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
}

.dark .hover-card:hover {
    box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.15), 0 10px 15px -5px rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.6);
}

.skill-tag {
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
}

.skill-tag:hover {
    transform: scale(1.05) translateY(-2px);
    background-color: #9aa0a6; /* brand-neon */
    color: white;
    border-color: #9aa0a6;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4);
}

.timeline-line {
    position: absolute;
    left: 1.2rem;
    top: 2.5rem;
    bottom: -1rem;
    width: 2px;
    background: linear-gradient(to bottom, #9aa0a6, transparent);
    z-index: 0;
}

.ongoing-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.badge-hover {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.badge-hover:hover {
    transform: scale(1.15) rotate(5deg);
}

/* Additional social network style enhancements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hover-card {
    transition: all 0.25s cubic-bezier(0.02, 0.01, 0.47, 1);
}

.hover-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.05), 0 4px 10px -2px rgba(0, 0, 0, 0.02);
}

.dark .hover-card:hover {
    box-shadow: 0 12px 24px -6px rgba(139, 92, 246, 0.1), 0 4px 10px -2px rgba(139, 92, 246, 0.05);
}

.skill-tag {
    transition: all 0.2s ease;
    cursor: pointer;
}

.skill-tag:hover {
    transform: translateY(-2px);
    background-color: #9aa0a6;
    color: white;
    border-color: #9aa0a6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Gradient text */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(90deg, #3b82f6, #9aa0a6);
}

/* Custom scrollbar for independent sidebar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.3); /* gray-400 with opacity */
    border-radius: 10px;
}
.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(71, 85, 105, 0.5); /* slate-600 */
}
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.3) transparent;
}

/* Global scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

.dark ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.6); /* Gray-400 */
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background-color 0.3s;
}

.dark ::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.6); /* Slate-500 */
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #9aa0a6; /* brand-neon */
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.6) transparent;
}

.dark * {
    scrollbar-color: rgba(100, 116, 139, 0.6) transparent;
}

/* Completely hide scrollbar for aside content */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Smooth transition for sidebar collapse */
#sidebar-content {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease-out, transform 0.4s ease-out;
    transform-origin: top;
}

#sidebar-content.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    transform: translateX(-100%);
    pointer-events: none;
    overflow: hidden !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Drawer collapse transition */
.drawer-hidden {
    opacity: 0 !important;
    transform: translateX(-100%);
    overflow: hidden !important;
    pointer-events: none;
}
@media (min-width: 1024px) {
    .drawer-hidden {
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}
