﻿/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*font-family: Arial, sans-serif;*/
    /*font-family: 'Roboto', sans-serif;*/
    font-family: 'Merriweather', sans-serif;
    /*font-family: 'Montserrat', sans-serif;*/
    /*font-size: 22px;*/
    /*background: #100022*/
    background: #000b15;
    scroll-behavior: smooth;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #220046;
    color: #fff;
}

    nav h1 {
        background: unset;
    }

    nav ul {
        list-style: none;
        display: flex;
        background: none;
    }

        nav ul li {
            margin-left: 1.5rem;
            background: none;
        }

            nav ul li a {
                color: #fff;
                text-decoration: none;
                background: none;
            }

.navbarlink {
    transition: background 0.3s ease;
    padding:5px;
    border-radius: 5px;
}

.navbarlink:hover {
    background: rgba(127,0,255,0.5);
    /*border:solid;*/
}

/* Hero Section */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90vh;
    /*background: #35006f;*/ /*linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);*/
    color: #fff;
    text-align: center;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content-left {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: end;
    padding: 40px;
    /*border:solid;*/
}

.hero-content-right {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 40px;
}

.imgMe {
    width: 300px;
    background: none;
    z-index: 10;
}

/*  .imgMe:hover {
        transform: scale(1.1);
    }*/

.imgMeBG {
    width: 300px;
    position: absolute;
    top: 50px;
    left: 25px;
    opacity: 0.5;
    z-index: 1;
}



.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta {
    padding: 0.8rem 1.5rem;
    background: #5b0085;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    width: 150px;
    transition: background 0.3s ease;
}

    .cta:hover {
        background: rgba(127,0,255,0.5);
    }

/* About Section */
#about {
    width: 100%;
    padding: 4rem 2rem;
    /*background: #f4f4f4;*/
    text-align: center;
    color: #fff;
}

.skills ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

    .skills ul li {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 150px;
        height: 160px;
        background: #5b0085;
        color: #fff;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 12px;
    }

        .skills ul li:hover {
            animation: gelatine 0.5s;
        }

.skillsicon {
    width: 60px;
    background: none;
    margin: 10px;
}
/* Portfolio Section */
#portfolio {
    padding: 4rem 2rem;
    text-align: center;
    background: none;
    color: white;
}

.projects {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 220px;
    margin: 10px;
    background: none;
    padding: 1rem;
    box-shadow: 0px 4px 18px 0 rgba(0,0,0,1);
    border: solid;
    border-width: 1px;
    border-color: purple;
    border-radius: 20px;
    transition: 0.3s;
}

    .project-card:hover {
        /*box-shadow: 0 8px 36px 0 rgba(0,0,0,1);*/
        background: rgba(127,0,255,0.5);
    }

    .project-card img {
        width: 100px;
        border-radius: 8px;
        background: none;
    }

.project-card-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: none;
}

.project-container {
    display: flex;
    flex-direction: column;
    justify-content: end;
    height: 100%;
    background: none;
}

    .project-container h4 {
        margin: 1rem 0 0.5rem;
        background: none;
    }

    .project-container p {
        background: none;
    }

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #2575fc;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

/* Contact Section */
#contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    width: 100%;
    background: none;
    color: #fff;
    text-align: center;
}

#upContact {
    width: 100%;
}

.contact-me {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px;
}

.tablecontact-me {
    width: 250px;
}

td {
    vertical-align: top;
}

.textboxes {
    width: 250px;
    padding: 5px;
    margin: 5px;
    color: white;
}

.messages {
    height: 100px;
}

.requiredfields {
    color: mediumvioletred;
    font-size: 10px;
    /*border: solid;*/
}

.buttons {
    padding: 0.8rem 2rem;
    border: none;
    background: #5b0085;
    color: #fff;
    border-radius: 5px;
    transition: background 0.3s ease;
}

    .buttons:hover {
        background: rgba(127,0,255,0.5);
    }

.captcha {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    /*border:solid;*/
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0.5rem;
}


.gelatine {
    animation: gelatine 0.5s;
}

@keyframes gelatine {
    from, to {
        transform: scale(1, 1);
    }

    25% {
        transform: scale(0.9, 1.1);
    }

    50% {
        transform: scale(1.1, 0.9);
    }

    75% {
        transform: scale(0.95, 1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce-in {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}


/*========================================================================================================================================================*/
/*PHONE AND PORTRAIT*/
/*========================================================================================================================================================*/
@media only screen and (max-width: 480px) {
    body {
        width: 100%; /* Take full width of the viewport */
        max-width: 480px;
        margin: 0 auto; /* Center content on larger screens */
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mainform {
        width: 100%;
    }

    .pagecontainer {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        overflow: hidden;
    }

    .maincontainer {
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        width: 100%;
    }

    nav {
        width: 100%;
        top: 0;
        padding: 1rem;
    }

        nav h1 {
            font-size: 18px;
        }

        nav ul li {
            font-size: 14px;
        }

    #home {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-content-left {
        align-items: center;
    }

    .hero-content-right {
        justify-content: center;
        align-items: end;
    }

    .imgMeBG {
        width: 300px;
        position: absolute;
        top: 50px;
        left: 35px;
        opacity: 0.5;
        z-index: 1;
    }

    #about p {
        font-size: 14px;
    }
}
