@import url('common.css');

.profil-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 92vh;
    flex-direction: column;
}

.profil-picture {
    width: 100%;
    max-width: calc(1280px + 2rem);
    padding: 1rem;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    height: 100%;
    color: var(--secondary-color);
    gap: 2rem;
    justify-content: space-between;
}

#profile img {
    width: 300px;
    height: auto;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#profile img:hover {
    transform: scale(1.05);
    border-color: #1a2530;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 20px 0;
}

.custom-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    width: 225px;
    border: none;
    border-radius: 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.custom-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.custom-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.custom-button:hover::before {
    left: 100%;
}

.custom-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.custom-button i {
    font-size: x-large;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.custom-button:hover i {
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .profil-picture {
        flex-direction: column-reverse;
        align-items: center;
        gap: 1.5rem;
        margin-top: 150px;
    }

    #profile img {
        width: 200px;
        max-width: 80%;
    }

    #profile img:hover {
        transform: scale(1.08);
    }

    p {
        padding: 0 1rem;
    }

    .button-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .custom-button {
        max-width: 250px;
        width: auto;
        padding: 0.6rem 1.1rem;
        gap: 0.5rem;
    }
}