/* =========================================================================
   Antigravity Digital — AI Automation Engineer & Systems Builder Portfolio
   Specialist: Mohammad Faiz (Automation & Systems Lead)
   Design System: Deep Black (#07050A), Electric Cyan (#00E9E9), Purple (#A44DFF), Lime (#C9FF76)
   ========================================================================= */

:root {
  --auto-cyan: #00E9E9;
  --auto-cyan-glow: rgba(0, 233, 233, 0.2);
  --auto-purple: #A44DFF;
  --auto-purple-glow: rgba(164, 77, 255, 0.25);
  --auto-lime: #c9ff76;
  --auto-card-bg: rgba(18, 15, 26, 0.7);
  --auto-card-border: rgba(255, 255, 255, 0.08);
  --auto-card-hover: rgba(0, 233, 233, 0.18);
}

/* Base Wrapper */
.agy-automation-portfolio {
  color: var(--text-primary, #FFFFFF);
  background-color: var(--bg-primary, #07050A);
  overflow-x: hidden;
}

/* =========================================================================
   01. HERO / INTRODUCTION
   ========================================================================= */
.agy-auto-hero {
  position: relative;
  padding: clamp(140px, 14vw, 190px) 0 clamp(60px, 7vw, 100px) 0;
  overflow: hidden;
}

.agy-auto-hero-title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: clamp(2.4rem, 4.8vw, 3.85rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 14px 0 20px 0;
}

.agy-auto-hero-title .agy-handwritten {
  font-family: var(--font-cursive, 'Pacifico', cursive);
  color: var(--auto-cyan);
  font-weight: 400;
  display: inline-block;
  padding-left: 4px;
}

.agy-auto-role-pill {
  display: block !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  font-family: var(--font-heading, "Space Grotesk", sans-serif) !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #CBD5E1 !important;
  margin-bottom: 20px !important;
  line-height: 1.4 !important;
}

.agy-pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--auto-cyan);
  box-shadow: 0 0 10px var(--auto-cyan);
  display: inline-block;
  animation: agyPulse 2s infinite ease-in-out;
}

@keyframes agyPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.agy-auto-lead-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  color: #F0F0F5;
  margin: 0 0 20px 0;
  padding-left: 20px;
  border-left: 3px solid var(--auto-cyan);
}

.agy-auto-portrait-card {
  background: linear-gradient(180deg, rgba(22, 18, 34, 0.8) 0%, rgba(12, 10, 18, 0.95) 100%);
  border: 1px solid rgba(0, 233, 233, 0.2);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 233, 233, 0.06);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.agy-auto-portrait-card:hover {
  border-color: rgba(0, 233, 233, 0.45);
  transform: translateY(-4px);
}

.agy-portrait-status-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.agy-status-pill {
  display: inline-flex !important;
  align-items: center !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  font-family: var(--font-heading, "Space Grotesk", sans-serif) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #CBD5E1 !important;
  line-height: 1 !important;
}

.agy-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--auto-lime);
  box-shadow: 0 0 8px var(--auto-lime);
}

.agy-portrait-spec-tag {
  font-size: 0.75rem;
  color: var(--text-tertiary, #8E8A9F);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agy-portrait-img-box {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  border-radius: 16px;
  overflow: hidden;
  background: #0B0910;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.agy-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.agy-auto-portrait-card:hover .agy-portrait-img {
  transform: scale(1.02);
}

.agy-portrait-footer-info {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.agy-portrait-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
}

.agy-portrait-title {
  font-size: 0.875rem;
  color: var(--auto-cyan);
  margin-top: 4px;
  font-weight: 500;
}

.agy-portrait-meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary, #8E8A9F);
  margin-top: 8px;
}

.agy-meta-sep {
  margin: 0 6px;
  opacity: 0.4;
}

/* =========================================================================
   02. SERVICES & CORE CAPABILITIES
   ========================================================================= */
