/* Global Styles */
body {
  margin: 0;
  padding: 0;
  background-image: url("img9.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  font-family: 'Wix Madefor Display';font-size: 18px;
  overflow-x: hidden;
}

/* Header */
header {
  text-align: center;
  padding: 3rem 1rem;
  border-bottom: 2px solid white;
  animation: fadeInTop 1s ease-in-out;
}

header h1 {
  font-size: 3rem;
  margin: 0;
  color: #f6f6f6;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, color 0.2s;
}

header h1:hover {
  transform: scale(1.05);
}

.arrow{
  position: absolute; 
  top: 10px; 
  left: 10px; 
  text-decoration: none; 
  font-size: 32px; 
  color: #f6f6f6; 
  background: #f0f0f000; 
  padding: 10px 15px; 
  border-radius: 8px; 
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeInTop 1.2s ease-in-out;
  scale: 1.5;
}

.arrow:hover {
  transform: scale(1.15);
}

/* Container for Projects */
.projects-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 1rem;
  animation: fadeInTop 1.2s ease-in-out;
}

/* Project Card */
.project-card {
  display: block;
  text-decoration: none;
  background-color: white;
  color: black;
  width: 90%;
  max-width: 800px;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInTop 1.5s ease-in-out;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.2);
}

.hover-image {
  position: absolute;
  top: 50%;
  left: 110%;
  transform: translateY(-50%);
  opacity: 0; /* Initially hidden */
  pointer-events: none; /* Prevent interaction when hidden */
  transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth fade effect */
}

.hover-image img {
  width: 100px;
  height: auto;
}

.project-card:hover .hover-image {
  opacity: 1; /* Fade in on hover */
  transform: translateY(-50%); /* Keep the image vertically centered */
  pointer-events: auto; /* Allow interaction when visible */
}

.project-card h3,
.project-card p {
  margin: 0 0 0.5rem 0;
}

.project-card a {
  color: black;
  text-decoration: underline;
  font-weight: bold;
}

/* Keyframes for fade-in animation */
@keyframes fadeInTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}