/* =====================================================
   PREMIUM BUSINESS AUTOMATION PAGE STYLES - ORANGE THEME
   ===================================================== */

:root {
  --ba-orange: #f37021;
  --ba-orange-dark: #cc5a16;
  --ba-orange-soft: #fff7ed;
  --ba-orange-glow: rgba(243, 112, 33, 0.15);
}

.z-3 { z-index: 3 !important; }
.z-2 { z-index: 2 !important; }
.z-1 { z-index: 1 !important; }

/* Responsive Heading Fixes */
@media (max-width: 768px) {
  .display-4 { font-size: 2.25rem !important; }
  .display-5 { font-size: 1.85rem !important; }
}

/* BA is for Business Automation */

/* Service Icon Large */
.service-icon-lg {
    width: 64px;
    height: 64px;
    background: var(--ba-orange-soft);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--ba-orange);
    border: 1px solid rgba(243, 112, 33, 0.1);
    box-shadow: 0 10px 15px -3px rgba(243, 112, 33, 0.1);
}

/* Hero Section Specifics */
.service-header.orange-theme {
    background: radial-gradient(circle at 50% 30%, #fff7ed 0%, #ffedd5 40%, #ffffff 85%) !important;
    padding-top: 10rem;
    padding-bottom: 4rem; 
    position: relative;
    overflow: hidden;
    z-index: 1;
}
@media (max-width: 991px) {
    .service-header.orange-theme { 
        padding-top: 8rem;
        padding-bottom: 3rem;
    }
}

.service-hero-img-container {
    position: relative;
    border-radius: 3rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: white;
    padding: 0.5rem;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-hero-img-container:hover {
    transform: translateY(-10px);
}

.service-hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2.5rem;
    transition: transform 0.7s ease;
}

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

/* Hero Typography */
.service-header h1 {
    font-weight: 900 !important;
    font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
    color: #0f172a !important; /* Dark Slate (Black theme) */
    margin-bottom: 2rem !important;
}

.service-header p {
    font-size: clamp(1.1rem, 2vw, 1.25rem) !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    margin-bottom: 3rem !important;
    max-width: 600px;
}

/* Animation Utilities */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.display-6 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

/* GSAP Reveal States */
.gs-reveal, 
.gs-fade-right, 
.gs-scale-up, 
.fade-in-up, 
.service-card-wrapper,
.ba-reveal {
    opacity: 0; 
    visibility: hidden;
    will-change: transform, opacity;
}

.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Premium Service Card */
.premium-service-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid #f1f5f9;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
}

.premium-service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--ba-orange), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.premium-service-card:hover::before { opacity: 1; }

.premium-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(243, 112, 33, 0.15);
  border-color: rgba(243, 112, 33, 0.3);
}

/* Card Glow Effect */
.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(243, 112, 33, 0.08),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.premium-service-card:hover .card-glow { opacity: 1; }

/* Icon Wrapper */
.icon-wrapper {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-service-card:hover .icon-bg {
  background: linear-gradient(135deg, var(--ba-orange) 0%, var(--ba-orange-dark) 100%);
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 10px 20px -5px rgba(243, 112, 33, 0.3);
}

.icon-main {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  color: var(--ba-orange);
  transition: all 0.4s ease;
}

.premium-service-card:hover .icon-main {
  color: #ffffff;
  transform: scale(1.1);
}

/* Tech Badges */
.tech-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  transition: all 0.3s ease;
}

.premium-service-card:hover .tech-badge {
  background: #fff7ed;
  border-color: #fed7aa;
  color: var(--ba-orange-dark);
  transform: translateY(-2px);
}

/* Glass Tech Stack Section */
.tech-stack-container {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(243, 112, 33, 0.1);
  border-radius: 32px;
  padding: 3rem;
  box-shadow: 
    0 20px 40px -15px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 10px 20px;
  border-radius: 16px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-pill:hover {
  background: white;
  border-color: var(--ba-orange);
  color: var(--ba-orange);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -5px rgba(243, 112, 33, 0.1);
}

/* Ultra-Premium CTA */
.premium-cta-card {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.25);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0f172a; /* Fallback */
}

@media (max-width: 991px) {
  .premium-cta-card {
    min-height: auto;
    padding: 4rem 1.5rem;
  }
}

.cta-gradient-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    #1e293b 0%, 
    #0f172a 25%, 
    #431407 50%, /* Dark burnt orange/black */
    #1e293b 75%, 
    #0f172a 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  z-index: 1; /* Lower than content but higher than background */
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.premium-cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px -5px rgba(243, 112, 33, 0.4);
}

.button-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
  transition: all 0.4s ease;
  z-index: 0;
}

.premium-cta-button:hover .button-bg {
  background: linear-gradient(135deg, var(--ba-orange) 0%, var(--ba-orange-dark) 100%);
}

.button-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1e293b;
  transition: all 0.4s ease;
}

.premium-cta-button:hover .button-content {
  color: #ffffff;
}

.premium-cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(243, 112, 33, 0.6);
}

/* Responsiveness */
@media (max-width: 991px) {
    section { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
}
