body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f3f3f3 25%, #e0e0e0 100%);
  overflow-x: hidden;
  color: #333;
}

header {
  background-color: #333;
  color: white;
  padding: 1em;
  text-align: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline;
  margin: 0 10px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

section {
  padding: 5em 2em;
  text-align: center;
  position: relative;
  z-index: 1;
}

#hero {
  background: url('background.jpg') no-repeat center center/cover;
  color: white;
  padding: 10em 2em;
  box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.5);
  position: relative;
}

.overlay {
  background: rgba(0, 0, 0, 0.5);
  padding: 2em;
  border-radius: 10px;
  display: inline-block;
}

#about, #skills, #portfolio, #contact {
  background: #fff;
  border-radius: 10px;
  margin: 2em auto;
  padding: 2em;
  max-width: 800px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about:hover, #skills:hover, #portfolio:hover, #contact:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.skill {
  margin: 1em;
  text-align: left;
  width: 100%;
  max-width: 300px;
}

.skill-bar {
  background-color: #4CAF50;
  color: white;
  text-align: right;
  padding: 5px;
  border-radius: 5px;
  transition: width 1s ease-in-out;
}

.skill:hover .skill-bar {
  background-color: #45a049;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-item {
  margin: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  max-width: 200px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

form label, form input, form textarea {
  width: 100%;
  max-width: 500px;
  margin-bottom: 1em;
}

form input, form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background-color: #333;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
  background-color: #555;
  transform: scale(1.05);
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1em;
}

/* Background decorations */
.decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.decorative-element {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-20px);
  }
  100% {
      transform: translateY(0);
  }
}
