:root {
  --primary: 151 41% 47%;    /* sage green */
  --primary-foreground: 355 100% 100%;
  
  --secondary: 32 14% 40%;   /* warm taupe */
  --secondary-foreground: 355 100% 100%;
  
  --muted: 30 20% 95%;
  --muted-foreground: 32 14% 40%;
  
  --accent: 151 41% 92%;     /* light sage */
  --accent-foreground: 32 14% 40%;
  
  --background: 30 20% 97%;
  --foreground: 32 14% 40%;
  
  --card: 0 0% 100%;
  --card-foreground: 32 14% 40%;
  
  --sidebar-width: 12rem;
  --sidebar-width-collapsed: 4rem;
}

body {
  margin: 0;
  padding: 0;
}

#app {
  padding: 0 3cm; /* 3 cm padding on each side */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  padding-top: 4rem; /* Add padding to avoid overlap with topbar */
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
    padding-top: 4rem; /* Add padding to avoid overlap with topbar */
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 4rem;
    padding-top: 4rem; /* Add padding to avoid overlap with topbar */
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 6rem;
    padding-top: 4rem; /* Add padding to avoid overlap with topbar */
  }
}

/* Custom styles */
.skill-card {
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: #f9f9f9; /* Light grey color */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* More shadow */
  border: 1px solid #e0e0e0; /* Visible shape */
}

.skill-card-content {
  display: none;
  transition: max-height 0.3s ease;
}

.skill-card.open .skill-card-content {
  display: block;
  max-height: 500px; /* Adjust as needed */
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* More shadow on hover */
}

.skill-icon {
  width: 50px; /* Set the width */
  height: 50px; /* Set the height */
  object-fit: contain; /* Ensure the image fits within the specified dimensions */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

.skill-icon:hover {
  transform: translateY(-5px); /* Lift the icon on hover */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* More shadow on hover */
}

.icons-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 icons per row */
  gap: 1rem; /* Adjust the gap between icons as needed */
}

.skill-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.skill-label {
  display: none; /* Hide the label by default */
  position: absolute;
  bottom: -20px; /* Position the label below the icon */
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  color: white; /* White text */
  padding: 2px 8px; /* Padding */
  border-radius: 4px; /* Rounded corners */
  font-size: 12px; /* Smaller font size */
  white-space: nowrap; /* Prevent text wrapping */
}

.skill-wrapper:hover .skill-label {
  display: block; /* Show the label on hover */
}

.project-card {
  transition: all 0.3s ease;
  background-color: #f9f9f9; /* Light grey color */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* More shadow */
  border: 1px solid #e0e0e0; /* Visible shape */
}

.project-card a {
  background-color: #808080; /* Grey color */
  color: white;
}

.project-card a:hover {
  background-color: #a0a0a0; /* Slightly lighter grey on hover */
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* More shadow on hover */
}

#topbar {
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2rem; /* Adjust the padding as needed */
  z-index: 10;
}

#topbar ul {
  display: flex;
  gap: 1.5rem; /* Adjust the gap as needed */
}

#topbar ul li a {
  font-weight: bold; /* Make the font bold */
}

#main-content {
  margin-top: 4rem;
  transition: margin-top 0.3s ease-in-out;
}

#hero {
  background-color: white;
  color: var(--foreground);
}

.skills-section {
  background-color: #f9f9f9; /* Light grey background */
  border-radius: 12px; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Shadow */
  padding: 1rem; /* Padding inside the section */
  margin-bottom: 2rem; /* Space between sections */
}

.skills-section h3 {
  margin-bottom: 1rem; /* Space below the section title */
  font-size: 1.5rem; /* Font size for the section title */
  font-weight: bold; /* Bold font for the section title */
  text-align: center; /* Center align the section title */
}

.certificates-section {
  background-color: #f9f9f9; /* Light grey background */
  border-radius: 12px; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Shadow */
  padding: 2rem; /* Increased padding inside the section */
  margin-bottom: 2rem; /* Space between sections */
}

.certificates-section h3 {
  margin-bottom: 2rem; /* Increased space below the section title */
  font-size: 3rem; /* Increased font size for the section title */
  font-weight: bold; /* Bold font for the section title */
  text-align: center; /* Center align the section title */
}

.certificates-section .icons-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 icons per row */
  gap: 2rem; /* Increased gap between icons */
}

.certificates-section .skill-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.certificates-section .skill-icon {
  width: 100px; /* Increased width */
  height: 100px; /* Increased height */
  object-fit: contain; /* Ensure the image fits within the specified dimensions */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

.certificates-section .skill-icon:hover {
  transform: translateY(-5px); /* Lift the icon on hover */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* More shadow on hover */
}

.certificates-section .skill-label {
  display: none; /* Hide the label by default */
  position: absolute;
  bottom: -20px; /* Position the label below the icon */
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  color: white; /* White text */
  padding: 2px 8px; /* Padding */
  border-radius: 4px; /* Rounded corners */
  font-size: 12px; /* Smaller font size */
  white-space: nowrap; /* Prevent text wrapping */
}

.certificates-section .skill-wrapper:hover .skill-label {
  display: block; /* Show the label on hover */
}
