*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Base colors */
  --header-height: 120px;
  --header-height-mobile: 100px;

  --bg-color: #ffffff;
  --text-color: #000;
  --accent-color: #007aff;
  --background: #fff;

  /* Black variants */
  --primary-black: #000;
  --primaryBlack-Lighten: rgba(0, 0, 0, 0.6);
  --primaryBlack-Lighten2: rgba(0, 0, 0, 0.85);
  --primaryBlack-Lighten3: rgba(0, 0, 0, 0.9);
  --primaryBlack-Lighten4: rgba(0, 0, 0, 0.95);

  --secondary-black: #000000cc;
  --tertiary-black: rgba(0, 0, 0, 0.54);

  /* Repository colors */
  --repo-name: #001aff;
  --repo-border: #e1e4e8;
  --repo-icon: #000;
  --repo-star: #000;
  --repo-fork: #000;

  /* UI Elements */
  --image-shade: #e8e6e6;
  --svg: #000;

  /* Flicky component */
  --flicky-background: #fff;
  --flicky-color: #333;
  --flicky-dot: #333;

  /* Interactive elements */
  --clap-wrap: rgba(0, 0, 0, 0.54);
  --clap-wrap-hover: rgba(0, 0, 0, 0.76);
  --block-quote: rgba(0, 0, 0, 0.54);
  --header-shadow-color: rgba(17, 17, 26, 0.1);

  --scroll-padding: 120px; /* Same as header height */
  --scroll-padding-mobile: 100px; /* Same as mobile header height */
}

/* Dark mode variables */
[data-theme='dark'] {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --primary-black: #ffffff;
  --accent-color: #0a84ff;
  --primaryBlack: #fff;
  --primaryBlack-Lighten: hsla(0, 0%, 100%, 0.6);
  --primaryBlack-Lighten2: hsla(0, 0%, 100%, 0.85);
  --image-shade: #26292a;
  --repo-name: #86b5ff;
  --repo-border: #373c3e;
  --repo-icon: #fff;
  --repo-star: #fff;
  --repo-fork: #fff;
  --svg: #fff;
  --flicky-background: #181a1b;
  --flicky-color: #c8c3bc;
  --flicky-dot: #4f5a5d;
  --background: #181a1b;
  --clap-wrap: hsla(0, 0%, 100%, 0.54);
  --clap-wrap-hover: hsla(0, 0%, 100%, 0.76);
  --block-quote: hsla(0, 0%, 100%, 0.54);
  --primaryBlack-Lighten3: hsla(0, 0%, 100%, 0.9);
  --primaryBlack-Lighten4: hsla(0, 0%, 100%, 0.95);
  --secondary-black: #ffffffcc;
  --tertiary-black: hsla(0, 0%, 100%, 0.54);
  --repo-icon: #fff;
  --header-shadow-color: hsla(0, 0%, 100%, 0.2);
}

html {
  font-family: 'Montserrat', serif;
  line-height: 1.666;
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-padding);
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: var(--scroll-padding-mobile);
  }
}

h2 {
  margin-bottom: 1.666rem;
  font-family: 'Raleway', sans-serif;
  font-weight: bold;
  text-rendering: optimizeLegibility;
  font-size: 1.51572rem;
  line-height: 1.1;
  color: var(--secondary-black);
}

h3 {
  font-weight: bold;
  text-rendering: optimizeLegibility;
  font-size: 1.31951rem;
  line-height: 1.1;
  font-family: Raleway, sans-serif;
}

main {
  margin-top: var(--header-height);
}

body {
  background-color: var(--background);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg-color);
  transition: background 0.3s ease;
  color: var(--text-color);
  box-shadow: var(--header-shadow-color) 0px 1px 0px;
  height: var(--header-height);
  margin: 0 auto;
  width: 80vw;
  max-width: 1400px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.header-logo-link {
  text-decoration: none;
  color: var(--text-color);
}

.header-logo h1 {
  font-family: Roboto Slab, serif;
  font-size: 1.6rem;
  margin: 0;
  line-height: 1.1;
  color: var(--primary-black);
}

