@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

main {
    padding: 15px;
    margin-bottom: 20px;
}

/* 🌟 CONTAINER PRINCIPAL - Ajusté avec le header 🌟 */
.ueb-container {
    width: 75%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding-top: calc(var(--header-height) + 3rem);
    margin: 0 auto;
}

/* 🌟 TEXTES 🌟 */
.text-content {
    width: 55%;
    color: var(--black-color);
    text-align: left;
}

.text-content h1 {
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    /* Taille réduite */
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.text-content h1 span {
    color: rgb(109, 67, 0);
    text-shadow: 0 0 10px rgba(109, 67, 0, 0.7);
}

/* 🌟 ANIMATION DU TEXTE 🌟 */
.animated-text {
    font-weight: 600;
    font-size: clamp(1.5rem, 2vw, 2rem);
    /* Taille réduite */
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.animated-text span {
    color: rgb(109, 67, 0);
    font-size: 1.8rem;
    text-shadow: 0 0 6px rgba(109, 67, 0, 0.8);
    position: relative;
    margin-left: 8px;
}

.animated-text span::before {
    content: "Developer";
    animation: changing-text 10s infinite;
}

@keyframes changing-text {
    0%,
    33% {
        content: "Wirtschaftsinformatiker";
    }

    34%,
    66% {
        content: "Webentwickler";
    }

    67%,
    100% {
        content: "Selbständig";
    }
}

.text-content p {
    font-size: 1.3rem;
    margin: 15px 0;
    color: var(--text-color);
    line-height: 1.7;
}

/* 🌟 ICONES SOCIALES 🌟 */
.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 15px;
}

.social-icons i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border: 2px solid rgb(109, 67, 0);
    border-radius: 50%;
    color: rgb(109, 67, 0);
    font-size: 1.4rem;
    transition: 0.3s;
}

.social-icons i:hover {
    transform: scale(1.15);
    color: white;
    background-color: rgb(109, 67, 0);
    box-shadow: 0 0 14px rgba(109, 67, 0, 0.8);
}

.social-icons a {
    text-decoration: none;
}

/* 🌟 IMAGE 🌟 */
.profile-pic {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    width: 500px;
    height: 300px;
    border-radius: 5%;
    /* border: 1px solid rgba(109, 67, 0, 0.6); */
    border: 1px solid white;
    overflow: hidden;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease-in-out;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.image-wrapper:hover img {
    transform: scale(1.08);
}

/* 🛠️ RESPONSIVE DESIGN */

/* 📱 iPads et petits écrans (max-width: 884px) */
/* 📱 Ultra kleine Bildschirme (max-width: 480px) */
@media (max-width: 480px) {
    .ueb-container {
        width: 95%;
        padding-top: calc(var(--header-height) + 2rem);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* 🖼 Bild VOR den Text setzen */
    .profile-pic {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        order: -1;
        /* Bringt das Bild VOR den Text */
        margin-bottom: 10px;
        /* Weniger Abstand zum Text */
    }
    .animated-text span {
        margin-left: 1px;
    }
    

    .image-wrapper {
        width: 450px;
        /* Größere Bildbreite */
        height: 250px;
        border-radius: 10px;
        box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
    }

    /* 🎯 Anpassung des Textes */
    .text-content {
        width: 100%;
        /* Nutzt den verfügbaren Platz */
    }

    /* 🏆 Reduzierte Titelgröße */
    .text-content h1 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }

    /* 🌟 Anpassung des Untertitels */
    .animated-text {
        font-size: 1.1rem;
        display: block;
    }

    .animated-text span {
        font-size: 1.1rem;
        /* display: block; */
        margin-top: 3px;
    }

    /* 📜 Reduzierter Außenabstand des Textblocks */
    .text-content p {
        font-size: 1.1rem;
        line-height: 1.5;
        margin: 5px 0;
    }

    /* 🎯 Zentrierung der sozialen Icons */
    .social-icons {
        justify-content: center;
        gap: 8px;
        margin-top: 8px;
    }

    .social-icons i {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.9rem;
    }
}


/* 🌟 ANIMATIONS */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
