/* Services Sidebar Layout - Grant Thornton Style */

/* Services Wrapper - Flush with header */
.services-wrapper {
  display: flex;
  min-height: calc(100vh - 150px);
  margin-top: 150px;
  padding-top: 0;
}

/* Sidebar */
.services-sidebar {
  width: 280px;
  background: var(--white);
  border-right: 1px solid var(--border-color);
  position: sticky;
  top: 150px;
  height: calc(100vh - 150px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-header {
  padding: 15px 20px;
  border-bottom: 2px solid var(--light-gray);
}

.sidebar-header h3 {
  font-size: 1.1rem;
  color: var(--accent-color);
  font-weight: 600;
}

.sidebar-nav {
  flex: 1;
  padding: 10px 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.sidebar-link:hover {
  background: var(--light-gray);
  color: var(--accent-color);
  border-left-color: var(--accent-color);
}

.sidebar-link.active {
  background: linear-gradient(
    90deg,
    rgba(30, 58, 138, 0.05) 0%,
    rgba(30, 58, 138, 0.02) 100%
  );
  color: var(--accent-color);
  border-left-color: var(--accent-color);
  font-weight: 600;
}

.sidebar-link .icon {
  font-size: 1.5rem;
  width: 30px;
  text-align: center;
}

.sidebar-link .text {
  flex: 1;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

.sidebar-footer .btn {
  width: 100%;
}

/* Main Content - Adjust to be flush */
.services-content {
  flex: 1;
  background: var(--white);
  margin-top: 0;
}

/* Service Hero - Flush with header */
.service-hero {
  padding: 20px 0 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-color);
  margin-top: 0;
}

.service-hero h1 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
  margin-top: 0;
}

.service-hero p {
  font-size: 1rem;
  color: var(--secondary-color);
  margin-bottom: 0;
}

/* Service Detail Sections */
.service-detail {
  display: none;
  padding: 25px 0 40px;
}

.service-detail.active {
  display: block;
}

.service-hero-image {
  margin-bottom: 15px;
}

.service-content-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.service-overview h2 {
  font-size: 2.2rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.service-overview p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--secondary-color);
  margin-bottom: 25px;
  max-width: 800px;
}

/* Service Features Large */
.service-features-large {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 25px 0 40px;
}

.feature-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #3b82f6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-box:hover::before {
  transform: scaleX(1);
}

.feature-box:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.feature-box h4 {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.feature-box p {
  color: var(--secondary-color);
  line-height: 1.6;
}

/* Service CTA */
.service-cta {
  background: linear-gradient(135deg, var(--accent-color) 0%, #3b82f6 100%);
  color: var(--white);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  margin-top: 40px;
}

.service-cta h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.service-cta p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  opacity: 0.95;
}

.service-cta .btn {
  background: var(--white);
  color: var(--accent-color);
  padding: 15px 40px;
  font-size: 1.1rem;
}

.service-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
  .services-wrapper {
    flex-direction: column;
  }

  .services-sidebar {
    width: 100%;
    position: relative;
    top: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
  }

  .sidebar-link {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .sidebar-link.active {
    border-left: none;
    border-bottom-color: var(--accent-color);
  }
}

@media (max-width: 768px) {
  .service-hero h1 {
    font-size: 2.5rem;
  }

  .service-overview h2 {
    font-size: 2rem;
  }

  .service-features-large {
    grid-template-columns: 1fr;
  }

  .service-cta {
    padding: 30px 20px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Adobe Video Animations */
.adobe-video-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.adobe-video-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

/* Enhanced Image Displays */
.service-hero-image {
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.service-hero-image:hover {
  transform: scale(1.02);
}

.hero-image-placeholder {
  position: relative;
  overflow: hidden;
}

.hero-image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: gradientShine 4s ease-in-out infinite;
}

@keyframes gradientShine {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* Unique Imagery Styles - BP&O & Grant Thornton Inspired */
.illustrative-gradient {
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #4facfe 75%,
    #00f2fe 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.abstract-pattern {
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 50%
    );
  background-size: 100% 100%;
  animation: patternPulse 6s ease-in-out infinite;
}

@keyframes patternPulse {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

/* Professional Quality Images */
.service-feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-feature-image:hover {
  transform: scale(1.05) rotate(0.5deg);
}

/* Premium Gesture Animations */
.gesture-animation {
  animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

.gesture-rotate {
  animation: gentleRotate 6s ease-in-out infinite;
}

@keyframes gentleRotate {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

/* BP&O Style Minimalist Effects */
.minimal-accent {
  position: relative;
  padding-left: 40px;
}

.minimal-accent::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Grant Thornton Professional Shadows */
.professional-shadow {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08), 0 8px 40px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.professional-shadow:hover {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12), 0 12px 60px rgba(0, 0, 0, 0.1);
}

/* Responsive Image Optimization */
@media (max-width: 768px) {
  .adobe-video-container {
    height: 250px;
  }

  .service-hero-image:hover {
    transform: none;
  }
}

/* Colored Background Sections */
.service-section {
  padding: 80px 0;
}

.service-section.alternate {
  background: var(--light-gray);
}

.service-section.theme-blue {
  background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
}

.service-section.theme-purple {
  background: linear-gradient(135deg, #f3e5f5 0%, #ffffff 100%);
}

.service-section.theme-green {
  background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
}
