* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fbf8f4;
    color: #222222;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    padding: 1.2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
}

header {
    margin-bottom: 0;
    text-align: center;
}

header h1,
header .tagline,
header .social-icons {
    opacity: 0;
    animation: popUp 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

header h1 {
    animation-delay: 0.1s;
}

header .tagline {
    animation-delay: 0.25s;
}

header .social-icons {
    animation-delay: 0.4s;
}

@keyframes popUp {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(12px);
    }

    70% {
        opacity: 1;
        transform: scale(1.04) translateY(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    header h1,
    header .tagline,
    header .social-icons {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

footer {
    text-align: center;
    margin-top: auto;
    padding: 1.2rem 0;
    color: #666;
    font-size: 0.95rem;
}

h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-align: center;
}

.tagline {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

.social-icons {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
    justify-content: center;
}

.social-icon {
    width: 22px;
    height: 22px;
    color: #222222;
    transition: transform 0.2s ease, color 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    color: #666;
    transform: scale(1.1);
}

section {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    border-bottom: 2px solid #222222;
    padding-bottom: 0.3rem;
}

p {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 0.6rem;
}

.skill-category h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.skill-level {
    font-size: 0.75rem;
    font-weight: 400;
    color: #666;
    font-style: italic;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.skill {
    background-color: #222222;
    color: #fbf8f4;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill:hover {
    background-color: #444444;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(34, 34, 34, 0.3);
}

.skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill:hover::before {
    left: 100%;
}

.project {
    margin-bottom: 1.2rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.5);
}

.project h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.contact {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.contact a {
    color: #222222;
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border: 1px solid #222222;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.contact a:hover {
    background-color: #222222;
    color: #fbf8f4;
}

.project-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #222222;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border: 1px solid #222222;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: transparent;
}

.project-link:hover {
    background-color: #222222;
    color: #fbf8f4;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 34, 34, 0.2);
}

.project-link svg {
    width: 16px;
    height: 16px;
}


@media (min-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 0.6rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .contact {
        flex-direction: column;
    }

    .skills-container {
        gap: 1.5rem;
    }

    .skill-category h4 {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .project-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .project-link {
        justify-content: center;
        padding: 0.5rem 1rem;
    }
}
