:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --banner: #424C55;
}

body {
    font-family: 'Vazir', sans-serif;
    background: #3D3B30;
    color: #333;
    line-height: 1.6;
}

.project-category {
    font-family: 'Vazir', sans-serif;
    text-align: center;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-category h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.project-category img {
    width: 50px; /* or any desired width */
    height: auto; /* keeps the aspect ratio */
}

.geo-electric h2 {background: var(--banner); text-align: center;}
.geo-water h2 {background: var(--banner); text-align: center;}
.geo-tech h2 {background: var(--banner); text-align: center;}
.material h2 {background: var(--banner); text-align: center;}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: #bab0b0;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    /* Existing hover effect */
    transition: transform 0.5s ease, opacity 0.8s ease;
    
    /* Initial hidden state */
    opacity: 0;
    transform: translateY(20px);
}

/* When the card becomes visible, add the active class: */
.project-card.active {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    color: var(--primary-color);
    font-size: larger;
    margin-bottom: 1rem;
    border-right: 4px solid var(--primary-color);
    padding-right: 1rem;
}

.project-card p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--primary-color);
    color: white;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .project-category {
        margin: 1rem;
        padding: 1rem;
    }
}

@font-face {
    font-family: 'Vazir';
    src: url('../webfonts/Vazir/Vazir.woff2') format('woff2');
}