

/* Base Styles */
body {
  font-family: 'Merriweather', serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('../images/background-image.png') no-repeat center center fixed;
  background-size: cover;
  position: relative;
  color: #f0e6d2;
  text-align: center;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  filter: blur(5px);
  z-index: -1;
}

h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Card Styles */
.card-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  max-width: 1200px;
  padding: 20px;
}

.project-card {
  width: 300px;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  background-size: 70%; /* Reduced image size */
  background-position: center 30%;
  background-repeat: no-repeat;
  border: 2px solid rgba(240, 230, 210, 0.2);
}


.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
  background-size: 85%; /* Slightly enlarge image on hover */
}


.project-card:hover::before {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
}

.kralopen-card {
  background-image: url('../images/kralopen.png');
}

.archi-card {
  background-image: url('../images/DofusOcre-project.png');
}

.text-container {
  position: relative;
  width: 100%;
  padding: 20px;
  color: #f0e6d2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  transform: translateY(0);
  transition: all 0.3s ease;
  z-index: 1;
}

.project-card:hover .text-container {
  transform: translateY(0);
}

.project-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 0; /* Remove bottom margin */
  color: #f0e6d2;
  transition: all 0.3s ease;
}

.project-description {
  font-size: 1rem;
  opacity: 0; /* Start fully transparent */
  max-height: 0; /* Start collapsed */
  overflow: hidden;
  transition: all 0.3s ease;
  line-height: 1.5;
  margin-top: 0;
  transform: translateY(10px);
}


/* Footer Styles */
footer {
  margin-top: 3rem;
  padding: 1rem;
  font-size: 1rem;
  font-weight: bold;
  opacity: 0.8;
}


@media (max-width: 768px) {
  .project-card {
    width: 280px;
    height: 380px;
  }
  
  .project-title {
    font-size: 1.6rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-wrapper {
    flex-direction: column;
    align-items: center;
  }
  
  .project-card {
    width: 300px;
    height: 200px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .description {
    font-size: 1rem;
  }
}


/* SERVERS CHOSE */
/* Updated Server Link Styles */
.server-link {
  position: fixed;
  top: 30px;
  right: 30px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #f0e6d2;
  text-decoration: none;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid rgba(240, 230, 210, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.server-link::before {
  content: "🌐";
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.server-link:hover {
  background: rgba(30, 30, 30, 0.8);
  color: #ffd369;
  border-color: rgba(255, 211, 105, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.server-link:hover::before {
  transform: rotate(15deg);
  color: #f0e6d2;
}

.server-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Animation for attention */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 211, 105, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 211, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 211, 105, 0); }
}

.server-link.pulse {
  animation: pulse 1.5s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .server-link {
    top: 20px;
    right: 20px;
    font-size: 0.9rem;
    padding: 10px 18px;
  }
} 