/* Custom Scrollbar Styling */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Year Tab Styles */
.year-tab {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid transparent;
}

.year-tab:hover {
    background: #e2e8f0;
    color: #475569;
}

.year-tab.active {
    background: linear-gradient(135deg, #0ea5e9, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

/* Project Card Styles */
.project-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
    border-color: #0ea5e9;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Project Badge - Type Only Design */
.project-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-year {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.92));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Badge icon styling */
.badge-type-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.15);
}

/* Badge text styling */
.badge-text {
    font-size: 10px;
    line-height: 1;
}

/* Type-specific icon colors */
.badge-type-icon.type-web {
    color: #60a5fa;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(37, 99, 235, 0.25));
}

.badge-type-icon.type-mobile {
    color: #34d399;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.25), rgba(16, 185, 129, 0.25));
}

.badge-type-icon.type-static {
    color: #94a3b8;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.25), rgba(100, 116, 139, 0.25));
}

.badge-type-icon.type-desktop {
    color: #fb923c;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.25), rgba(249, 115, 22, 0.25));
}

.badge-type-icon.type-api {
    color: #f472b6;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.25), rgba(236, 72, 153, 0.25));
}

.badge-type-icon.type-default {
    color: #a78bfa;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(139, 92, 246, 0.25));
}

/* Tag Styles */
.tag {
    display: inline-flex;
    align-items: gap-4px;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.tag:hover {
    background: #0ea5e9;
    color: white;
}

.tag.active {
    background: #0ea5e9;
    color: white;
}

/* Modal Styles */
.modal-open {
    overflow: hidden;
}

/* Modal close on backdrop click */
#modalBackdrop {
    cursor: pointer;
}

#modalContainer {
    cursor: default;
}

#modalPanel {
    cursor: default;
}

/* Image Gallery Styles */
.gallery-track {
    will-change: transform;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project Preview Placeholder */
.project-preview-placeholder {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
}

.project-preview-placeholder svg {
    width: 64px;
    height: 64px;
    color: #7dd3fc;
}

/* Loader */
.loader {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Tech Stack Icons */
.tech-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Tech stack badges on cards - enhanced visibility */
.project-card [class*="bg-slate-100"][class*="text-slate-600"] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.project-card [class*="bg-slate-100"][class*="text-slate-600"]:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

/* Responsive Utilities */
@media (max-width: 640px) {
    .project-card {
        margin: 0 -8px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    .project-card {
        break-inside: avoid;
    }
}
