:root {
	--bs-font-sans-serif: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
		"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

	--bs-primary: #292A3A;
	--bs-primary-rgb: 41, 42, 58;

	--bs-secondary: #333549;
	--bs-secondary-rgb: 51, 53, 73;

	--bs-tertiary: #3F4257;
	--bs-tertiary-rgb: 63, 66, 87;

	--bs-white: #ffffff;
	--bs-gray: #3F4257;
	--bs-dark: #212529;

	--bs-border-color: #dee2e6;
	--bs-border-radius: 0.5rem;

	--bs-body-font-family: var(--bs-font-sans-serif);
	--bs-body-font-size: 1rem;
	--bs-body-font-weight: 400;
	--bs-body-line-height: 1.5;
	--bs-body-color: #212529;
	--bs-body-bg: #fff;
}


/* =========================================================
   Base
   ========================================================= */

html {
	height: 100%;
	scroll-padding-top: calc(4.5rem - 1px);
	scroll-behavior: smooth;
}

body {
	overflow-x: hidden;
}

a {
	transition:
		color 0.25s ease,
		background-color 0.25s ease,
		border-color 0.25s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease;
}


/* =========================================================
   Page Sections
   ========================================================= */

.page-section {
	position: relative;
	padding: 4rem 0;
}

.page-section .page-section-heading {
	font-size: 2.25rem;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -1px;
	color: var(--bs-primary);
}


/* =========================================================
   Divider
   ========================================================= */

.divider-custom {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	margin: 1.25rem 0 1.5rem;
}

.divider-custom .divider-custom-line {
	width: 100%;
	max-width: 7rem;
	height: 0.25rem;

	background-color: #ffffff;
	border-radius: 1rem;
}

.divider-custom .divider-custom-line:first-child {
	margin-right: 1rem;
}

.divider-custom .divider-custom-line:last-child {
	margin-left: 1rem;
}

.divider-custom .divider-custom-icon {
	color: #ffffff;
	font-size: 2rem;
}


/* =========================================================
   Masthead / Hero
   ========================================================= */

.masthead {
	padding-top: 3rem;
	padding-bottom: 3rem;

	background-color: var(--bs-primary);
	color: var(--bs-white);
}

.masthead .masthead-heading {
	font-size: 2.75rem;
	line-height: 1;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.masthead .masthead-subheading {
	font-size: 1.25rem;
	font-weight: 400;
	letter-spacing: 0.5px;
	line-height: 1.8;
}

.masthead .masthead-avatar {
	width: min(20rem, 80vw);
	height: auto;

	transition:
		transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		filter 0.35s cubic-bezier(0.4, 0, 0.2, 1);

	filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}


/* =========================================================
   Hero CTA
   ========================================================= */

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;

	gap: 1rem;
	margin-top: 2rem;
}

.btn-primary-custom,
.btn-outline-custom {
	display: inline-block;

	margin: 0.5rem;
	padding: 12px 35px;

	border-radius: 50px;

	color: #ffffff;

	font-size: 1rem;
	font-weight: 600;

	text-decoration: none;

	transition:
		transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
		background-color 0.25s ease,
		border-color 0.25s ease;
}

.btn-primary-custom {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;

	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline-custom {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.8);
}


/* =========================================================
   Skills
   ========================================================= */

.skills-section {
	overflow: hidden;
}

.skills-grid {
	max-width: 1100px;
	margin-right: auto;
	margin-left: auto;
}


/* =========================================================
   Skill Card
   ========================================================= */

.skill-card {
	--card-border: rgba(255, 255, 255, 0.08);
	--card-border-hover: rgba(255, 255, 255, 0.18);

	position: relative;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	height: 100%;
	min-height: 190px;

	padding: 1.75rem 1rem 1.35rem;

	overflow: hidden;

	background:
		linear-gradient(145deg,
			rgba(63, 66, 87, 0.72),
			rgba(51, 53, 73, 0.45));

	border: 1px solid var(--card-border);
	border-radius: 16px;

	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);

	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);

	transition:
		transform 0.25s ease,
		border-color 0.25s ease,
		background 0.25s ease,
		box-shadow 0.25s ease;
}


