
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #0a0a0f;
  color: #fff;
  scroll-behavior: smooth;
}
h2 {
  text-align: center;
  font-size: 2rem;
  color: #8a2be2;
  margin-top: 40px;
}
header nav {
  background: #0e0e1a;
  padding: 10px 20px;
  text-align: center;
}
header nav a {
  margin: 0 15px;
  color: #8a2be2;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}
header nav a:hover {
  color: #ffffff;
}
.hero {
  padding: 100px 20px;
  text-align: center;
  background: radial-gradient(ellipse at center, #1f1f2f 0%, #0a0a0f 100%);
}
.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 0 20px #8a2be2aa;
}
.hero-buttons a {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  background: #8a2be2;
  color: white;
  border-radius: 40px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-buttons a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #8a2be2;
}
.skills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem;
}
.skills div {
  font-size: 1.2rem;
  background: #1c1c2c;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px #00000055;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 2rem;
}
.card {
  background: #111122;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 0 15px #00000066;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px #8a2be288;
}
.card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 15px;
}
.card h3 {
  color: #8a2be2;
  margin-bottom: 10px;
}
.card p {
  color: #cccccc;
  font-size: 0.95rem;
  line-height: 1.5;
}
form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: auto;
  padding: 1rem;
}
form input, form textarea {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: none;
}
form button {
  background: #8a2be2;
  color: white;
  padding: 10px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
}
.socials {
  text-align: center;
  margin-top: 1rem;
}
.socials a {
  margin: 0 10px;
  color: #8a2be2;
  text-decoration: none;
}
footer {
  text-align: center;
  padding: 20px;
  background: #080818;
  font-size: 0.9rem;
}

#loading {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #0a0a0f;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.spinner {
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top: 5px solid #8a2be2;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
