/* ...existing code... */
:root {
    --hero-bg: #f0f0f0;
    --hero-border-color: #B3B3B3;
    --accent-color: #A2F3CA;
    --accent-text-color: #00520F;
    --secondary-color: black;
    --text-color: #222;
    --text-secondary-color: #666;
    --bg-color: #fff;
    --carousel-bg: #ffffff;
}

body.dark-mode {
    --hero-bg: #181a20;
    --hero-border-color: #444;
    --accent-color: #2dd4bf;
    --accent-text-color: #fff;
    --secondary-color: #fff;
    --text-color: #eee;
    --text-secondary-color: #b3b8d0;
    --bg-color: #101322;
    --carousel-bg: #101322;
    background: var(--bg-color);
    color: var(--text-color);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
}

*{
    font-family: poppins, sans-serif;
}

header {
    font-weight:lighter;
    font-family: poppins, sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

#hero-border-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
}

#hero-corners {
    position: relative;
    display: inline-block;
}

.corner {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid var(--secondary-color);
}

.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

#hero-corners{
    display: flex;
    align-items: center;
    width: 80%;
    height: 700px;
    
    border: 1px solid var(--hero-border-color); /* Adjust color/thickness as needed */
}

#hero {
    z-index: 1;
    padding: 3em 3em;
    border-radius: 2em;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.hero-img img {
    height: 35em;
    border-radius: 1em;
}

.hero-text{
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.hero-text h1{
    width: 60%;
    font-size: 5em;
    margin: 0;
    line-height: 1.1em;
    color: var(--secondary-color); /* Adjust as needed */
}

.hero-text p {
    width: 60%;
    font-size: 1.1em;
    color: var(--text-color); /* Adjust as needed */
}

.hero-text h2{
    width: max-content;
    padding: .7em 1.4em;
    font-size: 1.1em;
    font-weight: lighter;
    font-family: poppins, sans-serif;
    border-radius: 2em;
    background-color: var(--accent-color);
    color: var(--secondary-color); /* Adjust as needed */
}

#hero-border-wrapper button{
    width: max-content;
    padding: .7em 1.4em;
    font-size: 1.1em;
    font-family: poppins, sans-serif;
    border-radius: 2em;
    padding: .7em 2em;
    margin: .15em;
    font-weight: lighter;
    border: 1px solid var(--hero-border-color);
}

#hero-border-wrapper button:first-of-type{
    background-color: var(--secondary-color);
    color: var(--hero-bg);
}
#hero-border-wrapper button:hover{
    animation: both pulse .7s;
}

@keyframes pulse {
    0% {
        transform:translate(0, 0);
    }
    50% {
        transform: translate(0, -5px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: translate(0, 0);
    }
}

#tools {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
}

.carosel {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: max-content; /* Important for infinite scroll */
    gap: 2em;
    animation: carousel-scroll 20s linear infinite;
    filter: saturate(1);
}

#tools-corners {
    position: relative;
    display: flex;
    align-items: center;
    width: 80%;
    height: 7em;
    border: 1px solid var(--hero-border-color);
    overflow: hidden; /* Ensures carousel stays inside corners */
    margin: 0 auto;
    background: var(--carousel-bg);
}

#tools-corners{
    display: flex;
    align-items: center;
    width: 80%;
    height: 7em;
    border: 1px solid var(--hero-border-color); /* Adjust color/thickness as needed */
}

.carousel-item{
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 7em;
    height: 7em;
    box-sizing: border-box;
    padding: 0;
}

.carousel-item > img {
    width: 4em;
    height: 4em;
    object-fit: contain;
    display: block;
    margin: auto;
    background: transparent;
}

@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.feature_icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.features_header {
    text-align: center;
    margin-top: 3em;
    margin-bottom: 3vw;
}

.features_header h2 {
    color: var(--secondary-color);
    font-size: 2.4vw;
    margin-bottom: 1vw;
    font-weight: 600;
}

.features_header p {
    color: var(--text-secondary-color);
    font-size: 1.1vw;
    margin: 0 auto;
    max-width: 600px;
}

.feature_card p:nth-of-type(2){
    position: static;
    font-size: 0.9em;
    margin-top: 1em;
}

.features_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolommen */
    gap: 2vw;
    max-width: 1100px;
    margin: 0 auto;
}

.feature_card {
    background: rgba(255,255,255,0.02);
    border: 1px solid #23263a;
    border-radius: 1vw;
    width: 300px;
    min-height: 220px;
    padding: 2vw 1.2vw 1.2vw 1.2vw;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
    opacity: 0;
    transform: translateY(40px);
}

