* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif
}

body {
  background: #0B5876;
  color: #eaeaea;
  line-height: 1.6;
  overflow: hidden;
}

/* Mouse follower */
.mouse-follower {
  position: fixed;
  width: 20px;
  height: 20px;
  background: rgba(100, 255, 218, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 0 20px;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  margin-bottom: 5px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #64ffda;
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero .typewriter {
  font-size: clamp(0.8em, 1.7vw, 1.2rem);
  opacity: 0.8;
  margin-bottom: 0.35rem;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #64ffda;
  animation: blink-caret 0.75s step-end infinite;
  font-weight: bold;
  /* Make typewriter text bold */
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: #64ffda;
  }
}

.hero-image {
  flex: 1;
  max-width: 400px;
  margin-left: 200px;
  margin-top: 80px;
}

.hero-image img {
  width: 100%;
  border-radius: 50%;
  border: 5px solid #64ffda;
}

/* About Card */
.about-card {
  background: rgba(17, 34, 64, 0.8);
  padding: 1.5rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 255, 218, 0.1);
  max-width: 800px;
  margin: 10px auto;
  text-align: left;
  font-size: 1.2rem;
  ;
}

.about-card p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Social Links */
.social-links {
  display: flex;

  justify-content: center;
  margin-top: 6 px;
  /* Increase margin-top to move it further down */

}

.social-links a {
  color: #64ffda;
  font-size: 1.5rem;
  margin: 0 10px;
  z-index: 99;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #fff;
}

/* Interactive background dots */
.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(100, 255, 218, 0.5);
  border-radius: 50%;
  opacity: 0.2;
  pointer-events: none;
}

/* Slider and Cards */
.slider {
  width: 97.6%;
  max-width: 700px;
  margin: 20px auto;
  position: relative;
  z-index: 0;
}

/* Desktop Slider */
@media (min-width: 769px) {
  .slider {
    width: 99%;
    display: flex;
    overflow: hidden;
    max-height: 430px;
  }

  .slider-track {
    display: flex;
    transition: transform 0.8s ease;
    width: 100%;
  }

  .slider-card {
    min-width: 100%;
    flex: 0 0 100%;
    margin: 0;
  }

  .slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .slider-nav button {
    background: rgba(5, 62, 85, 0.3);
    border: none;
    color: #64ffda;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 99;
    padding: 5px 5px;
    border-radius: 50px;
    pointer-events: auto;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }

  .slider-nav button:hover {
    background: rgba(5, 62, 85, 0.6);
    transform: scale(1.1);
  }
}

/* Mobile Cards */
@media (max-width: 768px) {
  .slider {
    overflow-y: auto;
    max-height: 80vh;
    padding: 10px;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    position: relative;
  }

  .slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
  }

  .slider-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
    min-height: min-content;
  }

  .slider-nav {
    display: none;
  }
}

.slider-card {
  box-sizing: border-box;
  padding: clamp(1.5rem, 4vw, 2rem);
  background: rgba(5, 62, 85, 0.2);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 255, 218, 0.1);
  text-align: left;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
}

.slider-card p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.slider-card h2 {
  font-size: 1.5rem;
  color: #64ffda;
  margin-bottom: 1rem;
}

.slider-card i {
  margin-right: 10px;
  color: #64ffda;
}

.toolkit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 15px;
  max-height: 300px;
  /* Set a maximum height */
  overflow-y: auto;
  /* Enable vertical scrolling */
  padding-right: 10px;
  /* Add some padding for the scrollbar */
  scrollbar-width: thin;
  /* For Firefox */
  scrollbar-color: rgba(100, 255, 218, 0.3) transparent;
  /* For Firefox */
}

/* Webkit scrollbar styling (Chrome, Safari, etc.) */
.toolkit::-webkit-scrollbar {
  width: 8px;
}

.toolkit::-webkit-scrollbar-track {
  background: transparent;
}

.toolkit::-webkit-scrollbar-thumb {
  background-color: rgba(100, 255, 218, 0.3);
  border-radius: 20px;
}

.toolkit::-webkit-scrollbar-thumb:hover {
  background-color: rgba(100, 255, 218, 0.5);
}

.toolkit-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #64ffda;
  transition: transform 0.3s ease, background 0.3s ease;
}

.toolkit-item i {
  font-size: 2.5rem;
  margin-right: 8px;
}

.toolkit-item:hover {
  background: rgba(100, 255, 218, 0.3);
  transform: scale(1.1);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 10px;
  width: 100%;
  margin: auto;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 15px;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 255, 218, 0.3) transparent;
}

