:root {
  --background-color: rgb(13, 17, 23);
  --text-color: #ffffff;
  --card-background-color: rgba(22, 27, 34, 0.85);
  --link-color: #58a6ff;
  /* --background-image: url('../img/backgroundB.webp'); */
  --text-secondary-color: rgb(171, 171, 171);
}

html {
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease, background-image 0.3s ease;
}

[data-theme="light"] {
  --background-color: rgba(255, 255, 255, 0.9);
  --text-color: #000000;
  --card-background-color: rgba(240, 240, 240, 0.85);
  --link-color: #1a73e8;
  /* --background-image: url('../img/backgroundB.webp'); */
  --text-secondary-color: rgb(100, 100, 100);
}

.theme-sensitive-text {
  color: var(--text-secondary-color);
  transition: color 0.3s ease;
  font-size: small;
  margin: 0;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  background-image: var(--background-image);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-color 0.3s, color 0.3s, background-image 0.3s;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.container.show {
  opacity: 1;
  transform: translateY(0);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  /* color: #ffffff; */
}

header nav a {
  color: var(--text-color);
  margin: 0 10px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  /* color: #ffffff; */
}

header nav a:hover {
  color: var(--link-color);
}

.theme-toggle {
  cursor: pointer;
  background-color: var(--card-background-color);
  border: none;
  padding: 10px;
  border-radius: 5px;
  color: var(--text-color);
}

.theme-toggle:hover {
  background-color: var(--link-color);
  color: var(--background-color);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin-top: 40px;
}


.hero h1 {
  font-size: 2.5em;
  /* color:#ffffff */
}

.hero p {
  margin: 10px 0;
  /* color: #ffffff; */
}

/* .resume-buttons a {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  background-color: var(--link-color);
  color: var(--background-color);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.resume-buttons a:hover {
  background-color: var(--text-color);
  color: var(--background-color);
} */

.resume-buttons button {
  margin: 10px;
  padding: 10px 20px;
  background-color: var(--link-color);
  color: var(--background-color);
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

.resume-buttons button:hover {
  background-color: var(--text-color);
  color: var(--background-color);
}

.illustration {
  margin-top: 20px;
}

.expertise-area, .languages-tools, .projects-section {
  margin-top: 40px;
  /* height: 90vh; */
}

.expertise-cards, .tools-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.expertise-card, .project-card {
  background-color: var(--card-background-color);
  padding: 40px;
  border-radius: 8px;
  width: 300px;
  text-align: center;
}

.tools-icons img {
  height: 40px;
  margin: 10px;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.project-card img {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  margin-bottom: 10px;
  object-fit: cover;
}

.project-card h3 {
  margin: 10px 0;
}

.project-card p {
  font-size: 14px;
}

.project-card a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  background-color: #007BFF;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.project-card a:hover {
  background-color: #0056b3;
}

footer {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  border-top: 1px solid #21262d;
}

footer a {
  color: var(--link-color);
  margin: 0 5px;
  text-decoration: none;
}


/* Tooltip Style*/
.tools-icons span {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tools-icons span::after {
  content: attr(title);
  position: absolute;
  bottom: 100%; /* Adjust based on tooltip position */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-50%) translateY(10px); /* Initial state */
}

.tools-icons span:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0); /* Visible state */
}