body {
  display: flex;
  flex-direction: column;
  text-align: center;

  background: radial-gradient(circle at top left, var(--main-color), #b7b9bc);
  color: #ffffff;
  font-family: "Poppins", sans-serif;
}

:root {
  --main-color: hotpink;
  --text-color: #ffffff;
  --accent-color: #9ca3af;
  --background-color: #b7b9bc;
}

.header-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  position: fixed;
  top: 1rem;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
}

.header-nav ul {
  margin: 0;
  padding: 0;
}

.header-nav ul li {
  list-style: none;
  display: inline-block;
  padding: 0.5rem;
}

.header-div-2 {
  margin-top: 5rem;
}

.header-nav a:hover {
  text-decoration: none;
  transform: scale(1.1);
  color: black;
  font-weight: bold;
}

.header-nav a {
  transition: all 0.3s ease;
  color: var(--accent-color);
  text-decoration: none;
}

header {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  top: 0;
  width: 100%;
  margin: 0;
}

button {
  background-color: #9ca3af;
  color: var(--text-color);
  border-radius: 2rem;
  font-size: 1.5rem;
  border: none;
  padding: 1rem 2rem;
  margin: 1.5rem;
}
button:hover {
  font-weight: bold;
}

h1 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 5s ease-out forwards, blink 2s 1.5s infinite;
  font-size: clamp(2rem, 6vw, 3.5rem);
  padding-bottom: 2rem;
}

h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 2rem);
}

p {
  font-size: clamp(1rem, 0.8vw + 0.8rem, 1.25rem);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.first-sec {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sec-item {
  flex: 1;
  padding: 20px;
  text-align: center;
  height: 100%;
  margin: 0;
  min-height: 400px;
  gap: 0.5rem;
}

.sec-item img {
  width: 100%;
  height: auto;
  min-width: 250px;
  border-radius: 15px;
}

.text-container {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

@media (max-width: 1024px) {
  .first-sec {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .sec-item img {
    width: 80%;
    margin: 0;
    padding: 0;
    height: auto;
    border-radius: 15px;
  }

  .sec-item {
    margin: 0;
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 0.5rem;
  }

  .text-container {
    padding: 10px 0;
    margin: 0;
  }

  .header-nav {
    width: 90%;
  }

  .header-nav ul li {
    padding: 0.1rem;
  }

  .header-nav a {
    font-size: 0.8rem;
    padding: 0.2rem;
  }

  .second-sec {
    flex-direction: column;
  }

  .third-sec {
    display: flex;
    flex-direction: column;
  }
}

#skills {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.second-sec {
  display: flex;
}

.second-sec-item {
  flex: 1;
  border: solid;
  border-radius: 2rem;
  background-color: var(--text-color);
  color: #9ca3af;
  margin: 0.5rem auto;
  text-align: center;
  box-shadow: 0 4px 8px;
  padding: 1rem;
  transition: all 0.3s ease;
  width: 80%;
  max-width: 300px;
}

.second-sec-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 20px;
}

.third-sec {
  display: flex;
}

.third-sec-item {
  flex: 1;
  background-color: var(--accent-color);
  border-radius: 1rem;
  padding: 1rem;
  margin: 1rem auto;
  width: 80%;
  max-width: 300px;
}

footer {
  border-top: 3px solid var(--accent-color);
  margin-top: clamp(4rem, 6vw, 7rem);
  padding: 2rem 0;
}

.last-section {
  margin-top: 2rem;
  text-decoration: none;
  padding: 1rem;
}

footer a svg {
  width: 50px !important;
  height: 50px !important;
  color: var(--text-color);
}

footer a svg:hover {
  transform: translateY(-10px) scale(1.05);
}