/* Webkit scrollbar styling for skills container */
.skills-container::-webkit-scrollbar {
  width: 8px;
}

.skills-container::-webkit-scrollbar-track {
  background: transparent;
}

.skills-container::-webkit-scrollbar-thumb {
  background-color: rgba(100, 255, 218, 0.3);
  border-radius: 20px;
}

.skills-container::-webkit-scrollbar-thumb:hover {
  background-color: rgba(100, 255, 218, 0.5);
}


.skill-card {
  background: rgba(0, 150, 136, 0.1);
  padding: 5px;
  padding-bottom: 5px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
  font-size: 0.85rem;
  /* Reduce text size for better fit */
}

.skill-card i {
  font-size: 1.5rem;
  /* Smaller icons */
  color: #64ffd8;
  margin-bottom: 5px;
}

.skill-card h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.skill-card:hover {
  background: rgba(0, 150, 136, 0.3);
  transform: scale(1.03);
}

/* Add media queries for responsiveness */

/* For devices smaller than 768px (tablets and phones) */
/* Large screens */
@media (min-width: 1025px) {
  .hero h2 {
    font-size: 2rem;
  }

  .hero .typewriter {
    font-size: 1.2rem;
  }

  .slider-card h2 {
    font-size: 1.8rem;
  }

  .slider-card {
    font-size: 1.1rem;
  }
}

/* Tablet and smaller devices */
@media (max-width: 1024px) {
  body {
    font-size: clamp(14px, 1.5vw, 16px);
    overflow-y: auto;
  }

  .hero {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    padding: clamp(20px, 4vw, 40px);
    gap: 2rem;
  }

  .hero-content {
    margin-top: 2rem;
  }

  .hero h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.3;
  }

  .hero .typewriter {
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  }

  .hero-image {
    margin: 0 auto;
    max-width: min(300px, 80vw);
  }

  .slider {
    width: min(100%, 600px);
    margin: 2rem auto;
  }

  .slider-card {
    padding: clamp(1rem, 3vw, 2rem);
  }

  .slider-card h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    margin-bottom: 1rem;
  }

  .slider-card p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
  }

  .toolkit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }

  .skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
}

/* Mobile devices */
@media (max-width: 480px) {
  .hero h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .hero .typewriter {
    font-size: clamp(0.8rem, 3vw, 1rem);
    white-space: normal;
  }

  .hero-image {
    max-width: min(200px, 70vw);
  }

  .slider-card {
    padding: 1rem;
  }

  .social-links {
    position: relative;
    padding: 1rem 0;
  }

  .social-links a {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }

  .toolkit-item {
    padding: 0.5rem;
  }

  .skill-card {
    padding: 1rem;
    text-align: center;
  }

  .skill-card i {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #eaeaea;
  font-size: 1.1rem;
  padding: 0.5rem;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.contact-item i {
  color: #64ffda;
  font-size: 1.5rem;
}

.contact-item:hover {
  background: rgba(100, 255, 218, 0.3);
  transform: scale(1.05);
}

/* Responsive for contact items */
@media (max-width: 768px) {
  .contact-info {
    gap: 0.8rem;
  }

  .contact-item {
    font-size: 1rem;
    padding: 0.4rem;
  }

  .contact-item i {
    font-size: 1.3rem;
  }
}

/* Scrollbar corrigée - couleur normale puis vive au hover */
.slider-card {
  overflow-y: auto;
  max-height: 100%;
}

.slider-card::-webkit-scrollbar {
  width: 6px;
}

.slider-card::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.slider-card::-webkit-scrollbar-thumb {
  background: rgb(43, 134, 143);/* Couleur normale (moins vive) */
  border-radius: 3px;
}

.slider-card::-webkit-scrollbar-thumb:hover {
  background: #64ffda; /* Couleur vive au hover */
}

/* Inputs simples - suppression complète de la bordure noire */
#senderName,
#messageText {
  width: 100% !important;
  padding: 0.6rem !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(100, 255, 218, 0.3) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-family: inherit !important;
  outline: none !important; /* Supprime la bordure noire */
  box-shadow: none !important; /* Supprime toute ombre */
}

/* Placeholder blanc */
#senderName::placeholder,
#messageText::placeholder {
  color: #ffffff !important;
  opacity: 0.7;
}

/* Focus avec bordure blanche uniquement */
#senderName:focus,
#messageText:focus {
  border: 2px solid #ffffff !important;
  outline: none !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.15) !important;
}
