body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d1117;
  color: white;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.hero {
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.hero-logo-frame {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  position: relative;
}

.hero-logo-frame::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed #58a6ff;
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
  animation: spin-slow 10s linear infinite;
}

.hero-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  color: #fff;
  font-size: 2.2rem;
  margin: 0 15px;
  transition:
    transform 0.3s,
    color 0.3s;
}

.social-links a:hover {
  color: #58a6ff;
  transform: scale(1.1);
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: #58a6ff;
}

.card-body {
  flex-grow: 1;
}

h2 {
  border-bottom: 2px solid #58a6ff;
  display: inline-block;
  padding-bottom: 5px;
  margin-top: 50px;
}

.about-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  line-height: 1.8;
  color: #c9d1d9;
}

.skill-item {
  margin-bottom: 15px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #fff;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: #58a6ff;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
  animation: fillBar 1.5s ease-out forwards;
  transform-origin: left;
}

#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 15vh;
  align-items: center;
  transition:
    opacity 0.8s ease-out,
    visibility 0.8s;

  background: linear-gradient(-45deg, #0d1117, #161b22, #010409, #0d1117);
  background-size: 400% 400%;
  animation: animated-gradient 15s ease infinite;
}

.splash-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.profile-frame {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  padding: 5px;
  background: transparent;
  border: 2px dashed #58a6ff;
  position: relative;
  animation: spin-slow 10s linear infinite;
  box-shadow: 0 0 15px rgba(88, 166, 255, 0.5);
}

picture {
  display: contents;
}

.profile-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  animation: anti-spin 10s linear infinite;
}

.text-container {
  display: flex;
  flex-direction: column;
}

.status-container {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.8s forwards;
}

.status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.circular-progress {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(
    #58a6ff var(--progress, 0deg),
    rgba(255, 255, 255, 0.1) 0deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
  box-shadow: 0 0 10px rgba(88, 166, 255, 0.2);
  transition: background 0.5s ease;
}

.circular-progress::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  background-color: #0d1117;
  border-radius: 50%;
}

.value-container {
  position: relative;
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
}

.status-label {
  font-size: 0.8rem;
  color: #8b949e;
}

@media (max-width: 600px) {
  .splash-header {
    flex-direction: column;
    text-align: center;
  }
  .status-container {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  opacity: 0;
  transform: scale(0.9);
  animation: popIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.splash-subtitle {
  margin-top: 15px;
  font-size: 1.2rem;
  color: #58a6ff;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin-slow {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes anti-spin {
  100% {
    transform: rotate(-360deg);
  }
}

@keyframes fillBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes animated-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 8px;
  margin-bottom: 15px;
  background-color: rgba(0, 0, 0, 0.2);
}

.card h3 {
  margin: 0 0 10px 0;
  color: #58a6ff;
  font-size: 1.4rem;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card p {
  overflow-wrap: break-word;
}

.read-more-btn {
  background-color: #238636;
  color: white;
  border: 1px solid rgba(240, 246, 252, 0.1);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 15px;
  font-size: 0.9rem;
  transition: 0.2s;
}

.read-more-btn:hover {
  background-color: #2ea043;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.3s ease-out;
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
  overscroll-behavior: contain;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(13, 17, 23, 0.5);
  border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: #30363d;
  border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background-color: #58a6ff;
}

.close-modal {
  position: sticky;
  top: 10px;
  float: right;
  z-index: 100;

  background-color: rgba(22, 27, 34, 0.9);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #30363d;

  margin-top: -15px;
  margin-right: -15px;

  font-size: 24px;
  font-weight: bold;
  color: #8b949e;
  cursor: pointer;
  transition: 0.2s;
  line-height: 1;
  padding-bottom: 4px;
  box-sizing: border-box;
}

.close-modal:hover {
  color: #58a6ff;
  background-color: #30363d;
}

#search-filter .search-container {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px 30px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

#search-input {
  flex-grow: 1;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #30363d;
  color: white;
  font-size: 1.2rem;
  padding: 10px 5px;
  transition: border-color 0.3s;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

#search-input:focus {
  outline: none;
  border-bottom-color: #58a6ff;
}

.filter-options {
  display: flex;
  gap: 20px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  color: #c9d1d9;
}

.filter-checkbox input {
  display: none;
}

.filter-checkbox span::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #30363d;
  background-color: #0d1117;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  transition: all 0.2s;
}

.filter-checkbox input:checked + span::before {
  background-color: #58a6ff;
  border-color: #58a6ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1117' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 2s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: #58a6ff;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s;
  resize: vertical;

  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #58a6ff;
  background: rgba(13, 17, 23, 0.9);
}

#form-status {
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  display: none;
  transition: opacity 0.3s;
}

#form-status.success {
  background-color: #238636;
  color: white;
}

#form-status.error {
  background-color: #da3633;
  color: white;
}

footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
  border-top: 1px solid #30363d;
  color: #8b949e;
  font-size: 0.9rem;
  background: rgba(13, 17, 23, 0.8);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
