@charset "utf-8";
@import url('https://fonts.googleapis.com/css?family=Quicksand:300,400,500,700');
@import url('https://fonts.googleapis.com/css?family=Roboto');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
h1,
h2,
h3,
h4,
h5,
h6 {


}
html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  height: 100%;
  font-family: 'Quicksand', sans-serif;
 color: rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  font-size: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fafafa;
}
label {
  padding: 0;
  margin: 0;
}
ul, li, ol {
  padding: 0;
  margin: 0;
}
li{
  list-style: none;
}
a, img {
  border: 0;
  outline: none;
  text-decoration: none;
}
input::-moz-focus-inner {
  border: 0;
}
bo {
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
input, select, textarea, button{
  font-family: 'Muli', sans-serif;
}
input:focus, select:focus, textarea:focus, button:focus{
  outline: 0;
}

a {
  color: inherit;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s; }


p {
  margin-bottom: 1.5em; }


h1, h2, h3, h4, h5, h6 {
  color: #000;
  font-family: "Quicksand", Arial, sans-serif;
  font-weight: 400;
  margin: 0 0 30px 0; }


i.material-icons {
  font-size: inherit;
  line-height: inherit;
}
::-webkit-scrollbar-track
{
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  background-color: #F5F5F5;
}

::-webkit-scrollbar
{
  width: 5px;
  height: 5px;
  background-color: #F5F5F5;
}

::-webkit-scrollbar-thumb
{

  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
  background-color: #777;
}

/*===========================================
Text Styles CSS
============================================*/
.t-title-size{
  font-size: 18px;
}
.t-bold{
  font-weight: 600;
}
.t-normal{
  font-weight: normal;
}
.t-center{
  text-align: center;
}
.t-right{
  text-align: right;
}



/*===========================================
Padding & Margins CSS
============================================*/
.p-5{
  padding: 5px;
}
.p-10{
  padding: 10px;
}
.p-15{
  padding: 15px;
}
.p-20{
  padding: 20px;
}
.p-25{
  padding: 25px;
}
.p-30{
  padding: 30px;
}
.p-35{
  padding: 35px;
}
.p-40{
  padding: 40px;
}
.p-45{
  padding: 45px;
}
.p-50{
  padding: 50px;
}

.p-right5{
  padding-right: 5px;
}
.p-right10{
  padding-right: 10px;
}
.p-right15{
  padding-right: 15px;
}
.p-right20{
  padding-right: 20px;
}
.p-right25{
  padding-right: 25px;
}
.p-right30{
  padding-right: 30px;
}

.p-left5{
  padding-left: 5px;
}
.p-left10{
  padding-left: 10px;
}
.p-left15{
  padding-left: 15px;
}
.p-left20{
  padding-left: 20px;
}
.p-left25{
  padding-left: 25px;
}
.p-left30{
  padding-left: 30px;
}

.m-5{
  margin: 5px;
}
.m-10{
  margin: 10px;
}
.m-15{
  margin: 15px;
}
.m-20{
  margin: 20px;
}
.m-25{
  margin: 25px;
}
.m-30{
  margin: 30px;
}
.m-35{
  margin: 35px;
}
.m-40{
  margin: 40px;
}
.m-45{
  margin: 45px;
}
.m-50{
  margin: 50px;
}

/*===========================================
Display Styles
============================================*/
.d-flex{
  display: flex;
}
.d-flex-align-center{
  display: flex;
  align-items: center;
  flex-direction: row;
}
.d-flex-align-center-column{
  display: flex;
  align-items: center;
  flex-direction: column;
}
.flex-1{
  flex: 1;
}
.flex-2{
  flex: 2;
}



/*===========================================
Page Styles
============================================*/

.wraper {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}


.container {
    height: 100%;
    display: flex;
    flex-direction: row;
}

.left-content {
    width: 300px;
    overflow-y: auto;
    height: 100%;
    background: #fff;
    border-right: 1px solid rgba(221, 221, 221, 0.38);
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    margin-left: 10px;
    background: #fff;
    border-left: 1px solid rgba(221, 221, 221, 0.38);
}

/* ========================================
   MOBILE MENU SYSTEM
   ======================================== */

/* Mobile Menu Toggle Button (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #333;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animated hamburger to X */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

.logo {
    display: flex;
    justify-content: flex-end;
}

.logo a {
    color: #fff;
    text-align: right;
    background: #000;
    display: flex;
    flex-direction: column;
    padding: 10px;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 30px;
    font-weight: 500;
}

.nav {
    flex: 1;
    /* display: flex; */
    justify-content: flex-end;
    margin: 50px 0px;
}

.nav ul li, .nav ul li a {
    display: flex;
    justify-content: flex-end;
}

.nav ul li a {
    padding: 8px 0px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
}

.nav ul li a:hover {
    color: #000;
}
.nav ul li a:after {
    content: "";
    width: 0;
    height: 1px;
    background: #000;
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    -webkit-transform: scaleX(0);
    -moz-transform: scaleX(0);
    -ms-transform: scaleX(0);
    -o-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -moz-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -ms-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -o-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav ul li a:hover:after {
    width: 100%;
    -webkit-transform: scaleX(1);
    -moz-transform: scaleX(1);
    -ms-transform: scaleX(1);
    -o-transform: scaleX(1);
    transform: scaleX(1);
}

.left-footer {
    color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.foot-contact, .social-icons ul, .copy-rights {
    display: flex;
    justify-content: flex-end;
}

.social-icons ul li {
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
}

.foot-contact ul {
    display: flex;
    flex-direction: column;
}

.foot-contact ul li {
    justify-content: flex-end;
    display: flex;
    margin: 2px 0px;
}

.foot-contact {
   margin: 5px 0px;
}

.social-icons ul li a {
    padding: 5px 8px;
    font-size: 16px;
}

.social-icons ul li a:hover {
  color: #000;
  transform: scale(1.2) translateY(-5px);
}

.sm-text {
    letter-spacing: 2.1px;
    font-weight: normal;
    color: #222222;
    font-size: 14px;
    font-family: "Roboto", sans-serif;
    text-transform: uppercase;
}

.name {
    font-size: 40px;
    text-transform: uppercase;
    margin: 15px 0px;
    color: #222222;
    font-family: "Roboto", sans-serif;
    font-weight: 600;
}

.role {
    font-size: 18px;
    font-weight: 500;
    font-family: "Roboto", sans-serif;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #222222;
}

.text {
   
    font-size: 15px;
}

.pr-list {
    margin: 30px 0px;
    
}

.pr-list ul li {
    margin-bottom: 8px;
}

.pr-list ul li i {
    width: 18px;
}
.social-icons-head ul {
    display: flex;
}

.social-icons-head ul li a {
    padding: 5px 10px;
    font-size: 22px;
    transition: all .3s;
        display: flex;
}

.social-icons-head {}

.social-icons-head ul li:nth-child(1) a {
    padding-left: 0;
}

.social-icons-head ul li a:hover {
    color: #000;
    transform: scale(1.2) translateY(-5px);
}
.sec-title {
    margin-bottom: 50px;
}

.pg-title {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 1.8;
    color: #000;
}

.pg-sub-title {
    margin-bottom: 8px;
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #8a97ad;
    font-weight: 500;
    letter-spacing: 4px;
}

.pg-sub-title span {
    color: #000;
    font-weight: 600;
}

.pg-text {
    font-size: 14px;
    line-height: 1.8;
    color: #999999;
    margin-bottom: 30px;
}

.pg-text a {
    color: #000;
    font-weight: 600;
}

.pg-text a:hover {
    color: #000;
    text-decoration: underline;
}

.user-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-gap: 40px;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.profile-img {
  grid-row: 1 / span 3;
}

.profile-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.profile-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-header h1 {
  font-size: 48px;
  font-weight: bold;
  margin: 0;
}

.profile-header h2 {
  font-size: 24px;
  color: #666;
  margin: 0 0 16px 0;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.profile-details p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.profile-details i {
  width: 20px;
  color: #666;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
}

.social-icons a {
  color: #1f2d3d;
  font-size: 22px;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.social-icons a:hover {
  color: #334155;
  transform: translateY(-1px);
}

.cv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 6px 10px;
  background: transparent;
  color: #1f2d3d;
  border: 1px solid #dce2ec;
  border-radius: 14px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cv-button:hover {
  background: #f7f9fc;
  border-color: #cfd7e4;
  color: #0f172a;
  transform: translateY(-1px);
}

.cv-button i {
  font-size: 16px;
  line-height: 1;
}

.social-icons .linkedin-icon {
  color: #0a66c2;
}

.social-icons .linkedin-icon:hover {
  color: #084a8e;
}

/* Responsive Design */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  /* Sidebar remains visible but narrower */
  .left-content {
    width: 250px;
  }

  /* Main content adjustments */
  .main-content {
    margin-left: 8px;
  }

  /* Profile section adjustment */
  .user-profile {
    grid-template-columns: 250px 1fr;
    padding: 25px;
    grid-gap: 30px;
  }

  .profile-header h1 {
    font-size: 38px;
  }

  .profile-header h2 {
    font-size: 22px;
  }

  /* Section padding */
  .p-30 {
    padding: 25px !important;
  }

  /* Navigation font size */
  .nav ul li a {
    font-size: 13px;
  }

  /* Logo adjustment */
  .logo a {
    font-size: 18px;
    letter-spacing: 3px;
  }

  /* Skills section */
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Portfolio section */
  .portfolio-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Work experience */
  .work-item {
    gap: 30px;
  }

  .work-year {
    min-width: 100px;
  }

  /* Language selector stays in footer; no special positioning needed */
}

@media screen and (min-width: 481px) and (max-width: 768px) {
  /* Show mobile menu toggle for tablets */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Sidebar for tablets - wider than mobile */
  .left-content {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-top: 70px !important;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  }

  .left-content.active {
    left: 0;
  }

  /* Main content adjustments */
  .main-content {
    margin-left: 0;
    width: 100%;
    border-left: none;
  }

  .container {
    flex-direction: column;
  }

  /* Language selector */
  .language-selector {
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
  }

  .language-selector .lang-btn {
    font-size: 11px;
    padding: 6px 12px;
    min-height: 32px;
  }

  /* Profile section - 2 column approach on tablets */
  .user-profile {
    grid-template-columns: 250px 1fr;
    padding: 25px;
    grid-gap: 25px;
  }

  .profile-img {
    max-width: 100%;
  }

  .profile-header h1 {
    font-size: 36px;
  }

  .profile-header h2 {
    font-size: 22px;
  }

  /* Section padding */
  .p-30 {
    padding: 20px !important;
  }

  /* Work experience tablet layout */
  .work-item {
    flex-direction: column;
    gap: 15px;
  }

  .work-year {
    min-width: auto;
  }

  /* Skills - 2 columns on tablets */
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 18px;
  }

  /* Portfolio - 2 columns on tablets */
  .portfolio-list {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 18px;
  }

  .portfolio-img img {
    height: 180px;
  }

  /* Contact form */
  .contact-form {
    max-width: 500px;
    padding: 20px;
  }
}

@media screen and (max-width: 480px) {
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Make room for the floating language selector */
  /* Transform sidebar for mobile */
  .left-content {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-top: 70px !important;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  }

  .left-content.active {
    left: 0;
  }

  /* Main content takes full width */
  .main-content {
    margin-left: 0;
    width: 100%;
    border-left: none;
  }

  /* Container adjusts for mobile */
  .container {
    flex-direction: column;
  }

  /* Language selector adjustment */
  .language-selector {
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
  }

  .language-selector .lang-btn {
    font-size: 10px;
    padding: 6px 10px;
    min-height: 30px;
    gap: 4px;

    /* More subtle animation on mobile */
    animation: subtle-pulse 3s ease-in-out infinite;
  }

  .flag-icon {
    width: 16px;
    height: 12px;
  }

  /* Profile section mobile optimization */
  .user-profile {
    grid-template-columns: 1fr;
    padding: 15px;
    grid-gap: 15px;
  }

  .profile-img {
    grid-row: 1;
    max-width: 180px;
    margin: 0 auto;
  }

  .profile-header h1 {
    font-size: 28px;
    text-align: center;
  }

  .profile-header h2 {
    font-size: 18px;
    text-align: center;
  }

  .profile-details {
    align-items: center;
    text-align: center;
  }

  .profile-details p {
    font-size: 14px;
  }

  .social-icons {
    justify-content: center;
  }

  /* Section padding reduction */
  .p-30 {
    padding: 15px !important;
  }

  /* Work experience mobile layout */
  .work-item {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
  }

  .work-year {
    min-width: auto;
    font-size: 13px;
  }

  .work-title {
    font-size: 16px;
  }

  .work-company {
    font-size: 15px;
  }

  .work-text li {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Skills section mobile */
  .skills-container {
    grid-template-columns: 1fr;
    grid-gap: 15px;
  }

  .skill-name {
    font-size: 15px;
  }

  .skill-level {
    font-size: 12px;
    min-width: 80px;
    padding: 4px 10px;
  }

  /* Portfolio mobile - single column */
  .portfolio-list {
    grid-template-columns: 1fr;
    grid-gap: 15px;
  }

  .portfolio-img img {
    height: 180px;
  }

  .portfolio-title {
    font-size: 16px;
  }

  .portfolio-text {
    font-size: 13px;
  }

  /* Education mobile */
  .education-item {
    margin-bottom: 20px;
  }

  .education-details {
    margin-left: 0;
  }

  .education-title {
    font-size: 18px;
  }

  .education-text {
    font-size: 15px;
  }

  /* Contact form mobile */
  .contact-form {
    padding: 15px;
    max-width: 100%;
  }

  .form-control {
    font-size: 16px;
  }

  /* Typography adjustments */
  .pg-title {
    font-size: 16px;
    letter-spacing: 3px;
  }

  .pg-sub-title {
    font-size: 9px;
    letter-spacing: 3px;
  }
}

/* Work Experience Section Styles */
.section2 {
  background: #fff;
  padding: 30px;
}
.work-list {
  margin: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.work-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0 28px 0;
  border-bottom: 1px solid #e7edf5;
  align-items: flex-start;
}
.work-year {
  font-size: 12px;
  color: #8a97ad;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  min-width: auto;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.work-details {
  flex: 1;
  width: 100%;
}
.work-title {
  font-size: 18px;
  color: #1f2d3d;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.work-contract {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.work-company {
  font-size: 15px;
  color: #5b6676;
  font-weight: 600;
  margin-bottom: 14px;
}

/* Description du job - Style amélioré */
.work-text ul {
  margin: 0 0 14px 0;
  padding-left: 16px;
  list-style: none;
}

.work-text li {
  font-size: 15px;
  line-height: 1.7;
  color: #4f5b66;
  margin-bottom: 10px;
  position: relative;
}

.work-text li:before {
  content: "•";
  color: #9aa6b8;
  font-weight: 700;
  position: absolute;
  left: -14px;
}

/* Environnement technique - Style avec badges */
.work-tech {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

.work-tech h4 {
  font-size: 12px;
  color: #5b6676;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #e8f3ff;
  border: 1px solid #c7dcf7;
  color: #174579;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(23, 69, 121, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.tech-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(23, 69, 121, 0.12);
  background: #f2f7ff;
  border-color: #b6cff5;
}

/* Responsive Design for Work Experience */
@media (max-width: 768px) {
  .work-item {
    flex-direction: column;
    gap: 15px;
  }
 
  .work-year {
    min-width: auto;
  }
  
  .tech-badges {
    justify-content: flex-start;
  }
  
  .work-text li {
    font-size: 15px;
  }
}

/* Skills Section Styles */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 20px;
  margin: 20px 0;
}

.skills-title {
  text-align: left;
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.6;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

.category-title {
  font-weight: 600;
  font-size: 18px;
  color: #555;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.6;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-name {
  font-weight: normal;
  font-size: 18px;
  color: #333;
  margin-right: 10px;
}

.skill-level {
  background-color: #f0f0f0;
  border-radius: 10px;
  padding: 5px 15px;
  text-align: center;
  font-size: 14px;
  color: #333;
  font-weight: 600;
  display: inline-block;
  min-width: 100px;
}

/* Skill Level Colors */
.skill-level.Expert {
  background-color: #FFD700; /* Gold for expert level */
  color: white;
}

.skill-level.Advanced {
  background-color: black; /* Black for advanced level */
  color: white;
}

.skill-level.Intermediate {
  background-color: #FF9800; /* Orange for intermediate level */
  color: white;
}

/* Portfolio Section Styles */
.section3 {
  background: #fff;
  padding: 30px;
}

.portfolio-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 20px;
  margin: 20px 0;
}

.portfolio-item {
  background: #f9f9f9;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-img img {
  width: 100%;
  height: 200px; /* or any other fixed height */
  object-fit: cover; /* This will ensure that the aspect ratio is maintained without stretching the image */
  display: block;
  transition: transform 0.3s ease-in-out;
}

.portfolio-details {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Added this line */
    gap: 15px;
}

.portfolio-title {
  font-size: 18px;
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.portfolio-text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}

.portfolio-button {
    display: block; /* Changed from inline-block to block */
    width: fit-content; /* Added this line */
    padding: 10px 30px;
    margin: 15px auto; /* Changed margin to auto for horizontal centering */
    background-color: #000;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    border: 2px solid #000;
    text-align: center; /* Added this line */
}

.portfolio-button:hover {
    background-color: transparent;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.portfolio-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transition: 0.5s;
}

.portfolio-button:hover::before {
    left: 100%;
}

/* Responsive Design for Portfolio Section */
@media (max-width: 768px) {
  .portfolio-list {
      grid-template-columns: 1fr;
  }
}

/* Education Section Styles */
.section4 {
    background: #fff;
    padding: 30px;
}

.education-list {
    margin: 20px 0;
}

.education-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.education-year {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.education-details {
    margin-left: 20px;
}

.education-title {
    font-size: 20px;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.education-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Responsive Design for Education Section */
@media (max-width: 768px) {
    .education-details {
        margin-left: 0;
    }
}

/* Contact Section Styles */
.section5 {
  background: #fff;
  padding: 30px;
}

.contact-form {
  max-width: 600px;
  margin: auto;
  padding: 15px;
  background: #f9f9f9;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.form-group {
  margin-bottom: 15px;
}

.form-control {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #000;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
}

/* Updated Styles for the Contact Form's Message Block */
.contact-form .form-group textarea {
  height: 150px; /* Increase the height of the textarea */
  resize: vertical; /* Allows the user to resize the textarea vertically */
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
  .contact-form {
      padding: 15px;
  }
}

.notification {
    position: fixed;
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: none;
    padding: 10px 20px;
    color: #fff;
    background-color: #4CAF50; /* couleur par défaut pour succès */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-align: center;
}

.notification-icon {
    margin-right: 10px;
}

/* Classe spécifique pour les erreurs */
.notification-error {
    background-color: #FF0000; /* rouge pour les erreurs */
}

/* Language selector inside the sidebar footer */
.language-selector {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: auto;
    align-self: flex-end;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
}

.language-selector .lang-btn {
    background: linear-gradient(145deg, #f8f9fb, #eef0f5);
    border: 1px solid #e1e4eb;
    color: #2c2c34;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    isolation: isolate;

    /* Call-to-action animation */
    animation: pulse-glow 2.5s ease-in-out infinite;
    will-change: transform, box-shadow;
}

.language-selector .lang-btn:hover {
    background: linear-gradient(145deg, #ffffff, #f0f2f7);
    border-color: #cfd3dd;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);

    /* Stop pulse-glow animation on hover */
    animation: none;
}

.language-selector .lang-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);

    /* Stop pulse-glow animation on active button */
    animation: none;
}

.language-selector .lang-btn.active:hover {
    background: #222;
    border-color: #222;
}

.language-selector .lang-btn.active:hover::after {
    border-color: rgba(255, 255, 255, 0.75);
}

.language-selector .lang-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.18);
}

/* ========================================
   LANGUAGE SELECTOR ANIMATIONS
   ======================================== */

/* Call-to-action animation: Pulse + Glow */
@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 0 20px rgba(17, 17, 17, 0.1);
    }
}

/* Subtle pulse for mobile */
@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* Ring animation for hover/focus */
@keyframes lang-ring {
    0% {
        opacity: 0.45;
        transform: scale(0.75);
    }
    70% {
        opacity: 0.08;
        transform: scale(1.35);
    }
    100% {
        opacity: 0;
        transform: scale(1.45);
    }
}

.language-selector .lang-btn::after {
    content: "";
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(17, 17, 17, 0.4);
    border-radius: 999px;
    opacity: 0;
    transform: scale(0.75);
    pointer-events: none;
}

.language-selector .lang-btn:hover::after,
.language-selector .lang-btn:focus-visible::after {
    animation: lang-ring 1.2s ease-out infinite;
}

.language-selector .lang-btn.active::after {
    border-color: rgba(255, 255, 255, 0.65);
}

/* Accessibility: Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .language-selector .lang-btn {
        animation: none;
    }

    .language-selector .lang-btn:hover::after,
    .language-selector .lang-btn:focus-visible::after {
        animation: none;
    }
}

/* ========================================
   TECHNICAL ENVIRONMENT BADGES
   ======================================== */

.technical-environment {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin: 4px 6px 4px 0;
    background: #e8f3ff;
    border: 1px solid #c7dcf7;
    color: #174579;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(23, 69, 121, 0.08);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.technical-environment:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(23, 69, 121, 0.12);
    background: #f2f7ff;
    border-color: #b6cff5;
}

.flag-icon {
    display: inline-block;
    width: 20px;
    height: 14px;
    background-size: cover;
    margin-right: 4px;
}
.flag-icon-gb {
    background-image: url('https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/6.6.6/flags/4x3/gb.svg');
}
.flag-icon-fr {
    background-image: url('https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/6.6.6/flags/4x3/fr.svg');
}

/* ========================================
   TOUCH-FRIENDLY IMPROVEMENTS
   ======================================== */

/* Touch-Friendly Improvements for Touch Devices */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets on touch devices */
    .nav ul li a {
        padding: 12px 0px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .social-icons a {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .portfolio-button {
        min-height: 44px;
        padding: 12px 30px;
    }

    .btn {
        min-height: 48px;
    }

    .lang-btn {
        min-height: 40px;
    }

    /* Improve form inputs on touch */
    input[type="text"],
    input[type="email"],
    textarea {
        min-height: 44px;
    }
}
