/* Reset CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins%3Awght%40100%3B200%3B300%3B400%3B500%3B600&display=swap%27%29%3B');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'Poppins', sans-serif;
    text-decoration:none;
    scroll-behavior: smooth;
}


body{
    width: 100%;
    height: auto;
    background-color: black;
    overflow-x: hidden;
    background-image: url('background-light.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

nav{
    width: 100%;
    height: 10vh;
    background: linear-gradient(to bottom, rgba(220, 53, 69, 0.5), rgba(220, 53, 69, 0));
}

.nav-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo{
    color: black;
    font-size: 2rem;
    font-weight: bold;
    text-shadow:0 4px 8px #333333;
}

.logo span{
    color: red;
    text-shadow:0 4px 8px #ff5757;
}

.blinking-cursor {
    font-size: 2em;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.hamburg,
.cancel{
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: black;
    opacity: 0;
    pointer-events: none;
    font-size: clamp(2.5rem, 0.5rem + 5vw, 3rem);
}

.nav-container .links{
    display: flex;
}

.nav-container .links a{
    position: relative;
    font-size: 1.2rem;
    color: black;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 550;
    transition: 0.3s linear;
}

.nav-container .links a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: red;
    transition: 0.2s linear;
}

.nav-container .links a:hover::before{
    width: 100%;
}

.nav-container .links a:hover{
    color: rgb(255, 0, 0);
}

.dropdown{
    z-index: 100;
    position: absolute;
    top: 0;
    transform: translateY(-500px);
    width: 100%;
    height: auto;
    backdrop-filter: blur(4px) brightness(40%);
    box-shadow: 0 0 20px black;
    transition: 0.2s linear;
}

.dropdown .links a{
    display: flex;
    color: white;
    text-decoration: none;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    transition: 0.2s linear;
}

.dropdown .links a:hover{
    background-color: rgb(255, 0, 0);
}

main {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    flex-wrap: wrap;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    margin: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    background-image: rgba(255, 255, 255, 0.8); /* Farbverlauf UND Hintergrundbild */
    background-size: cover; /* Hintergrundbild skalieren */

}

.card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 15px; /* Abgerundete Ecken für das Bild */
}

footer {
    color: rgba(0, 0, 0, 0,78);
    backdrop-filter: blur(4px);
    color: #000000; /* Weiß für Text im Footer */
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Für Tablets und größere Handys */
@media (max-width: 1024px) {
    .nav-container {
        justify-content: space-between;
        padding: 0 20px;
    }
    
    .main-container .image {
        width: 400px;
        height: 60vh;
    }

    .main-container .content {
        width: 50%;
        padding-left: 20px;
    }

    .about .about-details {
        flex-direction: column;
        align-items: center;
    }

    .about .about-details .left, .about-details .right {
        width: 100%;
    }

    .skills-details .text, .skills-details .boxes {
        width: 100%;
        margin-bottom: 20px;
    }

    .services .boxes .box {
        width: calc(100% / 2 - 10px);
    }
}

/* Für Tablets und größere Handys, einschließlich Hamburger-Menü */
@media (max-width: 1000px) {
    /* Hamburger-Menü anzeigen */
    .about .about-details {
        justify-content: center;
        flex-direction: column;
    }
    
    .about .about-details .left{
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .about .about-details .right{
        width: 90%;
        margin: 40px 0;
    }

    .about-details .right{
        width: 90%;
        margin: 40px 0;
    }
}

/* Für kleinere Bildschirme (Handys) */
@media (max-width: 900px) {
    .about .left img{
        height: 350px;
        width: 350px;
    }
}

@media (max-width: 968px) {
    nav .logo{
        position: absolute;
        top: 16px;
        left: 15px;
        font-size: 1.5rem;
    }

    section .main-container{
        padding-left: 0px;
        display: flex;
        flex-direction: column;
    }

    .nav-container .links{
        display: none;
    }

    .hamburg,
    .cancel{
        opacity: 1;
        pointer-events: visible;
    }

    .main-container .content{
        margin-top: 20px;
        width: 80%;
    }

    .social-links i{
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }

    .main-container .image{
        z-index: -1;
        width: 50%;
        height: 60%;
    }

    .skills .skills-details{
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    .skills-details .text{
        width: 100%;
        margin-bottom: 50px;
    }
    .skills-details .boxes{
        justify-content: center;
        align-items: center;
    }
    .contact .text{
        width: 100%;
    }
}

@media (max-width: 500px) {
    main-container .image{
        width: 50%;
        height: 60%;
        margin-bottom: 0px;
    }

    .margin-container .content{
        width: 80%;
    }

    .main-container button{
        margin-top: 15px;
    }

    .skills-details .boxes .per{
        font-size: 50px;
        color: blueviolet;
    }
}
