/* reset */
html,body,div,span,applet,object,iframe,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,img,ins,kbd,q,s,samp,small,strike,sub,sup,tt,var,b,u,i,dl,dt,dd,ol,nav ul,nav li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}
article, aside, details, figcaption, figure,footer, header, hgroup, menu, nav, section {display: block;}
blockquote,q{quotes:none;}
blockquote:before,blockquote:after,q:before,q:after {content:'';content:none;}
table {border-collapse:collapse;border-spacing:0;}
/* start editing from here */
a {text-decoration:none;}
.txt-rt {text-align:right;}
.txt-lt {text-align:left;}
.txt-center {text-align:center;}
.float-rt {float:right;}
.float-lt {float:left;}
.clear {clear:both;}
.pos-relative { position:relative; }
.pos-absolute { position:absolute; }
.vertical-base { vertical-align:baseline; }
.vertical-top {	vertical-align:top; }
.underline { padding-bottom:5px; border-bottom: 1px solid #eee; margin:0 0 20px 0; }
nav.vertical ul li { display:block; }
nav.horizontal ul li { display: inline-block; }
img {max-width: 100%;}
/*end reset*/

html {
	position: relative;
	min-height: 100%;
}

body {
  background:rgba(255, 255, 255, 0.697);
  color: black;
}

.dark-mode {
  background: rgba(37, 37, 38, 0.915);
  color: #ffffff;
}

.dark-mode .hamburger {
  color: #50507f;
}

.dark-mode .navbar {
  background: #1a1a1a;
  color: #fff;
}

.dark-mode .navbar a {
  color: #a8a4c5;
}

.dark-mode a:hover {
  color: #3876ac; /* Darker shade for hover */
}

.dark-mode a {
  color: #4f9dfc; /* Light blue for links */
}

.dark-mode .btn {
  background: #16330c;
  color: #fff;
  border: 1px solid transparent;
}

.dark-mode .btn:hover {
  color: #dcdcdc;
}

.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode h5, .dark-mode h6 {
  color: #fff;
}

.dark-mode input[type='text'],
.dark-mode input[type='email'],
.dark-mode input[type='password'],
.dark-mode textarea {
    background-color: #262626;
    color: #fff;
    border: 1px solid #555;
}

.dark-mode ::placeholder {
  color: #ddd;
}

.dark-mode .card,
.dark-mode .panel {
    background-color: #262626;
    color: #fff;
    border-color: #333;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

.dark-mode table {
  background-color: #262626;
  color: #fff;
}

.dark-mode th, .dark-mode td {
  border-color: #333;
}

@font-face {
  font-family: 'Protos';
  src: url("../fonts/Protos.d7dd70a360d2.otf");
}

@font-face {
  font-family: 'Futura';
  src: url("../fonts/57Futura-Regular.04e64896358e.otf")
}

@font-face {
  font-family: 'Segoe';
  src: url("../fonts/SegoeWP.88c7cb10b703.ttf");
}

.author {
  background:rgb(239, 240, 251); 
}

.dark-mode .author,
.dark-mode .comment-body {
  background-color: #333; /* ou une autre couleur adaptée */
  color: #fff;
}

.comment-body {
  padding-bottom: 20px;
}

.update-body {
  padding-bottom: 10px;
}

.update {
  padding-bottom: 20px;
}

.btn-primary {
  background-color: teal; /* Primary button color */
  border: 2px solid teal; /* Solid border with the same color */
  color: white; /* Text color */
  font-size: 16px; /* Font size */
  font-weight: bold; /* Bold text */
  text-transform: uppercase;
  border-radius: 5px; /* Rounded corners */
  transition: all 0.3s ease; /* Smooth transition for hover effects */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
  cursor: pointer; /* Cursor changes to pointer to indicate clickability */
  text-decoration: none; /* Removes underline from text */
}

.dark-mode .btn-primary {
  background-color: #261369;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: darken(teal, 10%); /* Darker shade of teal on hover/focus */
  border-color: darken(teal, 10%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); /* Slightly larger shadow on hover/focus */
}

.btn-primary:active {
  background-color: lighten(teal, 5%); /* Lighter shade when button is clicked */
  border-color: lighten(teal, 5%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Smaller shadow for active state */
}

.section-title {
  font-size: 1.2em;
  font-weight: bold;
  padding: 10px 0;
}

.projects-filter {
  font-family: 'Segoe';
  font-size: 16px;
  font-weight: 600;
  background-color: #5e5ea5;
  padding: 10px 15px;
  border-radius: 5px;
  margin-top: 10px;
  margin-bottom: 25px;
  display: flex; /* Aligns items in a row */
  flex-wrap: wrap; /* Allows items to wrap in smaller screens */
  width: fit-content;
}

.dark-mode .projects-filter {
  background-color: #343454;
}

.projects-filter a {
  color: #08f7fe;
  text-decoration: none;
  margin-right: 10px; /* Space between links */
  transition: color 0.3s ease;
}

.projects-filter a:hover {
  color: #ff3afc; /* Color change on hover */
  text-decoration: underline; /* Underline effect on hover */
}

.footer {
  background-color: black;
  height: 75px;
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  clear: both;
}

.footer p {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.697);
}

.footer a {
  color: #4f9dfc;
  text-decoration: none;
}

.footer a:hover {
  color: #ff3afc;
  text-decoration: underline;
}
.menu {
  float: left;
  margin-bottom: -20px;
}

.menu li {
	display: inline-block;
}

.menu li a {
	display: block;
	font-weight: bold;
  font-size: 21px;
	color:rgb(0, 0, 0);
  margin-left: 10px;
  font-family: 'Courier', Helvetica, sans-serif;
  transform: translateY(4px);
}

.menu li a:hover {
	color:rgb(73, 12, 12);
	text-decoration: underline;
	text-shadow: none;
}

.dark-mode .menu li a:hover {
	color:rgb(208, 185, 30);
}

.wrap {
	max-width: 1200px;
  margin: 0 auto;
  max-height: fit-content;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  margin: 0 19%;
}

@media (max-width: 1290px) {
  #projects-grid {
    width: 1000px;
  }

  .wrap {
    max-width: 1050px;
  }
}

@media (max-width: 1280px) {
  .nav-wrap {
    margin: 0 5%;
  }
}

@media (max-width: 800px) {
  .nav-wrap {
    margin: 0 0%;
  }
}

.hamburger-menu {
  display: none;
  position: absolute;
  background-color: #444;
  width: 100%;
  top: 100%;
  z-index: 1000;
}

.hamburger-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hamburger-menu ul li a {
  color: white;
  text-decoration: none;
  padding: 15px;
  display: block;
}

.content {
  /* margin-left: 30px;
  margin-right: 30px;
  margin-bottom: 100px; */
  text-justify: inter-word;
  font-family: 'Segoe';
  max-width: 1000px;
  margin: 0 auto;
}

.logo {
  max-width: 50px;
  max-height: 50px;
  transform: translate(15%, -15%);
  margin-left: 5px;
}

.navbar {
  background: linear-gradient(to left, #8c88b1, #a8a4c5);
  text-transform: uppercase;
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  color: #08f7fe;
  padding-top: 20px;
}

.navbar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.navbar li {
  margin-right: 20px;
  display: flex;
  align-items: center; /* Align text and icons on the same line */
}

.navbar a {
  color: #08f7fe; /* Neon link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #ff3afc; /* Change color on hover */
}

.theme-toggle {
  background-color: #1c1c3b;
  border: none;
  color: white;
  padding: 5px 15px;
  font-size: 0.8em;
  border-radius: 15px;
  cursor: pointer;
  margin-left: auto; /* Pushes button to the right */
  align-self: center; /* Align vertically */
  transition: background-color 0.3s ease;
  margin-left: 20px;
}

#theme-toggle:hover {
  background-color: #272757;
}

.contact_email {
  margin-top: 25px;
  margin-bottom: 25px;
  padding-bottom: 25px;
}

form {
  margin-top: 45px;
}

.email-sent {
  background-color:rgb(21, 213, 133);
  font-weight: 300;
  color: rgb(58, 53, 53);
  margin: 10px;
  padding: 10px;
}

.form {
  margin: 25px;
}

.form-field {
  font-weight: 600;
}

form p {
  margin: 10px;
}

p label {
  margin-right: 3em;
}

.logo-block {
  top: 50%;
  left: 50%;
  transform: translate(0, 10%);
}

.section-title {
  font-family: 'Courier New';
  font-size: 22px;
  text-transform: uppercase;
}

.tech-logo {
  width: 32px;
  height: 32px;
  margin-left: 5px;
}

ul {
  list-style: none;
}

#projects-grid {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
}

