/**
 * Digital Marketing Services Catalogue
 * Stylesheet for Single Service Page: Digital Marketing & Growth
 *
 * Visual Direction:
 * - Clean, modern, premium, confident
 * - Pacifico & Caveat cursive accents
 * - Neon primary action buttons (#c9ff76)
 * - Right-side floating frame container in Hero with puzzle illustration
 * - Subtle borders, balanced negative space, crisp typography
 *
 * @package AntigravityDigital
 * @version 2.0.0
 */

/* ==========================================================================
   Handwritten Typography Classes
   ========================================================================== */
.agy-handwritten {
  font-family: 'Caveat', cursive !important;
  font-weight: 500 !important;
}

.agy-caveat {
  font-family: 'Caveat', cursive !important;
}

/* ==========================================================================
   Global Layout & Wrapper
   ========================================================================== */
.agy-service-catalog-main {
  position: relative;
  background-color: var(--bg-primary, #08070D);
  color: var(--text-primary, #F0F0F8);
  min-height: 100vh;
  overflow-x: hidden;
}

.agy-service-section {
  position: relative;
  padding: 80px 0;
}

@media (max-width: 768px) {
  .agy-service-section {
    padding: 56px 0;
  }
}

/* ==========================================================================
   01. HERO SECTION (2-Column Grid with Floating Frame)
   ========================================================================== */
.agy-service-hero {
  position: relative;
  padding: 160px 0 80px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.agy-service-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(32px, 4vw, 52px);
  align-items: center;
}

@media (max-width: 992px) {
  .agy-service-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.agy-service-hero-left {
  max-width: 680px;
}

.agy-service-eyebrow {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Caveat', cursive !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
}

.agy-service-eyebrow .agy-handwritten {
  font-family: 'Caveat', cursive !important;
  font-size: 20px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.agy-service-hero-title {
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin: 0 0 24px 0;
}

.agy-service-hero-title .agy-handwritten {
  color: var(--lime-bright, #c9ff76);
}

.agy-service-hero-desc {
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.7;
  color: rgba(240, 240, 248, 0.72);
  margin: 0 0 32px 0;
  max-width: 620px;
}

.agy-service-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.agy-service-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(240, 240, 248, 0.85);
  letter-spacing: 0.01em;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.agy-service-tag-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.agy-service-hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.agy-hero-caveat-note {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--lime-bright, #c9ff76);
}

/* Floating Right-Side Frame Card */
.agy-service-hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 992px) {
  .agy-service-hero-visual {
    justify-content: flex-start;
  }
}

.agy-service-frame-card {
  width: 100%;
  max-width: 440px;
  background: #09080F;
  background: radial-gradient(110% 120% at 80% 20%, rgba(35, 25, 55, 0.45) 0%, rgba(10, 9, 16, 0.98) 75%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 28px 24px;
  box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.9), 0 0 40px rgba(201, 255, 118, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.agy-service-frame-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 255, 118, 0.3);
}

.agy-service-frame-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.agy-service-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agy-service-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.agy-service-brand-tag {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-heading);
}

.agy-service-frame-img-box {
  width: 100%;
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin-bottom: 20px;
}

.agy-service-frame-img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  display: block;
}

.agy-service-frame-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agy-service-frame-title {
  font-family: 'Pacifico', cursive;
  font-size: 1.35rem;
  color: #FFFFFF;
}

.agy-service-frame-caption {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  color: var(--lime-bright, #c9ff76);
  line-height: 1.35;
}

/* ==========================================================================
   02. OUR SERVICES (6-CARD GRID)
   ========================================================================== */
.agy-services-header {
  max-width: 720px;
  margin-bottom: 56px;
}

.agy-services-heading {
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 16px 0;
}

.agy-services-heading .agy-handwritten {
  color: #A78BFA;
}

.agy-services-subtext {
  font-size: 1.0625rem;
  line-height: 1.68;
  color: rgba(240, 240, 248, 0.68);
  margin: 0;
}

.agy-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .agy-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .agy-services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.agy-service-card {
  position: relative;
  background: #0E0D16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background 0.25s ease;
}

.agy-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 255, 118, 0.3);
  background: #12101B;
}

.agy-service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.agy-service-card-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--lime-bright, #c9ff76);
  background: rgba(201, 255, 118, 0.08);
  border: 1px solid rgba(201, 255, 118, 0.2);
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.agy-service-card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.agy-service-card:hover .agy-service-card-icon {
  color: var(--lime-bright, #c9ff76);
}

.agy-service-card-icon svg {
  width: 20px;
  height: 20px;
}

.agy-service-card-title {
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin: 0 0 12px 0;
}

.agy-service-card-desc {
  font-size: 0.9375rem;
  line-height: 1.62;
  color: rgba(240, 240, 248, 0.68);
  margin: 0;
  flex-grow: 1;
}

/* ==========================================================================
   03. NOT SURE WHERE TO START? (EDITORIAL SPLIT PANEL)
   ========================================================================== */
.agy-guidance-panel {
  background: #0E0D16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .agy-guidance-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 24px;
  }
}

.agy-guidance-title {
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 6px 0;
}

.agy-guidance-title .agy-handwritten {
  color: var(--teal-accent, #00C9CB);
}

.agy-guidance-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.agy-guidance-desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(240, 240, 248, 0.72);
  margin: 0;
}

/* ==========================================================================
   04. FINAL CTA SECTION
   ========================================================================== */
.agy-service-closing-cta {
  background: #0E0D16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 72px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.agy-service-closing-cta .agy-service-eyebrow {
  white-space: nowrap;
  justify-content: center;
  margin-bottom: 16px;
}

.agy-closing-title {
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 auto 18px auto;
  max-width: 680px;
}

.agy-closing-title .agy-handwritten {
  color: var(--lime-bright, #c9ff76);
}

.agy-closing-desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(240, 240, 248, 0.7);
  margin: 0 auto 36px auto;
  max-width: 580px;
}

.agy-closing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Neon Button Styles
   ========================================================================== */
.agy-neon-btn,
.agy-service-catalog-main .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-family: var(--font-heading, sans-serif);
  font-size: 0.9375rem;
  font-weight: 600 !important;
  text-decoration: none;
  cursor: pointer;
  background: var(--lime-bright, #c9ff76) !important;
  color: #08070D !important;
  border: 1px solid #c9ff76 !important;
  box-shadow: 0 0 20px rgba(201, 255, 118, 0.25) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.agy-neon-btn:hover,
.agy-service-catalog-main .btn-primary:hover {
  background: #d8ff8f !important;
  color: #08070D !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 32px rgba(201, 255, 118, 0.45) !important;
}

.agy-service-catalog-main .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-family: var(--font-heading, sans-serif);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.agy-service-catalog-main .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.agy-service-catalog-main .btn-icon {
  display: inline-block;
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}

.agy-service-catalog-main .btn:hover .btn-icon {
  transform: translateX(3px);
}


/* ==========================================================================
   WHITE EDITORIAL SKETCH CARDS FOR CORE CAPABILITIES (IMAGE 2 DESIGN)
   ========================================================================== */
.agy-service-card.agy-sketch-card {
  position: relative;
  background: #FFFFFF !important;
  border-radius: 26px !important;
  padding: 38px 32px !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
}

.agy-service-card.agy-sketch-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.5) !important;
}

