/* ===== PAGE PROJETS - DESIGN PREMIUM ===== */

/* Projects Hero Section */
.projects-hero-section {
    position: relative;
    min-height: 60vh;
    background: linear-gradient(135deg, var(--tech-gradient-1), var(--tech-gradient-2));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 0 80px;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 180, 219, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 219, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridSlide 15s linear infinite;
}

@keyframes gridSlide {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.projects-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.projects-hero-title {
    font-size: 64px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.projects-hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* Filter Section */
.projects-filter-section {
    padding: 40px 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.filter-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 50px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(0, 180, 219, 0.1);
    border-color: rgba(0, 180, 219, 0.3);
    color: var(--tech-gradient-3);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--tech-gradient-3), var(--primary-color));
    color: #ffffff;
    border-color: var(--tech-gradient-3);
    box-shadow: 0 5px 20px rgba(0, 180, 219, 0.4);
}

.filter-btn i {
    font-size: 16px;
}

/* Projects Grid Section */
.projects-grid-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.projects-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

/* Project Card Premium */
.project-card-premium {
    position: relative;
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-premium.hide {
    opacity: 0;
    transform: scale(0.8);
    display: none;
}

.project-card-premium:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

/* Project Image Wrapper */
.project-image-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.project-card-premium:hover .project-image-wrapper img {
    transform: scale(1.15);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(11, 27, 53, 0.95), 
        rgba(0, 180, 219, 0.95));
    opacity: 0;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.project-card-premium:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.5s ease 0.1s;
}

.project-card-premium:hover .overlay-content {
    transform: translateY(0);
}

/* Project Category */
.project-category {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Project Title in Overlay */
.project-overlay .project-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

/* Project Excerpt */
.project-excerpt {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Project Meta */
.project-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.meta-item i {
    color: var(--tech-gradient-3);
}

/* Project Link Button */
.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: #ffffff;
    color: var(--tech-gradient-3);
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.project-link-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: var(--tech-gradient-3);
    color: #ffffff;
}

.project-link-btn i {
    transition: transform 0.3s ease;
}

.project-link-btn:hover i {
    transform: translateX(5px);
}

/* Tech Stack */
.project-tech-stack {
    padding: 20px 25px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-badge {
    padding: 6px 15px;
    background: linear-gradient(135deg, 
        rgba(0, 180, 219, 0.1), 
        rgba(47, 85, 212, 0.1));
    color: var(--tech-gradient-3);
    font-size: 12px;
    font-weight: 600;
    border-radius: 15px;
    border: 1px solid rgba(0, 180, 219, 0.2);
    transition: all 0.3s ease;
}

.project-card-premium:hover .tech-badge {
    background: var(--tech-gradient-3);
    color: #ffffff;
    border-color: var(--tech-gradient-3);
    transform: translateY(-2px);
}

/* Projects CTA Section */
.projects-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--tech-gradient-1), var(--tech-gradient-2));
    position: relative;
}

.projects-cta-section .cta-content {
    text-align: center;
}

.projects-cta-section h2 {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.projects-cta-section p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 1200px) {
    .projects-masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .projects-hero-title {
        font-size: 38px;
    }
    
    .projects-masonry-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .filter-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .projects-filter-section {
        position: relative;
        top: 0;
    }
    
    .project-image-wrapper {
        height: 250px;
    }
}