.agy-auto-services-section {
  padding: clamp(60px, 8vw, 110px) 0;
  position: relative;
}

.agy-section-header-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto clamp(40px, 6vw, 64px) auto;
}

.agy-section-header-centered .agy-eyebrow {
  margin: 0 auto 12px auto;
  display: inline-block;
}

.agy-section-title {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.agy-section-title .agy-handwritten {
  font-family: var(--font-cursive, 'Pacifico', cursive);
  color: var(--auto-cyan);
  font-weight: 400;
}

.agy-section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary, #A09BAE);
  line-height: 1.6;
}

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

.agy-service-card {
  background: linear-gradient(180deg, rgba(22, 18, 34, 0.6) 0%, rgba(13, 11, 20, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 38px);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.agy-service-card:hover {
  border-color: rgba(0, 233, 233, 0.35);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 233, 233, 0.08);
}

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

.agy-service-number {
  font-family: var(--font-mono, monospace);
  font-size: 1rem;
  font-weight: 700;
  color: var(--auto-cyan);
  background: rgba(0, 233, 233, 0.1);
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 233, 233, 0.25);
}

.agy-service-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-tertiary, #8E8A9F);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agy-service-title {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
  line-height: 1.3;
}

.agy-service-desc {
  font-size: 1rem;
  color: var(--text-secondary, #A09BAE);
  line-height: 1.65;
  margin-bottom: 24px;
}

.agy-service-capabilities {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.agy-service-subhead {
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.agy-capability-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
}

.agy-capability-list li {
  font-size: 0.9375rem;
  color: #E2DFEB;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.agy-cap-bullet {
  color: var(--auto-cyan);
  font-weight: 700;
  font-size: 0.875rem;
}

.agy-service-apps {
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.agy-apps-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary, #8E8A9F);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.agy-app-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agy-pill-item {
  font-size: 0.8125rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #CCC7DA;
}

/* =========================================================================
   03. PROVEN BUILDS & CASE STUDIES
   ========================================================================= */
.agy-auto-cases-section {
  padding: clamp(60px, 8vw, 110px) 0;
  position: relative;
  background: rgba(10, 8, 15, 0.5);
}

.agy-case-studies-stack {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.agy-case-item {
  background: linear-gradient(180deg, rgba(20, 16, 30, 0.7) 0%, rgba(12, 10, 18, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 42px);
  position: relative;
  transition: all 0.3s ease;
}

.agy-case-item:hover {
  border-color: rgba(0, 233, 233, 0.3);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 233, 233, 0.06);
}

.agy-case-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.agy-case-sector-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(164, 77, 255, 0.12);
  border: 1px solid rgba(164, 77, 255, 0.3);
  color: #D6A8FF;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.agy-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--auto-purple);
}

.agy-case-title {
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.28;
  margin-bottom: 22px;
}

.agy-challenge-solution-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.agy-cs-block {
  padding: 16px;
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.agy-cs-challenge {
  background: rgba(255, 80, 80, 0.06);
  border: 1px solid rgba(255, 80, 80, 0.2);
  color: #FFB3B3;
}

.agy-cs-challenge p {
  color: #E6CCD1;
  margin: 0;
}

.agy-cs-solution {
  background: rgba(0, 233, 233, 0.06);
  border: 1px solid rgba(0, 233, 233, 0.25);
  color: var(--auto-cyan);
}

.agy-cs-solution p {
  color: #C6EEF2;
  margin: 0;
}

.agy-cs-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.agy-case-impl {
  margin-bottom: 22px;
}

.agy-impl-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.agy-impl-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.agy-impl-bullets li {
  font-size: 0.875rem;
  color: #D2CEE0;
  position: relative;
  padding-left: 18px;
}

.agy-impl-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--auto-cyan);
}

.agy-tech-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.agy-tech-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono, monospace);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--auto-cyan);
  font-weight: 600;
}

.agy-case-visual {
  display: flex;
  justify-content: center;
}