.project-item {
  position: relative;
  width: 320px;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.card-header, .card-footer {
  background-color: #f8f9fa; /* Light background for header and footer */
  padding: 10px 15px;
  border-bottom: 1px solid #ddd; /* Header/footer separator */
}

.dark-mode .card-header, .dark-mode .card-footer {
  background-color: #2a3a49;
  border-bottom: 1px solid #1e2438;
}

.card-body {
  padding: 15px;
  padding-top: 0;
  margin-top: -20px;
}

.card-img-top {
  width: 100%;
  height: auto;
  display: block;
}

.project-title {
  font-size: 1.25em;
  font-weight: bold;
  margin-bottom: 10px;
}

.card-text {
  margin-bottom: 10px;
}

.card-footer {
  text-align: right;
  border-top: none;
}

.btn-primary {
  background-color: #007bff;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
}

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

.mobile-menu {
  display: none;
  float: right;
}

.menu {
  margin: 0 auto;
}

.nav-wrap {
  margin: 0 auto;
}

@media (max-width: 768px) {
  .nav-wrap {
    display: flex;
    justify-content: space-between; /* Aligns items to each end */
    align-items: center;
    margin: 0 75%;
  }

  .mobile-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align hamburger to the right */
    flex-grow: 1;
  }

  .hamburger-menu.active {
    display: block;
    position: absolute;
    top: 100%; /* Position below the navbar */
    right: 0;
    width: auto;
  }

  .hamburger-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  .hamburger-menu ul li a {
    display: block;
  }

  .menu, .nav-wrap > ul {
    display: none;
  }

  .logo {
    transform: translate(0, 20%);
  }

  .navbar {
    padding-top: 0;
  }

  .hamburger {
    background: none;
    border: none;
    display: flex;
    margin: 0;
    border: none;
    color: rgb(6, 4, 4);
    font-size: 60px;
    cursor: pointer;
    transform: translate(0, -10%);
    padding: 0;
    align-self: center;
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 820px) {
  #projects-grid {
    width: 660px;
  }
}

@media (max-width: 670px) {
    #projects-grid {
      width: 320px;
    }

    .nav-wrap {
      margin: 0 65%;
    }
}

@media (max-width: 570px) {
  .nav-wrap {
    margin: 0 60%;
  }

  #projects-grid {
    width: 320px;
  }

  .project-item {
    position: relative;
    margin: 0 auto;
  }
}

@media (max-width: 450px) {
  .nav-wrap {
    margin: 0 55%;
  }

  #projects-grid {
    width: 280px;
  }

  .project-item {
    position: relative;
    margin: 0 auto;
    width: 280px;
    box-sizing: border-box;
  }
}

@media (max-width: 400px) {
  .nav-wrap {
    margin: 0 42%;
  }

  .content {
    margin-left: 0;
    margin-right: 0;
    margin: 0 auto;
    font-family: 'Segoe';
  }

  .project-item {
    position: relative;
    margin: 0 auto;
    width: 280px;
    box-sizing: border-box;
  }
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.theme-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
