/* Algemene layout */
body {
  margin: 0;
  padding: 0;
  /* background-color: var(--background-color); */
  background-color: #FCFAF5;
  font-family: "Amoria", sans-serif;
  overflow-x: hidden;
}

.hidden {
  display: none;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

.logo {
  margin-left: 16px;
  width: 100px;
  height: auto;
}

/* Main */
.main-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 0 16px;
  position: relative;
  box-sizing: border-box;
  text-align: center;
}

.intro-text {
  position: absolute;
  top: 50px;
  left: 40px;
  /* transform: rotate(-6deg); */
  text-align: left;
}

.intro-text h1 {
  color: #4B3F72;
  /* iets dieper pastelpaars */
  /* color: var(--body-text); */
  font-size: 28px;
  line-height: 1.4;
  font-family: "Amoria", sans-serif;
  margin: 0;
}

.avatar-container {
  margin: 24px 0 24px 0;
}

.avatar-container img {
  width: 250px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.3s ease;
    border: 4px solid #FFDAA0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);

}

.role-text {
  position: absolute;
  right: 40px;
  bottom: 80px;
  /* transform: rotate(6deg); */
  text-align: right;
}

.role-text h2 {
  color: #4B3F72;
  /* iets dieper pastelpaars */
  /* color: var(--body-text); */
  font-size: 28px;
  font-family: "Amoria", sans-serif;
  margin: 0;
}

.tech-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  background-color: #FFDAA0;
  padding: 10px 0;
  border-top: 1px solid #1F1F1F;
  border-bottom: 1px solid #1F1F1F;
  box-sizing: border-box;
  position: relative;
}

.tech-marquee {
  display: flex;
  width: max-content;
  animation: scroll-left 15s linear infinite;
  white-space: nowrap;
  color: #1F1F1F;
  font-size: 16px;
  font-weight: 500;
  gap: 48px;
}

.tech-marquee span {
  display: inline-block;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}


.homepage-intro {
  font-family: "SpaceGrotesk", sans-serif;
  padding: 40px 24px;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  font-size: clamp(16px, 2.4vw, 20px);
  color: #1F1F1F;
  line-height: 1.7;
}

.homepage-intro p {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.8s ease-out forwards;
  margin-bottom: 20px;
}

.delay-1 {
  animation-delay: 0.3s;
}

.delay-2 {
  animation-delay: 0.9s;
}

.delay-3 {
  animation-delay: 1.5s;
}

.delay-4 {
  animation-delay: 2.1s;
}

.call-to-action {
  font-weight: 500;
  color: #1F1F1F;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  color: #4B3F72;
  font-size: 2rem;
  font-weight: bold;
}

.step {
  background: white;
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.step span {
  font-size: 2rem;
}

.step h4 {
  margin-top: 0.8rem;
  font-size: 1.2rem;
}

.step p {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  color: #1F1F1F;
}

.highlighted-projects {
  padding: 4rem 2rem;
  text-align: center;
}

.projects-preview {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.project-card {
  max-width: 400px;
  text-decoration: none;
  color: inherit;
}

.project-card img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.03);
}

.see-more {
  margin-top: 3rem;
}

.see-more-link {
  font-weight: bold;
  text-decoration: underline;
  color: #333;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.see-more-link:hover {
  color: #000;
}

.flip-card-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.flip-card {
  background-color: transparent;
  width: 150px;
  height: 150px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  padding: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.flip-card-front {
  background-color: #f2f2f2;
}

.flip-card-back {
  background-color: #f3e8ff;
  transform: rotateY(180deg);
  font-size: 1rem;
  color: #3c2f60;
}

.typewriter-section {
  text-align: center;
  margin-top: 4rem;
}

.typewriter-text {
  display: inline-block;
  overflow: hidden;
  border-right: 2px solid #b39ddb;
  /* pastelpaars */
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 1px;
  animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
  font-size: 1.5rem;
  color: #5e548e;
  /* iets dieper pastelpaars */
}

.project-video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes blink {
  50% {
    border-color: transparent
  }
}

.badge-button {
  font-family: "SpaceGrotesk", serif;
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #3e2a6d;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.badge-button:hover {
  background-color: #FFDAA0;
  color: black;
}


/* Responsive layout op desktop */
@media screen and (min-width: 768px) {
  .projects-preview {
    flex-direction: row;
    justify-content: center;
  }

  .project-card {
    max-width: 300px;
  }
}

.site-footer {
  background-color: #FCFAF5;
  color: #4B3F72;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  margin-top: 4rem;
}

.site-footer .footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #4B3F72;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-links a:hover {
  color: #2c244d;
}

.achievements-section {
  padding: 4rem 2rem;
  background-color: #FFDAA0;
  text-align: center;
}

.achievements-section .section-title {
  color: #2c244d;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.achievement-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: #FCFAF5;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.achievement-icon {
  width: 90px;
  height: auto;
  flex-shrink: 0;
}

.achievement-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: #4B3F72;
}

.achievement-info p {
  margin: 0;
  font-size: 1rem;
  color: #4B3F72;
  line-height: 1.5;
  font-family: "SpaceGrotesk", serif;
}

@media (max-width: 768px) {
  .achievement-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .achievement-info {
    text-align: center;
  }

  .achievement-icon {
    width: 320px;
  }
}

@media (min-width: 768px) {
  .achievements-list {
    flex-direction: column;
  }

  .achievement-card {
    flex: 1;
  }

  .achievement-icon {
    width: 440px;
  }
}

@media screen and (min-width: 600px) and (max-width: 1023px) {
  .intro-text {
    top: 80px;
    left: clamp(16px, 6vw, 350px);

  }

  .intro-text h1 {
    font-size: clamp(32px, 5vw, 64px);
  }

  .role-text {
    bottom: 70px;
    right: clamp(12px, 12vw, 450px);
  }

  .role-text h2 {
    font-size: 32px;
  }
}

@media screen and (min-width: 1024px) {
  .main-section {
    padding: 0 80px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-bottom: 78px;

  }

  .intro-text {
    position: absolute;
    top: 50px;
    left: clamp(16px, 9vw, 325px);
    text-align: left;
  }

  .intro-text h1 {
    font-size: clamp(48px, 5vw, 64px);
  }

  .avatar-container img {
    width: 340px;
    height: 400px;
  }

  .role-text {
    position: absolute;
    top: 480px;
    right: clamp(20px, 12vw, 450px);
    text-align: right;
  }

  .role-text h2 {
    font-size: clamp(28px, 5vw, 48px);

  }

  .homepage-intro {
    font-size: 18px;
    max-width: 980px;

  }
}