/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /*
        Purple: hsl(250, 66%, 75%)
        Blue: hsl(207, 90%, 72%)
        Pink: hsl(356, 66%, 75%)
        Teal: hsl(174, 63%, 62%)
  */
  --first-hue: 250;
  --sat: 66%;
  --lig: 75%;
  --second-hue: 219;
  --first-color: #ff4f47;
  --first-color-alt: #db1f35; 
  --second-color: #202954;
  --second-color-alt: #182149; /* -4% */
  --title-color: #222222;
  --text-color: hsl(var(--second-hue), 8%, 75%);
  --text-color-light: hsl(var(--second-hue), 4%, 55%);
  --body-color: #EDF5FC;
  --container-color: hsl(var(--second-hue), 32%, 12%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  --tiny-font-size: .625rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semibold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
textarea {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .4s; /* for light mode animation */
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-semibold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

p{
  font-size: var(--normal-font-size);
}

/*=============== THEME ===============*/


/*========== Variables Dark theme ==========*/


/*========== 
    Color changes in some parts of 
    the website, in light theme
==========*/


/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1400px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.main {
  overflow: hidden;
}

.section {
  padding: 4.5rem 0 1rem;
}

.section__title, 
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-bottom: 2rem;
}

.section__subtitle {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

/*=============== HEADER & NAV===============*/
/* .header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
} */

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background: url('assets/img/home.JPG') no-repeat center center/cover;
  transition: background-color 0.3s ease-in-out;
  z-index: 1000;
}

.header::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
  position: absolute;
  bottom: 0;
  left: 0;
}