.header-menu {
  display: flex;
  align-items: center;
  align-items: center;
  position: relative;
  justify-content: space-evenly;
  font-family: Raleway, sans-serif;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu .header-menu-item {
  position: relative;
  display: inline-block;
  margin: 1rem;
  position: relative;
}

.header-menu .header-menu-link {
  text-decoration: none;
  color: #989898;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header-menu .header-menu-link:hover,
.header-menu .header-menu-link:active {
  color: var(--primary-black);
}

.header-menu a {
  position: relative;
  text-decoration: none;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Initial state for hover effect */
.header-menu a::after {
  position: absolute;
  display: block;
  background: #ab4e4f;
  width: 100%;
  height: 2px;
  content: '';
  bottom: -6px;
  left: 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

/* Active state indicator */
.header-menu a.active::after,
.header-menu a:hover::after {
  transform: scaleX(1);
}

.mobile-menu-container {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.header-burger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  right: -2rem;
  z-index: 999;
  width: 30px;
  height: 30px;
  cursor: pointer;
  justify-content: space-between;
  flex-direction: column;
  align-self: center;
  align-items: flex-end;
}

.header-burger-menu-line {
  position: absolute;
  transition: transform 0.2s ease, margin 0.2s ease 0.1s, width 0.5s ease 0.4s;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 1px;
  background: var(--primary-black);
}

.header-burger-menu-line.long-line {
  width: 60%;
  margin-top: -5px;
}

.header-burger-menu-line.short-line {
  width: 100%;
  margin-top: 5px;
}

.header-hamburger-overlay {
  display: none;
}

/* Apply animations when active */
.header-burger-menu.active .long-line {
  margin: 0;
  animation: moveup 0.6s ease forwards;
}

.header-burger-menu.active .short-line {
  margin: 0;
  animation: movedown 0.6s ease forwards;
}

@keyframes movedown {
  33% {
    width: 100%;
  }
  66% {
    width: 100%;
    transform: translateY(-0.2px);
  }
  100% {
    width: 100%;
    transform: translateY(-0.2px) rotate(45deg);
  }
}

@keyframes moveup {
  33% {
    width: 100%;
  }
  66% {
    width: 100%;
    transform: translateY(+0.2px);
  }
  100% {
    width: 100%;
    transform: translateY(0.2px) rotate(-45deg);
  }
}

.header-overlay-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
}

.header-overlay-menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.header-overlay-menu-link {
  text-decoration: none;
  color: var(--primaryBlack-Lighten);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: Raleway, sans-serif;
  font-size: 1.6em;
  cursor: pointer;
}

.c-theme-switcher {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  height: 1rem;
  width: auto;
  display: flex;
  align-items: center;
}

.icon-container {
  position: relative;
  height: 100%;
  aspect-ratio: 189/144;
  display: flex;
  align-items: center;
}

.icon-container--mobile {
  position: relative;
  height: 100%;
  aspect-ratio: 189/144;
  display: flex;
  align-items: center;
}

.icon-container--mobile svg {
  height: 100%;
  width: auto;
}

.mobile-change-theme-light .c-theme-switcher {
  height: 1.6rem;
  width: auto;
}

.theme-icon {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 100%;
  width: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sun-icon {
  opacity: 0;
  transform: translateY(-50%) scale(0);
}

.moon-icon {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.icon-container svg {
  height: 180%;
  width: auto;
}

/* Dark theme styles */
[data-theme='dark'] .sun {
  display: inline-block;
}

[data-theme='dark'] .moon {
  display: none;
}

[data-theme='light'] .moon {
  display: inline-block;
}

[data-theme='light'] .sun {
  display: none;
}

/* Hover animation */
.c-theme-switcher:hover .theme-icon {
  transform: translateY(-50%) rotate(-15deg) scale(1);
}

.section {
  width: 100%;
  margin: 12rem auto;
  display: flex;
  align-items: center;
  transition: 100ms;
  transform: translate3d(0px, 0px, 0px);
  position: relative;
}

.container {
  position: relative;
  display: flex;
  width: 80vw;
  align-items: center;
  max-width: 1400px;
  margin: auto;
  padding: 4rem 2rem;
}

.container.container-profile {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 3rem;
  justify-self: right;
}

.profile-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  flex-basis: 50%;
  width: 50%;
  max-width: 500px;
}

.profile-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: 50%;
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  flex-grow: 1;
}

.profile-container :not(.header-menu-title) {
  color: var(--primaryBlack-Lighten);
  font-weight: 300;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', serif;
}

.profile-container .profile--link {
  font-family: Raleway, sans-serif;
  color: var(--secondary-black);
  font-weight: 600;
  text-decoration: underline;
  font-size: 15px;
}

.profile--description {
  font-size: 16px;
}

.profile-image img {
  width: 100%;
  object-fit: cover;
  object-position: center center;
}

.section-container--showcases .header-menu-title {
  margin-bottom: 0.9rem;
}

.section-description--showcases {
  max-width: 600px;
}

.section-description--text {
  width: 100%;
  word-break: break-word;
  color: var(--primaryBlack-Lighten);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.container-showcases.container {
  flex-direction: column;
  align-items: flex-start;
}

.slider-container {
  display: flex;
  flex-direction: row;
  margin-top: 2rem;
  position: relative;
  overflow: visible;
}

.slider-item {
  width: 350px;
  min-width: 350px;
  margin-right: 2.5em;
  overflow: hidden;
}

.slider-item-image-container {
  position: relative;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.5s ease;
  border-radius: 5px;
  height: 233px;
  overflow: hidden;
}

.slider-item-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.slider-item--title {
  margin-top: 1em;
  margin-bottom: 0;
  font-family: Raleway, sans-serif;
  color: var(--primaryBlack-Lighten2);
}

.slider-item--description {
  color: var(--primaryBlack-Lighten2);
  font-weight: 300;
  margin: 0.6em auto;
  font-size: 1rem;
}

.slider-item--link {
  font-family: Raleway, sans-serif;
  font-weight: 500;
  color: var(--primaryBlack-Lighten2);
  cursor: pointer;
  transition: color 1s ease;
}

.previos-btn {
  cursor: pointer;
  display: flex;
  position: fixed;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 1px solid var(--primaryBlack-Lighten);
  transition: all 0.3s ease;
}

.previos-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--primaryBlack-Lighten);
  stroke: var(--primaryBlack-Lighten);
  transition: transform 0.3s ease;
}

.previos-btn:hover {
  background: var(--text-color);
}

.previos-btn:hover svg {
  color: var(--bg-color);
}

.next-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 1px solid var(--text-color);
  transition: all 0.3s ease;
}

.next-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  fill: var(--primaryBlack-Lighten);
  stroke: var(--primaryBlack-Lighten);
}

