/* Projects Page Hero */
.projects-page-hero {
    min-height: 50vh;
    padding: 12rem 2rem 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.projects-hero-container {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.projects-hero-container h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.projects-hero-container p {
    font-size: 1.5rem;
    color: #94a3b8;
    line-height: 1.8;
}

/* Filter Section */
.projects-filter-section {
    padding: 2rem;
    position: sticky;
    top: 90px;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    z-index: 100;
}

.projects-filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.875rem 2rem;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: rgba(99, 102, 241, 0.5);
    color: #e4e7eb;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* Projects Showcase */
.projects-showcase {
    padding: 4rem 2rem;
}

.projects-showcase-container {
    max-width: 1400px;
    margin: 0 auto;
}

.projects-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 3rem;
}

.project-showcase-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.project-showcase-card.show {
    opacity: 1;
    transform: translateY(0);
}

.project-showcase-card:hover {
    transform: translateY(-15px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.4);
}

.project-showcase-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.project-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-showcase-card:hover .project-showcase-image img {
    transform: scale(1.2) rotate(2deg);
}

.project-placeholder-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    opacity: 0.2;
}

.project-showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 14, 26, 0.8), rgba(10, 14, 26, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-showcase-card:hover .project-showcase-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    padding: 2rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-showcase-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.project-client {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.btn-view {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-view:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.project-showcase-content {
    padding: 2.5rem;
}

.project-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-category-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #a5b4fc;
}

.project-year-tag {
    color: #94a3b8;
    font-weight: 700;
    font-size: 1.1rem;
}

.project-showcase-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e4e7eb;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-showcase-content p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-tag {
    padding: 0.5rem 1.1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a5b4fc;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    z-index: 2;
}

[dir="rtl"] .featured-badge {
    left: auto;
    right: 1.5rem;
}

/* CTA Final Section */
.projects-cta-final {
    padding: 6rem 2rem;
}

.projects-cta-final-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 30px;
    padding: 4rem 3rem;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.projects-cta-final-container h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-cta-final-container p {
    font-size: 1.3rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 48px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(99, 102, 241, 0.1);
    color: #e4e7eb;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .projects-masonry {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-page-hero {
        padding: 10rem 1.5rem 4rem;
    }

    .projects-hero-container h1 {
        font-size: 2.5rem;
    }

    .projects-hero-container p {
        font-size: 1.2rem;
    }

    .projects-filter-section {
        top: 80px;
    }

    .projects-masonry {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-showcase-card {
        max-width: 600px;
        margin: 0 auto;
    }

    .project-showcase-image {
        height: 280px;
    }

    .projects-cta-final-container {
        padding: 3rem 2rem;
    }

    .projects-cta-final-container h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .projects-hero-container h1 {
        font-size: 2rem;
    }

    .filter-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .project-showcase-content {
        padding: 2rem;
    }
}