.scroll-header {
  position: fixed;
  background-color: var(--body-color); /* Matches your body color */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.scroll-header::after {
  opacity: 0; /* Hide the line when fixed */
}

.scroll-header .nav__link {
  color: var(--second-color);
}

.nav{
  height: var(--header-height);
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav__logo{
  color: var(--first-color);
  font-weight: var(--font-medium);
}
.nav__logo:hover{
  color: var(--first-color-alt);
}

.nav__list{
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav__link{
  color: var(--body-color);
}

.nav__link:hover{
  color: var(--first-color);
}

.nav__list li {
  position: relative;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
  margin: 0 2.5rem;
}


.nav__list li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem; /* Adjust spacing from text */
  width: 0;
  height: 0.19rem;
  background-color: var(--body-color);
  transition: width 0.3s ease-in-out;
}

.nav__list li.active::after {
  width: 50%;
}

.scroll-header .nav__list li.active::after {
  background-color: var(--second-color);
}


/*=============== HOME ===============*/
/* HOME SECTION */
.home {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../img/home.JPG');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  position: relative;
}

.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Dark overlay */
}

.home__content {
  position: relative;
  z-index: 2;
  color: var(--title-color);
}

.home__soutitle{
  font-weight: 400;
  color: var(--text-color);
  margin-bottom: 2rem;
}

.underlineSoutitle{
  text-decoration: underline;
}

.colorHometext{
  color: var(--first-color);
}

.home__title {
  font-size: 8rem;
  color: var(--first-color);
  font-family: "Philosopher", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.home__text {
  font-size: var(--h2-font-size);
  color: var(--text-color);
  margin-bottom: 2.5rem;
}

.cvButton{
  margin-right: 1rem;
}

/* BUTTONS */
.button {
  display: inline-flex; /* Flex to align text inside */
  align-items: center;
  justify-content: center;
  height: 3rem; /* Ensures same height */
  padding: 0 1.5rem; /* Adjusted for consistent spacing */
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  text-transform: uppercase;
  color: var(--body-color);
  background-color: var(--first-color);
  transition: 0.3s ease-in-out;
  box-sizing: border-box; /* Ensures border doesn't affect height */
}

.button:hover {
  background-color: var(--first-color-alt);
}

.button-alt {
  display: inline-flex; /* Same as .button */
  align-items: center;
  justify-content: center;
  height: 3rem; /* Same height */
  padding: 0 1.5rem;
  border: 2px solid var(--first-color);
  border-radius: 0.5rem;
  color: var(--first-color);
  background-color: transparent;
  transition: 0.3s ease-in-out;
  box-sizing: border-box;
}

.button-alt:hover {
  background-color: var(--first-color);
  color: var(--body-color);
}


/*=============== ABOUT ===============*/
.about__container{
  row-gap: 2.5rem;
  display: flex;
  justify-content: space-between;
  padding-bottom: 5rem;
}

.about__img{
  width: 500px;
  height: 750px;
  border-radius: 0.5rem;
  margin-right: 2.5rem;
}


.about__tabTitles{
  display: flex;
  margin: 1.3rem 0 3rem;
  color: var(--first-color);
}
.about__title{
  color: var(--second-color);
  font-size: 3rem;
  margin-bottom: 1rem;
  font-family: "Philosopher", sans-serif;
  font-weight: 700;
  font-style: normal;
}
.about__souText, .about__generalText{
  font-weight: 400;
}
.about__souText{
  margin-bottom: 2rem;
}

.about__generalText{
  margin-bottom: 1.5rem;
}
.about__titleLinks{
  margin-right: 3rem;
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
  position: relative;
}

.about__titleLinks::after{
  content: '';
  width: 0;
  height: 0.19rem;
  background: var(--first-color);
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  transition: 0.5s;
}

.about__titleLinks.active-tabLink::after{
  width: 50%;
  color: var(--first-color);
}

.about__tabSkills ul li{
  list-style: none;
  margin: 0.6rem o;
}



.about__tabContent{
  display: none;
  padding-left: 2rem;
}

.active-tab{
  display: block;
}

.timeline-item{
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child{
  padding-bottom: 0;
}

.timeline-item::before{
  content: '';
  width: 1px;
  position: absolute;
  height: 100%;
  left: 0.5rem;
  top: 0;
  background-color: var(--second-color);
}

.circle-dot{
  position: absolute;
  left: 0;
  top: 0;
  height: 0.9rem;
  width: 0.9rem;
  border-radius: 50%;
  background-color: var(--second-color);
  margin-left: 1px;
}

.timeline-date{
  font-weight: var(--font-medium);
  font-size: var(--smaller-font-size);
  margin-bottom: 0.1rem;
  color: var(--first-color-alt);
}

.timeline-date i{
  margin-right: 0.3rem;
}

.timeline-title{
  font-weight: var(--font-semibold);
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
  color: var(--second-color);
}

.timeline-text, .skills__item span{
  color: #484848;
}

/*=============== SKILLS ===============*/
.skills_title{
  color: var(--second-color);
  
}

.skills__filtre{
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.skills__content{
  width: 70%;
}

.skills_title{
  margin-bottom: 1rem;
}

.skills__box{
  display: flex;
  width: 90%;
  justify-content: space-around;
  flex-wrap: wrap;
}

.skills__item{
  transition: transform .4s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 2rem;
}

.skills__item img{
  margin-bottom: 0.5rem;
}



.skills__item:hover{
  transform: translateY(-.25rem);
}

/*=============== FEEDBACK ===============*/

.feedback {
  height: auto;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../img/feedback.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  position: relative;
  padding: 4rem 1rem;
}

.feedback::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.feedback__content {
  position: relative;
  z-index: 2;
  color: var(--title-color);
  max-width: 1200px;
  margin: 0 auto;
}

.feedback__title {
  font-size: 3rem;
  font-family: "Philosopher", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: var(--first-color);
  margin-bottom: 2rem;
}

.feedback__text {
  font-size: var(--h2-font-size);
  color: var(--text-color);
  line-height: 1.6;
  
}

.feedback__text p {
  margin-bottom: 1rem;
  font-size: var(--h3-font-size);
  text-align: left;
}

.see-more {
  color: var(--first-color);
  font-size: var(--normal-font-size);
  cursor: pointer;
  font-weight: 600;
  margin-left: 0.5rem;
  text-decoration: underline;
}

.see-more:hover {
  opacity: 0.8;
}



/*=============== WORK ===============*/
/* General styling for filters */
#projectFilters {
  margin-bottom: 2rem;
  text-align: center;
}

.filter-btn {
  margin: 0.3rem;
  padding: 0.5rem 1.2rem;
  background: #eee;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.2s ease;
}


.filter-btn:hover {
  border-bottom: 2px solid var(--second-color-alt);
  border-radius: 0px;
  color: var(--second-color-alt);
}

.filter-btn.active{
  border-bottom: 2px solid var(--first-color-alt);
  border-radius: 0px;
  color: var(--first-color-alt);
}

/* Work Container */
.work__container {
  padding-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section__title{
  color: var(--second-color);
  font-size: 3rem;
  margin-bottom: 1rem;
  font-family: "Philosopher", sans-serif;
  font-weight: 700;
  font-style: normal;
} 

/* Card Design */
.work__card {
  position: relative;
  background-color: var(--second-color);
  width: 20rem;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* Allow uniform height */
  min-height: 350px; /* Set a consistent min height for all cards */
}

.work__card:hover {
  transform: scale(1.05);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.work__img {
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  height: 182px;
  width: 100%;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.work__card:hover .work__img {
  filter: grayscale(0%);
}

.work__title{
  font-size: 1.3rem;
  font-weight: var(--font-medium);
  color: var(--first-color);
}

.work__soustitle{
  margin-bottom: 0.5rem;
}

.work__button{
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 0;
  color: white;
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  background-color: var(--second-color);
}

.work__card:hover .work__icon{
  transform: translateX(0.25rem);
}

.work__icon{
  font-size: 1.2rem;
  transition: 0.4s;
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease-in-out;
}

.show-modal {
  opacity: 1;
  visibility: visible;
}

.modal__content {
  background: var(--second-color);
  padding: 3rem;
  border-radius: 8px;
  
  width: 90%;
  
  position: relative;
  flex-direction: column;
  align-items: center;
  max-height: 90vh; /* Limit modal height */
  overflow-y: auto; /* Enable scrolling */
}

.modal__layout {
  display: flex;
  justify-content: left;
  align-items: flex-start;
  gap: 2rem;
}

.modal__img-container {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal__img-container{
  margin-bottom: 5rem;
}

.modal__img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.modal__info {
  margin-left: 20px;
  padding-left: 20px;
  margin-bottom: 5rem;
}

.modal__info p{
  margin-bottom: 1rem;
}

.modal__title{
  font-family: "Philosopher", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: var(--first-color);
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.modal__subtitle {
  color: var(--first-color);
  font-size: var(--h3-font-size);
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal__hashtags {
  margin-bottom: 2rem;
}

.modal__hashtags span {
  font-size: 0.9rem;
  color: white;
  margin: 0 5px;
  display: inline-block;
}

.modal__info__skills{
  display: flex;
  justify-content: left;
}

.modal__skills{
  color:white;
}

.modal__skills__hard{
  margin-right: 8rem;
}

.modal__buttons {
  
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.modal__info ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.modal__info li {
  text-align: left;
  margin-bottom: 0.5rem;
}

.model__pdfLink{
  color: white;
  text-decoration: underline;
}
.modal__close {
  position: fixed;
  top: 4rem;
  right: 8rem;
  z-index: 1001;
  background-color: var(--first-color);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.modal__close:hover {
  background: var(--first-color-alt);
}

.modal__link {
  border: 2px solid var(--first-color);
  color: var(--first-color);
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}

.modal__link:hover {
  background: var(--first-color);
  color: white;
}



/* Burger menu toggle */
.nav__toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}


.nav__toggle {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--first-color);
  background: transparent;
  border: none;
  z-index: 1100;
}
/*=============== CONTACT ===============*/

.contact__container {
  text-align: center;
}

.contact__container p{
  margin-top: 1rem;
}

.contact__text {
  color: var(--second-color);
  font-size: 3rem;
  margin-bottom: 1rem;
  font-family: "Philosopher", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.contactHR{
  margin-top: 4.5rem;
}

.contact__email {
  font-size: 2rem;
  color: var(--first-color);
  text-decoration: underline;
}

.contact__email:hover {
  color: var(--first-color-alt); /* Optional hover color */
}

/*=============== TABLET RESPONSIVE (768px - 1024px) ===============*/
@media screen and (min-width: 768px) and (max-width: 1046px) {

  /* General */
  .section {
    padding: 3rem 1rem;
  }

  .section__title {
    font-size: 2rem;
  }

  .section__subtitle {
    font-size: var(--small-font-size);
  }

  p {
    font-size: var(--normal-font-size);
  }

  /* Header & Nav */
  .nav__list li {
    margin: 0 1rem;
  }

  .nav__link {
    font-size: var(--normal-font-size);
  }

  /* Home */
  .home__title {
    font-size: 5rem;
  }

  .home__text {
    font-size: var(--h3-font-size);
  }

  .home {
    padding: 0 1rem;
  }

  /* About */
  .about__container {
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
  }

  .about__img {
    margin-right: 0;
  }

  .about__tabContent {
    padding-left: 0;
  }

  .about__title {
    font-size: 2.2rem;
    text-align: center;
  }

  /* Skills */
  .skills__content {
    width: 100%;
  }

  .skills__box {
    width: 100%;
  }

  .skills__item {
    width: 120px;
  }

  /* Feedback */
  .feedback__title {
    font-size: 2.2rem;
  }

  .feedback__text {
    font-size: var(--normal-font-size);
  }

  /* Work */
  .work__container {
    justify-content: center;
  }

  .work__card {
    width: 100%;
    max-width: 300px;
    min-height: 370px;
  }

  /* Modal */
  .modal__layout {
    flex-direction: column;
  }

  .modal__img-container,
  .modal__info {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
  }

  .modal__close{
    top: 3rem;
    right: 5rem;
  }
}

/*=============== RESPONSIVE FOR MOBILE ===============*/
@media screen and (max-width: 768px) {

  .section {
    padding: 3rem 1rem 1rem;
  }

  .header::after{
    width: 0%;
  }
/* Prevent background scroll */
.no-scroll {
  overflow: hidden;
  height: 100vh;
}

  .nav__toggle {
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
  }

  .nav__toggle.active {
    left: auto;
    right: 20px;
  }

  .nav__toggle.open {
    left: calc(100% - 50px); /* Move it to the right */
    font-size: 2rem;
    color: var(--first-color);
  }

  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    z-index: 99;
    transition: all 0.3s ease;
  }

  .nav__menu.show-menu {
    left: 0;
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    gap: 40px;
  }

  .nav__link {
    color: var(--first-color);
    font-size: 1.5rem;
  }

  .header.open {
    background: var(--white-color);
  }

  .home {
    padding: 2rem 1rem;
    text-align: center;
    background-attachment: scroll;
  }

  .home__title {
    font-size: 3rem;
    margin-top: 2rem;
  }

  .home__text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .button, .button-alt {
    width: 100%;
    margin-bottom: 1rem;
  }

  .cvButton {
    margin-right: 0;
  }

  .about__container {
    flex-direction: column;
    align-items: center;
    padding: 0 1rem 4rem;
  }

  .about__img {
    width: 100%;
    height: auto;
    margin: 0 0 2rem;
  }

  .about__tabTitles {
    align-items: center;
    justify-content: space-between;
  }

  .about__titleLinks {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .about__tabContent {
    padding-left: 0;
  }

  .skills__filtre {
    flex-direction: column;
    align-items: center;
  }

  .skills__content {
    width: 100%;
  }

  .skills__box {
    width: 100%;
    justify-content: center;
  }

  .feedback {
    padding: 3rem 1rem;
  }

  .work__container {
    flex-direction: column;
    align-items: center;
  }

  .modal__layout {
    flex-direction: column;
    align-items: center;
  }

  .modal__img-container,
  .modal__info {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .modal__title {
    font-size: 1.75rem;
  }

  .nav__list {
    flex-direction: column;
    gap: 1rem;
  }

  .nav__list li {
    margin: 0.5rem 0;
  }

  .section__title {
    font-size: 2rem;
  }

  .feedback__title {
    font-size: 2rem;
  }

  .timeline-title {
    font-size: 1.25rem;
  }

  .modal__info__skills{
    flex-direction: column;
  }
  .modal__skills__hard{
    margin-right: 0px;
  }

  .modal__close{
    top:2rem;
    right: 2rem;
  }

  .contact__container {
    padding: 2rem 1rem;
  }
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--first-color);
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 6px; /* Make it square or slightly rounded */
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}