.next-btn:hover {
  background: var(--text-color);
}

.next-btn:hover svg {
  color: var(--bg-color);
}

/* Container positioning */
.showcases-slider {
  position: relative;
  width: 100%;
}

.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Add a wrapper for slider items */
.slider-items-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden; /* Hide overflow only for slider items */
}

/* Slider items */
.slider-item {
  /* Your existing slider item styles */
  transition: transform 0.3s ease;
}

/* Button positioning */
.previos-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 1px solid var(--primaryBlack-Lighten2);
  transition: all 0.3s ease;
}

/* Position buttons half outside */
.previos-btn {
  left: -20px; /* Half of the button width */
}

.next-btn {
  right: -20px; /* Half of the button width */
}

/* Hover states */
.previos-btn:hover,
.next-btn:hover {
  background: var(--text-color);
}

.previos-btn:hover svg,
.next-btn:hover svg {
  color: var(--bg-color);
}

/* SVG styles */
.previos-btn svg,
.next-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.slider-dots {
  display: block;
  position: absolute;
  bottom: -4em;
  padding: 0;
  margin: 0 auto;
  list-style: none;
  text-align: center;
  line-height: 1;
  font-size: 0.9rem;
  right: 0;
  left: 0;
}

.slider-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 8px;
  background: var(--flicky-dot);
  border-radius: 50%;
  opacity: 0.25;
  cursor: pointer;
}

.slider-dots .dot.is-selected {
  opacity: 1;
}

/* Projects */

.container.container-projects {
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  height: calc(100% - 19em);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: space-between;
}

.projects-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.section-description {
  max-width: 600px;
  width: 100%;
  word-break: break-word;
  color: var(--primaryBlack-Lighten);
  font-weight: 300;
  margin-bottom: 0.5rem;
  font-size: 18px;
}

.github-container {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.github-avatar-container {
  display: flex;
  align-content: center;
  width: 54px;
  height: 54px;
  margin-right: 12px;
}

.github-avatar {
  width: 54px;
  height: 54px;
  border-radius: 100%;
  margin: 0;
}

.github-name {
  font-weight: 700;
  font-family: Raleway, sans-serif;
  line-height: 1.3rem;
  color: var(--primaryBlack-Lighten2);
}

.github-description {
  color: var(--primaryBlack-Lighten2);
  line-height: 1.3rem;
  font-family: Montserrat, sans-serif;
}

.projects-github-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  margin-top: 30px;
  grid-gap: 30px;
  width: 100%;
}

