:root {
  --bg-img: url('https://i.pinimg.com/474x/04/78/51/047851d7e30137cc9dc56b57834cb487.jpg');
  --glass-bg: rgba(20, 20, 20, 0.45);
  --blur: 18px;
  --bar-color: rgba(50, 50, 50, 0.9);
  --fill-color: rgba(230, 230, 230, 0.8);
  --text: #f1f5f9;
}

* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  color: var(--text);
}

body, html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
}

.background {
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
  position: fixed;
  inset: 0;
  filter: brightness(0.45) blur(6px);
  z-index: -1;
}

.card {
  margin: 4rem auto;
  width: min(85%, 580px);
  transform: scale(0.95);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  border-radius: 25px;
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid rgba(255, 255, 255, 0.4);
  object-fit: cover;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}


h1 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

h2 {
  margin-top: 2rem;
  color: white;
}

p {
  color: rgba(240, 240, 240, 0.9);
}

.skill {
  margin: 1rem 0;
  text-align: left;
}

.bar {
  height: 12px;
  background: var(--bar-color);
  border-radius: 8px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background: var(--fill-color);
  border-radius: 8px 0 0 8px;
}

a {
  color: #9cc9ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

.lang-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 0.4rem;
  margin-bottom: 2px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .card {
    padding: 1.5rem;
    border-radius: 15px;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .skill span {
    font-size: 0.95rem;
  }
  
}
