/* MetaSoul — Software development company theme overrides */

:root {
	--ms-primary: #348fe2;
	--ms-primary-dark: #2a7bc4;
	--ms-accent: #00d4ff;
	--ms-dark: #1a2332;
	--ms-darker: #121a24;
	--ms-surface: #f4f7fb;
	--ms-border: rgba(52, 143, 226, 0.15);
	--ms-radius: 12px;
	--ms-shadow: 0 8px 32px rgba(26, 35, 50, 0.08);
	--ms-shadow-hover: 0 16px 48px rgba(52, 143, 226, 0.18);
}

body {
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header */
#header.header {
	background: rgba(26, 35, 50, 0.92) !important;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

#header .navbar-nav .nav-link {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
}

#header .navbar-nav .nav-link:hover,
#header .navbar-nav .nav-link.active {
	color: var(--ms-accent) !important;
}

/* Hero — software dev focus */
#home.home .content-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(18, 26, 36, 0.88) 0%, rgba(26, 35, 50, 0.75) 50%, rgba(52, 143, 226, 0.35) 100%);
}

#home .home-content {
	position: relative;
	z-index: 2;
	max-width: 820px;
}

#home .home-content h1 {
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 1rem;
}

#home .hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(0, 212, 255, 0.12);
	border: 1px solid rgba(0, 212, 255, 0.35);
	color: var(--ms-accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 8px 16px;
	border-radius: 50px;
	margin-bottom: 1.25rem;
}

#home .hero-badge i {
	font-size: 14px;
}

#home .home-content h3 {
	font-weight: 400;
	font-size: clamp(1.1rem, 2.5vw, 1.45rem);
	opacity: 0.95;
	line-height: 1.5;
}

#home .hero-tech-stack {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 1.75rem 0 1.5rem;
}

#home .hero-tech-stack span {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.9);
	font-size: 12px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 6px;
}

#home .home-content .btn-primary {
	background: var(--ms-primary);
	border-color: var(--ms-primary);
	padding: 12px 28px;
	font-weight: 600;
	border-radius: 8px;
}

#home .home-content .btn-outline-white {
	border-radius: 8px;
	padding: 12px 28px;
	font-weight: 600;
	border-width: 2px;
}

/* Section headers */
.section-label {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ms-primary);
	background: rgba(52, 143, 226, 0.1);
	padding: 6px 14px;
	border-radius: 6px;
	margin-bottom: 12px;
}

.content-title {
	font-weight: 700;
	letter-spacing: -0.02em;
}

.content-desc {
	color: #6c757d;
	font-size: 1.05rem;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

/* Services — dev cards */
#service .service {
	background: #fff;
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius);
	padding: 28px 24px;
	height: 100%;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	box-shadow: var(--ms-shadow);
}

#service .service:hover {
	transform: translateY(-4px);
	box-shadow: var(--ms-shadow-hover);
	border-color: rgba(52, 143, 226, 0.35);
}

#service .service .icon {
	background: linear-gradient(135deg, rgba(52, 143, 226, 0.12), rgba(0, 212, 255, 0.08));
	width: 64px;
	height: 64px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

#service .service .icon i {
	color: var(--ms-primary) !important;
	font-size: 26px !important;
}

#service .service .title {
	font-weight: 700;
	font-size: 1.15rem;
}

/* Portfolio — link cards */
#work.section-portfolio {
	background: var(--ms-surface);
	padding-top: 80px;
	padding-bottom: 90px;
}

.portfolio-grid {
	margin-top: 2rem;
}

a.portfolio-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius);
	overflow: hidden;
	text-decoration: none !important;
	color: inherit;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
	box-shadow: var(--ms-shadow);
}

a.portfolio-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--ms-shadow-hover);
	border-color: var(--ms-primary);
	color: inherit;
}

a.portfolio-card:hover .portfolio-card-link {
	color: var(--ms-primary);
	gap: 12px;
}

a.portfolio-card:hover .portfolio-card-media img {
	transform: scale(1.05);
}

a.portfolio-card:hover .portfolio-card-overlay {
	opacity: 1;
}

.portfolio-card-media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--ms-darker);
}

.portfolio-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.portfolio-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(18, 26, 36, 0.85) 0%, transparent 60%);
	opacity: 0.7;
	transition: opacity 0.3s ease;
	display: flex;
	align-items: flex-end;
	padding: 16px;
}

.portfolio-card-icon {
	width: 44px;
	height: 44px;
	background: var(--ms-primary);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 18px;
}

