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;
    margin: 20px 0;
    color: #34495E;
    text-align: center;
}

.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-color: #34495E;
    background-size: 100% 100%;
    color: white;
    border-color: #34495E;
    box-shadow: 0 0 0 3px rgba(52, 73, 94, 0.2);
}

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

.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);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    background: #34495E;
    border-radius: 15px;
    margin: 2rem 0 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-card {
    position: relative;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.skill-card:hover .progress-bar::after {
    opacity: 1;
}

.skill-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.skill-card:hover img {
    transform: scale(1.1);
}

.skill-progress {
    height: 3vh;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-top: 1.5rem;
    font-size: small;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #34495E 0%, #2C3E50 50%, #34495E 100%);
    background-size: 200% 100%;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover .progress-bar {
    width: var(--target-width);
    background-position: 100% 0;
}

.progress-bar::after {
    content: attr(data-progress);
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-section {
    text-align: center;
    margin: 3rem 0 2rem;
}

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

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