.projects-github-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  border: 1px solid var(--repo-border);
  border-radius: 5px;
  padding: 18px 21px;
}

.github-item-header {
  display: flex;
  align-items: center;
}

.github-repo-name .github-repo-name-link {
  font-family: Raleway, sans-serif;
  line-height: normal;
  margin-left: 6px;
  font-weight: 500;
  color: var(--repo-name);
  font-size: 0.9rem;
  display: inline-block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
  text-decoration: none;
}

.github-repo-description {
  font-size: 0.8rem;
  margin-top: 10px;
  color: var(--primaryBlack-Lighten2);
  font-weight: 300;
  height: 100%;
  font-size: 16px;
}

.github-repo-techs {
  display: flex;
  align-items: center;
  font-family: Raleway, sans-serif;
  font-size: 0.7rem;
  margin-top: 30px;
  color: var(--primaryBlack-Lighten2);
  gap: 0.8rem;
}

.github-repo-techs-item {
  display: flex;
  align-items: center; /* Vertically center content within each item */
  gap: 4px; /* Space between icon and text */
}

.github-repo-techs-item::after {
  content: '';
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 100%;
}

.github-repo--icon svg {
  fill: var(--repo-icon);
}

.javascript:after {
  background-color: #f1e05a;
}

.html::after {
  background-color: rgb(227, 76, 38);
}

.css::after {
  background-color: #663399;
}

.react-js::after {
  background-color: #61dafb;
}

.next-js::after {
  background-color: #000000;
}

.node-js::after {
  background-color: #68a063;
}

.tailwind::after {
  background-color: #06b6d4;
}

.contact-area {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
}

.container.container-contact {
  flex-direction: column;
  align-items: flex-start;
  margin: 0 auto 12rem;
}

.section-description--contact {
  max-width: 500px;
  font-size: 16px;
}

.contact-email-container {
  display: flex;
  align-items: center;
  margin-bottom: 1.666rem;
}

.contact-email {
  border-bottom: 2px solid var(--primary-black);
  text-decoration: none;
  color: var(--secondary-black);
}

.social-media-container {
  display: flex;
  gap: 1rem;
}

.social-media-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: auto;
}

.contact-form-container {
  margin: 0 auto;
  padding: 2rem;
  width: 80%;
  display: none;
}

.contact-title {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.highlight {
  color: #dc3545; /* Red color for "connect" */
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
}

.form-actions {
  display: flex;
  gap: 1rem;
}

.btn-submit {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease;
}

.btn-submit {
  background-color: #e3f2fd; /* Light blue background */
  color: #007bff;
}

.btn-submit:hover {
  background-color: #bbdefb;
}

/* Skills */

.container.container-skills {
  flex-direction: column;
  align-items: flex-start;
}

.skills-container {
  max-width: 1200px;
  gap: 2rem;
  padding: 2rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(8, minmax(min-content, max-content));
  grid-auto-flow: dense;
  justify-content: center;
}

/* First row: 8 items */
.skills-container > *:nth-child(-n + 8) {
  grid-row: 1;
}

/* Second row: 6 items */
.skills-container > *:nth-child(n + 9):nth-child(-n + 14) {
  grid-row: 2;
}

.skills-container > *:nth-child(n + 15):nth-child(-n + 20) {
  grid-row: 3;
}

.skills-container .skill-item:nth-child(9) {
  grid-column: span 2;
  justify-self: end;
}

.skills-container .skill-item:nth-child(15) {
  grid-column: span 3;
  justify-self: end;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
  color: var(--primaryBlack-Lighten2);
}

.skills-container.container--1 {
  margin-top: 3rem;
}

.skill-item svg,
.skill-item img {
  width: 70px;
  height: 70px;
  transition: transform 0.3s ease;
}

.skill-item:hover img,
.skill-item:hover svg {
  transform: scale(1.125);
}

.skill-item p {
  font-size: 0.9rem;
  margin: 0;
}

/* Animation for initial load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add animation delay for each item */
.skill-item:nth-child(1) {
  animation-delay: 0.1s;
}
.skill-item:nth-child(2) {
  animation-delay: 0.2s;
}
.skill-item:nth-child(3) {
  animation-delay: 0.3s;
}
.skill-item:nth-child(4) {
  animation-delay: 0.4s;
}
.skill-item:nth-child(5) {
  animation-delay: 0.5s;
}
.skill-item:nth-child(6) {
  animation-delay: 0.6s;
}
.skill-item:nth-child(7) {
  animation-delay: 0.7s;
}
.skill-item:nth-child(8) {
  animation-delay: 0.8s;
}
.skill-item:nth-child(9) {
  animation-delay: 0.1s;
}
.skill-item:nth-child(10) {
  animation-delay: 0.2s;
}
.skill-item:nth-child(11) {
  animation-delay: 0.3s;
}
.skill-item:nth-child(12) {
  animation-delay: 0.4s;
}
.skill-item:nth-child(13) {
  animation-delay: 0.5s;
}
.skill-item:nth-child(14) {
  animation-delay: 0.6s;
}
.skill-item:nth-child(15) {
  animation-delay: 0.1s;
}
.skill-item:nth-child(16) {
  animation-delay: 0.2s;
}
.skill-item:nth-child(17) {
  animation-delay: 0.3s;
}
.skill-item:nth-child(18) {
  animation-delay: 0.4s;
}

.skill-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
  animation-play-state: paused;
}

