body {
    font-family: 'Arial';
    background: linear-gradient(#34495E, #1a2836) fixed;
    margin: 0;
    padding-top: 3.4vh;
}

.container {
    max-width: 1200px;
    margin: auto;
    background: #ECF0F1;
    padding: 4vh 2vw 2vw;
    border-radius: 15px;
    box-shadow: 0 0 20px #000;
    animation: containerEntrance 1s ease-out;
}

@keyframes containerEntrance {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.header {
    margin-bottom: 30px;
    text-align: left;
    animation: headerFade 1s ease-in;
}

.header h1 {
    font-size: 2rem;
    color: #34495E;
    margin: 20px 0;
    text-align: center;
}

@keyframes headerFade {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: none; }
}

.nav-button {
    display: inline-block;
    border: 2px solid #bdc3c7;
    color: #34495E;
    font-weight: bold;
    border-radius: 10px;
    padding: 2vh 3vw;
    text-decoration: none;
    white-space: nowrap;
    will-change: transform;
    background-color: white;
    background-image: linear-gradient(#34495E, #34495E);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: transform 0.5s, background-size 0.5s, background-color 1s, color 0.5s, box-shadow 0.5s, border-color 0.5s;
}

.nav-button:hover {
    transform: scale(1.03);
    background-size: 100% 100%;
    background-color: #34495E;
    color: white;
    border-color: #34495E;
    box-shadow: 0 0 0 3px rgba(52, 73, 94, 0.2);
    text-shadow: 0 0 1px rgba(52, 73, 94, 0.1);
}

.category-section {
    margin: 2rem 0 0 0;
    background-color: white;
    padding: 2rem;
    border-radius: 25px;
}

.category-title {
    color: #34495E;
    font-size: 1.8rem;
    margin: 0 0 3vh 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #34495E;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    position: relative;
    will-change: transform;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    background-color: #34495E;
}

.project-card img {
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 73, 94, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

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

.footer {
    font-weight: bold;
    width: 100%;
    padding: 1vh 0;
    margin-top: 3.4vh;
    text-align: center;
    color: #ECF0F1;
    background: #34495E;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .category-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .container {
        padding: 2vh;
        margin-left: 3.4vh;
        margin-right: 3.4vh;
    }
}