@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap');

:root {
  --bg-color: #011627;
  --text-color: #d6deeb;
  --link-color: #82aaff;
  --link-hover: #c792ea;
  --card-bg: #0d1b2a;
  --card-border: #82aaff;
  --card-shadow: rgba(0, 0, 0, 0.6);
}

body.light {
  --bg-color: #ffffff;
  --text-color: #1e1e1e;
  --link-color: #1e90ff;
  --link-hover: #ff69b4;
  --card-bg: #f5f5f5;
  --card-border: #1e90ff;
  --card-shadow: rgba(0,0,0,0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', monospace;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 20px;
  transition: background-color 0.5s ease, color 0.5s ease;

  background-image: url('background.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto;
  background-attachment: fixed;

}



a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.hero {
  text-align: center;
  margin-bottom: 30px;
}

.hero img {
  width: 140px;
  height: 140px;
  border-radius: 5%;
  border: 2px solid var(--link-color);
  transition: transform 0.3s, border-color 0.3s;
}

.hero img:hover {
  transform: scale(1.05);
  border-color: var(--link-hover);
}
/* .peoms{
  background-color: var(--card-bg) ;
  color: var(--text-color);
    -webkit-backdrop-filter: blur(10px);

  backdrop-filter: blur(10px);
 border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--card-border);
  border-right: 4px solid var(--card-border);
} */
.card {
  background-color: rgba(13, 27, 42, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--card-border);
  border-right: 4px solid var(--card-border);
  box-shadow: 0 8px 20px var(--card-shadow);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.5s ease,
              background-color 0.5s ease;
}

body.light .card {
  background-color: rgba(245, 245, 245, 0.6);
}

.card:hover {
  transform: scale(1.05) rotateZ(1deg);
  filter: brightness(1.2);
  box-shadow: 0 15px 30px var(--card-shadow);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: left;
}

.skills img {
  filter: brightness(0.9);
  transition: transform 0.2s, filter 0.2s;
}

.skills img:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: rgba(13, 27, 42, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-color);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 10px var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease, background-color 0.5s ease, color 0.5s ease;
}

.theme-toggle:hover {
  transform: scale(1.2) rotate(20deg);
}

nav a.active {
  font-weight: bold;
  border-bottom: 2px solid var(--link-color);
}

code {
  font-family: 'Vazirmatn', monospace;
  background-color: rgba(0,0,0,0.05);
  padding: 2px 4px;
  border-radius: 4px;
}
