:root {
    --primary: #2A2F4F;
    --secondary: #917FB3;
    --accent: #E5BEEC;
    --background: #FDE2F3;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    background: linear-gradient(45deg, #1A1A1A, #2A2F4F);
    color: white;
    min-width: 320px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.ui {
    background: rgba(41, 41, 41, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    min-height: 70px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-family: 'Comfortaa', cursive;
    font-size: 0.9rem;
    white-space: nowrap;
}

.link:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(145, 127, 179, 0.4);
}

.port {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 6rem auto 2rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 95%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.port:hover {
    transform: translateY(-5px);
}

.MaxLogo img {
    width: 100%;
    max-width: 230px;
    height: auto;
    aspect-ratio: 3/4;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.MaxHobbies {
    flex: 1;
}

.about {
    font-size: 1rem;
    line-height: 1.6;
    color: white;
    margin: 0;
    text-align: center;
}

footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 4rem;
    background: rgba(41, 41, 41, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    font-family: 'Comfortaa', cursive;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation: fadeIn 0.6s ease-out forwards;
}

@media (min-width: 768px) {
    .container {
        padding: 2rem;
    }

    .ui {
        height: 70px;
        flex-wrap: nowrap;
        padding: 0 2rem;
    }

    .port {
        flex-direction: row;
        width: 80%;
        padding: 2rem;
    }

    .about {
        font-size: 1.2rem;
        text-align: left;
    }

    .link {
        font-size: 1rem;
    }
}

.iop {
    transition: 0.7s;
    text-decoration: none;
    color: var(--secondary);
    padding: 4px;
    transition: 0.7s;
}

.iop:hover {
    transition: 0.7s;
    color: red;
}