html {
  scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
}
.fade-in {
  opacity: 0;
  transform: translateY(30px); /* start iets naar beneden */
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0); /* schuift  omhoog */
}


@font-face {
  font-family: 'Momotrust';
  src: url(../fonts/MomoTrustDisplay-Regular.ttf) format('truetype');
}

body 
{
background: linear-gradient(to bottom, darkcyan, #1b4d4d);
  font-family: 'Momotrust';
  margin: 0;
  scroll-behavior: smooth; 
}
section {
  padding: 60px 20px;
  min-height: 100vh; 
}

#home {
    position: sticky;
    top: 0;             
    z-index: 1000;
}
nav {
    background-color: rgb(61, 182, 162);
    box-shadow: 3px 3px 5px rgb(0, 0, 0,1); 
}

nav ul {
 width: 100%;
 list-style: none;
 display: flex;
 justify-content: flex-end;
 align-items: center;
}

nav li{
    height: 50px;

}

nav a {
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: black;
}

nav a:hover {
    background-color: #08856c;
}

nav li:first-child {
    margin-right: auto;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: rgba(201, 193, 193, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgb(0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transform: translateX(100%); /* buiten beeld */
    transition: transform 0.4s ease;

}

.sidebar li {
    width: 100%;
}

.sidebar a{
    width: 100%;
}

.menu-knop{
    display: none;
}

.sidebar.show {
    display: flex;          /* zichtbaar */
    transform: translateX(0); /* schuift naar binnen */
}



/*Hier Komt stukje CSS voor de banner */
.banner {
  position: relative;
  width: 100%;
  height: 53vh; 
  overflow: hidden;
  margin: 0px;
  padding: 0px;
  border: 5px solid rgb(0, 0, 0); 
  box-sizing: border-box;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0px;
  padding: 0px;
}

.banner-text {
  position: absolute;
  top: 63%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgb(255, 255, 255);
  background-color: rgba(0, 0, 0, 0.4); /* Dit stukje heeft soort van shaduw */
  padding: 1rem;
  border-radius: 8px;
}

/*Hier komt stukje voor text centeren */

.banner-bottom-text {
  position: absolute;
  top: 76%;  /* afstand vanaf onderkant */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 1.2rem;  /* schaalbaar */
  margin: 0;
  padding: 0;
}


/* Code voor de knop in de home page */

.button {
  background-color: rgb(60, 104, 60);
  border: none;
  color: rgb(255, 255, 255);
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  border-radius: 12px;
  margin: 8%;
}
  .button:hover {
  background-color: rgb(23, 50, 23); /* andere kleur bij hover */
  color: black; /* tekstkleur veranderen */
}

 /*Code voor over mij pagina */

.about-left {
    flex: 1;
    margin: 2%;
}

.about-left h2 {
    font-size: 32px;
    margin-bottom: 20px;
    padding: 1%;
}

.about-left p {
    line-height: 1.7;
    font-size: 17px;
}

.about-right {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    align-content: start;
    margin-top: 8%;
}

.info-box h4 {
    font-size: 14px;
    color: #efeeee;
    margin-bottom: 5px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.info-box p {
    font-size: 17px;
    margin: 0;
}

.about-section {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: auto;
}

/*Code voor skills pagina */

.skills {
  max-width: 700px;        /* Maximale breedte van de tekst */
  margin: 0 auto;          /* Horizontaal centreren */ 
  padding: 20px;           /* Optioneel: ruimte rondom de tekst */
  text-align: center;
}
.skills-section {
    text-align: center;
    padding: 60px 20px;
}

.skills-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.skills-section p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #000000;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: auto;
}

.skill-item img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    padding: 15px;
    object-fit: contain;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.skill-item img:hover {
    transform: translateY(-6px);
}

.skill-item span {
    display: block;
    margin-top: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

/* */

.linkedin-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0077b5; /* LinkedIn blauw */
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border-radius: 50px;
  width: 100px;
}

.linkedin-btn:hover {
  background-color: #005582; /* donkerder blauw bij hover */
  transform: scale(1.05); /* subtiele vergroting */
}

.linkedin-btn span {
  vertical-align: middle;
}

/* Portfolio Section */
.portfolio-section {
    padding: 60px 20px;
    text-align: center;
}

.portfolio-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.6;
    color: #000000;
}

/* Grid */
.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Cards */
.project-card {
    background: rgb(33, 113, 131);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #000000;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Images */
.project-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Info list */
.project-info {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.project-info li {
    margin-bottom: 6px;
    font-size: 15px;
}

/* Button */
.project-btn {
    display: inline-block;
    padding: 10px 18px;
    background: rgb(60, 104, 60);
    color: rgb(207, 203, 203);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.project-btn:hover {
    background: #005582;
}
 /*CONTANT PAGINA */
 .contact-section {
    padding: 40px 20px;
    text-align: center;
}

.contact-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.contact-intro {
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: auto;
}

.contact-info {
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

.contact-info h3 {
    margin-bottom: 10px;
}

.Center-Footer {
    text-align: center;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    color: rgb(0, 0, 0);
    font-size: 16px;
    background-color: rgba(44, 107, 111, 0.3);
    margin-top: 40px;
    border-top: 1px solid rgba(56, 171, 203, 0.2);
}

.footer p {
    margin: 0;
}


/* TABLETS */

@media(max-width: 800px)
{
    .hideOnmobile
    {
        display: none;
    }
    .menu-knop
    {
        display: block;
    }
    .banner
    {
        height: 53vh; /* iets groter op mobiel */
    }

    .banner-bottom-text 
    {
        font-size: 1rem;  /* tekst schaalt mee */
        bottom: 10px;   
    } 
.about-section
    {
        flex-direction: column;
        gap: 40px;
    }

    .about-right 
    {
        grid-template-columns: 1fr;
    }

    .download-btn
    {
        grid-column: span 1;
    }

    .fade-in {
  opacity: 0;
  transform: translateY(30px); /* start iets naar beneden */
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0); /* schuift omhoog */
}
    .project-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
        .portfolio-intro {
        font-size: 17px;
        margin-bottom: 30px;
    }

    .project-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }

    .project-card {
        padding: 18px;
    }

    .project-img {
        height: 150px;
    }

    .contact-container {
        flex-direction: row;
        gap: 40px;
    }

    .contact-info,
    .contact-form {
        flex: 1;
    }
        .footer {
        padding: 25px;
        font-size: 17px;
    }

}

/*TELEFOON */
@media(max-width: 400px)
{
    .fade-in {
  opacity: 0;
  transform: translateY(30px); /* start iets naar beneden */
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0); /* schuift omhoog */}
   .sidebar {
        width: 100%;}
    .banner 
    {
        height: 53vh; /* iets groter op mobiel */
    }
    .about-section
    {
        flex-direction: column;
        gap: 40px;
    }

  
    .banner-bottom-text 
    {
        font-size: 1rem;  /* tekst schaalt mee */
        bottom: 10px;
        
    }

    .about-right 
    {
        grid-template-columns: 1fr;
    }

    .download-btn
    {
        grid-column: span 1;
    }

        .portfolio-section {
        padding: 40px 15px;
    }

    .project-card {
        padding: 15px;
    }

    .project-card h3 {
        font-size: 20px;
    }
   .portfolio-section {
        padding: 40px 10px;
    }

    .portfolio-intro {
        font-size: 15px;
        line-height: 1.5;
    }

    .project-container {
        grid-template-columns: 1fr; /* altijd 1 kolom */
        gap: 15px;
    }

    .project-card {
        padding: 15px;
        border-radius: 8px;
    }

    .project-card h3 {
        font-size: 18px;
    }

    .project-img {
        height: 130px;
    }

    .project-btn {
        width: 100%;
        text-align: center;
        padding: 4px;
    }

    .contact-section {
        padding: 30px 10px;
    }

    .contact-section h2 {
        font-size: 26px;
    }

    .contact-intro {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .contact-container {
        gap: 20px;
    }

    .contact-info {
        padding: 15px;
        border-radius: 8px;
    }

    .contact-info h3{
        font-size: 18px;
    }
        .footer {
        padding: 15px;
        font-size: 14px;
    }

}