/* Wavy Corner Shapes (Image 2 Design) */
.agy-card-corner-shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.agy-card-corner-tr {
  top: 0;
  right: 0;
  width: 95px;
  height: 95px;
}

.agy-card-corner-bl {
  bottom: 0;
  left: 0;
  width: 105px;
  height: 105px;
}

/* Inner Body Content */
.agy-service-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* Black Sketch Icon */
.agy-service-card.agy-sketch-card .agy-service-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
  background: transparent !important;
  color: #111111 !important;
}

.agy-service-card.agy-sketch-card .agy-service-card-icon svg {
  width: 28px;
  height: 28px;
  stroke: #111111 !important;
  stroke-width: 2 !important;
  fill: none !important;
  transition: transform 0.25s ease;
}

.agy-service-card.agy-sketch-card:hover .agy-service-card-icon svg {
  transform: scale(1.12);
}

/* Typography on White Card */
.agy-service-card.agy-sketch-card .agy-service-card-title {
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #111111 !important;
  line-height: 1.3 !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: -0.015em;
}

.agy-service-card.agy-sketch-card .agy-service-card-desc {
  font-size: 0.9375rem !important;
  line-height: 1.65 !important;
  color: #334155 !important;
  margin: 0 !important;
  font-weight: 450;
}
/* Unified Pacifico Eyebrow & Unboxed Tags */
.agy-service-eyebrow {
  white-space: nowrap;
  display: inline-block !important;
  font-family: "Pacifico", cursive !important;
  font-size: clamp(1.2rem, 2vw, 1.45rem) !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  background: linear-gradient(90deg, #D6D2DC 0%, #A78BFA 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

.agy-service-eyebrow .agy-handwritten {
  font-family: "Pacifico", cursive !important;
  font-size: inherit !important;
  background: inherit !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.agy-service-hero-title {
  font-weight: 400 !important;
}

.agy-service-hero-title .agy-handwritten {
  font-family: "Caveat", cursive !important;
  font-size: 1.15em !important;
  color: var(--lime-bright, #c9ff76) !important;
  -webkit-text-fill-color: var(--lime-bright, #c9ff76) !important;
}

.agy-service-tags-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 36px !important;
}

.agy-service-tag-pill {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  color: rgba(240, 240, 248, 0.75) !important;
}

.agy-service-tag-pill:not(:last-child)::after {
  content: "·";
  margin-left: 12px;
  color: rgba(255, 255, 255, 0.35);
}


/* ==========================================================================
   Frameless Flying Paper Airplane Animation (Make your next move count)
   Compact, balanced proportion matching the Automation puzzle hero layout
   ========================================================================== */
.agy-hero-title-lead {
  display: inline-block;
}
@media (min-width: 769px) {
  .agy-hero-title-lead {
    white-space: nowrap !important;
  }
}

.agy-marketing-flying-visual {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  width: 100% !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  padding: 10px 0 !important;
}

.agy-flying-airplane-wrapper {
  position: relative !important;
  width: 100% !important;
  max-width: 440px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  animation: agyPlaneFly 6.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate !important;
  will-change: transform;
}

/* Atmospheric Glow Behind Airplane */
.agy-flying-airplane-wrapper::before {
  display: none !important;
}

.agy-flying-airplane-img {
  width: 100% !important;
  max-width: 420px !important;
  height: auto !important;
  max-height: 310px !important;
  object-fit: contain !important;
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 35px rgba(167, 139, 250, 0.22)) !important;
  transition: filter 0.4s ease, transform 0.4s ease;
  user-select: none;
  pointer-events: auto;
}

.agy-flying-airplane-wrapper:hover .agy-flying-airplane-img {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.95)) !important;
}

/* Smooth Floating & Gliding Flight Motion */
@keyframes agyPlaneFly {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(8px, -12px, 0) rotate(1.5deg);
  }
  50% {
    transform: translate3d(-6px, -20px, 0) rotate(-1deg);
  }
  75% {
    transform: translate3d(10px, -10px, 0) rotate(1.8deg);
  }
  100% {
    transform: translate3d(0, -12px, 0) rotate(-0.5deg);
  }
}