.agy-case-diagram-card {
  width: 100%;
  background: #0C0A12;
  border: 1px solid rgba(0, 233, 233, 0.2);
  border-radius: 18px;
  padding: 24px 20px;
  position: relative;
  box-shadow: inset 0 0 25px rgba(0, 233, 233, 0.03);
}

.agy-diagram-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--auto-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  text-align: center;
}

.agy-pipeline-flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.agy-flow-node {
  width: 100%;
  max-width: 280px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.agy-flow-node:hover {
  background: rgba(0, 233, 233, 0.08);
  border-color: rgba(0, 233, 233, 0.4);
}

.agy-node-icon {
  font-size: 1.25rem;
}

.agy-node-txt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #FFFFFF;
}

.agy-flow-arrow {
  color: var(--auto-cyan);
  font-size: 1.1rem;
  font-weight: bold;
}

.agy-diagram-caption {
  font-size: 0.75rem;
  color: var(--text-tertiary, #8E8A9F);
  text-align: center;
  margin-top: 18px;
  font-style: italic;
}

/* =========================================================================
   04. WHO I SERVE
   ========================================================================= */
.agy-auto-serve-section {
  padding: clamp(60px, 8vw, 110px) 0;
}

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

.agy-serve-card {
  background: linear-gradient(180deg, rgba(22, 18, 34, 0.5) 0%, rgba(13, 11, 20, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 28px 24px;
  transition: all 0.3s ease;
}

.agy-serve-card:hover {
  border-color: rgba(164, 77, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(164, 77, 255, 0.08);
}

.agy-serve-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.agy-serve-idx {
  font-family: var(--font-mono, monospace);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--auto-purple);
  background: rgba(164, 77, 255, 0.12);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(164, 77, 255, 0.25);
}

.agy-serve-icon {
  font-size: 1.5rem;
}

.agy-serve-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.35;
}

.agy-serve-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary, #A09BAE);
  line-height: 1.6;
  margin: 0;
}

/* =========================================================================
   05. ENGINEERING PROCESS
   ========================================================================= */
.agy-auto-process-section {
  padding: clamp(60px, 8vw, 110px) 0;
  background: rgba(8, 7, 12, 0.6);
}

.agy-process-timeline-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.agy-process-stage-card {
  background: linear-gradient(180deg, rgba(24, 20, 36, 0.7) 0%, rgba(14, 12, 22, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.agy-process-stage-card:hover {
  border-color: rgba(0, 233, 233, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.agy-stage-number-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.agy-stage-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--auto-cyan);
  background: rgba(0, 233, 233, 0.1);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 233, 233, 0.25);
}

.agy-stage-icon {
  font-size: 1.35rem;
}

.agy-stage-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.3;
}

.agy-stage-desc {
  font-size: 0.90625rem;
  color: var(--text-secondary, #A09BAE);
  line-height: 1.6;
  margin-bottom: 20px;
}

.agy-deliverable-box {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 233, 233, 0.04);
  border: 1px solid rgba(0, 233, 233, 0.18);
}

.agy-deliv-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--auto-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.agy-deliv-value {
  font-size: 0.8125rem;
  color: #E2DFEB;
  line-height: 1.45;
  font-weight: 500;
}

/* =========================================================================
   06. TOOLS & TECHNOLOGY STACK
   ========================================================================= */
.agy-auto-tech-section {
  padding: clamp(60px, 8vw, 110px) 0;
}

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

.agy-tech-category-card {
  background: linear-gradient(180deg, rgba(22, 18, 34, 0.6) 0%, rgba(13, 11, 20, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 24px;
}

.agy-tech-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.agy-cat-icon {
  font-size: 1.5rem;
}

.agy-cat-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.agy-tech-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agy-tech-badge {
  font-size: 0.875rem;
  font-weight: 500;
  color: #E0DCED;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.agy-tech-badge:hover {
  background: rgba(0, 233, 233, 0.08);
  border-color: rgba(0, 233, 233, 0.35);
  color: #FFFFFF;
}

/* =========================================================================
   07. ENGINEERING PRINCIPLES / WORK RULES
   ========================================================================= */
.agy-auto-rules-section {
  padding: clamp(60px, 8vw, 110px) 0;
  background: rgba(10, 8, 15, 0.5);
}

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

.agy-rule-card {
  background: linear-gradient(180deg, rgba(22, 18, 34, 0.6) 0%, rgba(13, 11, 20, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.agy-rule-card:hover {
  border-color: rgba(201, 255, 118, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
}

.agy-rule-num-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--auto-lime);
  background: rgba(201, 255, 118, 0.1);
  border: 1px solid rgba(201, 255, 118, 0.25);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.agy-rule-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
  line-height: 1.3;
}

.agy-rule-desc {
  font-size: 1rem;
  color: var(--text-secondary, #A09BAE);
  line-height: 1.65;
  margin: 0;
}

/* =========================================================================
   08. FINAL CTA BANNER
   ========================================================================= */
.agy-auto-final-cta-section {
  position: relative;
}

.agy-auto-cta-box {
  background: linear-gradient(180deg, rgba(24, 19, 38, 0.85) 0%, rgba(12, 10, 18, 0.95) 100%);
  border: 1px solid rgba(0, 233, 233, 0.25);
  border-radius: 28px;
  padding: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 48px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(0, 233, 233, 0.08);
  position: relative;
  overflow: hidden;
}

.agy-btn-glow {
  box-shadow: 0 0 25px rgba(0, 233, 233, 0.25);
}

.agy-btn-whatsapp {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25D366 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.agy-btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.6);
  color: #FFFFFF !important;
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================= */
@media (max-width: 1024px) {
  .agy-process-timeline-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .agy-serve-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 868px) {
  .agy-portfolio-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .agy-services-grid {
    grid-template-columns: 1fr;
  }
  .agy-case-grid {
    grid-template-columns: 1fr;
  }
  .agy-challenge-solution-box {
    grid-template-columns: 1fr;
  }
  .agy-impl-bullets {
    grid-template-columns: 1fr;
  }
  .agy-tech-categories-grid {
    grid-template-columns: 1fr;
  }
  .agy-rules-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .agy-serve-grid {
    grid-template-columns: 1fr;
  }
  .agy-process-timeline-wrap {
    grid-template-columns: 1fr;
  }
  .agy-portfolio-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .agy-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
}


/* --- Seamless Card Artwork Line Rendering (Matching KMF Nandini Format) --- */
.agy-case-illustration-wrap {
  position: relative !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.agy-case-illustration-wrap img.agy-case-sketch-img {
  background: transparent !important;
  mix-blend-mode: screen !important;
  -webkit-mask-image: radial-gradient(ellipse 96% 92% at 50% 50%, #000000 78%, transparent 100%) !important;
  mask-image: radial-gradient(ellipse 96% 92% at 50% 50%, #000000 78%, transparent 100%) !important;
  filter: drop-shadow(0 0 25px rgba(164, 77, 255, 0.22)) drop-shadow(0 0 35px rgba(201, 255, 118, 0.15)) !important;
  border: none !important;
  box-shadow: none !important;
}
.agy-featured-case-card:hover .agy-case-sketch-img {
  filter: drop-shadow(0 0 35px rgba(164, 77, 255, 0.35)) drop-shadow(0 0 45px rgba(201, 255, 118, 0.28)) !important;
}


/* Hide dot/pulse on unboxed badges */
.agy-auto-role-pill .agy-pulse-indicator,
.agy-status-pill .agy-status-dot {
  display: none !important;
}


/* Faiz Sketch Cards Grid */
.agy-auto-sketch-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 28px !important;
}

@media (max-width: 900px) {
  .agy-auto-sketch-cards-grid {
    grid-template-columns: 1fr !important;
  }
}
