/* =====================================================
   PREMIUM DIGITAL MARKETING PAGE STYLES - BLUE THEME
   ===================================================== */

:root {
  --dm-blue: #2563eb;
  --dm-blue-dark: #1d4ed8;
  --dm-blue-soft: #eff6ff;
  --dm-blue-glow: rgba(37, 99, 235, 0.15);
}

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

/* Hero Section Specifics */
.service-header.blue-theme {
    background: radial-gradient(circle at 50% 30%, #dbeafe 0%, #eff6ff 40%, #ffffff 85%) !important;
    padding-top: 10rem;
    padding-bottom: 4rem; /* Reduced from 6rem */
    position: relative;
    overflow: hidden;
    z-index: 1;
}
@media (max-width: 991px) {
    .service-header.blue-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 - Matching Premium Standard */
.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: #1e293b !important; /* Extremely dark blue for best visibility */
    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; /* Sharp gray */
    margin-bottom: 3rem !important;
    max-width: 600px;
}

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

/* Fade In Up Animation */
@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;
}

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

/* Failsafe Visibility - Applied via JS or CSS Fallback */
.is-visible,
.gs-reveal.is-visible,
.gs-fade-right.is-visible,
.gs-scale-up.is-visible,
.fade-in-up.is-visible,
.service-card-wrapper.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Base Responsive Fixes */
@media (max-width: 991px) {
    .service-header h1 { font-size: clamp(2rem, 8vw, 3rem) !important; }
    .service-header p { font-size: 1.1rem !important; }
}

