/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@100..900&family=Montserrat+Alternates:wght@600;700;800&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  --hue: 200;
  --first-color: hsl(var(--hue), 60%, 40%);
  --title-color: hsl(var(--hue), 4%, 12%);
  --text-color: hsl(var(--hue), 4%, 20%);
  --body-color: hsl(var(--hue), 30%, 92%);
  --container-color: hsl(0, 0%, 100%);
  --border-color: hsl(var(--hue), 4%, 16%);
  --white-color: hsl(0, 0%, 100%);
  --shadow-color: hsla(var(--hue), 80%, 10%, 0.2);
  --first-color-rgb: 33, 150, 243;

  /*========== Font family ==========*/
  --body-font: 'Jost', sans-serif;
  --second-font: 'Montserrat Alternates', sans-serif;

  /*========== Font sizes - MOBILE ==========*/
  --big-font-size: 3.5rem;
  --h1-font-size: 2rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --larger-font-size: 1.125rem;
  --large-font-size: 1rem;
  --normal-font-size: 0.9375rem;
  --small-font-size: 0.8125rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-black: 800;

  /*========== Spacing ==========*/
  --mobile-padding: 1rem;
  --desktop-padding: 1.5rem;

  /*========== Transition ==========*/
  --transition: cubic-bezier(0.3, 0, 0.3, 1);
}

/*=============== RESPONSIVE ===============*/
@media screen and (min-width: 768px) {
  :root {
    --big-font-size: 4.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1rem;
  }
}

@media screen and (min-width: 1024px) {
  :root {
    --big-font-size: 5.5rem;
    --h1-font-size: 2.75rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.5rem;
  }
}

/*=============== DARK THEME ===============*/
.dark {
  --title-color: hsl(0, 0%, 100%);
  --text-color: hsl(0, 0%, 92%);
  --body-color: hsl(var(--hue), 10%, 8%);
  --container-color: hsl(var(--hue), 10%, 16%);
  --border-color: hsl(var(--hue), 4%, 65%);
  --shadow-color: hsla(var(--hue), 0%, 100%, 0.2);
}

.dark .shape {
  filter: invert(1);
}

/*=============== BASE - MOBILE ===============*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
button,
input,
textarea {
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  line-height: 1.6;
}

body {
  background-color: var(--body-color);
  transition: background-color 0.3s var(--transition);
  overflow-x: hidden;
  width: 100%;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

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

button,
input,
textarea {
  border: none;
  outline: none;
  background-color: transparent;
}

/* Fix for iOS */
input,
textarea,
button,
select {
  font-size: 16px;
  border-radius: 0;
}

/*=============== HIGHLIGHT STYLE ===============*/
.highlight {
  color: var(--first-color);
  font-weight: var(--font-bold);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.social-links {
  display: inline-flex;
  column-gap: 1.25rem;
}

.social-link {
  color: var(--title-color);
  font-size: var(--h3-font-size);
  transition: color 0.7s var(--transition), transform 0.3s var(--transition);
}

.social-link:hover {
  color: var(--first-color);
  transform: translateY(-3px);
}

.section {
  padding-block: 4rem var(--mobile-padding);
}

@media screen and (min-width: 768px) {
  .section {
    padding-block: 6rem;
  }
}

.btn,
.home-link {
  display: inline-block;
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-bold);
  position: relative;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn {
  border: 2px solid var(--border-color);
  box-shadow: 3px 3px var(--shadow-color);
  padding: 0.875rem 2rem;
  border-radius: 3rem;
  transition: color 0.7s var(--transition), transform 0.3s var(--transition);
  cursor: pointer;
}

.btn:hover {
  color: var(--white-color);
  transform: translateY(-2px);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 2px;
  background-color: var(--first-color);
  border-radius: inherit;
  transform: scale(0.3);
  filter: blur(10px);
  opacity: 0;
  z-index: -10;
  transition: all 0.7s var(--transition);
}

.btn:hover::before {
  transform: scale(1);
  filter: blur(0);
  opacity: 1;
}

.section-title {
  font-size: var(--h1-font-size);
  text-align: center;
  margin-bottom: 4.25rem;
  position: relative;
}

.section-title::after {
  content: attr(data-title);
  display: block;
  color: var(--first-color);
  font-family: var(--body-font);
  font-size: var(--large-font-size);
  margin-top: 0.5rem;
}

.link {
  display: inline-flex;
  align-items: center;
  column-gap: 1.25rem;
  color: var(--title-color);
  font-weight: var(--font-bold);
  transition: color 0.3s var(--transition);
}

.link-icon {
  color: var(--first-color);
  font-size: 1.25rem;
  transition: transform 0.3s var(--transition);
}

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

.link:hover .link-icon {
  transform: translateX(-0.5rem);
}

/*=============== LAYOUT ===============*/
.container {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--mobile-padding);
}

