
:where([class^="ri-"])::before {
  content: "\f3c2";
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #111827;
  color: #f3f4f6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

header  {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #6366f1;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.1);
}
.skill-icon {
  transition: transform 0.3s ease;
}
.skill-icon:hover {
  transform: translateY(-5px);
}
.social-icon {
  transition: transform 0.3s ease, color 0.3s ease;
}
.social-icon:hover {
  transform: rotate(5deg);
  color: #6366f1;
}
input[type="text"],
input[type="email"],
textarea {
  background-color: #1f2937;
  border: 1px solid #374151;
  color: #f3f4f6;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
  outline: none;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.custom-checkbox {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  user-select: none;
}
.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 4px;
}
.custom-checkbox:hover input ~ .checkmark {
  background-color: #2d3748;
}
.custom-checkbox input:checked ~ .checkmark {
  background-color: #6366f1;
  border-color: #6366f1;
}
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}
.custom-checkbox .checkmark:after {
  left: 7px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1f2937;
  transition: 0.4s;
  border-radius: 24px;
  border: 1px solid #374151;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 3px;
  background-color: #f3f4f6;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #6366f1;
  border-color: #6366f1;
}
input:checked + .slider:before {
  transform: translateX(25px);
}
    
