/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Crimson Text', serif;
  line-height: 1.6;
  color: #313131;
  background-color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout components */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  width: 100%;
}

/* Typography */
.page-title {
  font-size: 2rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  line-height: 25px;
  text-align: center;
  color: #232323;
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.3rem;
  font-family: 'Crimson Text', serif;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  color: #313131;
  padding-top: 1rem;
}

.divider {
  width: 56px;
  height: 2px;
  background-color: #757575;
  margin: 0 auto;
}

#projects {
  justify-content: center;
  align-items: center;
  text-align: center;
  color: black;
}

.project-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border: rgb(53, 53, 53) 0.1rem solid;
  padding: 1rem;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
  background: #fff;
  text-align: center;
  height: 100%;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

.project-card h3 {
  font-size: 1.5rem;
  margin: 1rem 0 0.5rem 0;
  color: #232323;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: #ffffff;
  color: #313131;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  color: #313131;;
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn-secondary {
  background-color: #ffffff;
  color: #313131;
  padding: 14px 24px;
  box-shadow: 0px 2px 4px rgba(40, 37, 35, 0.16);
  text-decoration: none;
}

.cta-btn-icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  #projects {
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}