/* ========================================
   WORKS PAGE STYLES - CLEAN BOX LAYOUT
   ======================================== */

/* Works Hero Section */
.works-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/images/banner.jpg') center/cover;
    padding: 12rem 0 6rem;
    text-align: center;
    margin-top: 70px;
}

.works-hero h1 {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 900;
    animation: fadeInDown 0.8s ease-out;
}

.works-hero p {
    font-size: 1.3rem;
    color: var(--gray-light);
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Category Content Section */
.category-content-section {
    padding: 5rem 0;
    background: var(--black);
}

.category-description {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.category-description h2 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.category-description p {
    font-size: 1.2rem;
    color: var(--gray-light);
    line-height: 1.7;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-card {
    background: #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.2);
}

.project-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-title {
    padding: 1.5rem;
    background: #0a0a0a;
}

.project-title h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin: 0;
    font-weight: 600;
    text-align: center;
}

/* Fade In Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeIn 0.6s ease-out both;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.15s; }
.project-card:nth-child(3) { animation-delay: 0.2s; }
.project-card:nth-child(4) { animation-delay: 0.25s; }
.project-card:nth-child(5) { animation-delay: 0.3s; }
.project-card:nth-child(6) { animation-delay: 0.35s; }
.project-card:nth-child(n+7) { animation-delay: 0.4s; }

/* No Results Message */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-light);
    animation: fadeIn 0.6s ease-out;
}

.no-results h3 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.no-results .btn {
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .works-hero {
        padding: 8rem 0 4rem;
        margin-top: 50px;
    }
    
    .works-hero h1 {
        font-size: 2.5rem;
    }
    
    .works-hero p {
        font-size: 1.1rem;
    }
    
    .category-content-section {
        padding: 3rem 0;
    }
    
    .category-description {
        margin-bottom: 3rem;
    }
    
    .category-description h2 {
        font-size: 2.2rem;
    }
    
    .category-description p {
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .project-image {
        height: 250px;
    }
    
    .project-title {
        padding: 1.25rem;
    }
    
    .project-title h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .works-hero h1 {
        font-size: 2rem;
    }
    
    .category-description h2 {
        font-size: 1.8rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-title {
        padding: 1rem;
    }
    
    .project-title h3 {
        font-size: 1.1rem;
    }
}