.skill-item.animate {
  animation-play-state: running;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Experiences */

.container-experiences.container {
  flex-direction: column;
}

.timeline-container {
  margin-top: 4rem;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  width: 2px;
  background-color: #e2e8f0;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease-out;
}

.timeline-item.show {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item.right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
  transform: translateX(50px);
}

.timeline-item.right.show {
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  width: 3rem;
  height: 3rem;
  background-color: white;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  -webkit-box-shadow: 0 0 0 4px #fff, inset 0 2px 0 rgba(0, 0, 0, 0.08),
    0 3px 0 4px rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 0 4px #fff, inset 0 2px 0 rgba(0, 0, 0, 0.08),
    0 3px 0 4px rgba(0, 0, 0, 0.05);
  background: white;
}
.timeline-icon-container {
  position: absolute;
  background-color: white;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.vertical-timeline-element-icon {
  border-radius: 50%;

  font-size: 1.5rem;
  width: 60px;
  height: 60px;
}

.timeline-content {
  background-color: #fcfcfd;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  width: 90%;
  transition: transform 0.3s ease;
  min-width: 250px;
}

.timeline-item.left .timeline-content {
  margin: 0 3rem 0 2rem;
}

.timeline-item.right .timeline-content {
  margin: 0 2rem 0 3rem;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

h3.experience-title {
  font-size: 1.25rem;
  color: rgba(0, 0, 0, 0.95);
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-family: Raleway, sans-serif;
}

h4.experience-company {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.9);
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.015rem;
  font-family: Raleway, sans-serif;
}

.experience-period {
  color: rgba(0, 0, 0, 0.9);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.experience-description {
  color: rgba(0, 0, 0, 0.6);
  font-size: 16px;
  line-height: 1.5;
}

/* Typewriter effect */

.typer-container {
  font-size: 2rem;
  padding: 1rem;
}

.header-menu-title span.typed-text {
  border-bottom: 2px solid #dc3545;
  margin-bottom: 1.666rem;
  font-family: 'Raleway', sans-serif;
  font-weight: bold;
  text-rendering: optimizeLegibility;
  font-size: 1.51572rem;
  line-height: 1.1;
  color: var(--secondary-black);
}

.header-menu-title span.cursor {
  display: inline-block;
  width: 3px;
  margin-left: 3px;
  animation: blink 1s infinite;
  color: var(--secondary-black);
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .timeline-line {
    left: 1rem;
  }

  .timeline-item,
  .timeline-item.right {
    justify-content: flex-start;
    padding-left: 3rem;
    padding-right: 0;
    transform: translateX(-30px);
  }

  .timeline-item.show,
  .timeline-item.right.show {
    transform: translateX(0);
  }

  .timeline-dot {
    left: 1rem;
    transform: translate(-50%, -50%);
  }

  .timeline-content {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 1100px) {
  .container.container-profile {
    flex-direction: column;
  }

  .profile-container {
    align-self: flex-start;
    width: 100%;
  }

  .profile-image {
    width: 100%;
    height: auto;
  }

  .github-container {
    display: none;
  }

  .contact-area {
    grid-template-columns: 1fr;
  }

  .contact-form-container {
    padding: 2rem 0;
    margin-top: 2rem;
    justify-content: flex-start;
    justify-self: flex-start;
    margin-left: 0; /* Ensures no left margin */
    align-self: flex-start;
    max-width: 600px; /* Optional: if you want to limit the width */
  }
}

@media (max-width: 900px) {
  .skills-container {
    padding: 2rem 0;
    gap: 0.5rem;
  }

  .header {
    width: 100%;
    padding: 2rem 4rem;
  }

  .slider-dots {
    bottom: -2em;
  }
}

@media (max-width: 800px) {
  div.container {
    width: 100vw;
  }
  .header {
    padding: 2rem;
  }

  .projects-github-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 700px) {
  .section {
    margin: 8rem auto;
  }

  .container.container-profile {
    margin-top: 2rem;
  }

  .skills-container {
    grid-template-columns: repeat(4, minmax(min-content, max-content));
  }
  .slider-item {
    margin-right: 0rem;
  }

  /* First row: 8 items */
  .skills-container > *:nth-child(-n + 8) {
    grid-row: auto;
  }

  /* Second row: 6 items */
  .skills-container > *:nth-child(n + 9):nth-child(-n + 14) {
    grid-row: auto;
  }

  .skills-container > *:nth-child(n + 15):nth-child(-n + 20) {
    grid-row: auto;
  }

  .skills-container .skill-item:nth-child(9) {
    grid-column: span 1;
    justify-self: center;
  }

  .skills-container .skill-item:nth-child(15) {
    grid-column: span 1;
    justify-self: center;
  }

  .skill-item:nth-child(1) {
    animation-delay: 0.1s;
  }
  .skill-item:nth-child(2) {
    animation-delay: 0.2s;
  }
  .skill-item:nth-child(3) {
    animation-delay: 0.3s;
  }
  .skill-item:nth-child(4) {
    animation-delay: 0.4s;
  }
  .skill-item:nth-child(5) {
    animation-delay: 0.5s;
  }
  .skill-item:nth-child(6) {
    animation-delay: 0.6s;
  }
  .skill-item:nth-child(7) {
    animation-delay: 0.7s;
  }
  .skill-item:nth-child(8) {
    animation-delay: 0.8s;
  }
  .skill-item:nth-child(9) {
    animation-delay: 0.9s;
  }
  .skill-item:nth-child(10) {
    animation-delay: 1s;
  }
  .skill-item:nth-child(11) {
    animation-delay: 1.1s;
  }
  .skill-item:nth-child(12) {
    animation-delay: 1.2s;
  }
  .skill-item:nth-child(13) {
    animation-delay: 1.3s;
  }
  .skill-item:nth-child(14) {
    animation-delay: 1.4s;
  }
  .skill-item:nth-child(15) {
    animation-delay: 1.5s;
  }
  .skill-item:nth-child(16) {
    animation-delay: 1.6s;
  }
  .skill-item:nth-child(17) {
    animation-delay: 1.7s;
  }
  .skill-item:nth-child(18) {
    animation-delay: 1.8s;
  }

  .timeline-item.right .timeline-content {
    margin: 0 0 0 3rem;
  }

  .timeline-item.left .timeline-content {
    margin: 0 0 0 3rem;
  }

  .header-menu {
    display: none;
  }

  .header-container {
    width: calc(100% - 32px);
  }

  .mobile-menu-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 1rem;
  }

  /* Ensure items are aligned properly */
  .mobile-menu-container .mobile-change-theme-light {
    display: flex;
    align-items: center;
  }

  /* Remove list styling from theme toggle */
  .mobile-menu-container li {
    list-style: none;
  }

  .header-hamburger-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 24px; /* Added top padding for header height */
  }

  .header-hamburger-overlay.active {
    opacity: 1;
    visibility: visible;
    background-color: var(--bg-color);
  }

  main {
    margin-top: var(--header-height-mobile);
  }

  .container.container-contact {
    margin: 0 auto 8rem;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 2rem;
    height: var(--header-height-mobile);
  }

  .slider-dots {
    bottom: -1em;
  }
  .section {
    margin: 6rem auto;
  }

  .container.container-contact {
    margin: 0 auto 6rem;
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .skills-container {
    grid-template-columns: repeat(3, minmax(min-content, max-content));
    padding: 2rem 0;
  }

  .form-actions {
    flex-direction: column;
  }

  .contact-title {
    font-size: 2rem;
  }

  .timeline-item.right .timeline-content {
    margin: 0 0 0 0.5rem;
  }

  .timeline-item.left .timeline-content {
    margin: 0 0 0 0.5rem;
  }

  .slider-dots {
    bottom: 0rem;
  }

  .github-repo-techs {
    gap: 0.5rem;
  }
}
