/* Animation */
@keyframes fade-in {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}
@keyframes fade-bottom {
	0% {
		transform: translateY(50px);
		opacity: 0;
	}
	100% {
		transform: translateY(0);
		opacity: 1;
	}
}
@keyframes fade-left {
	0% {
		transform: translateX(-10px);
		opacity: 0;
	}
	100% {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes fade-right {
	0% {
		transform: translateX(20px);
		opacity: 0;
	}
	100% {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Header animation */
@keyframes fade-up {
	0% {
		transform: translateY(-10px);
		opacity: 0;
	}
	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

header .navbar.animate {
	animation: fade-up 0.5s ease-in;
}

/* ToolTip */

.tooltip {
	line-height: 1rem;
	border-radius: 0.5rem;
}
.tooltip-inner {
	line-height: 1rem;
}
.tooltip .tooltip-arrow {
	visibility: hidden;
}

/* hero */

#hero {
	min-height: 100vh;
	line-height: 2rem;
	max-width: 100%;
}
#hero .content.animate {
	animation: fade-left 1s ease-out;
}

#hero .hero-bottom-svg {
	opacity: 0.5;
	position: absolute;
	bottom: -50px;
	left: -150px;
}

#hero .subtitle {
	font-size: clamp(14px, 5vw, 16px);
	opacity: 0.6;
}

#hero h2 {
	font-size: clamp(40px, 8vw, 80px);
	color: var(--primary-color);
}

#hero h3 {
	font-size: clamp(40px, 8vw, 60px);
	/* color: var(--primary-color) ; */
	opacity: 0.5;
}

#hero p {
	margin: 20px 0 0;
	max-width: 640px;
	opacity: 0.8;
}

#hero .image img {
	box-shadow: 0 8px 56px rgba(15, 80, 100, 0.16);
	padding: 0;
	border: 3px solid var(--secondary-color);
	border-radius: 1rem;
}

#hero .image.animate img {
	animation: fade-in 1s ease-out;
	transition: box-shadow 0.3s;
}

#hero .image img:hover {
	cursor: pointer;
}

#hero .image.animate img:hover {
	box-shadow: 0 0 11px rgb(15 80 100 / 20%);
	filter: contrast(1.2);
	cursor: pointer;
}

#hero a.btn.social-icon {
	color: var(--primary-color);
	line-height: 0%;
	border-radius: 50%;
	margin-top: 50px;
	padding: 0.7rem;
	border: 1px solid var(--primary-color);
	transition: none;
}

#hero a.btn.social-icon img {
	width: 1em;
}

#hero a.btn.social-icon:hover {
	opacity: 0.8;
}

#hero a.btn {
	margin-top: 50px;
	padding: 0.7rem 1.75rem;
	border: 1px solid var(--primary-color);
	color: var(--text-color);
	border-radius: 0.75rem;
	transition: none;
}

#hero a.btn:focus {
	box-shadow: none;
}

#hero a.btn:hover {
	background-color: var(--secondary-color);
	color: var(--text-color);
	opacity: 0.9;
}

#hero a.btn.social-icon:hover {
	background-color: var(--background-color);
	opacity: 0.7;
}

#hero .hero-content > a {
	display: inline-block;
	text-decoration: none;
}

#hero .hero-content > a::after {
	content: "";
	display: block;
	width: 0;
	height: 2px;
	bottom: 0.37em;
	background-color: var(--primary-color);
	transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
	opacity: 0.5;
}

#hero .hero-content > a:hover::after,
#hero .hero-content > a:focus::after,
#hero .hero-content > a:active::after {
	width: 100%;
}

/* about me */
:is(#about, #sobre) h3 {
	color: var(--text-secondary-color);
}

:is(#about, #sobre) .image img {
	box-shadow: 0 8px 56px rgba(15, 80, 100, 0.16);
	transition: box-shadow 0.3s;
	padding: 0;
	border: 0;
}

:is(#about, #sobre) .image img:hover {
	box-shadow: 0 0 11px rgb(15 80 100 / 20%);
}

:is(#about, #sobre) ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(140px, 200px));
	gap: 0 10px;
	padding: 0;
	margin: 20px 0 0;
	overflow: hidden;
	list-style: none;
}

:is(#about, #sobre) ul li {
	position: relative;
	margin-bottom: 10px;
	padding-left: 20px;
}

:is(#about, #sobre) ul li::before {
	content: "▹";
	color: var(--text-secondary-color);
	position: absolute;
	left: 0;
}

