* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    background-color: #f4f4f4;
}

body {
    font-family: 'Poppins';
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 100px;
}

/* Reveal utilities for scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    transition: opacity 520ms cubic-bezier(.2,.9,.2,1), transform 2000ms cubic-bezier(.2,.9,.2,1);
    will-change: transform, opacity;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

/* directional variants if needed */
.reveal-left { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal-left.in-view, .reveal-right.in-view { transform: translateX(0); }

/* stronger slide helpers specifically for the intro section */
.slide-in-left { transform: translateX(-140px) translateY(20px) translateZ(0); }
.slide-in-right { transform: translateX(140px) translateY(20px) translateZ(0); }
.slide-in-left.in-view, .slide-in-right.in-view { transform: translateX(0) translateY(0) translateZ(0); }

/* pop variant for icons/skills */
.reveal-pop { transform: scale(0.98) translateY(10px); }
.reveal-pop.in-view { transform: scale(1) translateY(0); }

/* small stagger helper: the script will set transitionDelay inline */

h1 {
    color: #333;
}

p {
    margin-bottom: 10px;
}

/* ---------------------------Navigatiebalk--------------------------- */
nav
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    background-color: #f4f4f4;
    box-shadow: 0 5px 4px rgba(0,0,0,0.2);

    position: fixed; /* zorgt dat de nav vaststaat */
    top: 0;          /* zet hem bovenaan */
    left: 0;         /* helemaal links */
    width: 100%;     /* volledige breedte */
    z-index: 1000;   /* zorgt dat hij boven andere elementen blijft */
}

#logo{
    width: 200px;
    height: auto;
}

#hamburger{
    width: 50px;
    height: auto;
    cursor: pointer;
}

/* -------- Overlay Menu (slide from right) -------- */
.overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;          /* fullscreen */
  height: 100%;
  background-color: rgba(47, 65, 87, 0.97);
  z-index: 1100;
  transform: translateX(100%); /* start buiten beeld */
  transition: transform 0.5s ease;
}

.overlay.active {
  transform: translateX(0); /* schuift in beeld */
}

.overlay-content {
  position: relative;
  top: 25%;
  text-align: center;
}

.overlay-content a {
  display: block;
  padding: 15px;
  font-size: 2em;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.overlay-content a:hover {
  color: #F19300;
}

.closebtn {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 3em;
  color: #fff;
  cursor: pointer;
}



/* ---------------------------intro--------------------------- */

.intro{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    
}

.intro-left{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 30px;
    padding-right: 0;
    padding-left: 20px;
    color: #2F4157;
}

.intro-left h1{
    font-family: 'Averia Serif Libre', serif;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #2F4157;
    text-shadow: 2px 2px 5px #7399ac;

}

.intro-left h2{
    font-size: 1.875em;
    margin-bottom: 10px;
    font-weight: normal;
    color: #2F4157;
}

.intro-left p{
    font-size: 1.25em;
}

.intro-right{
    display: flex;
    flex-direction: column;
    justify-content: center; /* verticaal uitlijnen */
    align-items: flex-end;     /* horizontaal rechts uitlijnen */
    padding-top: 30px;
    padding-left: 0;
    
}

.intro-right img{
    max-width: 450px;
    width: 100%;      
    height: auto;    
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    border: solid 20px #C7D9E5;
}

/* ---------------------------past intro--------------------------- */

.past-intro {
     position: relative; 
}

.past-intro img{
    width: 28%;
    height: auto;
}

.past-intro-extra{
    display: flex;
    padding-left: 20px;
    position: relative;

    gap: 20px;
    padding-top: 20px;

    font-family: 'Poppins';
    font-size: 1.125em;
    font-weight: bold;
    color: #2F4157;
}

#solutions {
    position: relative;
    display: inline-block;     
    font-family: 'Poppins';
    font-size: 1.15em;
    text-align: center;
    font-weight: bold;
    color: #2F4157;
    transform: rotate(15deg);
    padding: 20px 25px 15px 25px;
    margin-left: 15px;
    z-index: 1;
}


.past-intro-extra {
    display: flex;
    flex-wrap: wrap;      
    align-items: center;
    gap: 20px;
    font-family: 'Poppins';
    font-size: 1.125em;
    font-weight: bold;
    color: #2F4157;
}