@media (max-width: 768px) {
    .container-custom { padding: 0 1.5rem; }
    .display-5 { font-size: 2.2rem !important; }
    .display-6 { font-size: 1.85rem !important; }
    .premium-cta-button { width: 100%; }
    
    /* Center section headings on mobile */
    .fade-in-up .display-5, 
    .fade-in-up p {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.fade-in-up {
  transform: translateY(30px);
}

.gs-fade-right {
  transform: translateX(-50px);
}

.gs-scale-up {
  transform: scale(0.9);
}

/* Service Card Wrapper */
.service-card-wrapper {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: calc(var(--card-index, 0) * 0.1s);
}

.service-card-wrapper:nth-child(1) { --card-index: 0; }
.service-card-wrapper:nth-child(2) { --card-index: 1; }
.service-card-wrapper:nth-child(3) { --card-index: 2; }
.service-card-wrapper:nth-child(4) { --card-index: 3; }
.service-card-wrapper:nth-child(5) { --card-index: 4; }
.service-card-wrapper:nth-child(6) { --card-index: 5; }

/* 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(--dm-blue), 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(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 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(37, 99, 235, 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;
}

/* Card Content */
.card-content {
  position: relative;
  z-index: 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, #eff6ff 0%, #dbeafe 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(--dm-blue) 0%, var(--dm-blue-dark) 100%);
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

.icon-main {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  color: var(--dm-blue);
  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: #eff6ff;
  border-color: #bfdbfe;
  color: var(--dm-blue-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(37, 99, 235, 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(--dm-blue);
  color: var(--dm-blue);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.1);
}

/* Accordion Styles - Premium Fix */
.accordion-premium {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.accordion-premium .accordion-item {
  border: none !important;
  background: transparent !important;
  overflow: visible !important;
}

.accordion-premium .accordion-button {
  padding: 1.5rem 2rem;
  font-weight: 800 !important;
  font-size: 1.15rem;
  color: #1e293b;
  background: #ffffff;
  border: 2px solid #f1f5f9;
  border-radius: 1.5rem !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
}

.accordion-premium .accordion-button:hover {
  border-color: #bfdbfe;
  background: #fdfdff;
}

.accordion-premium .accordion-button:not(.collapsed) {
  background: linear-gradient(to right, #eff6ff, #fff);
  color: var(--dm-blue-dark);
  border-color: #bfdbfe;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.08);
  font-weight: 800 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.accordion-premium .accordion-button::after {
    background-size: 1rem;
    transition: all 0.3s ease;
}

.accordion-premium .accordion-body {
  padding: 1rem 2rem 2rem 2rem;
  color: #475569;
  font-weight: 500;
  line-height: 1.8;
  background: #ffffff;
  border: 2px solid var(--dm-blue);
  border-top: none;
  border-radius: 0 0 1.5rem 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 40px -20px rgba(37, 99, 235, 0.15);
  margin-top: -1px; /* Stitch to header */
}

.accordion-collapse {
    border: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Approach Section */
.section-premium-light {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0; /* Reduced from 6rem */
}

.bg-blue-soft {
  background-color: #eff6ff;
}

/* 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: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-gradient-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    #1e293b 0%, 
    #0f172a 25%, 
    #1e1b4b 50%, 
    #1e293b 75%, 
    #0f172a 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  z-index: 0;
}

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

.cta-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  filter: blur(2px);
  animation: float 25s infinite ease-in-out;
  pointer-events: none;
}

.particle-1 { top: 10%; left: 10%; animation-delay: 0s; width: 4px; height: 4px; }
.particle-2 { top: 70%; left: 15%; animation-delay: -5s; width: 8px; height: 8px; }
.particle-3 { top: 20%; left: 80%; animation-delay: -10s; width: 5px; height: 5px; }
.particle-4 { top: 80%; left: 85%; animation-delay: -15s; width: 7px; height: 7px; }
.particle-5 { top: 50%; left: 50%; animation-delay: -20s; width: 3px; height: 3px; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(30px, -30px) scale(1.2); opacity: 0.6; }
  50% { transform: translate(-20px, 40px) scale(0.8); opacity: 0.4; }
  75% { transform: translate(40px, 20px) scale(1.1); opacity: 0.7; }
}

.cta-glow-left, .cta-glow-right {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
  animation: pulse 8s ease-in-out infinite;
}

.cta-glow-left {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
  top: -200px;
  left: -200px;
}

.cta-glow-right {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  bottom: -200px;
  right: -200px;
  animation-delay: 4s;
}

.cta-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--dm-blue);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.cta-heading {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.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(37, 99, 235, 0.4);
}

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

.premium-cta-button:hover .button-bg {
  background: linear-gradient(135deg, var(--dm-blue) 0%, var(--dm-blue-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;
}

.button-arrow {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-cta-button:hover .button-arrow {
  transform: translateX(5px);
}

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

/* Mobile Responsiveness & Vertical Spacing Fixes */
@media (max-width: 1200px) {
    .service-header { padding-top: 8rem; padding-bottom: 3rem; }
    .service-header h1 { font-size: 3.5rem !important; }
}

@media (max-width: 991px) {
    .service-header { padding-top: 7rem; padding-bottom: 2rem; text-align: center; }
    .service-header h1 { font-size: 3rem !important; margin-left: auto; margin-right: auto; }
    .service-header p { margin-left: auto; margin-right: auto; font-size: 1.1rem !important; margin-bottom: 2rem !important; }
    .service-icon-lg { margin-left: auto; margin-right: auto; margin-bottom: 1.5rem; }
    
    .tech-stack-container { padding: 2rem 1.5rem; text-align: center; margin-top: 0; }
    .glass-pill { padding: 8px 15px; font-size: 0.85rem; }
    
    .display-5 { font-size: 2.5rem !important; }
    
    /* Global Mobile Padding Reduction */
    section { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
    .service-header { padding-bottom: 2rem !important; }
}

@media (max-width: 768px) {
    .service-header h1 { font-size: 2.5rem !important; }
    .service-hero-img-container { border-radius: 2rem; margin-top: 1.5rem; }
    .service-hero-img { border-radius: 1.5rem; }
    
    .premium-service-card { padding: 1.25rem; }
    .display-5 { font-size: 2.2rem !important; }
}

@media (max-width: 576px) {
    .service-header h1 { font-size: 2.2rem !important; }
    .service-header p { font-size: 1rem !important; }
    .btn-primary, .premium-cta-button { width: 100%; padding: 1rem; }
    .navbar-brand img { width: 50px; height: 50px; }
    
    /* Ensure text is always legible */
    .service-header {
        padding-top: 6rem;
        padding-bottom: 2rem;
    }
}

/* =========================================================================
   PREMIUM ENQUIRY MODAL STYLES
   ========================================================================= */

.enquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: transparent;
    border: none;
    padding: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    max-width: 100vw;
    max-height: 100vh;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.enquiry-modal[open],
.enquiry-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 0;
}

.modal-glass-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.98);
    width: 90%;
    max-width: 550px;
    border-radius: 24px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 2.5rem;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow-y: auto;
    max-height: 90vh;
}

.enquiry-modal[open] .modal-glass-container,
.enquiry-modal.is-open .modal-glass-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-weight: 500;
}

.modal-close {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

/* Form Sections */
.form-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: #f97316;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #fed7aa, transparent);
}

.input-wrapper {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.2s;
    font-family: inherit;
}

.modal-form textarea {
    padding-left: 16px;
    min-height: 100px;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #f97316;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.modal-form input:focus + .input-icon {
    color: #f97316;
}

.modal-submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.modal-submit-btn:hover {
    background: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.4);
}

.modal-submit-btn i {
    transition: transform 0.3s;
}

.modal-submit-btn:hover i {
    transform: translateX(4px);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .modal-glass-container {
        padding: 1.75rem;
        width: 95%;
    }
    .modal-title { font-size: 1.5rem; }
}