/* Home page styles extracted from index.php. */
/* ════════════════════════════════
   HERO CTA BUTTONS
   Dark default: white pill / ghost with white border
   Light (tt-light-style-on): dark pill / ghost with dark border
   ════════════════════════════════ */
.ph-caption-cta {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 48px;
	flex-wrap: wrap;
}

.btn-hero-primary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 36px;
	background: #fff;
	color: #111;
	font-family: 'Syne', sans-serif;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.03em;
	text-decoration: none;
	border-radius: 100px;
	transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-hero-primary:hover {
	background: #ffc022;
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Light mode override */
body.tt-light-style-on .btn-hero-primary {
	background: #111;
	color: #fff;
}

body.tt-light-style-on .btn-hero-primary:hover {
	background: #333;
}

.btn-hero-ghost {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 34px;
	background: transparent;
	color: #fff;
	font-family: 'Syne', sans-serif;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.03em;
	text-decoration: none;
	border: 1.5px solid rgba(255, 255, 255, 0.45);
	border-radius: 100px;
	transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s;
}

.btn-hero-ghost:hover {
	border-color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-2px);
}

/* Light mode override */
body.tt-light-style-on .btn-hero-ghost {
	color: #132746;
	border-color: rgba(19, 39, 70, 0.65);
}

body.tt-light-style-on .btn-hero-ghost:hover {
	border-color: #132746;
	background: rgba(19, 39, 70, 0.06);
}

/* ════════════════════════════════
   HERO STATS BAR
   ════════════════════════════════ */
.ph-stats-bar {
	display: flex;
	gap: 40px;
	margin-top: 60px;
	padding-top: 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	flex-wrap: wrap;
}

body.tt-light-style-on .ph-stats-bar {
	border-top-color: rgba(19, 39, 70, 0.12);
}

.ph-stat-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ph-stat-number {
	font-family: 'Syne', sans-serif;
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 800;
	color: #fff;
	line-height: 1;
	letter-spacing: -0.02em;
}

body.tt-light-style-on .ph-stat-number {
	color: #132746;
}

.ph-stat-number span {
	color: rgba(255, 255, 255, 0.35);
}

body.tt-light-style-on .ph-stat-number span {
	color: rgba(19, 39, 70, 0.6);
}

.ph-stat-label {
	font-size: 12px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.45);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

body.tt-light-style-on .ph-stat-label {
	color: rgba(19, 39, 70, 0.65);
}

/* ════════════════════════════════
   PROJECTS SUBTITLE
   ════════════════════════════════ */
.projects-subtitle {
	max-width: 500px;
	margin-top: 16px;
	color: rgba(255, 255, 255, 0.5);
	font-size: 15px;
	line-height: 1.7;
}

body.tt-light-style-on .projects-subtitle {
	color: #444;
}

/* ════════════════════════════════
   TOOLS GRID — Pure CSS Grid (no Bootstrap)
   ════════════════════════════════ */
.tools-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-top: 20px;
}

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

@media (max-width: 640px) {
	.tools-grid {
		grid-template-columns: 1fr;
	}
}

.tools-grid>div {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* ════════════════════════════════
   STATS COUNTER SECTION
   Dark: white numbers on dark bg
   Light: dark numbers on light bg
   ════════════════════════════════ */
.home-stats-section {
	padding: 80px 0;
}

.home-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	overflow: hidden;
}

@media (max-width: 768px) {
	.home-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 420px) {
	.home-stats-grid {
		grid-template-columns: 1fr;
	}
}

body.tt-light-style-on .home-stats-grid {
	border-color: rgba(19, 39, 70, 0.12);
	background: rgba(19, 39, 70, 0.03);
}

.stat-card {
	padding: 50px 30px;
	background: rgba(255, 255, 255, 0.03);
	text-align: center;
	position: relative;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	transition: background 0.3s;
}

.stat-card:last-child {
	border-right: none;
}

@media (max-width: 768px) {
	.stat-card:nth-child(2) {
		border-right: none;
	}

	.stat-card:nth-child(3) {
		border-right: 1px solid rgba(255, 255, 255, 0.08);
	}

	.stat-card {
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}
}

body.tt-light-style-on .stat-card {
	background: rgba(255, 255, 255, 0.6);
	border-right-color: rgba(19, 39, 70, 0.1);
}

@media (max-width: 768px) {
	body.tt-light-style-on .stat-card:nth-child(3) {
		border-right-color: rgba(19, 39, 70, 0.1);
	}

	body.tt-light-style-on .stat-card {
		border-bottom-color: rgba(19, 39, 70, 0.1);
	}
}

.stat-card:hover {
	background: rgba(255, 255, 255, 0.06);
}

body.tt-light-style-on .stat-card:hover {
	background: rgba(255, 255, 255, 0.85);
}

.stat-card-number {
	font-family: 'Syne', sans-serif;
	font-size: clamp(40px, 5vw, 68px);
	font-weight: 800;
	color: #fff;
	line-height: 1;
	letter-spacing: -0.03em;
	margin-bottom: 10px;
}

body.tt-light-style-on .stat-card-number {
	color: #132746;
}

.stat-card-number .stat-suffix {
	font-size: 0.55em;
	color: rgba(255, 255, 255, 0.35);
	vertical-align: super;
}

