/**
 * Projects Widget Styles
 * Extracted from inline styles for better performance and maintainability
 */

.projects-widget-wrapper {
  /* Padding now controlled via Elementor responsive controls */
  background: linear-gradient(
    to bottom,
    var(--projects-bg-color, #1e1d1b),
    #0a0a09
  );
  position: relative;
  overflow: hidden;
}

.projects-widget-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(242, 183, 19, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(242, 183, 19, 0.03) 1px, transparent 1px);
  background-size: 100px 100px;
  pointer-events: none;
}

.projects-container {
  position: relative;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: 24px;
  z-index: 1;
}

.projects-header {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 80px;
}

@media (min-width: 1024px) {
  .projects-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.projects-header-content {
  flex: 1;
}

.projects-section-label {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  color: var(--projects-primary-color, #f2b713);
}

.projects-heading {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  max-width: 32rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

@media (min-width: 1024px) {
  .projects-heading {
    font-size: 4.375rem;
  }
}

.projects-heading-gradient {
  background: linear-gradient(
    to right,
    #ffffff,
    var(--projects-primary-color, #f2b713)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects-all-button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.125rem;
  transition: color 0.3s ease;
  white-space: nowrap;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  border-radius: 8px;
  padding: 12px 24px;
  color: var(--projects-primary-color, #f2b713);
}

.projects-all-button:hover {
  color: #ffffff !important;
}

.projects-all-button svg {
  transition: transform 1.5s ease infinite;
  animation: projectsArrowMove 1.5s ease infinite;
}

@keyframes projectsArrowMove {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(var(--projects-columns-desktop, 2), 1fr);
  gap: var(--projects-gap, 32px);
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(var(--projects-columns-tablet, 2), 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(var(--projects-columns-mobile, 1), 1fr);
    padding: 0 16px;
  }
}

.project-card-homepage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--projects-bg-color, #1e1d1b);
  opacity: 0;
  transform: translateY(60px);
}

.project-card-homepage.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card-homepage.is-visible .project-card-image-homepage {
  opacity: 1;
}

.project-card-link-homepage {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.project-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-card-image-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-card-image-homepage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
  opacity: 0;
}

.project-card-homepage:hover .project-card-image-homepage {
  transform: scale(1.1);
}

.project-card-overlay-homepage {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to top, var(--projects-bg-color, #1E1D1B) 0%, var(--projects-bg-color, #1E1D1B)80 50%, transparent 100%); */
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.project-card-homepage:hover .project-card-overlay-homepage {
  opacity: 0.95;
}

.project-card-info-homepage {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 32px;
  z-index: 20;
}

.project-card-title-homepage {
  color: #ffffff;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.2;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  /* Font size controlled via Elementor */
}

.project-card-categories-homepage {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-category-badge {
  padding: 6px 16px;
  font-weight: 600;
  border: 1px solid;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  background-color: var(--projects-primary-color, #f2b713) 20;
  border-color: var(--projects-primary-color, #f2b713);
  color: var(--projects-primary-color, #f2b713);
  /* Font size controlled via Elementor */
}

/* Banner styles moved to shared component: components/css/_banner.css */

.project-card-corners-homepage {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.project-card-corner {
  position: absolute;
  width: 80px;
  height: 80px;
  border-width: 4px;
  border-style: solid;
  border-color: #ffffff;
  opacity: 0;
  /* Animation handled by GSAP - no CSS transition */
}

.project-card-corner-tl {
  top: 0;
  inset-inline-start: 0;
  border-inline-end: none;
  border-bottom: none;
}

.project-card-corner-tr {
  top: 0;
  inset-inline-end: 0;
  border-inline-start: none;
  border-bottom: none;
}

.project-card-corner-bl {
  bottom: 0;
  inset-inline-start: 0;
  border-inline-end: none;
  border-top: none;
}

.project-card-corner-br {
  bottom: 0;
  inset-inline-end: 0;
  border-inline-start: none;
  border-top: none;
}
