/* ===== Project Categories ===== */
.project-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.category-tab {
    padding: 12px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.8) 0%, rgba(68, 68, 68, 0.8) 100%);
    border: 1px solid rgba(135, 206, 235, 0.2);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.category-tab:nth-child(1) {
    transition-delay: 0s;
}

.category-tab:nth-child(2) {
    transition-delay: 0.05s;
}

.category-tab:nth-child(3) {
    transition-delay: 0.1s;
}

.category-tab:nth-child(4) {
    transition-delay: 0.15s;
}

.category-tab:nth-child(5) {
    transition-delay: 0.2s;
}

.category-tab:nth-child(6) {
    transition-delay: 0.25s;
}

.category-tab:nth-child(7) {
    transition-delay: 0.3s;
}

.category-tab:nth-child(8) {
    transition-delay: 0.35s;
}

#projects.visible .category-tab {
    opacity: 1;
    transform: translateY(0);
}

.category-tab:hover {
    background: linear-gradient(135deg, rgba(68, 68, 68, 0.9) 0%, rgba(85, 85, 85, 0.9) 100%);
    border-color: rgba(135, 206, 235, 0.4);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.2);
    color: #87CEEB;
}

.category-tab.active {
    background: linear-gradient(135deg, #87CEEB 0%, #6abfe1 100%);
    color: #333333;
    font-weight: 600;
    border-color: #87CEEB;
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.4);
    transform: translateY(-2px);
}

.category-tab.active:hover {
    color: #333333;
    background: linear-gradient(135deg, #6abfe1 0%, #87CEEB 100%);
}

/* ===== Projects Grid ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 400px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
}

.project-card.fade-out {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.empty-category {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.5) 0%, rgba(68, 68, 68, 0.5) 100%);
    border-radius: 20px;
    border: 1px solid rgba(135, 206, 235, 0.2);
    backdrop-filter: blur(10px);
}

.empty-category-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-category h3 {
    font-size: 1.8rem;
    color: #87CEEB;
    margin-bottom: 10px;
    font-family: "Playfair Display", serif;
}

.empty-category p {
    color: #c0c0c0;
    font-size: 1.1rem;
}

/* ===== Coming Soon Card ===== */
.coming-soon-card {
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.8) 0%, rgba(68, 68, 68, 0.8) 100%);
    border: 2px dashed rgba(135, 206, 235, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.coming-soon-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

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

.coming-soon-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}

.coming-soon-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.coming-soon-card h3 {
    color: #87CEEB;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.coming-soon-card p {
    color: #c0c0c0;
    margin-bottom: 25px;
}

.coming-soon-progress {
    width: 80%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.coming-soon-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #87CEEB, #6abfe1);
    border-radius: 10px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 0%;
    }
}

/* ===== Responsive tabs ===== */
@media (max-width: 768px) {
    .project-categories {
        gap: 8px;
    }
    .category-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .project-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #87CEEB #333333;
    }
    .project-categories::-webkit-scrollbar {
        height: 4px;
    }
    .project-categories::-webkit-scrollbar-track {
        background: #333333;
    }
    .project-categories::-webkit-scrollbar-thumb {
        background: #87CEEB;
        border-radius: 10px;
    }
    .category-tab {
        flex: 0 0 auto;
    }
}

/* ===== Hero Banner Animation ===== */
.hero-banner-content {
    opacity: 0;
    animation: heroFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.hero-banner-content span {
    animation-delay: 0.2s;
    opacity: 0;
    animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-banner-content h1 {
    animation-delay: 0.4s;
    opacity: 0;
    animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-banner-content p {
    animation-delay: 0.6s;
    opacity: 0;
    animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-banner-content .flex {
    animation-delay: 0.8s;
    opacity: 0;
    animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ===== Premium Abstract Background – Grid + Glow ===== */
.grid-bg {
    position: relative;
    overflow: hidden;
}

.grid-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(135, 206, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(135, 206, 235, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(135, 206, 235, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(135, 206, 235, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(135, 206, 235, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

.grid-bg .container,
.grid-bg .relative.z-10 {
    position: relative;
    z-index: 1;
}

/* ===== Card Enhancements ===== */
.card-animation {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-animation:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(135, 206, 235, 0.08);
    border-color: rgba(135, 206, 235, 0.3);
}