@media screen and (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

@media screen and (min-width: 1024px) {
  .container {
    padding-inline: var(--desktop-padding);
  }
}

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

/*=============== HEADER & NAV ===============*/
.header {
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s var(--transition);
  backdrop-filter: blur(10px);
}

.header.scrolled {
  background-color: var(--container-color);
  box-shadow: 0 2px 20px var(--shadow-color);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 var(--mobile-padding);
  position: relative;
  flex-wrap: nowrap;
  min-height: 60px;
}

@media screen and (min-width: 768px) {
  .nav {
    height: 5rem;
    padding: 0 2rem;
  }
}

@media screen and (min-width: 1024px) {
  .nav {
    padding: 0 var(--desktop-padding);
  }
}

.nav-logo {
  font-family: var(--second-font);
  font-size: clamp(0.9rem, 4vw, var(--h3-font-size));
  font-weight: var(--font-bold);
  color: var(--title-color);
  transition: color 0.3s var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
  flex-shrink: 1;
}

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

@media screen and (max-width: 480px) {
  .nav-logo {
    font-size: 0.9rem;
    max-width: 140px;
  }
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/*=============== LANGUAGE SWITCHER ===============*/
.language-switcher {
  display: flex;
  gap: 0.25rem;
}

@media screen and (max-width: 480px) {
  .language-switcher {
    display: flex;
    gap: 0.2rem;
  }
}

.lang-btn {
  background: none;
  border: 2px solid var(--border-color);
  color: var(--title-color);
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  font-weight: var(--font-bold);
  cursor: pointer;
  transition: all 0.3s var(--transition);
  font-size: var(--smaller-font-size);
  min-width: 44px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lang-btn:hover {
  background-color: var(--first-color);
  color: var(--white-color);
  border-color: var(--first-color);
  transform: translateY(-2px);
}

.lang-btn.active {
  background-color: var(--first-color);
  color: var(--white-color);
  border-color: var(--first-color);
  box-shadow: 0 4px 8px rgba(var(--first-color-rgb), 0.3);
}

.lang-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.lang-btn:hover::after {
  left: 100%;
}

@media screen and (max-width: 480px) {
  .lang-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    min-width: 35px;
  }
}

/*=============== MOBILE NAVIGATION ===============*/
.nav-settings,
.nav-toggle {
  cursor: pointer;
  color: var(--title-color);
  font-size: 1.75rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s var(--transition);
}

.nav-settings:hover,
.nav-toggle:hover {
  color: var(--first-color);
  background-color: rgba(0,0,0,0.05);
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  background-color: var(--container-color);
  width: 200px;
  height: 100vh;
  padding: 5rem 2rem 0;
  transition: right 0.4s var(--transition);
  box-shadow: -10px 0 30px var(--shadow-color);
  z-index: 1001;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.show-menu {
  right: 0;
}

@media screen and (min-width: 600px) {
  .nav-menu {
    width: 320px;
    padding: 5rem 5rem 0;
  }
}

.nav-list {
  margin-bottom: 1rem;
  width: 100%;
}

.nav-item {
  margin-bottom: -0.5rem;
}

.nav-link {
  font-size: var(--larger-font-size);
  padding: 0.75rem 1rem;
  display: block;
  border-radius: 0.5rem;
  transition: all 0.3s var(--transition);
  color: var(--title-color);
}

.nav-link:hover {
  background-color: hsla(var(--hue), 60%, 40%, 0.1);
  padding-left: 1.5rem;
  color: var(--first-color);
}

.nav-close {
  position: absolute;
  top: 1.25rem;
  right: var(--mobile-padding);
  font-size: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  color: var(--title-color);
}

.nav-close:hover {
  background-color: hsla(var(--hue), 60%, 40%, 0.1);
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home-container {
  padding-block: 2.5rem;
  padding-top: 6rem;
}

@media screen and (min-width: 768px) {
  .home-container {
    padding-block: 4.25rem;
    padding-top: 8rem;
  }
}

.home-content {
  position: relative;
}

.home-subtitle {
  font-size: var(--large-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
}

.home-subtitle span {
  color: var(--first-color);
  font-weight: var(--font-bold);
}

.home-title span {
  color: var(--first-color);
}

.home-title {
  color: var(--white-color);
  font-size: 4.5rem;
  font-weight: var(--font-black);
  -webkit-text-stroke: 2px hsl(0, 0%, 0%);
  text-shadow: 4px 4px var(--shadow-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.home-title span {
  display: inline-block;
}

.home-title .last-name {
  display: block;
  font-size: 4rem;
  font-weight: 6000;
  color: #ffffff;
  margin-top: 0.3rem;
}

@media screen and (max-width: 1024px) {
  .home-title .last-name {
    font-size: 4rem;
  }

  .home-title {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  .home-title {
    -webkit-text-stroke: 1px hsl(0, 0%, 0%);
    text-shadow: 3px 3px var(--shadow-color);
    gap: 0.2rem;
  }
  
  .home-title .last-name {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-top: 0.2rem;
  }
}

@media screen and (max-width: 480px) {
  .home-title .last-name {
    font-size: 2.2rem;
  }
}

@media screen and (max-width: 331px) {
  .home-title .last-name {
    font-size: 2.0rem;
  }
}
@media screen and (max-width: 300px) {
  .home-title .last-name {
    font-size: 1.8rem;
  }
}

.home-job {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-block: 1.5rem 2.5rem;
}

.home-banner {
  position: relative;
  margin: 2rem auto;
}

.home-img-wrapper{
  
  border-radius: 0 0 100vw 100vw;
  overflow: hidden;
}

.home-img-wrapper::before{
  content: '';
  position: absolute;
  inset: auto 0 0;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background-color: var(--first-color);
  opacity:0.5;
}

.home-profile {
  position: relative;
  z-index: 10;
  aspect-ratio: 21/25; 
  object-fit: cover;
  border-radius: 0 0 100vw 100vw; 
}

@media screen and (min-width: 1285px) {
  .home-banner {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
  
  .home-img-wrapper {
    width: clamp(25rem, 15rem + 45vw, 45rem);
  }
}

.home-data {
  border: 2px solid var(--border-color);
  background-color: var(--container-color);
  box-shadow: 4px 4px var(--shadow-color);
  padding-inline: 1.25rem;
  width: 240px;
  height: 80px;
  border-radius: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  position: relative;
  margin: 1rem auto;
  z-index: 100;
  transition: transform 0.3s var(--transition);
}

.home-data:hover {
  transform: translateY(-5px);
}

@media screen and (min-width: 650px) {
  .home-data {
    position: absolute;
    margin: 0;
    width: 240px;
    height: 80px;
    
  }
  
  .home-data-one {
    bottom: 20%;
    left: -1.5rem;
  }
  
  .home-data-two {
    bottom: 12%;
    right: 2.5rem;
  }
}

@media screen and (min-width: 400px) and (max-width: 650px) {
  .home-data {
    position: absolute;
    margin: 0;
    width: 190px;
    height: 60px;
  }
  
  .home-data-one {
    bottom: 20%;
    left: -1.5rem;
  }
  
  .home-data-two {
    bottom: 12%;
    right: 2.5rem;
  }
}

@media screen and (max-width: 400px) {
  .home-data {
    position: absolute;
    margin: 0;
    width: 170px;
    height: 50px;
    
  }
  
  .home-data-one {
    bottom: 20%;
    left: -1.5rem;
  }
  
  .home-data-two {
    bottom: 12%;
    right: 2.5rem;
  }
}

.home-data-no {
  color: var(--title-color);
  font-family: var(--second-font);
  font-size: 2.25rem;
  font-weight: var(--font-bold);
  text-align: center;
}

.home-data-title {
  font-size: var(--smaller-font-size);
}

.home-data-title span {
  color: var(--first-color);
}

.shape {
  position: absolute;
  z-index: -10;
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.shape-1 {
  width: clamp(6.5rem, 3.5rem + 12vw, 14rem);
  top: 9%;
  right: 6%;
}

.shape-2,
.shape-3 {
  width: clamp(4rem, 2.1rem + 7.6vw, 8.75rem);
}

.shape-2 {
  bottom: 8%;
  left: -12%;
  animation-delay: 0.5s;
}

.shape-3 {
  bottom: 0;
  right: -2%;
  animation-delay: 1s;
}

.home-description {
  font-size: var(--large-font-size);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.home-socials {
  margin-block: 1.75rem 2.5rem;
  justify-content: center;
}

@media screen and (min-width: 768px) {
  .home-socials {
    justify-content: flex-start;
  }
}

.home-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media screen and (min-width: 768px) {
  .home-btns {
    flex-direction: row;
    gap: 4rem;
  }
}

.home-link {
  position: relative;
  font-weight: var(--font-bold);
  transition: color 0.3s var(--transition);
}

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

.home-link::before {
  content: '';
  position: absolute;
  left: -124%;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--border-color);
  transition: background-color 0.3s var(--transition);
}

.home-link:hover::before {
  background-color: var(--first-color);
}

@media screen and (max-width: 768px) {
  .home-link::before {
    display: none;
  }
}

/*=============== PROJECTS SECTION ===============*/
.work.section {
  padding-top: 5rem;
}

@media screen and (max-width: 768px) {
  .work.section {
    padding-top: 3rem;
  }
}

@media screen and (max-width: 768px) {
  .work-list {
    gap: 0.75rem 1.5rem;
    margin-bottom: 2.5rem;
  }
}

@media screen and (max-width: 480px) {
  .work-list {
    gap: 0.5rem 1rem;
  }
}

.active-work::before {
  width: 60%;
}

@media screen and (max-width: 480px) {
  .work-item {
    font-size: var(--smaller-font-size);
    padding: 0.4rem 0.8rem;
  }
}

/*=============== PROJECTS FILTER ===============*/
.work-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2.5rem;
  margin-bottom: 3.75rem;
}

.work-item {
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-bold);
  cursor: pointer;
  position: relative;
  transition: color 0.7s var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  border: 2px solid transparent;
}

.work-item:hover {
  color: var(--first-color);
  border-color: var(--first-color);
}

.work-item::before {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--first-color);
  transition: width 0.3s var(--transition);
}

@media screen and (max-width: 340px) {
  .work-container {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  
  .card {
    padding: 1rem;
    min-width: unset;
  }
  
  .work-img {
    height: 140px;
    margin-bottom: 0.75rem;
  }
}

/* Active work */
.active-work {
  color: var(--first-color);
  border-color: var(--first-color);
}

.active-work::before {
  width: 60%;
}

.work-container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Card Styles */
.card {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 768px) {
  .card {
    padding: 2rem 2.25rem;
    border-radius: 1.25rem;
  }
}

@media screen and (max-width: 480px) {
  .card {
    padding: 1.25rem;
  }
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.card::before {
  content: '';
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  width: 120px;
  height: 120px;
  background-image: url(../img/shape-3.png);
  background-size: cover;
  opacity: 0.1;
}

.work-img {
  height: 400%;
  width: 400%;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  object-fit: cover;
  transition: transform 0.3s var(--transition);
}

@media screen and (min-width: 768px) {
  .work-img {
    height: 240px;
  }
}

@media screen and (max-width: 480px) {
  .work-img {
    height: 180px;
    margin-bottom: 1rem;
  }
}

.card:hover .work-img {
  transform: scale(1.05);
}

.work-category {
  color: var(--first-color);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  word-break: break-word;
}

@media screen and (max-width: 480px) {
  .work-category {
    font-size: 0.7rem;
  }
}

.work-title {
  font-size: var(--h3-font-size);
  margin-block: 0.75rem 1.25rem;
  line-height: 1.3;
  word-break: break-word;
}

@media screen and (max-width: 768px) {
  .work-title {
    font-size: var(--larger-font-size);
    margin-block: 0.5rem 1rem;
  }
}

/* ========== HOBBIES STYLES ========== */

#hobbies .work-container {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto; 
}

#hobbies .card {
  background: linear-gradient(145deg, var(--container-color), hsl(var(--hue), 10%, 94%));
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  box-shadow: 0 15px 30px var(--shadow-color);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem; 
}

.dark #hobbies .card {
  background: linear-gradient(145deg, var(--container-color), hsl(var(--hue), 10%, 18%));
}

#hobbies .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--first-color), hsl(var(--hue), 60%, 60%));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--transition);
}

#hobbies .card:hover {
  transform: translateY(-10px);
  border-color: var(--first-color);
  box-shadow: 0 25px 50px var(--shadow-color);
}

#hobbies .card:hover::before {
  transform: scaleX(1);
}

#hobbies .card::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(var(--first-color-rgb), 0.1) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  opacity: 0;
  transition: opacity 0.5s var(--transition);
  z-index: -1;
}

#hobbies .card:hover::after {
  opacity: 1;
}

#hobbies .work-title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  font-weight: var(--font-bold);
  position: relative;
  padding-bottom: 1rem;
  width: 100%;
  font-family: var(--second-font);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
  transition: all 0.3s var(--transition);
}

