/* ============================================
   Tamil Soft Tech — Professional Enhancements
   ============================================ */

:root {
	--brand: #EC1C24;
	--brand-dark: #c41219;
	--ink: #26313C;
	--ink-soft: #3a4652;
	--muted: #6b7580;
	--surface: #f7f8fa;
	--white: #ffffff;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 92px;
}

body {
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, .section-title h3,
.hero-area .hero-content h1,
.about-content h2 {
	font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
	letter-spacing: -0.02em;
}

/* Skip link */
.skip-link {
	position: absolute;
	left: 16px;
	top: -48px;
	z-index: 100000;
	background: var(--brand);
	color: #fff;
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 600;
}
.skip-link:focus {
	top: 12px;
	color: #fff;
}

/* Scroll progress */
.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	z-index: 100001;
	background: linear-gradient(90deg, var(--brand), #ff6b6b, var(--ink));
	box-shadow: 0 0 12px #ec1c2480;
	pointer-events: none;
}

/* Preloader */
.preloader-area {
	position: fixed;
	inset: 0;
	background: #0f151b;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.preloader-area.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.loader-brand {
	position: relative;
	width: 92px;
	height: 92px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.loader-brand span {
	color: #fff;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: 1px;
	z-index: 1;
}
.loader-ring,
.loader-ring::after {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 3px solid transparent;
}
.loader-ring {
	border-top-color: var(--brand);
	animation: spin 1s linear infinite;
}
.loader-ring::after {
	content: "";
	inset: 8px;
	border-bottom-color: #fff;
	animation: spin 1.4s linear infinite reverse;
}
@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Header polish */
.header {
	backdrop-filter: saturate(140%) blur(0);
}
.header.sticky {
	backdrop-filter: saturate(160%) blur(14px);
	background: rgba(255, 255, 255, 0.92) !important;
	box-shadow: 0 8px 30px rgba(15, 21, 27, 0.08) !important;
	animation: none !important;
	z-index: 90000;
}
@media (min-width: 992px) {
	.header .main-menu {
		margin-right: 6px;
	}
	.header .nav-item .navigation li {
		margin-right: 18px;
	}
}
.header .navigation li a {
	position: relative;
}
.header .navigation li a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 18px;
	width: 0;
	height: 2px;
	background: var(--brand);
	border-radius: 2px;
	transition: width 0.35s var(--ease);
}
.header .navigation li a:hover::after,
.header .navigation li a.active::after,
.header .navigation li.active a::after {
	width: 100%;
}
.header-cta {
	float: right;
	margin-top: 16px;
	margin-left: 18px;
}
.header-cta .theme-btn {
	padding: 10px 22px;
	font-size: 13px;
	box-shadow: 0 10px 22px -10px #ec1c2470;
}
.header.sticky .header-cta {
	margin-top: 10px;
}

/* Hero */
.hero-area {
	min-height: 640px;
	height: auto;
}
.hero-slider .single-slider {
	min-height: 640px;
	height: auto;
	padding: 70px 0 110px;
	display: flex;
	align-items: center;
}
.hero-visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hero-visual img {
	position: relative;
	z-index: 1;
	animation: floatY 5.5s ease-in-out infinite;
	filter: drop-shadow(0 30px 40px rgba(38, 49, 60, 0.18));
}
.hero-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(2px);
	pointer-events: none;
}
.hero-orb.one {
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, #ec1c2430 0%, transparent 70%);
	top: -30px;
	right: 20px;
	animation: pulseOrb 6s ease-in-out infinite;
}
.hero-orb.two {
	width: 160px;
	height: 160px;
	background: radial-gradient(circle, #26313c22 0%, transparent 70%);
	bottom: 10px;
	left: 10px;
	animation: pulseOrb 7s ease-in-out infinite reverse;
}
.hero-ring {
	position: absolute;
	width: 78%;
	height: 78%;
	border: 1px dashed #ec1c2440;
	border-radius: 50%;
	animation: spin 28s linear infinite;
	pointer-events: none;
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}
.theme-btn.ghost {
	background: transparent;
	color: var(--ink);
	border: 1.5px solid #d7dde3;
	box-shadow: none;
}
.theme-btn.ghost:hover {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}
.hero-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}
.hero-pills span {
	background: #fff !important;
	color: var(--ink) !important;
	letter-spacing: 0.3px !important;
	font-size: 12px !important;
	padding: 7px 14px !important;
	border-radius: 999px !important;
	border: 1px solid #eceff2;
	box-shadow: 0 8px 20px rgba(15, 21, 27, 0.06);
	font-weight: 600;
}
.hero-pills span i {
	color: var(--brand);
	margin-right: 6px;
}