body.tt-light-style-on .stat-card-number .stat-suffix {
	color: rgba(19, 39, 70, 0.6);
}

.stat-card-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: rgba(255, 255, 255, 0.38);
}

body.tt-light-style-on .stat-card-label {
	color: rgba(19, 39, 70, 0.65);
}

/* ════════════════════════════════
   MODERN TOGGLE (Human Verification)
   ════════════════════════════════ */
.toggle-verify-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
	cursor: pointer;
	user-select: none;
}

.toggle-verify-wrap input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.toggle-track {
	width: 52px;
	height: 28px;
	background: rgba(255, 255, 255, 0.13);
	border: 1.5px solid rgba(255, 255, 255, 0.28);
	border-radius: 100px;
	position: relative;
	transition: background 0.3s, border-color 0.3s;
	flex-shrink: 0;
}

body.tt-light-style-on .toggle-track {
	background: rgba(19, 39, 70, 0.08);
	border-color: rgba(19, 39, 70, 0.45);
}

.toggle-thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	background: rgba(255, 255, 255, 0.65);
	border-radius: 50%;
	transition: left 0.3s cubic-bezier(.4, 0, .2, 1), background 0.3s;
}

body.tt-light-style-on .toggle-thumb {
	background: rgba(19, 39, 70, 0.6);
}

/* Checked — dark mode */
.toggle-verify-wrap input:checked~.toggle-track {
	background: rgba(255, 255, 255, 0.88);
	border-color: rgba(255, 255, 255, 0.95);
}

.toggle-verify-wrap input:checked~.toggle-track .toggle-thumb {
	left: 27px;
	background: #111;
}

/* Checked — light mode */
body.tt-light-style-on .toggle-verify-wrap input:checked~.toggle-track {
	background: #132746;
	border-color: #132746;
}

body.tt-light-style-on .toggle-verify-wrap input:checked~.toggle-track .toggle-thumb {
	left: 27px;
	background: #fff;
}

.toggle-verify-label {
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.62);
	letter-spacing: 0.02em;
	transition: color 0.3s;
}

body.tt-light-style-on .toggle-verify-label {
	color: rgba(19, 39, 70, 0.6);
}

.toggle-verify-wrap:has(input:checked) .toggle-verify-label {
	color: rgba(255, 255, 255, 0.92);
}

body.tt-light-style-on .toggle-verify-wrap:has(input:checked) .toggle-verify-label {
	color: #132746;
}

.toggle-verified-icon {
	display: none;
	color: #4caf50;
	font-size: 15px;
	margin-left: 4px;
}

.toggle-verify-wrap:has(input:checked) .toggle-verified-icon {
	display: inline;
}

/* ════════════════════════════════
   FORM & MISC
   ════════════════════════════════ */
#submit-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ════════════════════════════════
   HOME BLOG SECTION
   ════════════════════════════════ */
.home-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-top: 16px;
}

@media (max-width: 1024px) {
	.home-blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.home-blog-grid {
		grid-template-columns: 1fr;
	}
}

.home-blog-card {
	display: flex;
	flex-direction: column;
	border-radius: 16px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s, background 0.3s;
}

body.tt-light-style-on .home-blog-card {
	background: rgba(255, 255, 255, 0.7);
	border-color: rgba(19, 39, 70, 0.09);
}

.home-blog-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

body.tt-light-style-on .home-blog-card:hover {
	box-shadow: 0 20px 60px rgba(19,39,70,0.12);
}

.home-blog-card-img-wrap {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.home-blog-card-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}

.home-blog-card:hover .home-blog-card-img-wrap img {
	transform: scale(1.05);
}

.home-blog-card-body {
	padding: 28px 28px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 10px;
}

.home-blog-card-cat {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #ffc022;
	text-decoration: none;
	transition: opacity 0.2s;
}

.home-blog-card-cat:hover {
	opacity: 0.75;
}

body.tt-light-style-on .home-blog-card-cat {
	color: #e6a800;
}

.home-blog-card-title {
	font-family: 'Syne', sans-serif;
	font-size: clamp(17px, 2vw, 21px);
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
}

.home-blog-card-title a {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s;
}

.home-blog-card-title a:hover {
	color: #ffc022;
}

body.tt-light-style-on .home-blog-card-title a {
	color: #132746;
}

body.tt-light-style-on .home-blog-card-title a:hover {
	color: #e6a800;
}

.home-blog-card-excerpt {
	font-size: 14px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.48);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.tt-light-style-on .home-blog-card-excerpt {
	color: rgba(19, 39, 70, 0.58);
}

.home-blog-card-meta {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

body.tt-light-style-on .home-blog-card-meta {
	border-top-color: rgba(19, 39, 70, 0.08);
}

.home-blog-card-date {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.35);
	display: flex;
	align-items: center;
	gap: 6px;
}

body.tt-light-style-on .home-blog-card-date {
	color: rgba(19, 39, 70, 0.5);
}

.home-blog-card-link {
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color 0.2s, gap 0.2s;
	font-family: 'Syne', sans-serif;
	letter-spacing: 0.02em;
}

.home-blog-card-link:hover {
	color: #ffc022;
	gap: 10px;
}

body.tt-light-style-on .home-blog-card-link {
	color: #132746;
}

body.tt-light-style-on .home-blog-card-link:hover {
	color: #e6a800;
}