.feature_card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
}

.feature_icon {
    width: 2.1em;
    height: 2.1em;
    border-radius: 12px;
    margin-bottom: 1vw;
    background-color: var(--accent-color);
    padding: 0.5vw;
}

.feature_card h3 {
    color: var(--text-color);
    font-size: 1.15em;
    margin: 0 0 0.5vw 0;
    font-weight: 500;
}

.feature_card p {
    color: var(--text-secondary-color);
    font-size: 1em;
    margin: 0;
}

/* Animations for feature_card */
@keyframes featureFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature_card.animate {
    animation: featureFadeInUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.feature_card.animate:nth-of-type(1) { animation-delay: 0.1s; }
.feature_card.animate:nth-of-type(2) { animation-delay: 0.3s; }
.feature_card.animate:nth-of-type(3) { animation-delay: 0.5s; }
.feature_card.animate:nth-of-type(4) { animation-delay: 0.7s; }
.feature_card.animate:nth-of-type(5) { animation-delay: 0.9s; }
.feature_card.animate:nth-of-type(6) { animation-delay: 1.1s; }

#Features {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
}

#feature-corners {
    position: relative;
    display: inline-block;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 80%;
    height: 700px;
    border: 1px solid var(--hero-border-color); /* Adjust color/thickness as needed */
    overflow: hidden; /* Ensures content stays within corners */

}

#feature-corners{
    display: flex;
    align-items: center;
    width: 80%;
    height: 1000px;
    border: 1px solid var(--hero-border-color); /* Adjust color/thickness as needed */
}

.carosel_language {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: max-content; /* Important for infinite scroll */
    gap: 5em;
    animation: carousel2-scroll 16s linear infinite;
}

.carousel2-item{
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 7em;
    height: 7em;
    box-sizing: border-box;
    padding: 0;
}

.carousel2-item > img {
    width: 4em;
    height: 4em;
    object-fit: contain;
    display: block;
    margin: auto;
    background: transparent;
    filter: saturate(1);
}

@keyframes carousel2-scroll {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}

#projects {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
}

#project-corners {
    position: relative;
    display: inline-block;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 80%;
    height: 1200px;
    border: 1px solid var(--hero-border-color); /* Adjust color/thickness as needed */
    overflow: hidden; /* Ensures content stays within corners */

}

.project_header {
    text-align: center;
    margin-top: 3em;
    margin-bottom: 3vw;
}

.project_header h2 {
    color: var(--secondary-color);
    font-size: 2.4vw;
    margin-bottom: 1vw;
    font-weight: 600;
}

.project_header p {
    color: var(--text-secondary-color);
    font-size: 1.1vw;
    margin: 0 auto;
    max-width: 600px;
}

.project_header{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.project_item{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--hero-border-color);
    width: 77vw;
    height: 6vw;
    padding: 0 2em 0 2em;
}

.project_item p {
    font-size: 1.1vw;
    color: var(--text-secondary-color);
    margin: 0;
}
.project_item h3 {
    font-size: 4vw;
    font-weight: lighter;
    color: var(--secondary-color);
    margin: 0;
}

.project_item a {
    text-decoration: none;
    color: var(--text-secondary-color);
}

.project_item a:hover {
    color: var(--accent-color);
}

#project-float-images {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

.project-float-img {
    position: absolute;
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: 0.85;
    pointer-events: none;
    transition: opacity 0.5s;
}

#Timeline {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
}

#timeline-corners {
    position: relative;
    display: inline-block;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 80%;
    height: 1600px;
    border: 1px solid var(--hero-border-color); /* Adjust color/thickness as needed */
    overflow: hidden; /* Ensures content stays within corners */

}

#timeline-section {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-container {
  position: relative;
  width: 80vw;
  height: 80vh;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 220%;
  background: #222;
  transform: translateX(-50%);
  z-index: 1;
}


.timeline-fill {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 0;
  background: #A2F3CA;
  transform: translateX(-50%);
  z-index: 2; /* Above the black line, below the dot */
  transition: height 0.3s cubic-bezier(.22,1,.36,1);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 24px;
  background: #A2F3CA;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3; /* Above fill and line */
  box-shadow: 0 0 0 8px rgba(162,243,202,0.15);
  transition: top 0.3s cubic-bezier(.22,1,.36,1);
}

.timeline-event {
  position: absolute;
  left: 60%;
  transform: translateY(-50%);
  background: #fff;
  padding: 1em 2em;
  border-radius: 1em;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  color: #000000;
  font-size: 1.2vw;
}