.past-intro-extra img{
    width: 12px;
    height: auto;
    padding-bottom: 8px;
}

#solutions .background-image {
    position: absolute;
    top: 120%;
    right: -35px;
    transform: translateY(-50%) rotate(-15deg);
    width: 160%;
    height: auto;
    z-index: -1;
    pointer-events: none;
}

.solution-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: -20px;
}

.btn {
    background-color: #F19300;
    font-weight: normal;
    color: #fff;
    text-decoration: none;
    padding: 8px;
    border-radius: 20px;
    width: 200px;
    font-size: 1em;
    text-align: center;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #415a77;
}

#solutions .arrow-image {
    position: absolute;
    transform: translateY(-50%) rotate(-10deg);
    top: 230%;
    left: 10px;
    width: 120px;
    height: auto;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: transform 700ms cubic-bezier(.2,.9,.2,1), opacity 1200ms ease;
}

.arrow-image-absolute{
    display: none;
    opacity: 0;
    transition: transform 700ms cubic-bezier(.2,.9,.2,1), opacity 1200ms ease;
}

/* When scrolled into view toggle this class (script will add it) */
/* subtle rotation-only keyframes for the intro arrows */
@keyframes pivot-desktop {
    0%   { transform: translateY(-55%) translateX(8px) rotate(-4deg) scale(1.02); }
    50%  { transform: translateY(-55%) translateX(8px) rotate(4deg)  scale(1.02); }
    100% { transform: translateY(-55%) translateX(8px) rotate(-4deg) scale(1.02); }
}

@keyframes pivot-mobile {
    0%   { transform: translateY(-6px) rotate(-4deg)  scale(1.02); }
    50%  { transform: translateY(-6px) rotate(4deg)   scale(1.02); }
    100% { transform: translateY(-6px) rotate(-4deg)  scale(1.02); }
}

#solutions .arrow-image.in-view {
    opacity: 1;
    /* keep position but animate rotation only */
    transform: translateY(-55%) rotate(-6deg) translateX(8px) scale(1.02);
    animation: pivot-desktop 3.6s ease-in-out infinite;
    will-change: transform;
}
.arrow-image-absolute.in-view {
    opacity: 1;
    transform: translateY(-6px) scale(1.02);
    animation: pivot-mobile 2.6s ease-in-out infinite;
    will-change: transform;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    #solutions .arrow-image.in-view,
    .arrow-image-absolute.in-view {
        animation: none !important;
        transition: opacity 300ms ease, transform 300ms ease;
    }
}
/* ---------------------------Projecten--------------------------- */

.projects {
    background-color: #C7D9E5;
    margin-top: 26px;
    padding: 20px;
}

.projects h2 {
    font-family: 'Averia Serif Libre', serif;
    font-size: 2.5em;
    margin-bottom: 0px;
    color: #2F4157;
}

.project p {
    font-size: 1.125em;
    margin-bottom: 10px;
    color: #2F4157;
}

.wrapper {
    width: 250px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.wrapper i {
    height: 50px;
    width: 50px;
    background: #F19300;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 40%;
    display: flex;             
    justify-content: center;   
    align-items: center;       
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);
}


.wrapper i img {
    width: 24px;  
    height: 24px;
    object-fit: contain;
    display: block;
}

.wrapper i:first-child {
    left: -70px;

}

.wrapper i:last-child {
    right: -70px;

}

.wrapper .carousel a {
    text-decoration: none;
}


.wrapper .carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: 0;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel :where(.card, .img) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.carousel.no-transition {
    scroll-behavior: auto;
}

.carousel.dragging .card {
    cursor: grab;
    user-select: none;
}

