* {
  box-sizing: border-box;
}

nav {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  width: 100%;
  margin: 20px 0;
  gap: 20px; /* Space between sections */
}

body {
  background-color: #f0fff0;
  color: #2f4f4f;
  font-family: "Arial", "Helvetica", "sans-serif";
  max-width: 1200px;
  border: 2px solid #2f4f4f;
  margin: 20px auto;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  margin-top: 0;
  padding: 20px;
}

a {
  color: #000000;
  text-decoration: none;
}

.projects-section,
.cv-section {
  display: block;
  border-radius: 15px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  width: 45%;
  background-color: #f5f5f5;
  padding: 20px;
  margin: 0 auto; /* Changed from 20px auto to 0 auto */
  border: 2px solid #2f4f4f;
  box-shadow: #2f4f4f 2px 2px 8px;
  transition: 0.3s ease-in-out;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform;
  cursor: pointer;
}

/* Modify hover to prevent overlap with footer */
.projects-section:hover,
.cv-section:hover {
  transform: scale(1.1); /* Reduced from 1.2 to 1.1 */
  box-shadow: #2f4f4f 4px 4px 12px;
}

/* Add more space above footer */
footer {
  padding: 40px 0 20px 0; /* Increased top padding */
  text-align: center;
  background-color: #f0fff0;
  margin-top: 20px; /* Add this */
}