.portfolio-card-body {
	padding: 22px 24px 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.portfolio-card-type {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ms-primary);
	margin-bottom: 8px;
}

.portfolio-card-body h3 {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 10px;
	color: var(--ms-dark);
	line-height: 1.3;
}

.portfolio-card-body p {
	font-size: 14px;
	color: #6c757d;
	line-height: 1.6;
	margin: 0 0 14px;
	flex: 1;
}

.portfolio-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}

.portfolio-tags span {
	font-size: 11px;
	font-weight: 600;
	background: var(--ms-surface);
	color: #495057;
	padding: 4px 10px;
	border-radius: 4px;
	border: 1px solid #e9ecef;
}

.portfolio-card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ms-dark);
	transition: gap 0.2s ease, color 0.2s ease;
	margin-top: auto;
}

.portfolio-card-link i {
	font-size: 12px;
}

a.portfolio-card--demo {
	border-style: dashed;
	border-color: #ced4da;
}

a.portfolio-card--demo:hover {
	border-color: var(--ms-primary);
	border-style: solid;
}

a.portfolio-card--demo .portfolio-card-media::after {
	content: 'Demo on request';
	position: absolute;
	top: 14px;
	right: 14px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 4px;
	z-index: 2;
}

/* Milestone — dev metrics */
#milestone .milestone .number {
	color: var(--ms-accent);
}

/* About skills */
#about .skills-name {
	font-weight: 600;
	font-size: 13px;
}

/* Action box */
#action-box .action-box {
	align-items: center;
}

#action-box h3 {
	font-weight: 700;
}

/* Footer legal links — keep from legal-pages */
.footer-legal-links a {
	color: rgba(255, 255, 255, 0.85);
}

/* Nav CTA */
.nav-cta {
	padding: 8px 18px !important;
	font-weight: 700;
	border-radius: 8px;
	letter-spacing: 0.04em;
}

/* Trust bar */
.trust-bar {
	background: #fff;
	padding: 48px 0 40px;
	border-bottom: 1px solid #e9ecef;
}

.trust-stat {
	text-align: center;
	padding: 12px;
}

.trust-stat i {
	font-size: 28px;
	color: var(--ms-primary);
	margin-bottom: 10px;
	display: block;
}

.trust-stat strong {
	display: block;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--ms-dark);
	line-height: 1.2;
}

.trust-stat span {
	font-size: 13px;
	color: #6c757d;
}

.trust-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 24px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #e9ecef;
}

.trust-badges span {
	font-size: 14px;
	font-weight: 600;
	color: #495057;
}

.trust-badges i {
	color: var(--ms-success, #00acac);
	margin-right: 6px;
}

.trust-sectors {
	text-align: center;
	margin: 20px 0 0;
	font-size: 13px;
	color: #6c757d;
	letter-spacing: 0.02em;
}

/* Process */
.section-process {
	background: #fff;
	padding-bottom: 70px;
}

.process-timeline {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 2rem;
}

.process-step {
	background: var(--ms-surface);
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius);
	padding: 24px 20px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.process-step:hover {
	border-color: var(--ms-primary);
	box-shadow: var(--ms-shadow);
}

.process-num {
	font-size: 2rem;
	font-weight: 800;
	color: var(--ms-primary);
	opacity: 0.35;
	line-height: 1;
	margin-bottom: 8px;
}

.process-step h4 {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--ms-dark);
}

.process-step p {
	font-size: 14px;
	color: #6c757d;
	margin: 0;
	line-height: 1.55;
}

/* Tech stack */
.tech-stack-section {
	background: var(--ms-darker);
	color: #fff;
	padding: 70px 0;
}

.tech-stack-section .content-title,
.tech-stack-section .content-desc {
	color: #fff;
}

.tech-stack-section .section-label {
	background: rgba(0, 212, 255, 0.15);
	color: var(--ms-accent);
}

.tech-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	margin-top: 2rem;
}

.tech-item {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	padding: 20px 12px;
	text-align: center;
	transition: background 0.2s, border-color 0.2s;
}

.tech-item:hover {
	background: rgba(52, 143, 226, 0.2);
	border-color: var(--ms-primary);
}

.tech-item i {
	font-size: 28px;
	color: var(--ms-accent);
	display: block;
	margin-bottom: 10px;
}

.tech-item span {
	font-size: 12px;
	font-weight: 600;
}

/* Why us */
.section-why-us {
	padding: 80px 0;
}

.why-card {
	background: #fff;
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius);
	padding: 28px 22px;
	height: 100%;
	text-align: center;
	box-shadow: var(--ms-shadow);
	transition: transform 0.25s ease;
}