#hobbies .work-title:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--first-color), transparent);
  opacity: 0.5;
}

#hobbies .work-title:nth-child(1) { 
  color: var(--first-color); 
}

#hobbies .work-title:nth-child(2) { 
  color: hsl(var(--hue), 60%, 45%); 
}

#hobbies .work-title:nth-child(3) { 
  color: hsl(var(--hue), 60%, 50%); 
}

#hobbies .work-title:nth-child(4) { 
  color: hsl(var(--hue), 60%, 55%); 
}

#hobbies .card:hover .work-title {
  transform: translateX(10px);
  letter-spacing: 2px;
}

#hobbies .work-title:nth-child(1) { transition-delay: 0.1s; }
#hobbies .work-title:nth-child(2) { transition-delay: 0.2s; }
#hobbies .work-title:nth-child(3) { transition-delay: 0.3s; }
#hobbies .work-title:nth-child(4) { transition-delay: 0.3s; }

@keyframes fadeInHobbies {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#hobbies .card {
  animation: fadeInHobbies 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.3s;
}


#hobbies .hobby-decoration {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 2rem;
  color: var(--first-color);
  opacity: 0.2;
  transition: opacity 0.3s var(--transition);
}

#hobbies .card:hover .hobby-decoration {
  opacity: 0.5;
}