@keyframes floatY {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-16px); }
}
@keyframes pulseOrb {
	0%, 100% { transform: scale(1); opacity: 0.85; }
	50% { transform: scale(1.18); opacity: 1; }
}

/* Reveal on scroll */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
	opacity: 1;
	transform: none;
}
.reveal-left {
	opacity: 0;
	transform: translateX(-32px);
	transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-right {
	opacity: 0;
	transform: translateX(32px);
	transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-left.is-visible,
.reveal-right.is-visible {
	opacity: 1;
	transform: none;
}
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* Shine hover */
.shine {
	position: relative;
	overflow: hidden;
}
.shine::after {
	content: "";
	position: absolute;
	top: 0;
	left: -120%;
	width: 70%;
	height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255,255,255,0.28), transparent);
	transform: skewX(-20deg);
	pointer-events: none;
}
.shine:hover::after {
	animation: shineSweep 0.85s var(--ease);
}
@keyframes shineSweep {
	to { left: 140%; }
}

/* Product card with two CTAs (e.g. Magizh Clothes) */
.products-area .product-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.products-area .product-bottom a.product-link-secondary {
	background: transparent;
	color: var(--accent-dark);
	border: 1px solid var(--accent-dark);
}
.products-area .product-bottom a.product-link-secondary:hover {
	background: var(--accent-soft);
	color: var(--accent-dark);
}

/* Services / products / packages extra polish */
.service-area .single-service,
.products-area .single-product,
.packages-area .single-package,
.card,
.client-logo-item {
	border-radius: 16px;
}
.service-area .single-service:hover .service-bottom a {
	transform: translateX(4px);
}

/* Process */
.process-area {
	padding: 90px 0 100px;
	background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
	position: relative;
	overflow: hidden;
}
.process-area::before {
	content: "";
	position: absolute;
	width: 420px;
	height: 420px;
	right: -160px;
	top: -80px;
	background: radial-gradient(circle, #ec1c2412 0%, transparent 70%);
	pointer-events: none;
}
.process-track {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: 20px;
}
.process-track::before {
	content: "";
	position: absolute;
	top: 46px;
	left: 8%;
	right: 8%;
	height: 2px;
	background: repeating-linear-gradient(90deg, #ec1c24 0 12px, transparent 12px 22px);
	opacity: 0.25;
	z-index: 0;
}
.process-step {
	background: #fff;
	border: 1px solid #eef1f4;
	border-radius: 18px;
	padding: 28px 22px 26px;
	text-align: center;
	position: relative;
	z-index: 1;
	box-shadow: 0 16px 40px rgba(15, 21, 27, 0.06);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.process-step:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 50px rgba(236, 28, 36, 0.14);
}
.process-num {
	width: 52px;
	height: 52px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, var(--brand), var(--ink));
	box-shadow: 0 10px 20px -8px #ec1c24;
}
.process-step h4 {
	font-size: 18px;
	margin-bottom: 8px;
	color: var(--ink);
}
.process-step p {
	color: var(--muted);
	line-height: 1.6;
}

/* Tech marquee */
.tech-marquee {
	background: var(--ink);
	overflow: hidden;
	padding: 18px 0;
	position: relative;
}
.tech-marquee::before,
.tech-marquee::after {
	content: "";
	position: absolute;
	top: 0;
	width: 80px;
	height: 100%;
	z-index: 2;
}
.tech-marquee::before {
	left: 0;
	background: linear-gradient(90deg, var(--ink), transparent);
}
.tech-marquee::after {
	right: 0;
	background: linear-gradient(270deg, var(--ink), transparent);
}
.marquee-track {
	display: flex;
	width: max-content;
	animation: marquee 28s linear infinite;
}
.marquee-track span {
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.4px;
	padding: 0 28px;
	white-space: nowrap;
	font-size: 14px;
	opacity: 0.88;
}
.marquee-track span i {
	color: var(--brand);
	margin-right: 8px;
}
@keyframes marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* Packages CTA */
.package-cta {
	margin-top: 22px;
}
.package-cta .theme-btn {
	width: 100%;
	text-align: center;
	padding: 12px 20px;
}
.packages-area .single-package.active .package-cta .theme-btn {
	background: var(--brand);
}
.packages-area .single-package.active .package-cta .theme-btn:hover {
	background: #fff;
	color: var(--ink);
}

/* CTA pulse */
.cta-section .cta-content h3 {
	font-size: 36px;
	letter-spacing: -0.03em;
	font-weight: 800;
}
.cta-section .theme-btn {
	animation: ctaPulse 2.8s ease-in-out infinite;
}
@keyframes ctaPulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(236, 28, 36, 0.45); }
	70% { box-shadow: 0 0 0 16px rgba(236, 28, 36, 0); }
}

