/* Web Services Specific Styles */

/* Process Timeline Additional Styles */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-orange);
  transform: translateY(-50%);
  z-index: 0;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--color-orange);
  border-radius: 50%;
  z-index: 1;
}

.process-step {
  transition-delay: calc(var(--i) * 0.2s);
}

/* Process Timeline - Horizontal Version */
.process-timeline {
  position: relative;
  padding: 4rem 0;
  margin: 2rem 0;
}

.process-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-orange);
  transform: translateY(-50%);
  z-index: 0;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.process-step {
  position: relative;
  width: 23%;
  padding-top: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.process-step.animate {
  opacity: 1;
  transform: translateY(0);
}

.step-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--color-orange);
  border-radius: 50%;
  z-index: 2;
}

.step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-orange);
  background: white;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-content {
  text-align: center;
  padding-top: 2rem;
}

.step-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark-grey);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--color-mid-grey);
}

/* Mobile adjustments for a vertical process timeline */
@media (max-width: 768px) {
  .process-timeline {
    padding: 0;
  }
  .process-steps {
    flex-direction: column;
    gap: 2rem; /* Spacing between timeline items */
  }

  .process-step {
    width: 100%;
    padding-left: 0; /* Remove side padding */
    padding-top: 50px; /* Add space at the top for the dot/number */
    position: relative; /* Needed for positioning the line and dot */
    text-align: center; /* Center the text for a cleaner look */
  }

  .process-line {
    top: 0;
    left: 50%; /* Center the line */
    width: 2px;
    height: 100%;
    transform: translateX(-50%); /* Adjust for exact centering */
  }

  /* Position the dot at the top-center of the step */
  .process-step::before, .step-dot {
    display: none;
  }

  /* Position the number directly on top of the dot */
  .step-number {
    top: 25px; /* Match the dot's position */
    left: 50%;
    transform: translate(-50%, -50%); /* Center it perfectly over the dot */
  }

  .step-content {
    text-align: center; /* Ensure content is centered */
    padding-top: 1rem; /* Add some space between the dot and the text */
  }

  /* Hide the line on the very last step to prevent it from extending too far */
  .process-step:last-child .process-line {
    display: none;
  }
}

/* Service Cards Enhanced Styles */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin: 4rem 0;
}

.service-card {
  position: relative;
  padding: 1rem 0;
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  font-size: 1.75rem;
  color: var(--color-orange);
}

.service-card .button {
  display: inline-block;
  margin-top: 1rem;
}

.service-title {
  font-size: 1.5rem;
  color: var(--color-dark-grey);
  margin: 1rem 0;
}

.service-description {
  color: var(--color-mid-grey);
  margin-bottom: 1rem;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.service-feature {
  color: var(--color-mid-grey);
  font-size: 0.95rem;
}

/* Technology Stack Grid */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 3rem;
  margin: 4rem 0;
  text-align: center;
  padding: 2rem 0;
}

.tech-item {
  padding: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.tech-item:hover {
  transform: scale(1.05);
}

.tech-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.tech-icon svg,
.tech-icon i {
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
  color: var(--color-orange);
  transition: color 0.3s ease;
}

.tech-item:hover .tech-icon {
  transform: translateY(-8px);
  background-color: var(--color-orange);
  box-shadow: 0 5px 15px rgba(var(--color-orange-rgb), 0.3);
}

.tech-item:hover .tech-icon svg,
.tech-item:hover .tech-icon i {
  color: #fff;
}

.tech-item:hover .tech-name {
  color: var(--color-orange);
  opacity: 1;
}

.tech-name {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

/* Project Showcase Enhanced Styles */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  margin: 4rem 0;
}

.project-card {
  position: relative;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.project-card:hover {
  transform: none;
  box-shadow: none;
}

.project-image {
  width: 100%;
  height: 320px; /* Fixed small height to show partial image */
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Added drop shadow as per plans */
}

.project-image img {
  width: 100%;
  /* Assuming the container has a fixed height, e.g., 320px */
  height: auto; /* Or whatever your setup requires */
  object-fit: cover;
  object-position: top;

  /* Use a CSS variable for the duration. Fallback to 0.8s */
  transition: transform var(--transition-duration, 0.8s) ease;
}
.project-card:active .project-image img {
  transform: translateY(calc(-100% + 320px));
}
@media (hover:hover) {
  .project-card:hover .project-image img {
    transform: translateY(calc(-100% + 320px));
  }
}
.project-info {
  padding: 0;
}

.project-title {
  color: var(--color-dark-grey);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  padding-bottom: 0;
  border-bottom: none;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Modify tag styling to have only grey borders and text, no background */
.project-tag {
  border: 1px solid var(--color-mid-grey);
  color: var(--color-mid-grey);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 500;
  background: transparent;
}

/* Remove specific styling for tags - all tags should look the same */
.project-tag.specific {
  border: 1px solid var(--color-mid-grey);
  color: var(--color-mid-grey);
  background: transparent;
}

.project-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  opacity: 1;
  max-height: none;
  overflow: visible;
}

.project-features li {
  color: black;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
  opacity: 1;
  transform: none;
  font-weight: bold;
}

.project-features li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-orange);
  width: 10px;
  border-bottom: solid var(--color-orange) 2px;
}