@media screen and (max-width: 768px) {
  #hobbies .card {
    padding: 2.5rem 2rem;
    min-height: 250px;
    gap: 1.25rem;
  }
  
  #hobbies .work-title {
    font-size: var(--h3-font-size);
    padding-bottom: 0.75rem;
  }
}

@media screen and (max-width: 480px) {
  #hobbies .card {
    padding: 2rem 1.5rem;
    min-height: 220px;
    gap: 1rem;
  }
  
  #hobbies .work-title {
    font-size: var(--larger-font-size);
    padding-bottom: 0.5rem;
  }
  
  #hobbies .work-title:not(:last-child)::after {
    left: 20%;
    right: 20%;
  }
}

.cert-date,
.pub-date {
  color: var(--first-color);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 0.75rem;
  display: block;
}

.work-description {
  min-height: 120px;
  line-height: 1.6;
  color: var(--text-color);
  flex-grow: 1;
  margin-bottom: 1.5rem;
  word-break: break-word;
}

@media screen and (max-width: 768px) {
  .work-description {
    min-height: auto;
    margin-bottom: 1rem;
  }
}

/*=============== PUBLICATIONS SECTION ===============*/
.publication-links {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.publication-links .link {
  font-size: var(--smaller-font-size);
  display: flex;
  align-items: center;
  gap: 5px;
}

.publication-links .separator {
  color: var(--text-color);
  font-size: var(--small-font-size);
}

@media screen and (max-width: 576px) {
  .publication-links {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .publication-links .separator {
    display: none;
  }
}

/*=============== EDUCATION SECTION ===============*/
.resume.section {
  padding-top: 5rem;
}

@media screen and (max-width: 768px) {
  .resume.section {
    padding-top: 3rem;
  }
}

.resume-container {
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media screen and (min-width: 768px) {
  .resume-container {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
  }
}

.resume-title {
  font-size: var(--h3-font-size);
  padding-bottom: 2rem;
  text-align: center;
  color: var(--title-color);
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
}

@media screen and (max-width: 768px) {
  .resume-title {
    font-size: var(--h2-font-size);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

.resume-group {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 5px 20px var(--shadow-color);
}

@media screen and (min-width: 768px) {
  .resume-group {
    padding: 2rem;
    border-radius: 1.25rem;
  }
}

@media screen and (max-width: 480px) {
  .resume-group {
    padding: 1.25rem;
  }
}

.resume-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.resume-item {
  position: relative;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s var(--transition);
}

.resume-item:last-child {
  border-bottom: none;
}

.resume-item:hover {
  background-color: hsla(var(--hue), 60%, 40%, 0.05);
}

@media screen and (max-width: 768px) {
  .resume-item {
    padding: 1.25rem;
  }
}

@media screen and (max-width: 480px) {
  .resume-item {
    padding: 1rem;
  }
}

.resume-header {
  padding-block: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media screen and (max-width: 768px) {
  .resume-header {
    padding-block: 1rem;
  }
}

.resume-header-title {
  font-size: var(--larger-font-size);
  color: var(--title-color);
  flex: 1;
  word-break: break-word;
}

@media screen and (max-width: 768px) {
  .resume-header-title {
    font-size: var(--large-font-size);
  }
}

.resume-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--container-color);
  border: 2px solid var(--border-color);
  box-shadow: 4px 4px var(--shadow-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--title-color);
  font-size: 1.25rem;
  transition: all 0.3s var(--transition);
  flex-shrink: 0;
}

.resume-item:hover .resume-icon {
  background-color: var(--first-color);
  color: var(--white-color);
  transform: rotate(90deg);
}

@media screen and (max-width: 480px) {
  .resume-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

.resume-content {
  height: 0;
  overflow: hidden;
  transition: height 0.3s var(--transition);
}

.accordion-open .resume-content {
  height: auto;
  padding-top: 1rem;
}

.resume-content-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1rem;
}

@media screen and (max-width: 768px) {
  .resume-content-header {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.resume-content-title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  flex: 1;
  word-break: break-word;
}

@media screen and (max-width: 768px) {
  .resume-content-title {
    font-size: var(--larger-font-size);
  }
}

.experience-date {
  color: var(--first-color);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-bold);
  padding: 0.25rem 1rem;
  background-color: hsla(var(--hue), 60%, 40%, 0.1);
  border-radius: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media screen and (max-width: 768px) {
  .experience-date {
    align-self: flex-start;
  }
}

.experience-location {
  font-size: 0.85rem;
  color: var(--text-color);
  margin-bottom: 0.75rem;
  font-style: italic;
  width: 100%;
}

.resume-description {
  color: var(--text-color);
  line-height: 1.6;
  margin-top: 0.5rem;
  word-break: break-word;
}

/*=============== SKILLS ===============*/
.skills-container {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.skills-item {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: transform 0.3s var(--transition);
}

@media screen and (min-width: 768px) {
  .skills-item {
    padding: 2rem;
    border-radius: 1.25rem;
  }
}

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

.skills-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.skills-name {
  font-size: var(--larger-font-size);
  color: var(--title-color);
}

.skills-value {
  color: var(--title-color);
  font-weight: var(--font-bold);
  font-size: var(--h3-font-size);
}

.skills-value b {
  color: var(--first-color);
}

.skills-description {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.skills-bar,
.skills-percentage {
  height: 8px;
  border-radius: 4px;
}

.skills-bar {
  background-color: var(--shadow-color);
  position: relative;
  overflow: hidden;
}

.skills-percentage {
  display: block;
  background: linear-gradient(90deg, var(--first-color), hsl(var(--hue), 60%, 60%));
  position: relative;
  transition: width 1.5s var(--transition);
}

.skills-percentage::before {
  content: '';
  position: absolute;
  right: 0;
  top: -0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--first-color);
  border: 3px solid var(--border-color);
  box-shadow: 4px 4px var(--shadow-color);
}

/*=============== SERVICES ===============*/
.services-container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-item {
  background: var(--container-color);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--first-color);
  margin-bottom: 1rem;
}

.service-title {
  font-size: var(--h3-font-size);
  margin-bottom: 0.75rem;
  color: var(--title-color);
}

.service-description {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  line-height: 1.6;
}

@media screen and (max-width: 340px) {
  .services-container {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  
  .service-item {
    padding: 1rem;
    margin: 0;
    width: 100%;
  }
}

/*=============== EXPERIENCE ===============*/
.experience-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 0.5rem;
}

.experience-date {
  font-size: 0.85rem;
  color: var(--first-color);
  font-weight: 500;
  opacity: 0.9;
}

.experience-role {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.experience-location {
  font-size: 0.85rem;
  color: var(--text-color);
  margin-bottom: 0.75rem;
  font-style: italic;
}

#experience .service-icon {
  background: linear-gradient(135deg, var(--first-color), var(--first-color));
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

#experience .service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 340px) {
  #experience .service-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .experience-github-link,
  .experience-github-link1,
  .experience-github-link3,
  .experience-github-link4,
  .experience-github-link5,
  .experience-github-link6 {
    margin-top: 1rem !important;
  }
}

/*=============== GITHUB STYLE LINKS ===============*/
.experience-github-link {
  gap: 0.5rem;
  margin-top: -1rem;
}

.experience-github-link1 {
  gap: 0.5rem;
  margin-top: -0.3rem;
}

.experience-github-link3 {
  gap: 0.5rem;
  margin-top: 1rem;
}

.experience-github-link4 {
  gap: 0.5rem;
  margin-top: 3rem;
}

.experience-github-link5 {
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.experience-github-link6 {
  gap: 0.5rem;
  margin-top: -1rem;
}

.experience-github-link6:hover,
.experience-github-link5:hover,
.experience-github-link4:hover,
.experience-github-link3:hover,
.experience-github-link1:hover,
.experience-github-link:hover {
  color: var(--first-color);
}

.experience-github-link6 i,
.experience-github-link5 i,
.experience-github-link4 i,
.experience-github-link3 i,
.experience-github-link1 i,
.experience-github-link i {
  font-size: 2rem;
}

@media screen and (max-width: 672px) {
  .experience-github-link6,
  .experience-github-link5,
  .experience-github-link4,
  .experience-github-link3,
  .experience-github-link1,
  .experience-github-link {
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
}

/*=============== CONTACT ===============*/
.contact-container {
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media screen and (min-width: 768px) {
  .contact-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
  }
}

.contact-info {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 5px 20px var(--shadow-color);
}

@media screen and (min-width: 768px) {
  .contact-info {
    padding: 3rem;
    border-radius: 1.25rem;
  }
}

.contact-title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: 2rem;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border-radius: 1rem;
  transition: background-color 0.3s var(--transition);
}

.contact-item:hover {
  background-color: hsla(var(--hue), 60%, 40%, 0.05);
}

.contact-icon {
  font-size: 2rem;
  color: var(--first-color);
  min-width: 40px;
}

.contact-subtitle {
  font-size: var(--normal-font-size);
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.contact-description {
  color: var(--text-color);
  line-height: 1.6;
}

.contact-form {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 5px 20px var(--shadow-color);
}

@media screen and (min-width: 768px) {
  .contact-form {
    padding: 3rem;
    border-radius: 1.25rem;
  }
}

@media screen and (max-width: 340px) {
  .contact-container {
    padding: 0.5rem;
  }
  
  .form-group {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }
  
  .form-control {
    padding: 0.75rem;
    font-size: 14px;
  }
}

.form-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media screen and (min-width: 576px) {
  .form-group {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: var(--body-color);
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: 16px;
  transition: all 0.3s var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--first-color);
  box-shadow: 0 0 0 3px hsla(var(--hue), 60%, 40%, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--container-color);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
  border-top: 2px solid var(--border-color);
}

@media screen and (min-width: 768px) {
  .footer {
    padding: 5rem 0 3rem;
  }
}

.footer-container {
  text-align: center;
}

.footer-logo {
  font-family: var(--second-font);
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  color: var(--title-color);
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: color 0.3s var(--transition);
}

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

.footer-description {
  color: var(--text-color);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.footer-social {
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-social .social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.05);
  transition: all 0.3s var(--transition);
}

.footer-social .social-link:hover {
  background-color: var(--first-color);
  color: var(--white-color);
  transform: translateY(-5px);
}

.footer-copy {
  color: var(--text-color);
  font-size: var(--small-font-size);
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/*=============== STYLE SWITCHER ===============*/
.style-switcher {
  position: fixed;
  top: 0;
  right: -100%;
  width: 200px;
  height: 100%;
  background-color: var(--container-color);
  padding: 5rem 2rem 0;
  z-index: 1001;
  transition: right 1s var(--transition);
  box-shadow: -10px 0 30px var(--shadow-color);
  overflow-y: auto;
}

.style-switcher-title {
  font-size: 1.1rem;
  padding-bottom: 1.25rem;
  color: var(--title-color);
  border-bottom: 1px solid var(--shadow-color);
}

@media screen and (min-width: 600px) {
  .style-switcher {
    width: 320px;
    height: 100%;
    padding: 5rem 3.5rem;
  }
  .style-switcher-title {
    font-size: 1.4rem;
    padding-bottom: 1.25rem;
    color: var(--title-color);
    border-bottom: 1px solid var(--shadow-color);
  }
}

.style-switcher-item {
  padding-block: 1rem;
  border-bottom: 1px solid var(--shadow-color);
}

.style-switcher-subtitle {
  font-size: var(--large-font-size);
  margin-bottom: 1rem;
  color: var(--title-color);
}

.style-switcher-colors {
  display: flex;
  column-gap: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.style-switcher-color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: hsl(var(--hue), 60%, 40%);
  position: relative;
  cursor: pointer;
  transition: transform 0.3s var(--transition);
  border: 2px solid transparent;
}

.style-switcher-color:hover {
  transform: scale(1.1);
}

.style-switcher-color i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white-color);
  font-size: 1.25rem;
  display: none;
}

.active-color i {
  display: block;
}

.style-switcher-themes,
.style-switcher-theme {
  display: flex;
}

.style-switcher-themes {
  column-gap: 1.25rem;
}

.style-switcher-theme {
  column-gap: 0.5rem;
  align-items: center;
}

.style-switcher-input {
  accent-color: var(--first-color);
}

.style-switcher-label {
  color: var(--title-color);
  cursor: pointer;
}

.style-switcher-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--title-color);
  transition: color 0.3s var(--transition);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.style-switcher-close:hover {
  color: var(--first-color);
  background-color: hsla(var(--hue), 60%, 40%, 0.1);
}

.show-switcher {
  right: 0;
}

/* =============== PROJECT TOOLS STYLES =============== */
.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.tool-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: hsla(var(--hue), 60%, 40%, 0.1);
  color: var(--first-color);
  border-radius: 2rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  transition: all 0.3s var(--transition);
  border: 1px solid transparent;
  cursor: default;
}

.tool-tag:hover {
  background-color: var(--first-color);
  color: var(--white-color);
  transform: translateY(-2px);
  border-color: var(--first-color);
  box-shadow: 0 4px 8px rgba(var(--first-color-rgb), 0.2);
}

/* Dark mode adjustments */
.dark .tool-tag {
  background-color: hsla(var(--hue), 60%, 40%, 0.2);
  border-color: hsla(var(--hue), 60%, 40%, 0.3);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .project-tools {
    gap: 0.4rem;
    margin: 1rem 0;
  }
  
  .tool-tag {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }
}

@media screen and (max-width: 480px) {
  .project-tools {
    gap: 0.3rem;
  }
  
  .tool-tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
  }
}

/*=============== ANIMATIONS ===============*/
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-translate] {
  animation: fadeIn 0.3s ease-out;
}

/* Animation for language switch */
body.translating [data-translate] {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

body.lang-fr {
  font-family: var(--body-font), sans-serif;
}

body.lang-en {
  font-family: var(--body-font), sans-serif;
}

/*=============== HORIZONTAL SCROLL ===============*/
@media screen and (max-width: 767px) {
  .home-title,
  .section-title,
  .nav-logo {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  img, video, iframe {
    max-width: 100%;
    height: auto;
  }
}

/*=============== DARK MODE ===============*/
@media (prefers-color-scheme: dark) {
  .dark {
    --title-color: hsl(0, 0%, 100%);
    --text-color: hsl(0, 0%, 92%);
    --body-color: hsl(var(--hue), 10%, 8%);
    --container-color: hsl(var(--hue), 10%, 16%);
    --border-color: hsl(var(--hue), 4%, 65%);
    --shadow-color: hsla(var(--hue), 0%, 100%, 0.2);
  }
}

/*=============== MOBILE ANIMATIONS ===============*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*=============== SAFARI iOS ===============*/
@supports (-webkit-touch-callout: none) {
  .home-img-wrapper {
    -webkit-mask-image: -webkit-radial-gradient(white, black);
  }
  
  .btn:hover {
    transform: translateY(-1px);
  }
}