/* ===================================
   PROCESS PAGE STYLES
   =================================== */

/* === STORY SECTION === */
.story-section {
  position: relative;
  background-color: var(--color-dark);
  padding: calc(var(--spacing-xxl) + 80px) 0 var(--spacing-xxl) 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.story-section.texture-overlay::before {
  mix-blend-mode: soft-light;
  opacity: 0.6;
}

.story-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle 800px at calc(var(--mouse-x, 50%) + 5%) calc(var(--mouse-y, 50%) - 3%), rgba(251, 182, 12, 0.25) 0%, rgba(251, 182, 12, 0) 60%),
    radial-gradient(circle 600px at calc(var(--mouse-x, 50%) - 8%) calc(var(--mouse-y, 50%) + 5%), rgba(251, 182, 12, 0.2) 0%, rgba(251, 182, 12, 0) 70%),
    radial-gradient(circle 500px at calc(var(--mouse-x, 50%) + 3%) calc(var(--mouse-y, 50%) + 8%), rgba(251, 140, 0, 0.15) 10%, rgba(251, 182, 12, 0) 65%),
    radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(251, 182, 12, 0.3) 0%, rgba(251, 182, 12, 0) 50%),
    url('../images/OurProcesImages/Backimage.png');
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    contain;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-mask-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%),
    radial-gradient(circle 1000px at calc(var(--mouse-x, 50%) + 5%) calc(var(--mouse-y, 50%) - 3%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.95) 30%, rgba(0, 0, 0, 0.8) 40%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(circle 800px at calc(var(--mouse-x, 50%) - 8%) calc(var(--mouse-y, 50%) + 5%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 35%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 80%),
    radial-gradient(circle 700px at calc(var(--mouse-x, 50%) + 3%) calc(var(--mouse-y, 50%) + 8%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 75%),
    radial-gradient(circle 600px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 40%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0) 85%);
  mask-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%),
    radial-gradient(circle 1000px at calc(var(--mouse-x, 50%) + 5%) calc(var(--mouse-y, 50%) - 3%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.95) 30%, rgba(0, 0, 0, 0.8) 40%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(circle 800px at calc(var(--mouse-x, 50%) - 8%) calc(var(--mouse-y, 50%) + 5%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 35%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 80%),
    radial-gradient(circle 700px at calc(var(--mouse-x, 50%) + 3%) calc(var(--mouse-y, 50%) + 8%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 75%),
    radial-gradient(circle 600px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 40%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0) 85%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
  animation: light-pulse 12s ease-in-out infinite;
  mix-blend-mode: screen;
}

.story-section:hover::after {
  opacity: 1;
}

@keyframes light-pulse {
  0%, 100% {
    filter: brightness(1);
  }
  33% {
    filter: brightness(1.15);
  }
  66% {
    filter: brightness(0.9);
  }
}

.story-header {
  text-align: left;
  margin-bottom: var(--spacing-xl);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 3;
}

.story-header h1 {
  font-family: var(--font-primary);
  font-size: 96px;
  font-weight: 400;
  color: var(--color-cream);
  text-align: left;
}

.story-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  z-index: 3;
}

.story-content p {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  color: var(--color-cream);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-content p[style*="italic"] {
  font-style: italic;
  text-transform: none;
  margin-top: 2rem;
  text-align: right;
}

/* === GALLERY SECTION === */
.gallery-section {
  position: relative;
  background-color: var(--color-dark);
  padding: var(--spacing-xxl) 0;
}

.gallery-section.texture-overlay::before {
  mix-blend-mode: soft-light;
  opacity: 0.6;
}


.gallery-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--spacing-lg);
  position: relative;
  z-index: 3;
}

.gallery-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--color-cream);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-lg);
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  position: relative;
  z-index: 3;
}

.gallery-item {
  position: relative;
  background:
    linear-gradient(rgba(247, 230, 212, 0.85), rgba(247, 230, 212, 0.85)),
    url('../images/texture.jpg');
  background-size: cover, 800px 800px;
  background-position: center;
  background-repeat: no-repeat, repeat;
  padding: 1rem 1rem 3rem 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  width: calc(33.333% - var(--spacing-lg));
  min-width: 280px;
}

.gallery-item.rotate-1 {
  transform: rotate(-2deg);
}

.gallery-item.rotate-2 {
  transform: rotate(1.5deg);
}

.gallery-item.rotate-3 {
  transform: rotate(-1deg);
}

.gallery-item.rotate-4 {
  transform: rotate(2.5deg);
}

.gallery-item.rotate-5 {
  transform: rotate(-1.5deg);
}

.gallery-item.rotate-6 {
  transform: rotate(1deg);
}

.gallery-item.rotate-7 {
  transform: rotate(-2.5deg);
}

.gallery-item.rotate-8 {
  transform: rotate(2deg);
}

.gallery-item:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 3rem;
  background-image: url('../images/texture.jpg');
  background-size: 600px 600px;
  background-position: center;
  background-repeat: repeat;
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
  opacity: 0.2;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 3rem;
  background: radial-gradient(circle at 60% 40%, rgba(251, 182, 12, 0) 0%, rgba(251, 182, 12, 0.15) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  z-index: 1;
  filter: brightness(1);
  transition: filter 0.3s ease;
}

.gallery-item:hover img {
  filter: brightness(1.1);
}