.preview-button-container {
  margin-top: 1rem;
  text-align: center;
}

.preview-site-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--color-orange);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
}

.preview-site-button:hover {
  background: #d94a24;
  transform: scale(1.05);
}

/* Modal Styles */
.site-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-preview-modal.active {
  opacity: 1;
  visibility: visible;
}

.site-preview-container {
  width: 90%;
  height: 90%;
  max-width: 1400px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  background-color: transparent; /* Changed from white to transparent */
}

.site-preview-modal.active .site-preview-container {
  transform: translateY(0);
  opacity: 1;
}

/* Repositioned close button to upper right corner */
.close-modal-x {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 9999; /* Increased z-index to ensure it's above all other elements */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.close-modal-x:hover {
  background: var(--color-orange);
}

/* Removed the white header area */
.site-preview-header {
  display: none; /* Changed from visible to hidden */
}

.site-preview-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  background: transparent; /* Changed from #f5f5f5 to transparent */
}

#preview-image {
  display: block;
  width: 100%;
  height: auto;
}

/* Additional Layout Styles */
#main {
  width: 100%;
  overflow: hidden;
}

.spacer {
  height: 400vh;
  margin-bottom: -200vh;
}

.skew-bg-cols {
  padding-bottom: 16rem;
}

.last-skew .headline {
  text-align: center;
  margin-bottom: 2.5rem;
}

.last-skew .button {
  display: block;
  margin: 4rem auto;
  width: fit-content;
}

/* Footer CTA Enhanced Styles */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.button.primary-button {
  background: var(--color-orange);
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}

.button.primary-button:hover {
  background: #d94a24;
  transform: scale(1.05);
}

.button.secondary-button {
  background: transparent;
  color: var(--color-dark-grey);
  border: 2px solid var(--color-orange);
  font-weight: 600;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}

.button.secondary-button:hover {
  background: rgba(var(--color-orange-rgb), 0.1);
  color: var(--color-orange);
  transform: scale(1.05);
}

/* Video Page Specific Styles */
.client-section {
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.client-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.client-logo img {
  max-width: 200px;
  height: auto;
  filter: brightness(0) invert(1);
}

.white-bg .client-logo img {
  filter: brightness(0);
}

.client-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover {
  transform: scale(1.05);
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 87, 0, 0.9);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.video-thumbnail:hover .play-button {
  background: var(--color-orange);
  transform: translate(-50%, -50%) scale(1.1);
}

.client-description {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.white-bg .client-description {
  color: rgba(0, 0, 0, 0.8);
}

/* Video Packages Styles */
.packages-intro {
  text-align: left;
  margin-bottom: 3rem;
}

.packages-intro h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-orange);
}

.packages-intro p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.package-card {
  background: white;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.package-header {
  text-align: center;
}

.package-header h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #000;
}

.package-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.package-price {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-orange);
  margin-top: auto;
  border-top: 5px solid #ccc;
  border-bottom: 5px solid #ccc;
  text-align:center;
  font-family: 'Built Tiling', sans-serif;
}