/* =========================================================
   Skill Card Glow
   ========================================================= */

.skill-card__glow {
	position: absolute;
	top: -80px;
	left: 50%;

	width: 130px;
	height: 130px;

	transform: translateX(-50%);

	border-radius: 50%;

	background: rgba(255, 255, 255, 0.08);

	filter: blur(35px);

	opacity: 0;

	pointer-events: none;

	transition: opacity 0.3s ease;
}


/* =========================================================
   Skill Icon
   ========================================================= */

.skill-card__icon {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 68px;
	height: 68px;

	margin-bottom: 1rem;

	background: rgba(255, 255, 255, 0.035);

	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;

	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.05),
		0 8px 20px rgba(0, 0, 0, 0.08);

	transition:
		transform 0.25s ease,
		background 0.25s ease,
		border-color 0.25s ease;
}

.skill-card__icon i {
	color: rgba(255, 255, 255, 0.92);

	font-size: 2.25rem;

	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));

	transition:
		transform 0.25s ease,
		color 0.25s ease;
}


/* =========================================================
   Skill Content
   ========================================================= */

.skill-card__content {
	position: relative;
	z-index: 2;

	display: flex;
	flex-direction: column;
	align-items: center;

	width: 100%;

	text-align: center;
}

.skill-card__name {
	display: block;

	color: #ffffff;

	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.01em;
}

.skill-card__hint {
	display: block;

	max-width: 100%;
	margin-top: 0.55rem;

	overflow: hidden;

	background: transparent;
	color: rgba(255, 255, 255, 0.38);

	font-family:
		"SFMono-Regular",
		Consolas,
		"Liberation Mono",
		Menlo,
		monospace;

	font-size: 0.72rem;
	font-weight: 400;
	line-height: 1.2;

	text-overflow: ellipsis;
	white-space: nowrap;
}


/* =========================================================
   Skill Card Window Dots
   ========================================================= */

.skill-card__corner {
	position: absolute;
	top: 13px;
	right: 13px;

	width: 5px;
	height: 5px;

	border-radius: 50%;

	background: rgba(255, 255, 255, 0.18);

	box-shadow:
		-9px 0 0 rgba(255, 255, 255, 0.10),
		-18px 0 0 rgba(255, 255, 255, 0.06);

	transition: background 0.25s ease;
}


/* =========================================================
   Social Buttons
   ========================================================= */

.btn-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 3.25rem;
	height: 3.25rem;

	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;

	font-size: 1.25rem;

	transition:
		transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
		background-color 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease;
}


/* =========================================================
   Wave Divider
   ========================================================= */

.wave-divider {
	position: relative;

	height: 100px;

	overflow: hidden;
}

.wave-divider svg {
	position: absolute;
	bottom: 0;

	width: 100%;
	height: 100px;
}


/* =========================================================
   Hover Effects
   Only devices with an actual pointing device
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

	.masthead .masthead-avatar:hover {
		transform: translateY(-6px) scale(1.02);

		filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
	}

	.btn-primary-custom:hover {
		transform: translateY(-3px);

		box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);

		color: #ffffff;
		text-decoration: none;
	}

	.btn-outline-custom:hover {
		transform: translateY(-3px);

		background: rgba(255, 255, 255, 0.1);

		border-color: #ffffff;

		box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);

		color: #ffffff;
		text-decoration: none;
	}

	.btn-social:hover {
		transform: translateY(-4px);

		background: rgba(255, 255, 255, 0.1);

		border-color: rgba(255, 255, 255, 0.6);

		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
	}

	.skill-card:hover {
		transform: translateY(-6px);

		background:
			linear-gradient(145deg,
				rgba(63, 66, 87, 0.88),
				rgba(51, 53, 73, 0.62));

		border-color: var(--card-border-hover);

		box-shadow:
			0 18px 35px rgba(0, 0, 0, 0.20),
			inset 0 1px 0 rgba(255, 255, 255, 0.07);
	}

	.skill-card:hover .skill-card__glow {
		opacity: 1;
	}

	.skill-card:hover .skill-card__icon {
		transform: translateY(-3px);

		background: rgba(255, 255, 255, 0.065);

		border-color: rgba(255, 255, 255, 0.15);
	}

	.skill-card:hover .skill-card__icon i {
		transform: scale(1.08);

		color: #ffffff;
	}

	.skill-card:hover .skill-card__corner {
		background: rgba(255, 255, 255, 0.45);
	}
}


/* =========================================================
   Desktop
   ========================================================= */