/* Tablet Responsiveness (1024px and below) */
@media (max-width: 1024px) {
  .agy-service-hero {
    padding: 130px 0 60px 0 !important;
  }
  .agy-service-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .agy-service-hero-left {
    max-width: 100% !important;
  }
  .agy-marketing-flying-visual {
    margin: 16px auto 0 !important;
    max-width: 270px !important;
  }
  .agy-flying-airplane-wrapper {
    max-width: 250px !important;
  }
  .agy-flying-airplane-img {
    max-width: 235px !important;
    max-height: 185px !important;
  }
}

/* Medium Tablet / Large Mobile (768px and below) */
@media (max-width: 768px) {
  .agy-service-hero {
    padding: 110px 0 50px 0 !important;
  }
  .agy-service-hero-title {
    font-size: clamp(2.1rem, 6vw, 2.85rem) !important;
    margin-bottom: 20px !important;
  }
  .agy-service-hero-desc {
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
    margin-bottom: 26px !important;
  }
  .agy-marketing-flying-visual {
    max-width: 230px !important;
  }
  .agy-flying-airplane-wrapper {
    max-width: 220px !important;
  }
  .agy-flying-airplane-img {
    max-width: 210px !important;
    max-height: 165px !important;
  }
}

/* Mobile Actions Layout (600px and below) */
@media (max-width: 600px) {
  .agy-service-hero-actions {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    width: 100% !important;
  }
  .agy-service-hero-actions .btn-primary {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 15px 24px !important;
    font-size: 1rem !important;
  }
  .agy-hero-caveat-note {
    font-size: 1.2rem !important;
    margin-left: 2px !important;
  }
}