/* WhatsApp float */
.whatsapp-float {
	position: fixed;
	right: 22px;
	bottom: 108px;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #25D366;
	color: #fff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	z-index: 99990;
	box-shadow: 0 12px 28px rgba(37, 211, 102, 0.38);
	transition: transform 0.3s var(--ease);
}
.whatsapp-float:hover {
	transform: scale(1.08);
	color: #fff !important;
}
.whatsapp-float::before {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 2px solid #25D366;
	animation: waRipple 2s ease-out infinite;
}
@keyframes waRipple {
	0% { transform: scale(0.85); opacity: 0.7; }
	100% { transform: scale(1.35); opacity: 0; }
}

#scrollUp {
	border-radius: 50% !important;
	right: 22px !important;
	bottom: 42px !important;
	transition: transform 0.3s var(--ease), background 0.3s ease !important;
}
#scrollUp:hover {
	transform: translateY(-3px);
}

/* Contact heading polish */
.contact-area .top-content h3 {
	font-size: 34px;
}
.contact-area .top-content h3 span {
	display: block;
	width: fit-content;
	background: #fde8e9;
	color: var(--brand);
	font-size: 12px;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
	margin-bottom: 12px;
}

/* Footer hover lift */
.f-links li a {
	display: inline-block;
	transition: transform 0.25s var(--ease), color 0.25s ease;
}
.f-links li a:hover {
	transform: translateX(6px);
}

/* Team card overlay */
.card a {
	display: block;
	color: inherit;
}
.card h3, .card p {
	position: relative;
	z-index: 1;
}

/* Form focus glow */
.contact-area .contact-form .form-group input,
.contact-area .contact-form .form-group textarea {
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.contact-area .contact-form .form-group input:focus,
.contact-area .contact-form .form-group textarea:focus {
	transform: translateY(-1px);
}

/* About years badge pulse */
.about-img .activity span {
	color: var(--brand);
	animation: floatY 4s ease-in-out infinite;
}

/* 404 / success polish */
.error-page {
	min-height: 80vh;
	display: flex;
	align-items: center;
}

@media (max-width: 991px) {
	.header-cta {
		display: none;
	}
	.process-track {
		grid-template-columns: 1fr 1fr;
	}
	.process-track::before {
		display: none;
	}
	.hero-slider .single-slider,
	.hero-area {
		min-height: 0;
		height: auto;
	}
	.hero-slider .single-slider {
		padding: 36px 0 70px;
	}
	.hero-visual img {
		animation: none;
		max-width: 86%;
		margin: 0 auto;
		display: block;
	}
	.section-title h3 {
		font-size: 26px;
	}
	.cta-section .cta-content h3 {
		font-size: 26px;
	}
}

@media (max-width: 575px) {
	.process-track {
		grid-template-columns: 1fr;
	}
	.hero-actions {
		justify-content: center;
	}
	.hero-pills {
		justify-content: center;
	}
	.whatsapp-float {
		right: 16px;
		bottom: 96px;
		width: 50px;
		height: 50px;
	}
}

.header .navigation li a::before {
	display: none;
}

.section-title h3 {
	text-transform: none;
	font-weight: 800;
	letter-spacing: -0.03em;
	font-size: 34px;
}
.section-title h6 {
	letter-spacing: 0.4px;
}

.hero-slider.owl-carousel .owl-item {
	backface-visibility: hidden;
}

.about-content h2 {
	letter-spacing: -0.03em;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
	}
	.reveal, .reveal-left, .reveal-right {
		opacity: 1;
		transform: none;
	}
	html { scroll-behavior: auto; }
}
