.ssc-section {
	--ssc-text-light: #ffffff;
	--ssc-navy: #1B1B3A;
	--ssc-navy-soft: #3C3C7F;
	--ssc-deep-blue: #050816;

	/* Used for outer section background so the cards sit on a matching canvas */
	background: radial-gradient(57.03% 57.03% at 53.73% 0%, #3C3C7F 0%, #1B1B3A 100%) !important;
	padding: clamp(28px, 6vw, 50px) clamp(16px, 5vw, 50px);
	box-sizing: border-box;
	overflow: hidden; /* keeps floating particles from causing scrollbars */
	position: relative;
	border-radius: 15px;
}

/* All direct children of a card must respect the box model so padding
   does not visually compress the inner content. */
.ssc-section * {
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Section heading
   -------------------------------------------------------------------------- */
.ssc-heading-wrap {
	max-width: 720px;
	margin: 0 auto clamp(36px, 7vw, 64px);
	text-align: center;
	padding: 0 8px;
}

.ssc-eyebrow {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: clamp(11px, 2.6vw, 13px);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #b9b9ff;
	margin-bottom: 14px;
}

.ssc-heading {
	font-family: 'Poppins', sans-serif;
	font-size: clamp(26px, 5.2vw, 44px);
	font-weight: 500;
	line-height: 1.25;
	color: var(--ssc-text-light) !important;
	margin: 0 0 16px;
	word-wrap: break-word;
}

.ssc-subheading {
	font-family: 'Inter', sans-serif;
	font-size: clamp(14px, 2.4vw, 17px);
	font-weight: 400;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Grid layout for the 3 cards
   -------------------------------------------------------------------------- */
.ssc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 3vw, 32px);
	max-width: 1300px;
	margin: 0 auto;
}

/* Tablet: 2 columns so cards aren't squeezed too early */
@media (max-width: 992px) and (min-width: 641px) {
	.ssc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}
	.ssc-grid .ssc-card:nth-child(3) {
		grid-column: 1 / -1;
		margin: 0 auto;
	}
}


@media (max-width: 1100px) and (min-width: 993px) {
	.ssc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
	.ssc-grid .ssc-card:nth-child(3) {
		grid-column: 1 / -1;
		max-width: 480px;
		margin: 0 auto;
	}
}

/* Mobile: single column, full width */
@media (max-width: 640px) {
	.ssc-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

/* --------------------------------------------------------------------------
   Base card styling
   -------------------------------------------------------------------------- */
.ssc-card {
	position: relative;
	border-radius: 22px;
	padding: clamp(28px, 4.5vw, 48px) clamp(20px, 3.5vw, 32px) clamp(24px, 3.5vw, 40px);
	overflow: hidden;
	isolation: isolate; /* keeps the glow pseudo-layer contained within the card */
	transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.1);
	min-height: 280px;
	width: 100%;
	display: flex;
	flex-direction: column;
}

/* Lift + glow on hover to invite interaction (desktop only — see touch override below) */
.ssc-card:hover {
	transform: translateY(-14px) scale(1.02) rotate(-0.5deg);
	box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
	border-color: rgba(255, 255, 255, 0.35);
}


/* Card text colors default to white; overridden per-theme below where needed */
.ssc-card-title,
.ssc-card-desc {
	color: var(--ssc-text-light) !important;
}

.ssc-card-title {
	font-family: 'Poppins', sans-serif;
	font-size: clamp(22px, 3.2vw, 30px);
	font-weight: 500;
	margin: 20px 0 14px;
	position: relative;
	z-index: 2;
	line-height: 1.3;
	word-wrap: break-word;
}

.ssc-card-desc {
	font-family: 'Inter', sans-serif;
	font-size: clamp(14px, 2vw, 16px);
	font-weight: 400;
	line-height: 1.7;
	opacity: 0.88;
	margin: 0 0 32px;
	position: relative;
	z-index: 2;
	flex-grow: 1;
	word-wrap: break-word;
}

/* --------------------------------------------------------------------------
   Theme 1: AI-Driven Innovation
   Strong indigo-violet gradient so it reads clearly distinct from the others.
   -------------------------------------------------------------------------- */
