/* Background image */
body {
  background-image: url("images/BG-image for cv.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: Arial, sans-serif;
  color: #333;
}

/* Overlay for contrast and readability */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

/* Header */
header {
  background: linear-gradient(135deg, #004d66, #007a99);
  color: white;
  text-align: center;
  padding: 20px 0;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-pic:hover {
  transform: scale(1.08);
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
}

.header-buttons {
  margin-top: 10px;
}
.btn {
  display: inline-block;
  padding: 10px 15px;
  margin: 5px;
  background: white;
  color: #004d66;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}
.btn:hover {
  background: #ff9933;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Main sections */
section {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
section:hover {
  transform: translateY(-5px);
}

/* Experience list */
.experience-list {
  list-style: none;
  padding: 0;
}

.experience-list li {
  background: rgba(0, 77, 102, 0.08);
  margin: 10px 0;
  padding: 15px;
  border-radius: 10px;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.experience-list li:hover {
  background: rgba(0, 77, 102, 0.15);
  transform: scale(1.02);
}

.job-title {
  font-weight: bold;
  color: #004d66;
}

.job-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease-in-out;
  font-size: 0.9rem;
  margin-top: 8px;
  color: #333;
}

.experience-list li:hover .job-details {
  max-height: 500px;
  opacity: 1;
}

/* Headings */
h2 {
  color: #004d66;
}

/* Links */
a {
  color: #004d66;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}
a:hover {
  color: #ff9933;
  text-decoration: underline;
}

/* Skills list */
.skill-list li {
  background: #e6f7ff;
  padding: 8px;
  margin: 5px 0;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.skill-list li:hover {
  background: #004d66;
  color: white;
  transform: translateX(5px);
}

/* Footer */
footer {
  text-align: center;
  padding: 10px;
  background: #004d66;
  color: white;
  margin-top: 20px;
}

/* Fade-in animation */
.fade-in {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