.carousel .card {
    scroll-snap-align: start;
    list-style: none;
    background: #577C8E;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;  
    cursor: pointer;
    width: 98%;
    height: auto;
    overflow: hidden;        
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* --- Animated interactions (entrance + hover) --- */
/* entrance animation */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(12px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.carousel .card {
    animation: fadeInUp 500ms ease both;
    /* stagger start times slightly */
}

.carousel .card:nth-child(1) { animation-delay: 0ms; }
.carousel .card:nth-child(2) { animation-delay: 80ms; }
.carousel .card:nth-child(3) { animation-delay: 160ms; }
.carousel .card:nth-child(4) { animation-delay: 240ms; }
.carousel .card:nth-child(5) { animation-delay: 320ms; }

/* floating effect runs after entrance finishes */
.carousel .card {
    /* only the entrance animation; no breathing/float */
    animation-name: fadeInUp;
    animation-duration: 500ms;
    animation-delay: 0ms;
    animation-timing-function: ease;
    animation-iteration-count: 1;
    animation-fill-mode: both;
}

/* subtle hover lift and image zoom */
.carousel .card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.card .img img {
    transition: transform 450ms cubic-bezier(.2,.8,.2,1);
}

.carousel .card:hover .img img {
    transform: scale(1.06);
}

/* Arrow button hover animation */
.wrapper i:hover {
    transform: scale(1.06) rotate(6deg);
    transition: transform 220ms ease;
}

/* make the arrow image itself smoothly shift */
.wrapper i img {
    transition: transform 300ms ease;
}
.wrapper i:hover img {
    transform: translateX(4px);
}

/* keep interactions crisp on small screens */
@media (max-width: 499px) {
    .carousel .card:hover { transform: none; }
    .carousel .card { animation: none; }
}

.card .img {
    width: 100%;
    height: 200px;      
    overflow: hidden;
}

.card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;  
    border: none;
}

.card h2 {
    font-weight: 600;
    font-size: 1.5rem;
    margin: 15px 15px 5px 15px;
    color: white;
    text-align: left;
    font-family: 'Poppins';
    font-weight: normal;
}

.card span {
    color: white;
    font-size: 1rem;
    margin-left: 15px;
    margin-bottom: 15px;
    text-align: left;
}

.btn-project {
    display: flex;
    justify-content: center;
    background-color: #F19300;
    font-weight: normal;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.125em;
    text-align: center;
    transition: background 0.3s;

    margin: 20px 20%;
}

.btn-project:hover {
    background-color: #415a77;
}

/* ---------------------------about me--------------------------- */

.about {
    padding: 20px;
    background-color: #f4f4f4;
    color: #2F4157;
}

.about h2 {
    font-family: 'Averia Serif Libre', serif;
    font-weight: bold;
    font-size: 2.25em;
    margin-bottom: 10px;
}

.about h3 {
    font-family: 'Averia Serif Libre', serif;
    font-size: 1.875em;
    font-weight: normal;
    margin-bottom: 10px;
}

.about p {
    font-size: 1.125em;
    margin-bottom: 10px;
}

.education {
    display: grid;
    grid-template-columns: 50px 100px 1fr;
    gap: 10px 12px;
    align-items: center;
    margin-bottom: 20px;
}

.education img {
    grid-column: 1;
    width: 30px;
    height: 30px;
    justify-self: center; 
}

.education-year {
    grid-column: 2;
    font-family: 'Averia Serif Libre', serif;
    font-size: 1.25em;
    font-weight: bold;
    color: #2F4157;
    margin: 0;
}

.education div {
    grid-column: 3;
}

.education-field {
    font-family: 'Poppins';
    font-size: 1.25em;
    font-weight: bold;
    color: #2F4157;
    margin: 0;
}

.education-school {
    font-family: 'Poppins';
    font-size: 1.125em;
    font-weight: normal;
    color: #2F4157;
    margin: 0;
}

.software-skills{
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.software-skills img{
    width: 50px;
    height: auto;
}

.software-skills ul {
    padding: 0;
    font-size: 1.2em;
    margin-left: 20px;
}

.btn-about-me{
    display: flex;
    justify-content: center;
    background-color: #F19300;
    font-weight: normal;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.25em;
    text-align: center;
    transition: background 0.3s;

    margin: 30px 20%;
}

.btn-about-me:hover {
    background-color: #415a77;
}

.btn-contact{
    display: flex;
    justify-content: center;
    color: #F19300;
    font-weight: normal;
    
    text-decoration: underline;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.25em;
    text-align: center;
    transition: background 0.3s;

    margin: 20px 140px;
}

.btn-contact:hover {
    color: #415a77;
    font-weight: bold;
}

/* ---------------------------footer--------------------------- */

footer{
    background-color: #577C8E;
    padding: 20px 20px 0px 20px;
}

footer h2{
    color: white;
    font-family: 'Averia Serif Libre', serif;
    font-size: 2.1875em;
    margin-top: 50px;
}

footer a{
    display: flex;
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    margin: 15px 0;
    
}

footer a:hover {
    text-decoration: underline;
    color: #F19300;
}

.footer-end {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
}

.footer-logo { 
    margin-bottom: 30px;
    width: 200px;
    height: auto;
    margin-right: 10px;
}

.footer-links {
    position: relative; 
    padding: 20px 20px 20px 0px;
    text-align: right;
    right: -20px;
}

.footer-links p {
    color: #2F4157;
    font-family: 'Averia Serif Libre', serif;
    font-size: 1.25em;
    text-align: center;
    padding-left: 15px;   
    vertical-align: middle; 
    margin-bottom: -10px;
    position: relative;
    z-index: 2;
}

.footer-links img:not(.footer-bg) {
    width: 50px;
    height: auto;
    margin-left: 10px;
    vertical-align: middle;
    position: relative;
    z-index: 2;
}

.footer-links a {
    display: inline-block;     
    vertical-align: middle;  
}

.footer-links a img {
    width: 50px;       
    height: auto;
    display: block;     
}


.footer-bg {
    position: absolute;
    right: -20px;
    width: 220px; 
    height: auto;
    z-index: 1;     
    pointer-events: none;
}

/* --------------------------------------------------------------- Projecten pagina ------------------------------------------------------------------- */
.projects-header {
  text-align: center;
  padding: 50px 20px 20px;
  background-color: #C7D9E5;
  color: #2F4157;
}

.projects-header h1 {
  font-family: 'Averia Serif Libre', serif;
  color: #2F4157;
  font-size: 3em;
  margin-bottom: 10px;
}

.projects-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 40px 60px;
  background-color: white;
}

.project-card {
  background: #577C8E;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-align: center;
  color: white;
  transition: transform 0.3s ease;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h2 {
  font-family: 'Poppins';
  font-size: 1.5em;
  margin: 15px 0 5px;
}

.project-card p {
  font-size: 1em;
  padding: 0 15px 15px;
}

.project-card .btn {
  margin: 15px auto 25px;
  display: inline-block;
}

.back-home {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  background-color: white;
}

/* ----------------------------------------------- Over mij pagina ----------------------------------------------------------- */
.about-header {
  text-align: center;
  padding: 50px 20px;
  background-color: #C7D9E5;
  color: #2F4157;
}

.about-header-left h1{
    color: #2F4157;
    font-size: 2.5em;
    font-family: 'Averia Serif Libre', serif;

}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  gap: 40px;
}

.about-text {
  flex: 1 1 400px;
  font-size: 1.1em;
  line-height: 1.6;
}

.about-text h2 {
  margin-bottom: 15px;
  font-family: 'Averia Serif Libre', serif;
}

.about-image {
  flex: 1 1 300px;
  text-align: center;
}

.about-image img {
  max-width: 280px;
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.skills {
  background-color: #f4f4f4;
  padding: 60px 20px;
  text-align: center;
}

.skills h2 {
  font-family: 'Averia Serif Libre', serif;
  margin-bottom: 30px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.skill-card {
  background: #577C8E;
  color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.profile-photo {
  max-width: 250px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ----------------------------------------------- Over mij pagina-A ----------------------------------------------------------- */


.about-header-a {
  text-align: center;
  padding: 50px 20px;
  background-color: #C7D9E5;
  color: #2F4157;
}

.about-header-a h1{
    color: #2F4157;
    text-align: left;
    font-size: 2.5em;
    font-family: 'Averia Serif Libre', serif;
}

.about-header-left-a{
    background-color: rgba(255, 255, 255, 0.748);
    padding: 20px;
    text-align: left;
    border-radius: 12px;
    margin-top: 20px;
    line-height: 2;
}

.about-image-a {
  flex: 1 1 300px;
  text-align: center;
}

.profile-photo-a {
  max-width: 250px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.skills-header-a {
    padding: 30px 20px;
    text-align: center;
    background-color: #f4f4f4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    }

.skills-header-content-a{
    background-color: #C7D9E5;
    padding: 10px 20px;
    border-radius: 10px;
    gap: 50px;
}

.skills-header-content-a h2{
    font-family: 'Averia Serif Libre', serif;
    font-weight: normal;
    color: #2F4157;
}

.skills-header-content-a img{
    height: 50px;       
    width: auto; 
}

.skills-header-content-a h3{
   background-color: #2F4157;
   color: white;
   font-weight: normal;
   border-radius: 15px;
}

.skills-header-element-a{
    padding-top: 10px;
    padding-bottom: 10px;
}

.softskills-a{
    padding: 10px 20px;
    margin: 0px 20px;
    background-color: #fad9a6;
    border-radius: 10px;
    color: #2F4157;;
}

.softskills-a h2{
    font-family: 'Averia Serif Libre', serif;
    font-weight: normal;
    color: #2F4157;
}

.skills-header-content-a img{
    height: 50px;       
    width: auto; 
    margin-top: 20px;
    font-weight: normal;
    font-size: 1em;
}

.softskills-element-a img{
    width: 40px;
    height: auto;
}

.softskills-element-a{
    display: flex;
    align-items: center;
    padding: 20px 0px;
    gap: 20px;


}
/* --------------------------- Contact pagina --------------------------- */

.contact-header {
    text-align: center;
    padding: 60px 20px 30px;
    background-color: #C7D9E5;
    color: #2F4157;
}

.contact-header h1 {
    font-family: 'Averia Serif Libre', serif;
    font-size: 3em;
    margin-bottom: 10px;
    color: #2F4157;
}

.contact-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25em;
    margin-bottom: 0;
}

.contact-form {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background-color: white;
}

.contact-form form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    font-weight: bold;
    font-size: 1.1em;
    color: #2F4157;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #F19300;
    box-shadow: 0 0 5px rgba(241, 147, 0, 0.5);
}

.contact-form button {
    padding: 12px 20px;
    background-color: #F19300;
    color: white;
    font-size: 1.1em;
    font-family: 'Poppins', sans-serif;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background-color: #415a77;
}


/* Extra contact info */
.contact-info {
    text-align: center;
    padding: 40px 20px;
    background-color: #C7D9E5;
}

.contact-info h2 {
    font-family: 'Averia Serif Libre', serif;
    font-size: 2.2em;
    color: #2F4157;
    margin-bottom: 15px;
}

.contact-info p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    margin: 5px 0;
}

.contact-info a {
    color: #F19300;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #415a77;
}

.social-links {
    margin-top: 15px;
}

.social-links img {
    width: 40px;
    height: auto;
    margin: 0 10px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 720px) {

    .contact-form form {
        width: 100%;
    }

    .contact-header h1 {
        font-size: 2.5em;
    }

    .contact-header p {
        font-size: 1.1em;
    }

    .contact-info h2 {
        font-size: 2em;
    }

    .contact-info p {
        font-size: 1em;
    }
    
}


/* ---------------------------Responsive Mobile--------------------------- */
@media (max-width: 499px) {

    body {
        overflow-x: hidden;
    }

    .solution-actions .btn {
        position: relative;
        z-index: 25;
    }

    nav{
        padding: 20px 15px;
    }

    #logo{
        width: 120px;
        height: auto;
    }   

    #hamburger{
        width: 25px;
        height: auto;
        cursor: pointer;
    }

    .intro-left h1{
        font-size: 2em;
        margin-bottom: 10px;
    }

    .intro{
        /* keep intro panels side-by-side on small screens
           use flex so the image stays to the right instead of dropping below */
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap; /* prevent the right panel from wrapping under */
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 0px;
    }

    .intro-left h2{
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    .intro-left p{
        font-size: 0.9em;
    }

    .past-intro-extra{
        gap: 10px;
        padding-top: 0px;
        font-size: 0.80em;
        z-index: -1;
        position: relative;
    }

    .intro-right img{
        border: solid 10px #C7D9E5;
        /* keep the image visible and at the right side on narrow screens */
        max-width: 160px;
        width: auto;
        display: block;
    }


    /* ensure left and right areas behave well inside the flex container */
    .intro-left {
        flex: 1 1 auto;
        min-width: 0; /* allow text to truncate/wrap correctly */
        padding-left: 10px;
    }

    .intro-right {
        flex: 0 0 auto; /* keep the image panel its intrinsic size */
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    /* keep body offset consistent with the smaller nav on mobile so the intro image isn't hidden */
    body {
        padding-top: 80px;
    }
    #solutions {
        font-size: 1.1em;
        margin-top: 0px;
        padding: 50px 25px 15px 10px;
        margin-left: 20px;
        position: relative;
        z-index: -1;

    }

    #solutions .arrow-image {
        display: none;
    }

    .arrow-image-absolute {
            display: block; 
            position: absolute;
            width: 50px;         
            height: auto; 
            top: 110px; 
            right: 60px;
            z-index: 10;
    }

    #solutions .background-image {
        position: absolute;
        top: 122%;
        right: -28px;
        transform: translateY(-50%) rotate(-15deg);
        width: 175%;
        z-index: -1;
    }

    .solution-actions {
        display: flex;
        flex-direction: column;

        gap: 10px;
        align-items: center;
        margin-top: -20px;
        z-index: 20;
    }

    .past-intro-extra,
    #solutions {
        z-index: 0; 
    }

    .btn {
        text-decoration: none;
        padding: 8px;
        border-radius: 20px;
        width: 125px;
        font-size: 1em;
    }

    .projects{
        position: relative;
        z-index: 1; 
        margin-top: 26px;
    }

    .wrapper {
        width: 60%;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .wrapper i {
        height: 40px;
        width: 40px;
        background: #F19300;
        border-radius: 50%;
        cursor: pointer;
        position: absolute;
        top: 40%;
        display: flex;             
        justify-content: center;   
        align-items: center;       
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);
    }

    .btn-project {
        font-size: 1.125em;
        margin: 20px 20px;
    }

    .btn-about-me{
        font-size: 1.25em;
        margin: 30px 20px;
    }

    .btn-contact{
        font-size: 1.25em;
        margin: 20px 40px;
    }

    .education-field {
        font-size: 1.1em;
    }

    .education-school {
        font-size: 0.9em;
    }

    .footer-end {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        position: relative;
    }

    .footer-logo { 
        margin-bottom: 30px;
        width: 140px;
        height: auto;
        margin-right: 10px;
    }

    .footer-links {
        position: relative; 
        padding: 20px;
        text-align: right;
        right: -20px;
    }

    .footer-links p {
        font-size: 1em;
        margin-bottom: 5px;
        position: relative;
        z-index: 2;
    }

    .footer-links img:not(.footer-bg) {
        width: 35px;
        height: auto;
        margin-left: 10px;
        vertical-align: middle;
        position: relative;
        z-index: 2;
    }

    .footer-links a {
        display: inline-block;     
        vertical-align: middle;  
    }

    .footer-links a img {
        width: 50px;    
        height: auto;
        display: block;     
    }

    .footer-bg {
        position: absolute;
        bottom: 0;
        right: -20px;
        width: 180px; 
        height: auto;
        z-index: 1;     
        pointer-events: none;
    }

}

