/* === Style Block 1 === */
/* Hero Carousel Animation */
.hero-carousel {
	display: inline-flex;
	flex-direction: column;
	height: 1.1em;
	overflow: hidden;
	vertical-align: top;
	position: relative;
	color: var(--flame);
}
.hero-carousel__inner {
	display: flex;
	flex-direction: column;
	animation: scroll-words 6s cubic-bezier(0.8, 0, 0.2, 1) infinite;
}
.hero-carousel__word {
	height: 1.1em;
	display: flex;
	align-items: center;
}
@keyframes scroll-words {
	0%,
	22% {
		transform: translateY(0);
	}
	33%,
	55% {
		transform: translateY(-1.1em);
	}
	66%,
	88% {
		transform: translateY(-2.2em);
	}
	100% {
		transform: translateY(-3.3em);
	}
}
/* Contrast Fixes for Light Mode */
body:not(.dark) .pillar-grid .card.pillar h3 {
	color: var(--text, #1a1a1a) !important;
}
body:not(.dark) .pillar-grid .card.pillar p,
body:not(.dark) .pillar-grid .card.pillar ul li {
	color: rgba(0, 0, 0, 0.75) !important;
}
body:not(.dark) .industry-card .industry-title {
	color: var(--text, #1a1a1a) !important;
}
body:not(.dark) .industry-card .industry-desc {
	color: rgba(0, 0, 0, 0.75) !important;
}
body:not(.dark) .service-panel h3 {
	color: var(--text, #1a1a1a) !important;
}
body:not(.dark) .service-check-list li,
body:not(.dark) .service-panel p {
/* === Style Block 1 === */
/* Hero Carousel Animation */
.hero-carousel {
	display: inline-flex;
	flex-direction: column;
	height: 1.1em;
	overflow: hidden;
	vertical-align: top;
	position: relative;
	color: var(--flame);
}
.hero-carousel__inner {
	display: flex;
	flex-direction: column;
	animation: scroll-words 6s cubic-bezier(0.8, 0, 0.2, 1) infinite;
}
.hero-carousel__word {
	height: 1.1em;
	display: flex;
	align-items: center;
}
@keyframes scroll-words {
	0%,
	22% {
		transform: translateY(0);
	}
	33%,
	55% {
		transform: translateY(-1.1em);
	}
	66%,
	88% {
		transform: translateY(-2.2em);
	}
	100% {
		transform: translateY(-3.3em);
	}
}
/* Contrast Fixes for Light Mode */
body:not(.dark) .pillar-grid .card.pillar h3 {
	color: var(--text, #1a1a1a) !important;
}
body:not(.dark) .pillar-grid .card.pillar p,
body:not(.dark) .pillar-grid .card.pillar ul li {
	color: rgba(0, 0, 0, 0.75) !important;
}
body:not(.dark) .industry-card .industry-title {
	color: var(--text, #1a1a1a) !important;
}
body:not(.dark) .industry-card .industry-desc {
	color: rgba(0, 0, 0, 0.75) !important;
}
body:not(.dark) .service-panel h3 {
	color: var(--text, #1a1a1a) !important;
}
body:not(.dark) .service-check-list li,
body:not(.dark) .service-panel p {
	color: rgba(0, 0, 0, 0.75) !important;
}
body:not(.dark) .timeline-content h4 {
	color: var(--text, #1a1a1a) !important;
}
body:not(.dark) .timeline-content p {
	color: rgba(0, 0, 0, 0.75) !important;
}
/* Animated Gauge */
.lighthouse-anim__svg path:last-child {
	stroke-dasharray: 235;
	stroke-dashoffset: 235;
	animation: draw-gauge 2.5s 1.5s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes draw-gauge {
	to {
		stroke-dashoffset: 0;
	}
}
/* Gauge Number Counting effect via pulse */
.lighthouse-anim__score {
	animation: score-pop 0.5s 3.5s backwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes score-pop {
	0% {
		transform: scale(0.5);
		opacity: 0;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}
/* Typing Effect for Search Bar */
.ranking-anim__search span {
	display: inline-block;
	overflow: hidden;
	white-space: nowrap;
	border-right: 2px solid #333;
	width: 0;
	vertical-align: bottom;
	animation:
		type-search 1.5s 0.2s steps(18, end) forwards,
		blink-caret 0.75s step-end infinite;
}
@keyframes type-search {
	from {
		width: 0;
	}
	to {
		width: 148px;
	}
	/* Exact width for 'seo agency near me' */
}
@keyframes blink-caret {
	from,
	to {
		border-color: transparent;
	}
	50% {
		border-color: #333;
	}
}
/* Search Result Pop-up */
.ranking-anim__result {
	opacity: 0;
	transform: translateY(15px);
	animation: reveal-search-result 0.5s 1.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes reveal-search-result {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
/* Geo Grid Pulsing Nodes */
.authority-anim g circle:not([stroke]) {
	transform-origin: center;
	transform-box: fill-box;
	animation: pulse-geo-node 3s infinite alternate;
}
.authority-anim g circle:nth-child(3n) {
	animation-delay: 0.2s;
}
.authority-anim g circle:nth-child(4n) {
	animation-delay: 0.5s;
}
.authority-anim g circle:nth-child(5n) {
	animation-delay: 0.8s;
}
.authority-anim g circle[fill="#eab308"] {
	animation: pulse-geo-node-gold 2s infinite alternate;
	animation-delay: 1s;
}
@keyframes pulse-geo-node {
	0% {
		transform: scale(1);
		filter: drop-shadow(0 0 0px rgba(16, 185, 129, 0));
	}
	100% {
		transform: scale(1.15);
		filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.8));
	}
}
@keyframes pulse-geo-node-gold {
	0% {
		transform: scale(1);
		filter: drop-shadow(0 0 0px rgba(234, 179, 8, 0));
	}
	100% {
		transform: scale(1.2);
		filter: drop-shadow(0 0 10px rgba(234, 179, 8, 1));
	}
}
/* Stat Counters fade in */
.analytics-stat-val {
	opacity: 0;
	animation: fade-in-stat 1s 2s forwards;
}
.analytics-stat:last-child .analytics-stat-val {
	animation-delay: 2.2s;
}
@keyframes fade-in-stat {
	from {
		opacity: 0;
		transform: translateY(5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
/* === Style Block 2 === */
.industry-card {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	transition: all 0.3s ease;
}
body.dark .industry-card {
	border-color: rgba(255, 255, 255, 0.05);
	background: rgba(255, 255, 255, 0.01);
}
.industry-card:hover {
	transform: translateY(-4px);
	border-color: var(--flame);
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}
body.dark .industry-card:hover {
	background: rgba(255, 255, 255, 0.03);
}
.industry-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.03);
	color: var(--flame);
	margin-bottom: 16px;
}
body.dark .industry-icon {
	background: rgba(255, 255, 255, 0.05);
}
.industry-title {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 8px;
}
.industry-desc {
	font-size: 0.875rem;
	color: rgba(0, 0, 0, 0.6);
}
body.dark .industry-desc {
	color: rgba(255, 255, 255, 0.6);
}
/* === Style Block 3 === */
.services-tab-container {
	display: flex;
	gap: 40px;
	max-width: 1100px;
	margin: 0 auto;
	background: var(--bg);
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.05);
}
body.dark .services-tab-container {
	border-color: rgba(255, 255, 255, 0.05);
}
.services-tabs {
	flex: 0 0 280px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	border-right: 1px solid rgba(0, 0, 0, 0.05);
	padding-right: 24px;
	max-height: 600px;
	overflow-y: auto;
}
body.dark .services-tabs {
	border-right-color: rgba(255, 255, 255, 0.05);
}
/* Custom scrollbar for tabs */
.services-tabs::-webkit-scrollbar {
	width: 4px;
}
.services-tabs::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.1);
	border-radius: 4px;
}
body.dark .services-tabs::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.1);
}
.service-tab {
	padding: 12px 16px;
	text-align: left;
	background: none;
	border: none;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 500;
	color: rgba(0, 0, 0, 0.6);
	cursor: pointer;
	transition: all 0.2s ease;
}
body.dark .service-tab {
	color: rgba(255, 255, 255, 0.6);
}
.service-tab:hover {
	color: var(--text);
	background: rgba(0, 0, 0, 0.03);
}
body.dark .service-tab:hover {
	background: rgba(255, 255, 255, 0.03);
}
.service-tab.active {
	color: #fff;
	background: var(--flame);
	font-weight: 600;
}
body.dark .service-tab.active {
	color: #fff;
}
.services-content-panels {
	flex: 1;
	position: relative;
	min-height: 400px;
}
.service-panel {
	display: none;
	animation: fadeInPanel 0.4s ease forwards;
}
.service-panel.active {
	display: block;
}
@keyframes fadeInPanel {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.service-panel h3 {
	font-size: 1.75rem;
	margin-bottom: 16px;
	color: var(--text);
}
.service-panel p {
	font-size: 1.1rem;
	color: rgba(0, 0, 0, 0.65);
	margin-bottom: 32px;
	line-height: 1.6;
}
body.dark .service-panel p {
	color: rgba(255, 255, 255, 0.65);
}
.service-check-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.service-check-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 1rem;
	line-height: 1.5;
	padding: 16px;
	background: rgba(0, 0, 0, 0.02);
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.03);
}
body.dark .service-check-list li {
	background: rgba(255, 255, 255, 0.02);
	border-color: rgba(255, 255, 255, 0.03);
}
.service-check-list svg {
	flex-shrink: 0;
	color: var(--flame);
	margin-top: 2px;
}
@media (max-width: 768px) {
	.services-tab-container {
		flex-direction: column;
		padding: 24px;
	}
	.services-tabs {
		flex: none;
		border-right: none;
		border-bottom: 1px solid rgba(0, 0, 0, 0.05);
		padding-right: 0;
		padding-bottom: 24px;
		max-height: 300px;
	}
}
/* === Style Block 4 === */
.timeline {
	display: flex;
	flex-direction: column;
	gap: 24px;
	position: relative;
	max-width: 800px;
}
.timeline::before {
	content: '';
	position: absolute;
	left: 24px;
	top: 12px;
	bottom: 12px;
	width: 2px;
	background: rgba(0, 0, 0, 0.05);
}
body.dark .timeline::before {
	background: rgba(255, 255, 255, 0.05);
}
.timeline-item {
	display: flex;
	gap: 24px;
	position: relative;
}
.timeline-dot {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--bg);
	border: 2px solid var(--flame);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: var(--flame);
	flex-shrink: 0;
	z-index: 2;
}
.timeline-content {
	background: rgba(0, 0, 0, 0.02);
	border: 1px solid rgba(0, 0, 0, 0.03);
	padding: 24px;
	border-radius: 16px;
	flex: 1;
}
body.dark .timeline-content {
	background: rgba(255, 255, 255, 0.02);
	border-color: rgba(255, 255, 255, 0.03);
}
.timeline-content h4 {
	font-size: 1.25rem;
	margin-bottom: 8px;
}
.timeline-content p {
	color: rgba(0, 0, 0, 0.6);
	margin: 0;
}
body.dark .timeline-content p {
	color: rgba(255, 255, 255, 0.6);
}
/* KPIs Grid */
.kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-top: 48px;
}
.kpi-card {
	padding: 24px;
	border-radius: 16px;
	background: var(--bg-alt);
	border: 1px solid rgba(0, 0, 0, 0.05);
	text-align: center;
}
body.dark .kpi-card {
	border-color: rgba(255, 255, 255, 0.05);
}
.kpi-card svg {
	color: var(--flame);
	margin-bottom: 12px;
}
.kpi-card h4 {
	font-size: 1.1rem;
	font-weight: 600;
}
/* === Style Block 5 === */
/* === Tools Grid and Badges === */
.tools-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.tool-badge {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.65);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  max-width: 1000px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-badge svg {
  color: rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

body.dark .tool-badge {
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}

.tool-badge.active,
.tool-badge:hover {
  border-color: var(--flame);
  color: var(--flame);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.tool-badge.active svg,
.tool-badge:hover svg {
  color: var(--flame);
}

/* === Style Block 6 === */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

body.dark .case-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: var(--flame);
  background: var(--bg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.case-metric {
  font-size: 3rem;
  font-weight: 700;
  color: var(--flame);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 8px;
}

.case-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.case-desc {
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.6;
  margin-bottom: 24px;
}

body.dark .case-desc {
  color: rgba(255, 255, 255, 0.65);
}