.timeline-event:nth-of-type(11), .timeline-event:nth-of-type(12), .timeline-event:nth-of-type(13) {
    color: #a8a8a8;
}

#contact {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
}

#contact-corners {
    position: relative;
    display: inline-block;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 80%;
    height: 850px;
    border: 1px solid var(--hero-border-color); /* Adjust color/thickness as needed */
    overflow: hidden; /* Ensures content stays within corners */
    justify-content: center;

}



.contact-container {
  background: white;
  padding: 2em 2.5em;
  border-radius: 1em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  max-width: 400px;
  width: 100%;
}

.contact-container h2 {
  margin-bottom: 1em;
  color: #222;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.contact-form label {
  font-weight: 500;
  color: var(--text-secondary-color);
}

.contact-form input,
.contact-form textarea {
  padding: 0.7em 1em;
  border: 1px solid var(--bg-color);
  border-radius: 0.5em;
  font-size: 1em;
  background: #f5f5f5;
  resize: vertical;
}

.contact-form button {
  background: var(--accent-color, #2dd4bf);
  color: var(--accent-text-color, var(--bg-color));
  border: none;
  padding: 0.9em 0;
  border-radius: 0.5em;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: #1fc8a8;
}

.site-footer {
  background: #f3f3f3;
  color: var(--accent-text-color);
  padding: 2em 0 1em 0;
  margin-top: 4em;
  font-size: 1em;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto 1em auto;
  padding: 0 2vw;
  gap: 1.5em;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-weight: 600;
  color: black;
  font-size: 1.2em;
}

.footer-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-nav {
  display: flex;
  gap: 1.5em;
}

.footer-nav a {
  color: black;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.footer-nav a:hover {
  color: #2dd4bf;
}

.footer-social {
  display: flex;
  gap: 1em;
}

.footer-social img {
  width: 28px;
  height: 28px;
  filter: grayscale(100%) brightness(1.2);
  transition: filter 0.2s;
}

.footer-social a:hover img {
  filter: none;
}

.footer-bottom {
  text-align: center;
  color: black;
  font-size: 0.95em;
  border-top: 1px solid #23263a;
  padding-top: 1em;
  margin-top: 1em;
}

#Licenses h2 {
    color: var(--secondary-color);
    font-size: 2.4vw;
    margin-bottom: 2em;
    margin-top: 1.5em;
    font-weight: 600;
}

.cert-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-slide-track {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  width: 100%;
  max-width: 1000px;    /* Increased width */
  min-height: 520px;    /* Increased height */
  margin: 0 auto;
}

.cert-slide {
  width: 520px;         /* Larger certificates */
  max-width: 98vw;
  margin: 0 -60px;     /* More overlap for bigger slides */
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
  transform: scale(0.85);
  transition: 
    opacity 0.5s,
    transform 0.5s;
  z-index: 1;
  pointer-events: none;
  filter: grayscale(60%);
}

#cert-center {
  opacity: 1;
  transform: scale(1.32); /* Larger center */
  z-index: 2;
  pointer-events: auto;
  filter: none;
}

.cert-slide img {
  border: var(--accent-text-color) .2em solid;
  border-radius: .3em;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
}

.cert-info {
  margin-top: 1em;
  text-align: center;
}

.cert-info h4 {
  margin: 1em;
  font-size: 1.3em;
  font-weight: 700;
  color: #181a20, white;
}

.cert-info span {
  color: #666;
  font-size: 1.1em;
}

.cert-arrow {
  background: none;
  border: none;
  font-size: 2.5em;
  color: #222;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  transition: color 0.2s;
  opacity: 0.7;
  padding: 0 0.2em;
}

.cert-arrow-left {
  left: 0;
}

.cert-arrow-right {
  right: 0;
}

.cert-arrow:hover {
  color: #2dd4bf;
  opacity: 1;
}

.cert-dots {
  margin-top: 7em;
  display: flex;
  justify-content: center;
  gap: 0.7em;
}

.cert-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ddd;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s;
}

.cert-dot.active {
  background: var(--accent-text-color);
}

#Licenses {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
}

#cert-corners {
    position: relative;
    display: inline-block;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 80%;
    height: 950px;
    border: 1px solid var(--hero-border-color); /* Adjust color/thickness as needed */
    overflow: hidden; /* Ensures content stays within corners */

}


