/* Projects Page Styles */

/* Smooth Scroll & Page Transition */
html {
    scroll-behavior: smooth;
}

body {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.projects-hero {
    padding: 12rem 0 6rem;
    /* background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 30%); */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.projects-hero #canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 2.3;
    overflow: hidden;
    pointer-events: none;
}

.projects-hero #canvas-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.projects-hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.projects-hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.projects-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Filter Section */
.projects-filter-section {
    padding: 3rem 0;
    background:var(--secondary-bg) ;
}

.projects-filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.projects-filter-btn {
    padding: 0.75rem 1.75rem;
    color: var(--text-primary);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.projects-filter-btn:hover {
    background: var(--text-primary);
    color: var(--primary-bg);
    transform: translateY(-2px);
}

.projects-filter-btn.active {
    background: var(--text-primary);
    color: var(--primary-bg);
}

/* Gallery Section */
.projects-gallery-section {
    padding: 6rem 0;

}

.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
}

.projects-gallery-item {
    background: var(--secondary-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 0.706592px 0.706592px -0.666667px, 
                rgba(0, 0, 0, 0.08) 0px 1.80656px 1.80656px -1.33333px, 
                rgba(0, 0, 0, 0.07) 0px 3.62176px 3.62176px -2px, 
                rgba(0, 0, 0, 0.07) 0px 6.8656px 6.8656px -2.66667px, 
                rgba(0, 0, 0, 0.05) 0px 13.6468px 13.6468px -3.33333px, 
                rgba(0, 0, 0, 0.02) 0px 30px 30px -4px, 
                rgb(255, 255, 255) 0px 3px 1px 0px inset;
    transition: all 0.4s ease;
    opacity: 1;
    transform: scale(1);
}

.projects-gallery-item.hidden {
    display: none;
}

.projects-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: rgba(0, 0, 0, 0.12) 0px 10px 40px;
}

.projects-image-wrapper {
    position: relative;
    width: 100%;
    /* height: 300px; */
    overflow: hidden;
}

.projects-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.projects-overlay {
    display: none;
}

.projects-gallery-item:hover .projects-overlay {
    opacity: 1;
}

.projects-overlay-content {
    text-align: center;
    color: var(--primary-bg);
    padding: 2rem;
}

.project-overlay-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary-bg);
}

.project-overlay-category {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.project-view-btn {
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-bg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-view-btn:hover {
    background: var(--primary-bg);
    color: var(--accent-blue);
    transform: translateX(5px);
}

.project-view-btn i {
    font-size: 1.2rem;
}

.projects-item-content {
    padding: 1.75rem;
}

.projects-item-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.projects-item-category {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