.ssc-card.theme-ai {
	background:
		radial-gradient(circle at 15% 0%, rgba(124, 92, 255, .35), transparent 45%),
		radial-gradient(circle at 100% 100%, rgba(56, 189, 248, .12), transparent 50%),
		linear-gradient(160deg, #1c1240 0%, #2a1a5e 55%, #160c33 100%);
}
.ssc-card.theme-ai .ssc-icon-badge {
	color: #b9a6ff; /* violet icon tone for the AI theme */
	background: rgba(185, 166, 255, 0.16);
}
.ssc-card.theme-ai .ssc-orbit-ring {
	border-color: rgba(185, 166, 255, 0.35);
}
.ssc-card.theme-ai .ssc-orbit-dot {
	background: #b9a6ff;
	box-shadow: 0 0 10px 2px rgba(185, 166, 255, 0.8);
}
.ssc-card.theme-ai .ssc-particle {
	background: #b9a6ff;
}

/* --------------------------------------------------------------------------
   Theme 2: monday.com Consulting
   Warm amber accent on a near-black charcoal base for strong contrast.
   -------------------------------------------------------------------------- */
/* .ssc-card.theme-monday {
	background:
		radial-gradient(circle at 85% 0%, rgba(255, 184, 76, .18), transparent 50%),
		linear-gradient(160deg, #15141f 0%, #1c1a2b 100%);
} */
.ssc-card.theme-monday .ssc-icon-badge {
	color: #b9a6ff; /* violet icon tone for the AI theme */
	background: rgba(185, 166, 255, 0.16);
}
.ssc-card.theme-monday .ssc-orbit-ring {
	border-color: rgba(255, 184, 76, 0.35);
}
.ssc-card.theme-monday .ssc-orbit-dot {
	background: #b9a6ff;
	box-shadow: 0 0 10px 2px rgba(185, 166, 255, 0.8);
}
.ssc-card.theme-monday .ssc-particle {
	background: #b9a6ff;
}

/* --------------------------------------------------------------------------
   Theme 3: Azure Cloud
   Cyan-blue gradient that echoes the Azure brand without copying its logo.
   -------------------------------------------------------------------------- */
.ssc-card.theme-azure {
	background:
		radial-gradient(circle at 10% 100%, rgba(80, 200, 255, .22), transparent 50%),
		linear-gradient(160deg, #0d2552 0%, #123a78 55%, #0a1d42 100%);
}
.ssc-card.theme-azure .ssc-icon-badge {
	color: #79d6ff; /* cyan tone echoing the Azure brand blue */
	background: rgba(121, 214, 255, 0.18);
}
.ssc-card.theme-azure .ssc-orbit-ring {
	border-color: rgba(121, 214, 255, 0.4);
}
.ssc-card.theme-azure .ssc-orbit-dot {
	background: #79d6ff;
	box-shadow: 0 0 10px 2px rgba(121, 214, 255, 0.85);
}
.ssc-card.theme-azure .ssc-particle {
	background: #79d6ff;
}

/* --------------------------------------------------------------------------
   Icon badge + orbit ring system
   The ring rotates continuously; a small glowing dot rides along its edge.
   This replaces any emoji-based decoration with a clean, scalable effect.
   -------------------------------------------------------------------------- */
.ssc-icon-wrap {
	position: relative;
	width: clamp(52px, 8vw, 64px);
	height: clamp(52px, 8vw, 64px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.ssc-orbit-ring {
	position: absolute;
	inset: -10px;
	border: 1.5px dashed rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	animation: ssc-orbit-spin 7s linear infinite;
}

.ssc-orbit-dot {
	position: absolute;
	top: -4px;
	left: 50%;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	transform: translateX(-50%);
}

@keyframes ssc-orbit-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

.ssc-icon-badge {
	width: clamp(46px, 7vw, 56px);
	height: clamp(46px, 7vw, 56px);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
	transition: transform 0.4s ease;
}

.ssc-card:hover .ssc-icon-badge {
	animation: ssc-icon-wobble 0.6s ease-in-out;
	transform: scale(1.15);
}

@keyframes ssc-icon-wobble {
	0%   { transform: scale(1) rotate(0deg); }
	25%  { transform: scale(1.2) rotate(-10deg); }
	50%  { transform: scale(1.05) rotate(8deg); }
	75%  { transform: scale(1.18) rotate(-4deg); }
	100% { transform: scale(1.15) rotate(0deg); }
}

/* Speed up the orbit ring dramatically on hover for a satisfying snap of energy */
.ssc-card:hover .ssc-orbit-ring {
	animation-duration: 1.1s;
}

.ssc-icon-svg {
	width: clamp(22px, 3.5vw, 28px);
	height: clamp(22px, 3.5vw, 28px);
}

/* --------------------------------------------------------------------------
   CTA button + chevron trail
   -------------------------------------------------------------------------- */
.ssc-cta-wrap {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	flex-wrap: wrap;
}

.ssc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1B1B3A !important;
    font-family: 'Inter', sans-serif;
    font-family: 16px;
    font-weight: 600;
    padding: 16px 20px; 
    border-radius: 999px;
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow: 0 8px 20px rgba(79, 57, 224, 0.4);
    position: relative;
    white-space: nowrap;
    justify-content: center;
    margin: 0 auto; 
    width: 100%; 
    box-sizing: border-box;
    border: 3px solid transparent;
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(193.06deg, #F5F1FF -59.37%, #4F39E0 106.12%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 200% 200%;
    animation: borderRun 4s linear infinite;
}

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

.ssc-cta-btn span {
	color: #1B1B3A;
}

/* .ssc-cta-btn:hover {
	animation: ssc-cta-jiggle 0.5s ease-in-out;
	filter: brightness(1.1);
	box-shadow: 0 14px 32px rgba(79, 57, 224, 0.65);
} */

/* @keyframes ssc-cta-jiggle {
	0%   { transform: scale(1); }
	30%  { transform: scale(1.08) rotate(-1.5deg); }
	60%  { transform: scale(1.1) rotate(1.5deg); }
	100% { transform: scale(1.06) rotate(0deg); }
} */

.ssc-cta-arrow {
	width: 16px;
	height: 16px;
	color: #1B1B3A;
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.ssc-cta-btn:hover .ssc-cta-arrow {
	transform: translateX(4px);
}

/* Subtle pulsing ring around the button to attract attention even before hover */
.ssc-cta-btn::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 999px;
	box-shadow: 0 0 0 0 rgba(79, 57, 224, 0.6);
	animation: ssc-cta-ring 2.6s ease-out infinite;
	pointer-events: none;
}

@keyframes ssc-cta-ring {
	0%   { box-shadow: 0 0 0 0 rgba(79, 57, 224, 0.5); }
	70%  { box-shadow: 0 0 0 14px rgba(79, 57, 224, 0); }
	100% { box-shadow: 0 0 0 0 rgba(79, 57, 224, 0); }
}

/* Chevron trail: three small arrow marks that light up in sequence,
   replacing the old finger-pointer emoji with a cleaner motion cue. */
.ssc-chevron-trail {
	display: none; /* hidden by default; only shown on wider cards where there is room */
}

@media (min-width: 1240px) {
	.ssc-chevron-trail {
		display: inline-flex;
		align-items: center;
		gap: 3px;
	}
}

.ssc-chevron {
	width: 7px;
	height: 7px;
	border-top: 2px solid rgba(255, 255, 255, 0.5);
	border-right: 2px solid rgba(255, 255, 255, 0.5);
	transform: rotate(45deg);
	opacity: 0.25;
	animation: ssc-chevron-flow 1.8s ease-in-out infinite;
}

.ssc-chevron:nth-child(1) { animation-delay: 0s; }
.ssc-chevron:nth-child(2) { animation-delay: 0.2s; }
.ssc-chevron:nth-child(3) { animation-delay: 0.4s; }

@keyframes ssc-chevron-flow {
	0%, 100% { opacity: 0.2; }
	50%      { opacity: 0.9; }
}

/* --------------------------------------------------------------------------
   Scroll-reveal entrance animation (controlled by script.js)
   Cards start slightly lower and transparent, then settle into place.
   -------------------------------------------------------------------------- */
.ssc-card.ssc-pre-animate {
	opacity: 0;
	transform: translateY(36px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.ssc-card.ssc-pre-animate.ssc-in-view {
	opacity: 1;
	transform: translateY(0);
}

/* Stagger each card slightly so they do not all animate at the exact same time */
.ssc-grid .ssc-card:nth-child(1) { transition-delay: 0s; }
.ssc-grid .ssc-card:nth-child(2) { transition-delay: 0.12s; }
.ssc-grid .ssc-card:nth-child(3) { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   Small mobile refinements (≤480px)
   Tighter section padding, lighter hover lift (most phones use touch anyway,
   but some Android browsers still fire :hover on tap — keep it subtle),
   and the decorative glow/particles scaled down so they don't dominate
   a narrow card.
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
	.ssc-section {
		padding: 24px 14px;
		border-radius: 10px;
	}

	.ssc-card {
		border-radius: 16px;
		min-height: 240px;
	}

	.ssc-card:hover {
		transform: translateY(-6px) scale(1.01);
	}

	.ssc-cta-btn {
		width: 100%;
		justify-content: center;
	}

	.ssc-cta-wrap {
		width: 100%;
	}
}

/* --------------------------------------------------------------------------
   Touch device override
   Disables the heavier hover transforms/animations on touch-only devices
   (no fine pointer) so tapping a card doesn't leave it visually "stuck"
   in a lifted/rotated state after the tap ends.
   -------------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
	.ssc-card:hover {
		transform: none;
	}

	.ssc-card:hover .ssc-icon-badge {
		animation: none;
		transform: none;
	}

	.ssc-card:hover .ssc-orbit-ring {
		animation-duration: 7s;
	}

	.ssc-card:hover .ssc-particle {
		animation-duration: inherit;
		opacity: 0.55;
	}

	.ssc-card:hover::before {
		left: -150%;
	}
}

/* --------------------------------------------------------------------------
   Reduced motion accessibility
   Respects users who have asked their OS to minimize animations.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.ssc-card,
	.ssc-card::before,
	.ssc-icon-badge,
	.ssc-orbit-ring,
	.ssc-card-glow,
	.ssc-particle,
	.ssc-cta-btn,
	.ssc-cta-arrow,
	.ssc-chevron {
		animation: none !important;
		transition: none !important;
	}
}


@media (max-width: 992px) and (min-width: 851px) {
	.ssc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}
	.ssc-grid .ssc-card:nth-child(3) {
		grid-column: 1 / -1;
		max-width: 480px;
		margin: 0 auto;
	}
}


@media (max-width: 850px) and (min-width: 641px) {
	.ssc-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}