/* main page content */
/* all var use here located in dark and light css file */
.page-hero {
  background: linear-gradient(
    120deg,
    var(--accent-primary) 0%,
    color-mix(in srgb, var(--accent-primary) 70%, var(--accent-secondary)) 100%
  );
  color: white;
  padding: 4rem 0;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.page-hero p {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.85;
  max-width: 700px;
  margin: 0 auto;
}

/* projects part */
.project-showcase-section {
  padding: 4rem 0;
}
.project-entry {
  background-color: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  margin-bottom: 3rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-entry:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 28px rgba(0, 50, 100, 0.1);
  html.dark & {
    box-shadow: 0px 10px 28px rgba(0, 0, 0, 0.25);
  }
}

.project-image-placeholder {
  height: 300px;
  background-color: var(--accent-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  background-image: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.05) 25%,
    transparent 25%,
    transparent 50%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0.05) 75%,
    transparent 75%,
    transparent
  );
  background-size: 40px 40px;
}

.project-content {
  padding: 2.5rem;
}
.project-content h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}
.project-content .summary {
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.project-content .details p {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.project-content .key-highlights {
  margin-top: 1.5rem;
  padding-left: 0;
  list-style: none;
}
.project-content .key-highlights li {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.8rem;
}
.project-content .key-highlights li::before {
  /* icon */
  content: "⭐";
  color: var(--accent-secondary);
  position: absolute;
  left: 0;
  font-size: 1rem;
  top: 2px;
}
.project-content .btn-details {
  display: inline-block;
  margin-top: 1.5rem;
  background-color: var(--accent-secondary);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.project-content .btn-details:hover {
  background-color: color-mix(in srgb, var(--accent-secondary) 85%, black);
  transform: translateY(-2px);
}

/* responsive but need littel more work */
@media (min-width: 769px) {
  .project-entry {
    flex-direction: row;
  }
  .project-entry:nth-child(even) {
    flex-direction: row-reverse;
  }
  .project-image-placeholder {
    width: 40%;
    height: auto;
    min-height: 350px;
  }
  .project-content {
    width: 60%;
  }
}

/* simple section */
.cta-section {
  background-color: var(--accent-primary);
  padding: 4rem 0;
  text-align: center;
  color: white;
}
.cta-section h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.cta-section p {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}
.cta-button {
  background-color: var(--accent-secondary);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.cta-button:hover {
  background-color: color-mix(in srgb, var(--accent-secondary) 85%, black);
  transform: translateY(-3px) scale(1.05);
}

@media (max-width: 768px) {
  .project-image-placeholder {
    height: 250px;
    font-size: 1.2rem;
  }
  .project-content {
    padding: 1.5rem;
  }
  .project-content h2 {
    font-size: 1.6rem;
  }
  .project-content .summary {
    font-size: 0.95rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-column .footer-title {
    margin-top: 1rem;
  }
  .social-links {
    text-align: center;
  }
}

/* scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.animated {
  opacity: 1;
  transform: translateY(0);
}
