/* Inter Font - Local */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/inter-variable.woff2') format('woff2');
}

/* Custom scrollbar - dark */
.dark ::-webkit-scrollbar,
.dark::-webkit-scrollbar {
    width: 8px;
}
.dark ::-webkit-scrollbar-track,
.dark::-webkit-scrollbar-track {
    background: #0a0a0a;
}
.dark ::-webkit-scrollbar-thumb,
.dark::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb:hover,
.dark::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Custom scrollbar - light */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Card animations */
.project-card {
    animation: fadeInUp 0.5s ease-out both;
}

.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.2s; }
.project-card:nth-child(4) { animation-delay: 0.3s; }
.project-card:nth-child(5) { animation-delay: 0.4s; }
.project-card:nth-child(6) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Line clamp */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tag input */
#tag-container:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

/* Upload area drag state */
#upload-area.drag-over {
    border-color: #6366f1;
    background-color: rgba(99, 102, 241, 0.05);
}

/* Lightbox */
#lightbox {
    backdrop-filter: blur(4px);
}
#lightbox img {
    animation: lightboxIn 0.2s ease-out;
}
@keyframes lightboxIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Theme toggle button animation */
#theme-toggle svg {
    transition: transform 0.3s ease;
}
#theme-toggle:hover svg {
    transform: rotate(15deg);
}
