@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;1,300&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
    
}

html {
    font-size: 62.5%;
}

body {

    color: #E4E7EB;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 4rem;
    padding: 12rem 2rem;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    color: #000000;
    font-size: 4rem;
    max-width: 25ch;
    font-weight: 600;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.hero span {
    color: #9b8545;
}

.hero img {
    height: 26rem;
    width: 26rem;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0px 0px 40px -10px rgba(255, 193, 6, 0.5);
    transition: transform 0.5s ease;
}

.hero img:hover {
    transform: scale(1.05);
    color: rgb(214, 242, 103);
    

}

.hero a {
    padding: 1rem 2.5rem;
    font-size: 1.6rem;
    transition: 0.3s ease;
    text-decoration: none;
    border-radius: 0.75rem;
    color: rgb(255, 255, 255);
    margin-right: 1.5rem;
    background-color: #9b8545;
    display: inline-block;
}

.hero a:hover {
    background-color: #8a783f;
    color: rgb(239, 241, 194);

}

/* About Section */
.about {
    padding: 10rem 2rem;
    background-color: rgb(255, 250, 250);
    text-align: center;
}

.about h2 {
    color: #000000;
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about p {
    color: #000000;
    font-size: 1.8rem;
    max-width: 70ch;
    margin: 0 auto;
    line-height: 1.8;
}

.button{
    padding: 0.75rem 2rem;
    transition: 0.3s;
    text-decoration: none;
    border-radius: 0.75rem;
    margin-right: 1rem;
    width: fit-content;
    background-color: #9b8545;
    
    
}

a{
    text-decoration: none;
    color: inherit; 
    color: white;
 
}


.Ptext{
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Projecten Section */
.projecten {
    padding: 10rem 2rem;
    background-color: #A59D84;
    text-align: center;
}

.projecten h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
}

.projecten-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.projecten-list article {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: #000000;
    background-color: #ffffff;
    border: 2px solid #9b8545;
    border-radius: 0.75rem;
    padding: 3rem;
    width: 36rem;
    transition: transform 0.3s ease;
}

.projecten-list article:hover {
    transform: translateY(-0.75rem);
}

.projecten-list h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.projecten-list p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.projecten-list a {
    font-size: 1.6rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.projecten-list a:hover {
    color: rgb(239, 241, 194);
}

/* Skills Section */
.skills {
    padding: 10rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

.skills h2 {
    color: #000000;
    font-size: 3rem;
    margin-bottom: 3rem;
}

.skills p {
    color: #000000;
    font-size: 1.6rem;
    max-width: 70ch;
    margin: 0 auto 4rem auto;
    line-height: 1.8;
}

.skills .progressbar {
    width: 100%;
    background-color: #C1BAA1;
    height: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 3rem;
}

.skills .progress {
    background-color: #A59D84;
    height: 100%;
    border-radius: 1rem;
    transition: width 1s ease;
}

.skills .progress:hover {
    width: calc(100% + 1rem);
}

.skills .skill-label {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 500;
}



.top{
    width: 5rem;
    height: 5rem;
    background: #998643;
    border: none;
    font-size: 125%;
    font-family: 'Open Sans', sans-serif;
    border-radius: 0.3125rem;
    color: white;
    position: fixed;
    bottom: 4.5rem;
    right: 4.5rem;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;

}

.Back{
    width: 5rem;
    height: 5rem;
    background: #998643;
    border: none;
    font-size: 125%;
    font-family: 'Open Sans', sans-serif;
    border-radius: 0.3125rem;
    color: white;
    position: fixed;
    bottom: 4.5rem;
    right: 4.5rem;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}


.foto{
    width: 50rem;
    height: 30rem;
}



/* Footer */
footer {
    background-color: #282727;
    display: flex;
    justify-content: center;
    padding: 3rem;
    color: white;
    font-size: 1.4rem;
}




.project{
    display: flex;
    flex-direction: row;
    gap: 4rem;
}

.projectknop{
    display: flex;
    flex-direction: row;
    gap: 1rem;
}





@media only screen and (max-width: 1200px) {
    .hero {
        flex-direction: column;
        padding: 8rem 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero img {
        height: 22rem;
        width: 22rem;
    }

    .about p, .skills p {
        font-size: 1.6rem;
    }
}

@media only screen and (max-width: 768px) {
    .projecten-list article {
        width: 100%;
    }
    
    .about p, .skills p {
        font-size: 1.4rem;
    }
}

@media only screen and (max-width: 935px) {
    .top {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    .back {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}


@media only screen and (max-width: 935px) {
    img {
        width: 1rem;
        height: 1rem;
    }
 
}


@media only screen and (max-width: 935px) {
    .hero a {
        padding: 1rem 2.5rem;
        font-size: 1.6rem;
        transition: 0.3s ease;
        text-decoration: none;
        border-radius: 0.75rem;
        background-color: #9b8545;
        display: block; 
        margin-right: 0; 
        margin-bottom: 1rem; 

    
    }

    @media only screen and (max-width: 935px) {
        img.foto {
            width: 100%;
            height: auto;
            max-width: 50rem;
        }
    
    
    }
}

 /* Party effect CSS */
 @keyframes confetti-fall {
    0% {
      top: -10%;
      transform: rotate(0deg);
    }
    100% {
      top: 100%;
      transform: rotate(360deg);
    }
  }

  @keyframes rainbow-text-animation {
    0% { color: #ff0000; }
    14% { color: #ff7f00; }
    28% { color: #ffff00; }
    42% { color: #00ff00; }
    57% { color: #0000ff; }
    71% { color: #4b0082; }
    85% { color: #9400d3; }
    100% { color: #ff0000; }
  }

  .confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    border-radius: 50%;
    pointer-events: none;
    animation: confetti-fall 5s linear forwards;
    z-index: 9999;
  }

  .rainbow-text {
    animation: rainbow-text-animation 2s linear infinite;
  }

  body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

.container-2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #9b8545;
    color: white;
    text-align: center;
    padding: 30px 0;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.content-2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0;
}

.text-section-2, .image-section-2 {
    flex: 1 1 100%;
    margin-bottom: 30px;
}

@media (min-width: 769px) {
    .text-section-2, .image-section-2 {
        flex: 1 1 48%;
        margin-bottom: 0;
    }

    .text-section-2 {
        padding-right: 30px;
    }
}

.image-section-2 {
    text-align: center;
}

.image-section-2 img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.buttons-2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.btn-2 {
    padding: 14px 28px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.btn-primary-2 {
    background-color: #606060;
}

.btn-secondary-2 {
    background-color: #78683b;
}

.btn-2:hover {
    opacity: 0.9;
}

.Back-2 {
    display: block;
    text-align: center;
    margin: 20px 0;
    font-size: 1.1rem;
    text-decoration: none;
    color: #333;
}

.Back-2:hover {
    text-decoration: underline;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}