@font-face {
  font-family: "Mont-light";
  src: url("fonts/Mont-ExtraLightDEMO.otf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Mont-bold";
  src: url("fonts/Mont-HeavyDEMO.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-gif: url("https://64.media.tumblr.com/26a33baf87a8982d3f66568cf4c3594c/f5ac8eda25ed851a-8a/s640x960/0d78abe3416b918dfe8b03fd2da8da843502029c.gifv");
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background-image: var(--bg-gif);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: "Mont-light", sans-serif, Arial;
  color: white;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Mont-bold", sans-serif, Arial;
  margin: 0;
  padding: 0;
  text-align: center;
}
p {
  font-family: "Mont-light", sans-serif, Arial;
}

button {
  background-color: #27fa4c;
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 100%;
  font-family: "Mont-bold", sans-serif, Arial;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-top: 2rem;
}
a {
  text-decoration: none;
  color: inherit;
}
button:hover {
  background-color: #1ed760;
}
/* Navigation bar */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #000000c8;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav img {
  height: 50px;
}

.nav h1 {
  font-family: "FontTwo", serif;
  color: #fff;
  margin-left: 1rem;
  flex: 1;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  font-family: "Mont-bold", sans-serif, Arial;
  margin-left: 2rem;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #27fa4c;
}

/* --- Hamburger base styles --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  z-index: 999;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #27fa4c;
  border-radius: 2px;
  transition: all 0.3s ease;
}

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes slideUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
  }



/* Main content */
.content {
  margin: 10%;
  padding: 5%;
  text-align: center;
  margin-top: 5rem;
  background-color: #000000c8;
  border-radius: 10px;
}

.content h1 {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.content p {
  font-size: 2rem;
  max-width: 75%;
  margin: 0 auto;
}

#clock {
  font-family: "Mont-bold", sans-serif, Arial;
  font-size: 1.5rem;
  color: #dddddd;
  margin-left: 90px;
}
/* --- Slideshow background and front image styles --- */
  .slideshow {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .bg-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.6);
    opacity: 0.5;
    z-index: 1;
  }

  .front-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    z-index: 2;
  }

  .front-image.active {
    opacity: 1;
  }
  /* --- Project cards --- */
.slideshow-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  z-index: 3;
  position: relative;
}

.slideshow {
  position: relative;
  width: 100%;
  max-width: 1000px;
  perspective: 1200px;
  background-color: #000000c8;
  padding: 0 20px 0 20px;
}

.project {
  position: absolute;
  width: 60%;
  height: 60%;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 1s ease, opacity 1s ease, z-index 1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  text-align: center;
  padding: 2rem;
}

.project img {
  width: 80%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.project h2 {
  font-family: 'Mont-bold', sans-serif;
  margin: 0.5rem 0;
}

.project p {
  font-size: 1rem;
  opacity: 0.8;
}

/* Card positions */
.front {
  background-color: #07741bdd;
  transform: translate(-50%, -50%) translateZ(0px);
  opacity: 1;
  z-index: 3;
}

.left {
  transform: translate(calc(-50% - 250px), -50%) rotateY(25deg) scale(0.85);
  opacity: 0.5;
  z-index: 2;
}

.right {
  transform: translate(calc(-50% + 250px), -50%) rotateY(-25deg) scale(0.85);
  opacity: 0.5;
  z-index: 2;
}
/* Navigation controls */
.controls {
  display: flex;
  justify-content: center;
  margin-top: -170px;
  position: relative;
  z-index: 4;
}


.controls button {
  background-color: #27fa4c;
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  font-family: 'Mont-bold', sans-serif;
  border-radius: 5px;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.overmij-container {
  display: flex;
  margin: 5% 10% 5% 10%;
  padding: 5%;
  text-align: center;
  background-color: #000000c8;
}

.fotomij {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 60%;
}
.fotomij2 {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.fotomij3 {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 70%;
}
.overmij-text {
  font-family: 'Mont-light', sans-serif, Arial;
  color: white;
  padding: 5%;
  text-align: left;
}
.overmij-text h2 {
  font-family: 'Mont-bold', sans-serif, Arial;
  text-align: center;
  font-size: 2.5rem;
}
.overmij-text p {
  font-size: 1.4rem;
  line-height: 1.6;
}

.controls button:hover {
  background-color: #1ed760;
}
@media (prefers-reduced-motion: reduce) {
  body {
    background-attachment: scroll;
  }
}

/* Skills Section */
.skills-section {
  margin: auto 10% 10% 10%;
  padding: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #000000c8;
}
.skills-section h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: #ffffff;
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}
.skill-card {
  background: #27fa4c;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(30,144,255,0.07);
  padding: 22px 18px;
  min-width: 220px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.3s, transform 0.3s;
  font-size: 1.08rem;
  color: #222;
}
.skill-card i {
  color: #27fa4c;
  font-size: 2em;
  margin-bottom: 10px;
}
.skill-card:hover {
  background: #1ed760;
  transform: translateY(-4px) scale(1.04);
}
.skill-card span {
  text-align: center;
}
.skills-button {
  display: inline-block;
  padding: 12px 28px;
  background: #1e90ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s, box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
}
.skills-button:hover {
  transform: translateY(-3px);
  color: #000;
  box-shadow: 0 4px 16px rgba(30,144,255,0.2);
}
.skill-img {
  width: 186px;
  height: 186px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* Skill Modal */
.skill-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background: rgba(16, 142, 4, 0.15);
}
.skill-modal-content {
  background: #000000;
  margin: 8% auto;
  padding: 32px 24px;
  border-radius: 16px;
  max-width: 350px;
  box-shadow: 0 8px 32px rgba(30,144,255,0.18);
  text-align: center;
  position: relative;
  animation: fade 0.5s;
}
.skill-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2rem;
  color: #27fa4c;
  cursor: pointer;
  font-weight: bold;
}
.skill-modal-content h2 {
  margin: 18px 0 10px 0;
  color: #27fa4c;
}
.skill-modal-content p {
  margin-bottom: 18px;
  color: #ffffff;
}
.skill-modal-content #modalSkillStats {
  font-size: 1rem;
  color: #ffffff;
  margin-top: 10px;
}

@media (max-width: 700px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav h1 {
    flex: unset;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: #000000e0;
    display: none;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a {
    margin: 1rem 0;
    font-size: 1.2rem;
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .skills-grid {
    flex-direction: column;
    align-items: center;
  }
  .skill-card {
    min-width: 35vw;
    max-width: 45vw;
  }
  .skill-img {
    width: 93px;
    height: 93px;
  }

  .fotomij {
    width: 0px;
    height: 0px;
  }
  .fotomij2 {
    width: 0px;
    height: 0px
}
 .fotomij3 {
    width: 0px;
    height: 0px
}

.content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.content p {
  font-size: 1rem;
  max-width: 75%;
  margin: 0 auto;
}

}