@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #eeeeee80;
  color: #222;
  line-height: 1.7;
  scroll-behavior: smooth;
  animation: fadeIn 1s ease forwards;
}

html {
  scroll-padding-top: 80px;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: background 0.3s, box-shadow 0.3s;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  color: #333;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, #0073e6, #00b3e6);
  transition: width 0.3s ease;
}

nav a:hover {
  color: #0073e6;
}

nav a:hover::after {
  width: 100%;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

section {
  text-align: center;
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

h1 {
  font-size: 3rem;
  color: #111;
  font-weight: 700;
  background: linear-gradient(90deg, #0073e6, #00b3e6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

p {
  font-size: 1.1rem;
  color: #555;
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

#skills ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}

#skills li {
  background: rgba(255, 255, 255, 0.6);
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#skills li:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#contact a {
  color: #0073e6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
}

#contact a:hover {
  color: #005bb5;
  text-decoration: underline;
  transform: translateY(-2px);
}

footer {
  text-align: center;
  padding: 1.5rem;
  background: #ffffff;
  font-size: 0.9rem;
  color: #666;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}

footer p {
  text-align: center;
  padding: 0;
  margin: 0 auto;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.4rem;
    line-height: 2.8rem;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  nav ul {
    gap: 1.2rem;
  }

  #contact a {
    display: block;
    font-size: 1rem;
  }

  footer p {
    font-size: 0.8rem;
  }
}