/* Animated Hero Section Styles */
.animated-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #f1c400; /* Bright yellow background */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0; /* Light gray border */
}

/* Header section with portfolio label and menu */
.hero-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.portfolio-label {
  color: #999;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Menu toggle button */
.menu-toggle {
  cursor: pointer;
  padding: 10px;
}

.menu-icon {
  width: 20px;
  height: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.menu-icon span {
  background-color: #000;
  border-radius: 1px;
}

/* Hero content area */
.hero-content--animation {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 40px;
}

.page-id-648 .animated-hero {
  position: fixed;
  height: 100vh;
  width: 100vw;
  z-index: 9;
  clip-path: inset(0% 0% 0% 0%);
  pointer-events: auto;
}

/* Main title */
.hero-title {
  font-size: clamp(2rem, 8vw, 6rem);
  font-weight: 700;
  color: #f7f7f7;
  margin: 0;
  z-index: 5;
  position: relative;
  text-align: center;
  line-height: 1.1;
}

/* Shapes container */
.shapes-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Individual shape styles */
.shape {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 0;
}

.shape.circle {
  border-radius: 50%;
}

.shape.square {
  border-radius: 0;
}

/* Shape sizes - random sizes will be applied via JavaScript */
.shape-small {
  width: 20px;
  height: 20px;
}

.shape-medium {
  width: 30px;
  height: 30px;
}

.shape-large {
  width: 40px;
  height: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-header {
    padding: 15px;
  }

  .hero-content--animation {
    padding: 60px 20px 20px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 4rem);
  }

  .portfolio-label {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero-header {
    padding: 10px;
  }

  .hero-content--animation {
    padding: 50px 15px 15px;
  }

  .menu-icon {
    width: 16px;
    height: 16px;
  }
}

/* Service Images Slide-In Animation Styles */
.service-images-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* gap: 30px; */
  margin: 0 auto;
  /* padding: 40px 20px; */
  height: 80vh;
}

.service-image {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* border-radius: 12px; */
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
}

.service-heading {
  transform: translateY(100%);
}

/* Alternate slide directions for even/odd images */
.service-image:nth-child(even) {
  transform: translateX(100px);
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

/* Animation states */
.service-image.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.service-image:hover {
  transform: translateX(0) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.service-image:hover img {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-images-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 15px;
  }

  .service-image {
    transition: all 0.6s ease;
  }
}

@media (max-width: 480px) {
  .service-images-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px 10px;
  }

  .service-image {
    transform: translateY(50px);
  }

  .service-image:nth-child(even) {
    transform: translateY(50px);
  }
}
