/* ========================================
   PROJECTS PAGE STYLES
   Modern, Professional, Theme-Consistent
   ======================================== */

/* === PROJECTS CONTENT === */
.projects-content {
    padding: var(--spacing-lg) 0 var(--spacing-2xl);
    background: var(--white);
}

.projects-description {
    font-size: 1.125rem;
    color: var(--gray-dark);
    line-height: 1.8;
    max-width: 700px;
    margin: var(--spacing-md) auto 0;
}

/* === CATEGORY FILTER === */
.category-filter {
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 100;
}

.filter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--lightest-gray);
    border-radius: var(--radius-xl);
}

.projects-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.projects-title i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* === DROPDOWN FILTER === */
.filter-dropdown-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.filter-label {
    font-weight: 600;
    color: var(--gray-dark);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    margin: 0;
    white-space: nowrap;
}

.filter-label i {
    color: var(--primary-color);
}

/* === CUSTOM DROPDOWN === */
.custom-dropdown {
    position: relative;
    min-width: 200px;
    z-index: 10000;
}

.dropdown-selected {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--white) 0%, #f8f9ff 100%);
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.08);
    position: relative;
    z-index: 10001;
}

.dropdown-selected:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    background: linear-gradient(135deg, var(--white) 0%, #f0f2ff 100%);
}

.dropdown-arrow {
    color: var(--primary-color);
    font-size: 0.875rem;
    transition: transform var(--transition-base);
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 10002;
    pointer-events: none;
}

.dropdown-menu.show {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    overflow-y: auto;
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    color: var(--primary-color);
    padding-left: 1.25rem;
}

.dropdown-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    font-weight: 700;
}

.dropdown-item.active:hover {
    background: linear-gradient(135deg, #5568d3 0%, #5f3a82 100%);
    color: var(--white);
}

.dropdown-item i {
    font-size: 0.875rem;
}

/* === PROJECTS GRID === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

/* === PROJECT CARD === */
.project-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Project Image */
.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--lightest-gray);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--lightest-gray) 0%, var(--lighter-gray) 100%);
    color: var(--gray-light);
    font-size: 4rem;
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.95) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--spacing-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-actions {
    display: flex;
    gap: var(--spacing-md);
}

.action-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary-color);
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
    transition: all var(--transition-base);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transform: translateY(20px);
    opacity: 0;
}

.project-card:hover .action-btn {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover .action-btn:nth-child(1) {
    transition-delay: 0.1s;
}

.project-card:hover .action-btn:nth-child(2) {
    transition-delay: 0.15s;
}

.project-card:hover .action-btn:nth-child(3) {
    transition-delay: 0.2s;
}

.action-btn:hover {
    background: var(--bg-gradient-primary);
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Project Content */
.project-content {
    padding: 2.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
}

.project-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;

}

.project-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    font-family: var(--font-primary);
}

.project-description {
    color: var(--gray-dark);
    line-height: 1.7;
    margin: 0;
    flex: 1;
    font-size: 0.9375rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 5rem;
    color: var(--gray-light);
    margin-bottom: var(--spacing-lg);
}

.empty-state h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
}

.empty-state p {
    color: var(--gray-dark);
    font-size: 1.125rem;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 991px) {
    .filter-wrapper {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .projects-title {
        font-size: 1.25rem;
    }

    .projects-title i {
        font-size: 1.125rem;
    }

    .filter-dropdown {
        min-width: 160px;
        font-size: 0.8125rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--spacing-lg);
    }
}

@media (max-width: 767px) {
    .filter-wrapper {
        align-items: center;
        padding: var(--spacing-sm) var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .projects-title {
        font-size: 1.125rem;
    }

    .projects-title i {
        font-size: 1rem;
    }

    .filter-dropdown-wrapper {
        display: flex;
        align-items: center;
        gap: var(--spacing-xs);
    }

    .custom-dropdown {
        min-width: 160px;
    }

    .dropdown-selected {
        padding: 0.625rem 1.75rem 0.625rem 0.875rem;
        font-size: 0.875rem;
        touch-action: manipulation;
    }

    .dropdown-menu {
        z-index: 9999;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        touch-action: manipulation;
        min-height: 44px;
    }

    .dropdown-item:hover {
        padding-left: 1rem;
    }

    .filter-label {
        width: 36px;
        height: 36px;
    }

    .filter-label i {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 200px;
    }

    .action-btn {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
}


.action-btn {
    width: 45px;
    height: 45px;
    font-size: 1.125rem;
}


/* === ANIMATIONS === */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}