/* ---------------------------Responsive desktop--------------------------- */

@media (min-width: 710px) {

    .solution-actions {
        position: absolute; 
        left: 2%;           
        top: 110%;          
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .past-intro-extra img{
        width: 20px;
        height: auto;
        padding-bottom: 8px;
    }

    .projects{
        margin-top: 159px;
    }

    .intro-left h1{
        font-size: 3.8em;
    }

    .intro-left h2{
        font-size: 3em;
    }

    .intro-left p{
        font-size: 1.5em;
    }

    .past-intro-extra{
        padding-top: 0px;
        font-size: 1.5em;
    }

    .btn {
        padding: 10px;
        border-radius: 30px;
        width: 250px;
        font-size: 1em;
        text-align: center;
        transition: background 0.3s;
    }

}

@media (min-width: 870px) {

    .wrapper .carousel {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% / 3) - 12px);
        gap: 16px;
    
    }

    .wrapper {
        width: 700px;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    /*---------about me page a------*/

    .grid-skills-about-a{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .softskills-content-a{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }



    

}

@media (min-width: 1100px) {

    .intro{
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 20px;
    }

    .intro-left h1{
        font-size: 4em;
    }

    .intro-left h2{
        font-size: 3em;
    }

    .intro-left p{
        font-size: 1.5em;
    }


    .past-intro-extra{
        gap: 50px;
        padding-top: 0px;
        font-size: 1.6em;
    }

    .grid-about {
        display: grid;
        grid-template-columns: 1fr 0.5fr;
        margin-top: 50px;
        gap: 20px;
    }


    .about {
        padding: 20px 100px;
    }
    .about p {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    
    .education {
        display: grid;
        grid-template-columns: 50px 200px 1fr;
        gap: 20px 12px;
        align-items: center;
        margin-bottom: 20px;
    }

    .projects {
        padding: 20px 100px;
        margin-top: 136px;
    }

    footer{
        padding: 20px 100px 0px 100px;
    }

    nav{
        padding: 30px 100px;
    }

    .intro-left{
        padding: 30px 100px;
    }

    .past-intro{
        padding: 30px 100px;
    }

    .wrapper .carousel {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% / 2) - 12px);
        gap: 16px;
    }

    .wrapper {
        width: 700px;
        margin-top: 50px;
        margin-bottom: 50px;
    }

        .softskills-a{
        margin: 20px 100px;
    }

        .about-header-a{
        padding: 20px 100px;
    }

    .skills-header-a {
        padding: 30px 100px;
    }

    .softskills-a{
        margin: 20px 100px;
    }

}