/* Compact Mobile (576px and below) */
@media (max-width: 576px) {
  .agy-marketing-flying-visual {
    max-width: 190px !important;
    margin: 12px auto 0 !important;
  }
  .agy-flying-airplane-wrapper {
    max-width: 180px !important;
    animation: agyPlaneFlyMobile 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate !important;
  }
  .agy-flying-airplane-img {
    max-width: 170px !important;
    max-height: 135px !important;
  }
}

/* Small Screens (380px and below) */
@media (max-width: 380px) {
  .agy-service-hero-title {
    font-size: 1.75rem !important;
  }
  .agy-marketing-flying-visual {
    max-width: 160px !important;
  }
  .agy-flying-airplane-wrapper {
    max-width: 150px !important;
  }
  .agy-flying-airplane-img {
    max-width: 140px !important;
    max-height: 110px !important;
  }
}

@keyframes agyPlaneFlyMobile {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(4px, -8px, 0) rotate(1deg);
  }
  100% {
    transform: translate3d(-3px, -12px, 0) rotate(-0.8deg);
  }
}

/* ==========================================================================
   Automation Service Hero Refinements:
   - Pacifico Gradient Eyebrow (Silver-Lavender-Periwinkle)
   - White Handwritten Heading Text ("one connected system")
   ========================================================================== */
.agy-service-eyebrow-pacifico {
  display: inline-block !important;
  font-family: 'Pacifico', cursive !important;
  font-size: clamp(1.2rem, 2vw, 1.45rem) !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  background: linear-gradient(90deg, #D6D2DC 0%, #B9A4E8 48%, #AFC8E5 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #B9A4E8 !important;
  border: none !important;
  padding: 0 !important;
  background-color: transparent !important;
  margin-bottom: 20px !important;
  line-height: 1.3 !important;
  white-space: normal !important;
}

.agy-automation-service-main .agy-service-hero-title .agy-handwritten {
  color: #FFFFFF !important;
  text-shadow: none !important;
}

@media (max-width: 768px) {
  .agy-service-eyebrow-pacifico {
    font-size: clamp(1.1rem, 4.5vw, 1.3rem) !important;
    margin-bottom: 16px !important;
  }
}


/* ==========================================================================
   Automation Hero "IN SYNC!" Puzzle Visual (Frameless & Floating)
   ========================================================================== */
.agy-automation-puzzle-visual {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  width: 100% !important;
  padding: 10px 0 !important;
}

.agy-puzzle-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: agyPuzzleFloat 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  will-change: transform;
}

/* Atmospheric Glow Behind Puzzle */
.agy-puzzle-wrapper::before {
  display: none !important;
}

.agy-puzzle-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 35px rgba(167, 139, 250, 0.2));
  transition: filter 0.4s ease, transform 0.4s ease;
  user-select: none;
}

.agy-puzzle-wrapper:hover .agy-puzzle-img {
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 45px rgba(201, 255, 118, 0.3));
}

@keyframes agyPuzzleFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -16px, 0) rotate(1deg);
  }
  100% {
    transform: translate3d(0, -8px, 0) rotate(-1deg);
  }
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 1024px) {
  .agy-puzzle-wrapper {
    max-width: 360px;
    margin: 0 auto;
  }
  .agy-puzzle-img {
    max-height: 320px;
  }
}

@media (max-width: 768px) {
  .agy-puzzle-wrapper {
    max-width: 320px;
  }
  .agy-puzzle-img {
    max-height: 280px;
  }
}

@media (max-width: 576px) {
  .agy-puzzle-wrapper {
    max-width: 260px;
    animation: agyPuzzleFloatMobile 5.5s ease-in-out infinite alternate;
  }
  .agy-puzzle-img {
    max-height: 230px;
  }
}

@media (max-width: 380px) {
  .agy-puzzle-wrapper {
    max-width: 220px;
  }
  .agy-puzzle-img {
    max-height: 195px;
  }
}

@keyframes agyPuzzleFloatMobile {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, -10px, 0);
  }
}