.why-card:hover {
	transform: translateY(-4px);
}

.why-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	background: linear-gradient(135deg, var(--ms-primary), var(--ms-accent));
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 22px;
}

.why-card h4 {
	font-weight: 700;
	font-size: 1.05rem;
	margin-bottom: 10px;
}

.why-card p {
	font-size: 14px;
	color: #6c757d;
	margin: 0;
	line-height: 1.6;
}

/* FAQ */
.section-faq {
	background: var(--ms-surface);
	padding: 80px 0;
}

.ms-faq-list {
	max-width: 760px;
	margin: 2rem auto 0;
}

.ms-faq-item {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: var(--ms-radius);
	margin-bottom: 12px;
	overflow: hidden;
}

.ms-faq-question {
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	padding: 18px 22px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--ms-dark);
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ms-faq-question::after {
	content: '+';
	font-size: 1.25rem;
	color: var(--ms-primary);
	font-weight: 400;
}

.ms-faq-item.is-open .ms-faq-question::after {
	content: '−';
}

.ms-faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.ms-faq-item.is-open .ms-faq-answer {
	max-height: 280px;
}

.ms-faq-answer p {
	padding: 0 22px 18px;
	margin: 0;
	font-size: 15px;
	color: #6c757d;
	line-height: 1.65;
}

/* Contact */
.section-contact {
	background: #fff;
	padding: 80px 0 90px;
}

.contact-info-card,
.contact-form-card {
	background: var(--ms-surface);
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius);
	padding: 32px 28px;
	height: 100%;
}

.contact-info-card h3 {
	font-weight: 700;
	margin-bottom: 12px;
}

.contact-details-list {
	list-style: none;
	padding: 0;
	margin: 24px 0;
}

.contact-details-list li {
	margin-bottom: 14px;
	font-size: 15px;
}

.contact-details-list i {
	width: 24px;
	margin-right: 8px;
}

.contact-quick-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hp-field {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.form-disclaimer a {
	color: var(--ms-primary);
}

/* Footer enhanced */
.footer-enhanced .footer-main {
	text-align: left;
	padding-bottom: 28px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 20px;
}

.footer-enhanced .footer-brand {
	justify-content: flex-start;
	margin-bottom: 12px;
}

.footer-about {
	font-size: 14px;
	opacity: 0.85;
	line-height: 1.6;
	max-width: 320px;
}

.footer-heading {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 16px;
	color: #fff;
}

.footer-links,
.footer-contact {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links li,
.footer-contact li {
	margin-bottom: 8px;
}

.footer-links a,
.footer-contact a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-size: 14px;
}

.footer-links a:hover,
.footer-contact a:hover {
	color: var(--ms-accent);
}

.footer-copy {
	font-size: 13px;
	opacity: 0.75;
	margin-bottom: 0;
}

/* Floating UI */
.back-to-top,
.fab-contact {
	position: fixed;
	z-index: 1040;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	transition: opacity 0.3s, transform 0.2s;
	text-decoration: none;
}

.back-to-top {
	right: 24px;
	bottom: 24px;
	background: var(--ms-dark);
	color: #fff;
	opacity: 0;
	visibility: hidden;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	transform: translateY(-3px);
	color: #fff;
}

.fab-contact {
	right: 24px;
	bottom: 84px;
	background: var(--ms-primary);
	color: #fff;
	font-size: 20px;
}

.fab-contact:hover {
	background: var(--ms-primary-dark);
	color: #fff;
	transform: scale(1.05);
}

.cookie-consent {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--ms-darker);
	color: #fff;
	padding: 16px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	z-index: 1050;
	transform: translateY(100%);
	transition: transform 0.35s ease;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.cookie-consent.is-visible {
	transform: translateY(0);
}

.cookie-consent p {
	margin: 0;
	font-size: 14px;
}

.cookie-consent a {
	color: var(--ms-accent);
}

@media (max-width: 991px) {
	.process-timeline {
		grid-template-columns: repeat(2, 1fr);
	}

	.tech-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	#home .hero-tech-stack {
		gap: 8px;
	}

	.portfolio-card-body h3 {
		font-size: 1.1rem;
	}

	.process-timeline {
		grid-template-columns: 1fr;
	}

	.tech-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.nav-cta {
		margin-top: 8px;
		width: 100%;
		text-align: center;
	}

	.fab-contact {
		right: 16px;
		bottom: 76px;
	}

	.back-to-top {
		right: 16px;
		bottom: 16px;
	}
}