:is(#about, #sobre) .content {
	font-weight: 500;
	opacity: 0.9;
	line-height: 1.7rem;
}

:is(#about, #sobre) a {
	display: inline-block;
	text-decoration: none;
}

:is(#about, #sobre) a::after {
	content: "";
	display: block;
	width: 0;
	height: 2px;
	bottom: 0.37em;
	background-color: var(--primary-color);
	transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
	opacity: 0.5;
}

:is(#about, #sobre) a:hover::after,
:is(#about, #sobre) a:focus::after,
:is(#about, #sobre) a:active::after {
	width: 100%;
}

/* experience */

:is(#experience, #experiencia) h3 {
	color: var(--text-secondary-color);
}

:is(#experience, #experiencia) {
	background-color: transparent;
}

:is(#experience, #experiencia) .tab-pane {
	opacity: 0.9;
}

:is(#experience, #experiencia) .tab-pane small {
	opacity: 0.8;
}

:is(#experience, #experiencia) .tab-pane ul {
	padding-top: 1%;
	padding-bottom: 1%;
}

:is(#experience, #experiencia)
	.experience-container
	.tab-content
	> .tab-pane
	p {
	padding: 1% 0;
	margin: 0;
}

:is(#experience, #experiencia) .experience-container {
	background-color: var(--secondary-color);
	border-radius: 0.75rem;
	box-shadow: 0 8px 56px rgb(15 80 100 / 16%);
}

:is(#experience, #experiencia) .nav-item .nav-link {
	color: var(--text-color);
	border-bottom: 2px solid transparent;
	border-radius: 0%;
	cursor: pointer;
}

:is(#experience, #experiencia) .nav-item .nav-link.active {
	color: color-mix(in lab, var(--text-color), var(--background-color) 20%);
	border-bottom: 2px solid
		color-mix(in lab, var(--text-color), var(--background-color) 20%);
}

:is(#experience, #experiencia) .nav-item .nav-link.active:hover {
	transition: none;
}

:is(#experience, #experiencia) .nav-item .nav-link:hover {
	border-bottom: 2px solid
		color-mix(in lab, var(--text-secondary-color), var(--background-color) 50%);
	color: var(--text-secondary-color);
}

:is(#experience, #experiencia) a {
	opacity: 0.9;
	display: inline-block;
	text-decoration: none;
}

:is(#experience, #experiencia) a::after {
	content: "";
	display: block;
	width: 0;
	height: 2px;
	bottom: 0.37em;
	background-color: var(--primary-color);
	transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
	opacity: 0.5;
}

:is(#experience, #experiencia) a:hover::after,
:is(#experience, #experiencia) a:focus::after,
:is(#experience, #experiencia) a:active::after {
	width: 100%;
}

:is(#experience, #experiencia) .experience-container .tab-content .tab-pane ul {
	overflow: hidden;
	list-style: none;
	margin-bottom: 0;
}

:is(#experience, #experiencia)
	.experience-container
	.tab-content
	.tab-pane
	ul
	li {
	position: relative;
	margin-bottom: 10px;
	padding-left: 20px;
}

:is(#experience, #experiencia)
	.experience-container
	.tab-content
	.tab-pane
	ul
	li::before {
	content: "▹";
	color: var(--text-secondary-color);
	position: absolute;
	left: 0;
}

:is(#experience, #experiencia)
	.experience-container
	.tab-content
	.tab-pane
	.featuredLink
	a::after {
	display: block;
	width: auto;
	height: auto;
	bottom: 0;
	background-color: transparent;
	transition: none;
	opacity: 1;
}

:is(#experience, #experiencia)
	.experience-container
	.tab-content
	.tab-pane
	.featuredLink
	a.btn {
	border: 1px solid var(--text-secondary-color);
	border-radius: 0.75rem;
	transition: none;
}

:is(#experience, #experiencia)
	.experience-container
	.tab-content
	.tab-pane
	.featuredLink
	a.btn:focus {
	box-shadow: none;
}

:is(#experience, #experiencia)
	.experience-container
	.tab-content
	.tab-pane
	.featuredLink
	a.btn:hover {
	transition: var(--transition);
	opacity: 0.7;
}

/* Education */

:is(#education, #educacion) .container > h3 {
	color: var(--text-secondary-color);
}

:is(#education, #educacion) .row .index {
	opacity: 0.8;
	padding: 13px 20px;
	line-height: 0%;
	border-radius: 50%;
	max-height: 50px;
	z-index: 2;
	background-color: var(--primary-color);
	color: var(--secondary-color);
	font-weight: bold;
}

:is(#education, #educacion) .card {
	background-color: var(--secondary-color);
}

:is(#education, #educacion) .card {
	border-radius: 1.5rem;
	box-shadow: 0 8px 56px rgb(15 80 100 / 16%);
	border: 2px solid var(--text-secondary-color);
	transition:
		box-shadow 0.2s linear,
		opacity 0.2s linear,
		transform 0.2s;
}

:is(#education, #educacion) .card .card-body {
	border-radius: 1.5rem;
	padding: 2rem;
}

@media all and (max-width: 768px) {
	:is(#education, #educacion) .card .card-body {
		padding: 2rem 1rem;
	}
}

:is(#education, #educacion) .card:hover {
	transition: 0.3s;
	box-shadow: 0 4px 11px rgb(15 80 100 / 16%);
	border: 2px solid var(--text-color);
}

:is(#education, #educacion) .card .card-body .education-content a {
	text-decoration: none;
	opacity: 0.9;
}

:is(#education, #educacion) .card .card-body > a h6 {
	display: inline-block;
	text-decoration: none;
}

:is(#education, #educacion) .card .card-body > a h6::after {
	content: "";
	display: block;
	width: 0;
	height: 2px;
	bottom: 0.37em;
	background-color: var(--primary-color);
	transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
	opacity: 0.5;
}

:is(#education, #educacion) .card .card-body > a h6:hover::after,
:is(#education, #educacion) .card .card-body > a h6:focus::after,
:is(#education, #educacion) .card .card-body > a h6:active::after {
	width: 100%;
}

:is(#education, #educacion) .card .card-body a.btn {
	opacity: 0.9;
	border: 1px solid var(--primary-color);
	color: var(--text-color);
	border-radius: 0.75rem;
	box-shadow: none;
	transition: none;
}

:is(#education, #educacion) .card .card-body a.btn:hover {
	opacity: 0.8;
}

/* achievements */

#achievements a {
	text-decoration: none;
}

#achievements h3 {
	color: var(--text-secondary-color);
}

#achievements .card {
	cursor: context-menu;
	background-color: var(--secondary-color);
	border-radius: 1rem;
	box-shadow: 0 0 36px rgba(0, 0, 0, 0.1);
	/* transform: translate3d(0, 0, 0); */
	transition:
		box-shadow 0.2s linear,
		opacity 0.2s linear;
	border: 2px solid transparent;
}

#achievements a.card {
	cursor: alias;
}

#achievements .card h5 {
	color: var(--text-color);
	opacity: 0.9;
}

#achievements .card:hover {
	border: 2px solid var(--text-color);
	transition: 0.3s;
}
#achievements .card:focus {
	border: 2px solid var(--text-color);
	transition: 0.3s;
}

#achievements .card-text {
	background-color: var(--secondary-color);
	color: var(--text-secondary-color);
}

#achievements img {
	border-radius: 0.7rem;
}

/* contact */

#contact h3 {
	color: var(--text-secondary-color);
}

#contact .btn {
	transition: opacity 0.3s;
	border-radius: 0.5rem;
	border-color: var(--primary-color);
	background-color: var(--secondary-color);
	color: var(--text-color);
}

#contact .btn:hover {
	opacity: 0.7;
}

#contact .btn:focus {
	box-shadow: none;
}

#contact form .form-control {
	background-color: var(--secondary-color);
	color: var(--text-color);
	border-radius: 0.7rem;
	border: 1px solid var(--text-secondary-color);
	box-shadow: 0 8px 56px rgb(15 80 100 / 5%);
}

#contact-form-status {
	position: fixed;
	bottom: 10px;
	right: 10px;
	z-index: 1;
	transform: translate3d(0, 0, 0);
}

#contact-form-status svg {
	height: 18px;
	width: 18px;
}

#contact-form-status button {
	border-radius: 50%;
	border: none;
	background-color: white;
	padding: 0.5rem;
	margin-left: 0.5rem;
	box-shadow: 0 8px 56px rgb(15 80 100 / 5%);
	font-size: 0.6rem;
}

#contact-form-status .alert {
	border-radius: 0.5rem;
	box-shadow: 0 8px 56px rgb(15 80 100 / 5%);
	padding: 0.5rem 1rem;
}