@media (min-width: 1500px) {

    .intro-right img{
        max-width: 550px;
        width: 100%;      
        height: auto;    
        border-top-left-radius: 50%;
        border-bottom-left-radius: 50%;
        border: solid 20px #C7D9E5;
    }

    .intro-left h1{
        font-size: 4em;
    }

    .intro-left h2{
        font-size: 3.5em;
    }

    .intro-left p{
        font-size: 1.5em;
    }

    .intro-right img{
        max-width: 450px;
        width: 100%;      
        height: auto;    
        border-top-left-radius: 50%;
        border-bottom-left-radius: 50%;
        border: solid 20px #C7D9E5;
    }


    .past-intro-extra{
        gap: 50px;
        padding-top: 0px;
        font-size: 1.6em;
    }

    .about p {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .education {
        display: grid;
        grid-template-columns: 50px 200px 1fr;
        gap: 20px 12px;
        align-items: center;
        margin-bottom: 20px;
    }

  .grid-about {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        margin-top: 50px;
        gap: 20px;
    }

    .about {
        padding: 20px 200px;
    }

    .projects {
        padding: 20px 200px;
        margin-top: 136px;
    }

    footer{
        padding: 20px 100px 0px 100px;
    }

    nav{
        padding: 30px 200px;
    }

    .intro-left{
        padding: 30px 200px;
    }

    .past-intro{
        padding: 30px 200px;
    }

    .wrapper .carousel {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% / 3) - 12px);
        gap: 16px;
        
    }

    .wrapper {
        width: 1200px;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .projects-overview {
    padding: 40px 150px;
    }

    .about-header-a{
        padding: 20px 200px;
    }

    .skills-header-a {
        padding: 30px 200px;
    }

    .softskills-a{
        margin: 20px 200px;
    }

}

