@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #111827;
    color: #9CA3AF;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.portfolio-container {
    background-color: #1F2937;
    border: 1px solid #374151;
    box-shadow: none;
    max-width: 900px;
    width: 100%;
    padding: 40px 50px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    .portfolio-container.visible {
        opacity: 1;
        transform: translateY(0);
    }

.intro-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 400;
    color: #F9FAFB;
}

.subtitle {
    font-size: 0.9rem;
    color: #9CA3AF;
}

.mail-link {
    font-size: 0.9rem;
    color: #9CA3AF;
    text-decoration: none;
}

    .mail-link:hover {
        text-decoration: underline;
    }

.social-links a {
    color: #9CA3AF;
    font-size: 1.5rem;
    margin-left: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .social-links a:hover {
        color: #3B82F6;
    }

#projects h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F9FAFB;
    margin-bottom: 5px;
}

.project-item {
    display: flex;
    gap: 30px;
    padding: 25px 0;
    transition: opacity 0.3s ease-in-out, max-height 0.4s ease-in-out, margin 0.4s;
}

.project-header {
    flex-basis: 250px;
    flex-shrink: 0;
    border-right: 1px solid #374151;
}

    .project-header h3 {
        font-size: 1rem;
        font-weight: 500;
        color: #E5E7EB;
    }

.project-links a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

    .project-links a:hover {
        color: #3B82F6;
    }

.project-links i {
    margin-right: 6px;
}

.project-description {
    flex: 1;
    color: #9CA3AF;
    font-size: 0.9rem;
}

.filter-bar {
    margin-bottom: 5px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 15px;
    border: 1px solid #4B5567;
    background-color: #374151;
    color: #E5E7EB;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

    .filter-btn:hover {
        background-color: #4B5567;
    }

    .filter-btn.active {
        background-color: #3B82F6;
        color: #ffffff;
        border-color: #3B82F6;
    }

#load-more-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-top: 30px;
    background-color: transparent;
    color: #9CA3AF;
    border: 1px solid #4B5567;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.9rem;
}

    #load-more-btn:hover {
        background-color: #374151;
        color: #E5E7EB;
    }

.project-item.hidden {
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    border-width: 0;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .portfolio-container {
        padding: 30px;
    }

    .intro-section {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 15px;
    }

    .social-links {
        align-self: flex-start;
    }

        .social-links a {
            margin-left: 0;
            margin-right: 20px;
        }

    .project-item {
        flex-direction: column;
        gap: 15px;
    }

    .project-header {
        flex-basis: auto;
        border-right: none;
        padding-bottom: 15px;
        border-bottom: 1px solid #374151;
    }
}