.package-features {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.package-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.package-features li {
  line-height: 1.6;
  color:black;
  font-weight: bold;
  position: relative;
  padding-left: 1rem;
  font-size: 0.95rem;
  color: #000;
}

.package-header h3 {
  color: var(--color-mid-grey);
  text-transform: uppercase;
  font-family: "Built Tiling", sans-serif;
  font-weight: 700;
  font-size: 4rem;
}

.package-features li::before {
  content: '–';
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  color: var(--color-orange);
  /* background: var(--color-orange); */
}

/* Mobile Responsive Styles for Video Page */
@media (max-width: 1024px) {
  .client-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .video-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .packages-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .video-gallery {
    grid-template-columns: 1fr;
  }
  
  .client-section {
    margin-bottom: 3rem;
    padding: 1.5rem 0;
  }
  
  .client-logo img {
    max-width: 150px;
  }
  
  .packages-intro h3 {
    font-size: 1.5rem;
  }
  
  .package-card {
    padding: 1.5rem;
  }
  
  .package-header h3 {
    font-size: 1.5rem;
  }
  
  .package-price {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  .tech-stack {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-timeline::before {
    display: none;
  }

  .process-step::before {
    left: 0;
    transform: none;
  }

  .project-images {
    height: 250px;
  }

  .project-features {
    max-height: none;
    opacity: 1;
    margin-bottom: 1.5rem;
  }

  .project-features li {
    opacity: 1;
    transform: none;
  }

  .project-overlay {
    opacity: 0.7;
  }

  .project-category,
  .project-action {
    transform: none;
    opacity: 1;
  }

  .project-title {
    font-size: 1.1rem;
  }

  .button {
    width: 100%;
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem 2rem;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .button-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .button-group .button {
    width: 100%;
  }

  .project-card.tooltip-details .tooltip-content {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    margin-top: 1rem;
    box-shadow: none;
    border: 1px solid #eee;
  }
  
  .project-card.tooltip-details .tooltip-content:before {
    display: none;
  }
  
  .project-card.card-rotation {
    height: auto;
  }
  
  .project-card.card-rotation .card-inner {
    transform-style: flat;
  }
  
  .project-card.card-rotation .card-front,
  .project-card.card-rotation .card-back {
    position: relative;
    backface-visibility: visible;
    transform: none;
  }
  
  .project-card.card-rotation .card-back {
    display: block;
    margin-top: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .button.primary-button,
  .button.secondary-button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tech-stack {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-images {
    height: 200px;
  }

  .project-image {
    height: 200px;
  }

  .project-features li {
    font-size: 0.8rem;
  }
}


/* Two-column layout styles */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 4rem auto;
  align-items: flex-start;
}

.discovery-headline {
  color: #ff6600;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 3rem;
  margin-bottom: 1rem;
  font-family: var(--font-built-tiling);
}
.discovery-list {
  padding-left: 0;
  margin: 0;
  list-style-type: disc;
  padding-left: 2rem;
}
.modal .discovery-list li {
  margin-bottom: 0;
} 
.discovery-list li {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #222;
  position: relative;
}
@media (max-width: 768px) {
  .discovery-headline {
    font-size: 2rem;
  }
  .discovery-list li {
    font-size: 1rem;
  }
}

.service-icon-large img {
  max-width: 200px;
  height: auto;
}

/* Case study thumbnail styles */
.case-study-thumbnail {
  text-align: center;
}

.case-study-thumbnail .button {
  margin-top: 3rem;
}
.case-study-thumbnail img {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-bottom: 1rem; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow:0 4px 16px rgba(0,0,0,0.18);
}

.case-study-thumbnail img:hover {
  transform: translateY(10px);
  box-shadow: none;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px 50px;
  border: none;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  position: relative;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 7px;

}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

.modal-body img {
  width: 100%;
  height: auto;
  margin: 1rem 0;
}

.case-study-images {
  margin-top: 1rem;
}

.case-study-images img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.process-step.animate {
  text-decoration: unset !important;
}
.step-content h3 {
  font-size:1.7rem;
  background-color: var(--color-light-grey);
  width: fit-content;
  padding: 0 1rem;
}
.process-timeline::before {
  top: 47%;
}
.project-tag {
  transition: all 0.3s ease; 
}
.project-tag:hover {
  background-color: var(--color-mid-grey);
  color: #fff; /* Assuming a white/light color for contrast */
}
.step-content {
  margin-bottom: 2rem;
  padding-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}


/* Mobile responsiveness */
@media (max-width: 768px) {
  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    display: grid !important;
    margin-top: 0;
  }
  
  .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 15px;
  }
  
  .case-study-images {
    grid-template-columns: 1fr;
  }
}