/* === PROCESS SECTION === */
.process-section {
  position: relative;
  background-color: var(--color-dark);
  padding: calc(var(--spacing-xxl) + 80px) 0 var(--spacing-xxl) 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.process-section.texture-overlay::before {
  mix-blend-mode: soft-light;
  opacity: 0.6;
}

.process-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle 800px at calc(var(--mouse-x, 50%) + 5%) calc(var(--mouse-y, 50%) - 3%), rgba(251, 182, 12, 0.25) 0%, rgba(251, 182, 12, 0) 60%),
    radial-gradient(circle 600px at calc(var(--mouse-x, 50%) - 8%) calc(var(--mouse-y, 50%) + 5%), rgba(251, 182, 12, 0.2) 0%, rgba(251, 182, 12, 0) 70%),
    radial-gradient(circle 500px at calc(var(--mouse-x, 50%) + 3%) calc(var(--mouse-y, 50%) + 8%), rgba(251, 140, 0, 0.15) 10%, rgba(251, 182, 12, 0) 65%),
    radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(251, 182, 12, 0.3) 0%, rgba(251, 182, 12, 0) 50%),
    url('../images/OurProcesImages/Backimage.png');
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    contain;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-mask-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%),
    radial-gradient(circle 1000px at calc(var(--mouse-x, 50%) + 5%) calc(var(--mouse-y, 50%) - 3%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.95) 30%, rgba(0, 0, 0, 0.8) 40%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(circle 800px at calc(var(--mouse-x, 50%) - 8%) calc(var(--mouse-y, 50%) + 5%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 35%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 80%),
    radial-gradient(circle 700px at calc(var(--mouse-x, 50%) + 3%) calc(var(--mouse-y, 50%) + 8%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 75%),
    radial-gradient(circle 600px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 40%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0) 85%);
  mask-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%),
    radial-gradient(circle 1000px at calc(var(--mouse-x, 50%) + 5%) calc(var(--mouse-y, 50%) - 3%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.95) 30%, rgba(0, 0, 0, 0.8) 40%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(circle 800px at calc(var(--mouse-x, 50%) - 8%) calc(var(--mouse-y, 50%) + 5%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 35%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 80%),
    radial-gradient(circle 700px at calc(var(--mouse-x, 50%) + 3%) calc(var(--mouse-y, 50%) + 8%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 75%),
    radial-gradient(circle 600px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 40%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0) 85%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
  animation: light-pulse 12s ease-in-out infinite;
  mix-blend-mode: screen;
}

.process-section:hover::after {
  opacity: 1;
}

@keyframes light-pulse {
  0%, 100% {
    filter: brightness(1);
  }
  33% {
    filter: brightness(1.15);
  }
  66% {
    filter: brightness(0.9);
  }
}


.process-header {
  text-align: left;
  margin-bottom: var(--spacing-lg);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 3;
}

.process-header h2 {
  font-family: var(--font-primary);
  font-size: 96px;
  font-weight: 400;
  color: var(--color-cream);
  text-align: left;
}

.process-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.process-content p {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  color: var(--color-cream);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.process-intro {
  font-size: 17px !important;
  font-weight: 400;
  color: var(--color-yellow) !important;
  margin-bottom: 2rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.process-highlight {
  font-size: 17px !important;
  font-weight: 700;
  margin-top: 2rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === PROCESS VIDEO SECTION === */
.process-video-section {
  background-color: var(--color-dark);
  padding: var(--spacing-xxl) 0;
  position: relative;
}

.process-video-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/texture.jpg');
  background-size: 800px 800px;
  background-position: center;
  background-repeat: repeat;
  opacity: 0.6;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.process-video-section .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.video-container {
  position: relative;
  max-width: 1200px;
  background:
    linear-gradient(rgba(247, 230, 212, 0.85), rgba(247, 230, 212, 0.85)),
    url('../images/texture.jpg');
  background-size: cover, 800px 800px;
  background-position: center;
  background-repeat: no-repeat, repeat;
  padding: 1.5rem 1.5rem 4rem 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  background-color: #000;
}

/* === CTA SECTION === */
.cta-section {
  background-color: var(--color-green);
  padding: var(--spacing-xxl) 0;
}

.cta-section.texture-overlay::before {
  mix-blend-mode: lighten;
}

.cta-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.cta-item h3 {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--color-yellow);
  text-transform: uppercase;
}

.cta-item p {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--color-cream);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phone-number {
  font-size: 18px !important;
  font-weight: 400;
  color: var(--color-yellow) !important;
  text-transform: uppercase;
}

.cta-btn {
  display: inline-block;
  background-color: var(--color-dark);
  color: var(--color-cream);
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-btn:hover {
  background-color: var(--color-yellow);
  color: var(--color-dark);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .gallery-item {
    width: calc(50% - var(--spacing-lg));
  }

  .cta-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .story-section {
    padding: calc(var(--spacing-lg) + 80px) 0 var(--spacing-lg) 0;
  }

  .story-header h1 {
    font-size: 44px;
  }

  .gallery-header h2 {
    font-size: 44px;
  }

  .process-header h2 {
    font-size: 44px;
  }

  .gallery-item {
    width: 100%;
    transform: rotate(0deg) !important;
  }

  .gallery-item:nth-child(odd) {
    transform: rotate(-1deg) !important;
  }

  .gallery-item:nth-child(even) {
    transform: rotate(1deg) !important;
  }
}