@media (min-width: 1800px) {


    .intro-left h1{
        font-size: 6em;
    }

    .intro-left h2{
        font-size: 3.5em;
    }

    .intro-left p{
        font-size: 1.5em;
    }

    .intro-right img{
        max-width: 450px;
        width: 100%;      
        height: auto;    
        border-top-left-radius: 50%;
        border-bottom-left-radius: 50%;
        border: solid 20px #C7D9E5;
    }


    .past-intro-extra{
        gap: 50px;
        padding-top: 0px;
        font-size: 1.6em;
    }

  .grid-about {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        margin-top: 50px;
        gap: 10px;
    }

    .about-header-left h1{
        color: #2F4157;
        font-size: 2.5em;
        font-family: 'Averia Serif Libre', serif;

    }

    .softskills-a{
        margin: 20px 200px;
    }
    
    .about {
        padding: 20px 200px;
    }

    .projects {
        padding: 20px 200px;
        margin-top: 136px;
    }

    footer{
        padding: 20px 100px 0px 100px;
    }

    nav{
        padding: 30px 200px;
    }

    .intro-left{
        padding: 30px 200px;
    }

    .past-intro{
        padding: 30px 200px;
    }

    .wrapper .carousel {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% / 3) - 12px);
        gap: 16px;
        
    }

    .wrapper {
        width: 1200px;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .btn-project {
        display: flex;
        justify-content: center;
        background-color: #F19300;
        font-weight: normal;
        color: #fff;
        text-decoration: none;
        padding: 10px 20px;
        border-radius: 25px;
        font-size: 1.125em;
        text-align: center;
        transition: background 0.3s;

        margin: 20px 350px;
    }

}