@media (min-width: 992px) {

	.page-section .page-section-heading {
		font-size: 3rem;
		line-height: 1.1;
	}

	.masthead {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}

	.masthead .masthead-heading {
		font-size: 4rem;
		line-height: 1;
	}

	.masthead .masthead-subheading {
		font-size: 1.5rem;
	}
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 991.98px) {

	.page-section {
		padding: 3.5rem 0;
	}

	.skill-card {
		min-height: 175px;
		padding: 1.5rem 0.85rem 1.2rem;
	}

	.skill-card__icon {
		width: 62px;
		height: 62px;

		margin-bottom: 0.9rem;
	}

	.skill-card__icon i {
		font-size: 2rem;
	}

	.skill-card__name {
		font-size: 0.95rem;
	}
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767.98px) {

	.page-section {
		padding: 3rem 0;
	}

	.page-section .page-section-heading {
		font-size: 1.8rem;
		line-height: 1.25;
	}

	.masthead {
		padding-top: 2.5rem;
		padding-bottom: 2.5rem;
	}

	.masthead .masthead-heading {
		font-size: 2.5rem;
	}

	.masthead .masthead-subheading {
		font-size: 1.05rem;
		line-height: 1.6;
	}

	.masthead .masthead-avatar {
		width: min(16rem, 75vw);
	}

	.btn-primary-custom,
	.btn-outline-custom {
		padding: 10px 25px;

		font-size: 0.9rem;
	}

	.hero-cta {
		align-items: center;

		gap: 0.5rem;
	}

	.wave-divider {
		height: 50px;
	}

	.wave-divider svg {
		height: 50px;
	}
}


/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 575.98px) {

	.skills-grid {
		--bs-gutter-x: 0.75rem;
		--bs-gutter-y: 0.75rem;
	}

	.skill-card {
		min-height: 150px;

		padding: 1.25rem 0.6rem 1rem;

		border-radius: 13px;

		/*
		 * Blur effects can be relatively expensive on mobile GPUs.
		 * The visual difference on these small cards is minimal.
		 */
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.skill-card__icon {
		width: 52px;
		height: 52px;

		margin-bottom: 0.75rem;

		border-radius: 11px;
	}

	.skill-card__icon i {
		font-size: 1.7rem;
	}

	.skill-card__name {
		font-size: 0.85rem;
	}

	.skill-card__hint {
		margin-top: 0.4rem;

		font-size: 0.61rem;
	}

	.skill-card__corner {
		top: 10px;
		right: 10px;
	}

	.divider-custom .divider-custom-line {
		max-width: 5rem;
	}

	.divider-custom .divider-custom-icon {
		font-size: 1.6rem;
	}

	.divider-custom .divider-custom-line:first-child {
		margin-right: 0.75rem;
	}

	.divider-custom .divider-custom-line:last-child {
		margin-left: 0.75rem;
	}
}


/* =========================================================
   Very Small Mobile
   ========================================================= */

@media (max-width: 359.98px) {

	.skill-card {
		min-height: 140px;

		padding-right: 0.4rem;
		padding-left: 0.4rem;
	}

	.skill-card__name {
		font-size: 0.8rem;
	}

	.skill-card__hint {
		font-size: 0.56rem;
	}
}


/* =========================================================
   Accessibility
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.skill-card:hover,
	.skill-card:hover .skill-card__icon,
	.skill-card:hover .skill-card__icon i,
	.masthead .masthead-avatar:hover {
		transform: none;
	}
}