/* Make section titles bigger and responsive */
.features_header h2,
.project_header h2,
#contact-corners h2,
#tools-corners h2,
#feature-corners h2,
#timeline-corners h2 {
  font-size: 3em;
  line-height: 1.1;
  margin-bottom: 0.7em;
  margin-top: 1.2em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (max-width: 900px) {
  #Licenses h2,
  .features_header h2,
  .project_header h2,
  #contact-corners h2,
  #tools-corners h2,
  #feature-corners h2,
  #timeline-corners h2 {
    font-size: 2.2em;
  }
}

@media (max-width: 700px) {
  #Licenses h2,
  .features_header h2,
  .project_header h2,
  #contact-corners h2,
  #tools-corners h2,
  #feature-corners h2,
  #timeline-corners h2 {
    font-size: 1.5em;
    margin-top: 0.7em;
    margin-bottom: 0.5em;
  }
}

@media (max-width: 700px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
    padding: 0 1em;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 1em;
  }
}


@media (max-width: 768px) {
  .hero-text h2{
    align-self: center;
    font-size: 1.5em;
  }
  #hero {
    flex-direction: column;
    text-align: center;
    padding: 2em 1em;
  }

  .hero-text h1 {
    width: 100%;
    font-size: 3em;
  }

  .hero-text p {
    width: 100%;
    font-size: 1.5em;
  }

  .hero-img img {
    width: 100%;
    height: auto;
    margin-top: 2em;
  }

  #hero-border-wrapper {
    height: auto;
  }
}


@media (max-width: 768px) {
  .feature_card.animate {
    animation: featureFadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
  .feature_card.animate { animation-delay: 0s; }
  .features_grid {
    display: grid;
    grid-template-columns: repeat(2, 2fr); /* 3 kolommen */
    gap: 4vw;
    max-width: 1100px;
    margin: 0 auto;
}

  .feature_card {
    width: 92%;
    margin: 0 auto;
  }

  .features_header h2 {
    font-size: 6vw;
  }

  .features_header p {
    font-size: 4vw;
  }
}

@media (max-width: 768px) {
  .project_item {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 0.5em;
    padding: 1em;
  }

  .project_item h3 {
    font-size: 6vw;
  }

  .project_item p {
    font-size: 4vw;
  }
}

@media (max-width: 768px) {
  .timeline-event {
    left: 55%;
    width: 70%;
    font-size: 4vw;
    padding: 0.5em 1em;
  }

  .timeline-line {
    left: 20%;
  }

  .timeline-dot, .timeline-fill {
    left: 20%;
  }
}

@media (max-width: 700px) {
  #hero-corners,
  #tools-corners,
  #feature-corners,
  #project-corners,
  #timeline-corners,
  #cert-corners,
  #contact-corners {
    border: none !important;
    box-shadow: none !important;
  }
  .corner {
    display: none !important;
  }
  #hero-corners,
  #tools-corners,
  #feature-corners,
  #project-corners,
  #timeline-corners,
  #cert-corners,
  #contact-corners {
    width: 100vw !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 1em 0.2em !important;
    border-radius: 0.7em !important;
    overflow: visible !important;
  }
}



@media (max-width: 768px) {
  .cert-slide-track {
    flex-direction: column;
    align-items: center;
    min-height: auto;
    gap: 1em;
  }

  .cert-slide {
    margin: 0;
    width: 90vw;
    transform: scale(1);
    opacity: 1;
    filter: none;
    pointer-events: auto;
    
  }

  #cert-center {
    transform: scale(1);
  }

  .cert-arrow {
    display: none;
  }

  .cert-dots {
    margin-top: 1em;
    gap: 0.5em;
  }

  .cert-dot {
    width: 12px;
    height: 12px;
  }

  #cert-corners {
    height: auto;
    padding: 2em 0;
  }

  .cert-info h4 {
    font-size: 1.1em;
  }

  .cert-info span {
    font-size: 0.9em;
  }
}

@media (max-width: 768px) {
  .cert-slide-track {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1em;
    gap: 1em;
  }

  .cert-slide {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }
}

@media (max-width: 700px) {
  #timeline-corners,
  #Timeline,
  #timeline-section,
  .timeline-container,
  .timeline-line,
  .timeline-fill,
  .timeline-dot,
  .timeline-event {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }
}

/* html, body {
  max-width: 100vw;
  overflow-x: hidden;
} */

/* * {
  box-sizing: border-box;
} */


.timeline-fill {
  transition: height 0.3s cubic-bezier(.22,1,.36,1);
  z-index: 2;
}
.timeline-dot {
  transition: top 0.3s cubic-bezier(.22,1,.36,1);
  z-index: 3;
}





