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

body {
  background: #16467c;
}

html {
  scroll-behavior: smooth;
}

header {
  background: #2771c5;
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, sans-serif;
}

.left-part {
  color: transparent;
  font-size: 1.25rem;
  background: linear-gradient(
    135deg,
    #1900ff, #0051ff
  );
  background-clip: text;
  font-weight: bold;
}

.right-part {
  user-select: none;
  background: #122680;
  color: #fff;
  padding: 19px;
  border-radius: 12px;
  box-shadow: 0 1px 5px rgba(0, 0, 255, 0.3);
}

.first {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
  font-family: Arial;
  color: #fff;
  text-align: center;
  background: #163563;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.first h1 {
  font-weight: bold;
}

.first p {
  text-align: justify;
  max-width: 300px; 
  font-size: 1.15rem;
}

.skills {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.skills h1 {
  margin-top: 5px;
  margin-bottom: 5px;
  font-family: Arial;
  color: #fff;
  text-align: center;
}

.grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.card {
  opacity: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: monospace;
  text-align: center;
  gap: 5px;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  color: #fff;
  animation: up 1s ease;
}

.card h2 {
  padding: 5px;
  background-color: rgba(255, 255, 255, 0.171);
  border-radius: 12px;
}

.card:hover {
  transform: translateY(-2px);
}

.card:nth-child(1) {
  animation-delay: 0.05s;
  background: linear-gradient(
  135deg,
  #000 1%,#196316);
}

.card:nth-child(2) {
  animation-delay: 0.07s;
  background: linear-gradient(
  135deg,
  #000 1%, #ca730f);
}

.card:nth-child(3) {
  animation-delay: 0.09s;
  background: linear-gradient(
  135deg,
  #000 1%, #0a2a85);
}

.card:nth-child(4) {
  animation-delay: 0.11s;
  background: linear-gradient(
  135deg,
  #000 1%, #887f02);
}

.projects {
  background: #1d3c77;
}

.projects h2 {
  color: #fff;
  text-align: center;
  font-family: Arial;
  font-weight: bold;
  padding: 25px;
}

.projects-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.project-card {
  text-align: center;
  background: #0051ff;
  border-radius: 12px;
  padding: 1.55rem 1rem;
}

.project-card h3 {
  font-family: Arial;
  color: #fff;
}

a {
  text-decoration: none;
  color: #00040f;
  margin-top: 5px;
  font-family: Arial;
  font-weight: bold;
}

@keyframes up {
  0% {
    transform: translateY(5px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}