:root {
    --primary-color: rgb(255, 110, 91);
    --darker-primary-color: rgb(187, 80, 66);
    --card-color-dark: #1d1d1d;
    --card-color-shadow: #0a0a0a;
    --primary-color-rgb: 255, 110, 91;
	--bs-bg-dark: #1f1f1f;
    --bs-dark-rgb : 0, 0, 0;
}
.ubuntu-light {
  font-family: "Ubuntu", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.ubuntu-regular {
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.ubuntu-medium {
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.ubuntu-bold {
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.ubuntu-light-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.ubuntu-regular-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.ubuntu-medium-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.ubuntu-bold-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: italic;
}
.share-tech-mono-regular {
  font-family: "Share Tech Mono", monospace;
  font-weight: 400;
  font-style: normal;
}
.space-mono-regular {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

.space-mono-bold {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-style: normal;
}

.space-mono-regular-italic {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: italic;
}

.space-mono-bold-italic {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-style: italic;
}


.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

.form-group {
    margin-bottom: 1rem;
}

/* --- GENERAL STUFF --------------*/

html {
  scroll-behavior: smooth;
}

body {
    /* space mono regular */
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: normal;
}
::-moz-selection {
	background-color: var(--primary-color);
    color: white;
}
::selection {
	background-color: var(--primary-color);
    color: white;
}

a {
    color: var(--primary-color);
}
a:hover {
    color: var(--darker-primary-color);
}

/* cursor stuff */
body, a, button, input, textarea {
  cursor: none !important;
}
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;

    width: 8px;
    height: 8px;

    background: white;

    border-radius: 10%;
    border: 1px solid #2222223d;
    box-shadow: 0 0 0 2px black, 0 0 10px white;

    pointer-events: none;
    z-index: 9999;

    transform: translate(-50%, -50%) rotate(45deg);
    transition:
        transform 0.15s ease,
        width 0.15s ease,
        height 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}
.cursor-dot.hovered {
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 12px;
    height: 12px;
    background: rgba(var(--primary-color-rgb), 0.8);
    box-shadow: 0 0 0 2px black, 0 0 20px var(--primary-color);
}

#boot-loader {
  position: fixed;
  inset: 0;
  background: black;
  color: var(--primary-color);
  font-family: "Share Tech Mono", monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  font-size: 1.2rem;
  letter-spacing: 1px;
  transition: opacity 1s ease;
}

#boot-loader.hidden {
  opacity: 0;
  pointer-events: none;
}
#boot-text::after {
  content: "▌";
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media(max-width: 767px) {
    body, a, button, input, textarea {
        cursor: auto !important;
    }
    .cursor-dot {
        display: none;
    }
    #boot-loader{
        display: none;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Share Tech Mono", monospace;
    font-weight: 400;
    font-style: normal;
}

.btn {
    border-radius: 1em;
}

.caret {
  display:inline-block;
  width: 2px;       /* lățime bloc */
  height: 1.1em;
  margin-left: 8px;
  background: var(--primary-color);
  vertical-align: middle;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

@media(max-width: 767px) {
    .flex-div {
		width: 100%;
	}
	.small-flex-div-50 {
		width: 100%;
	}
	.small-flex-div-33 {
		width: 100%;
	}
}

.flex-div {
	width: 70%;
	text-align: center;
}
.small-flex-div-50 {
	width: 50%;
}
.small-flex-div-33 {
	width: 33%;
}

/* --- PAGE SETUP -----------------*/

/* used by body */
.darker-background {
    background-color: #000000 !important;
}

.page-setup {
    display: flex;
    flex-flow: row nowrap;
}
.sidenav-flex-part {
    width: 399px;
}
.page {
    width: calc(100% - 400px);
}
.footer {
    margin-left: 399px;
}
@media(max-width:767px) {
    .sidenav-flex-part {
        width: 0;
    }
    .page {
        width: 100%;
    }
    .footer {
        margin-left: 0;
    }
}

/* --- SIDE NAVBAR -----------------*/
.sidenav {
    transform: none !important;
}
.offcanvas {
    visibility: visible;
}
.sidenav-close {
    display: none;
}
@media(max-width:767px) {
    .sidenav {
        transform: translateY(-100%);
    }
    .offcanvas {
        visibility: hidden;
    }
}
.nav-body {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.nav-pills {
    display: flex;
    justify-content: center;
    align-self: center;
    align-items: center;
    flex-flow: column;
    width: 100%;
    height: 90%;
}
.nav-link {
    width: 100%;
    color: white;
    font-size: 2em;
    font-family: "Share Tech Mono", monospace;
    font-weight: 400;
    font-style: normal;
    position: relative;
    padding-left: 1.5rem;
    transition: 0.2s;
}
.nav-link:hover {
    color: rgb(255, 189, 189) !important;
    text-shadow: 0 0 20px var(--primary-color);
    scale: 1.1;
    transform: translateX(7%);
}
.nav-link.active {
    color: var(--primary-color) !important;
    text-shadow: 0 0 30px red;
    background-color: #00000000 !important;
}
.nav-link::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 7px;
  opacity: 0;
  transform: translateX(-7px);
  color: var(--primary-color);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.made-by-nav {
    align-self: end;
}

.social {
    z-index: 9999;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);

    padding: 1em;
    background-color: var(--card-color-dark);
    border-radius: 30px 0 0 30px;
    box-shadow: 0 0 20px var(--card-color-shadow);

    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}
.social a {
    font-size: 2em;
    transition: 0.3s;
}
.social a:hover {
    color: #fff;
}

@media(max-width:767px) {
    .social{
        top: unset;
        bottom: 0;
        right: 50%;
        transform: translateX(50%);

        padding: 0.5em 1em;
        border-radius: 30px 30px 0 0px;

        flex-direction: row;
        justify-content: space-around;
        align-content: space-around;
        gap: 1.5em;
    }
}

/* --- HERO ---------------------------*/
.hero {
	background-image: 
        /*vertical*/
        linear-gradient(180deg,rgba(255,255,255, 0) 0%,rgba(0,0,0, 0.1) 80%,rgba(0,0,0, 1) 100%),
        /*left*/
        linear-gradient(270deg, rgba(255,255,255, 0) 0%,rgba(0,0,0, 0.1) 80%,rgba(0,0,0, 1) 100%),
        /*others*/
        linear-gradient(35deg,rgba(255, 255, 255, 0) 0%, rgba(255, 91, 91, 0.03) 100%),
        linear-gradient(303deg,rgba(255, 255, 255, 0) 0%, rgba(255, 91, 91, 0.03) 100%),
        url("../img/hero.png");
	background-color: black;
	height: 100vh;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	position: relative;
}

.hero-text {
    padding: 50px;
    padding-bottom: 25px;

    border-width: 5px;
    border-color: white;
    border-style: solid;
    background-color: #00000052;

    text-align: center;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg);

    transition: transform 0.5s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}
.hero-text:hover {
    scale: 1.1;
    rotate: 5deg;
    transform: translate(-45%, -45%);
    box-shadow: 0 0 20px var(--primary-color);
}
.logo {
    max-height: 15em;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem;
    pointer-events: none;
}
.logo-phone {
    max-height: 10em;
    display: none;
}
.hero_title {
    background-color: var(--primary-color);
    padding: 0 5%;
	text-align: center;
	text-shadow: 0px 0px 30px #000;
	font-size: 3em;
}
.cta {
    font-family: "Share Tech Mono", monospace;
    font-weight: 800;
    font-style: normal;

    position: absolute;
    left: 50%;
    top: 62%;
    transform: translate(-50%, -50%);

    font-size: 1.5em;
    color: white;
    padding: 20px;
    border-width: 5px;
    border-color: white;
    border-style: solid;
    transition: 0.3s;
}
.cta:hover {
    color: black;
    background-color: white;
    box-shadow: 0 0 20px var(--primary-color);
    
    scale: 1.1;
    transform: translate(-45%, -45%);
}

@keyframes bob {
	0% { transform:translate(-50%, 0%) scale(1); }
	50% { transform:translate(-50%, 15%) scale(1.1); }
	100% { transform:translate(-50%, 0%) scale(1); }
}

.down-arrow {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%, 0);
	color: white;
	animation: bob 1s infinite;
    transition: 0.5s;
}
.down-arrow:hover {
    color: var(--primary-color);
}

@media(max-width: 767px) {
    .hero {
        background-image: 
            /*vertical*/
            linear-gradient(180deg,rgba(255,255,255, 0) 0%,rgba(0,0,0, 0.1) 80%,rgba(0,0,0, 1) 100%),
            /*others*/
            linear-gradient(35deg,rgba(255, 255, 255, 0) 0%, rgba(255, 91, 91, 0.03) 100%),
            linear-gradient(303deg,rgba(255, 255, 255, 0) 0%, rgba(255, 91, 91, 0.03) 100%),
            url("../img/hero.png");
    }
    .logo {
        display: none;
    }
    .logo-phone {
        display: unset;
    }
    .hero-text {
        width: 80%;
        padding: 20px;
        padding-bottom: 5px;
        transition: 0;
        scale: 1;
    }
    .hero-text:hover {
        scale: 1;
        rotate: 0deg;
        transform: translate(-50%, -50%);
        box-shadow: unset;
    }
    .hero_title {
        font-size: 2em;
    }
    .cta {
        scale: 0.8;
        transform: translate(-62.5%, -62.5%); 
    }
    .cta:hover{
        scale: 0.9;
    transform: translate(-55%, -55%);
    }
}

/* --- SECTIONS ------------------------*/

.index-section {
	padding: 5% 10% 5% 10%;
	min-height: 500px;
	display: -ms-flexbox;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}
.index-section .section-title {
	text-align: center;
    color: var(--primary-color);
}
.index-section .section-text {
	text-align: center;
}

.double-index-section {
	justify-content: space-evenly;
	flex-direction: row;
}
.double-index-section .flex-div {
	width: 50%;
	padding: 0 2% 0 2%;
}
.double-index-section .section-title {
	text-align: right;
}
.double-index-section .section-text {
	text-align: right;
}

/* this is for a section */
.background-color-gradient {
    background:
            /*up*/
            linear-gradient(0deg,rgba(255,255,255, 0) 0%,rgba(0,0,0, 0.1) 50%,rgba(0,0,0, 1) 100%),
            /*left*/
            linear-gradient(270deg, rgba(255,255,255, 0) 0%,rgba(0,0,0, 0.1) 90%,rgba(0,0,0, 1) 100%),
            /*diagonal*/
            linear-gradient(315deg, rgba(255,255,255, 0) 0%,rgba(0,0,0, 0.1) 40%,rgba(0,0,0, 1) 100%),
            rgba(var(--primary-color-rgb), 0.3);
}

.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

@media(max-width: 767px) {
    .section-title {
        font-size: 2.5em; 
    }
    .double-index-section .flex-div {
        width: 100%;
	}
    .double-index-section {
        flex-wrap: wrap;
	}
    .background-color-gradient {
        background:
            /*up*/
            linear-gradient(0deg,rgba(255,255,255, 0) 0%,rgba(0,0,0, 0.1) 50%,rgba(0,0,0, 1) 100%),
            /*diagonal*/
            linear-gradient(315deg, rgba(255,255,255, 0) 0%,rgba(0,0,0, 0.1) 40%,rgba(0,0,0, 1) 100%),
            rgba(var(--primary-color-rgb), 0.3);
    }
}


/* --- ABOUT SECTION -------------------*/

.about-index {
	background-color: #000;
    padding-top: 2em;
    padding-bottom: 2em;
}
.about-index .section-text {
	padding-left: 20%;
}
.about-photo {
    border-radius: 10%;
    width: 80%;
    transition: all 0.3s ease;
}
.about-photo:hover {
    box-shadow: 0 0 20px var(--primary-color);
    transform: translateY(-3px);
}

@media(max-width: 767px) {
    .about-index .flex-div {
        padding: 0;
    }
    .about-index {
		flex-wrap: wrap-reverse;
        padding: 5%;
	}
	.about-index .flex-div {
		width: 100%;
	}
	.about-index .section-title {
		text-align: center;
	}
	.about-index .section-text {
		text-align: justify;
		padding-left: 0;
        margin-bottom: 0;
	}
    .about-photo {
        width: 100%;
    }
    .about-photo:hover {
        box-shadow: unset;
        transform: unset;
    }
    .about-sect-photo {
        z-index: 999;
    }
    .about-sect-text {
        background-color: var(--card-color-dark);
        border-radius: 0 0 10% 10%;
        padding-top: 3em !important;
        transform: translateY(-2em);
        z-index: 1;
    }
    .about-sect-text .section-text{
        padding: 1em 1em 2em;
    }
}

/* --- COMPETITION SECTION -------------------*/

/* Timeline Container */
.timeline {
    margin: 20px auto;
    padding: 20px;
}

/* Card container */
.card-competition {
    position: relative;
    max-width: 600px;
    background-color: #0000;
}

/* setting padding based on even or odd */
.card-competition:nth-child(odd) {
    padding: 30px 0 30px 30px;
}
.card-competition:nth-child(even) {
    padding: 30px 30px 30px 0;
}
/* Global ::before */
.card-competition::before {
    content: "";
    position: absolute;
    width: 50%;
    border: solid var(--primary-color);
    pointer-events: none;
}

/* Setting the border of top, bottom, left */
.card-competition:nth-child(odd)::before {
    left: 0px;
    top: -5px; /* -4.5px; */
    bottom: -5px; /* -4.5px */
    border-width: 5px 0 5px 5px;
    border-radius: 50px 0 0 50px;
}

/* Setting the border of top, bottom, right */
.card-competition:nth-child(even)::before {
    right: 0;
    top: 0;
    bottom: 0;
    border-width: 5px 5px 5px 0;
    border-radius: 0 50px 50px 0;
}

/* Removing the border if it is the first card */
.card-competition:first-child::before {
    border-top: 0;
    border-top-left-radius: 0;
}

/* Removing the border if it is the last card  and it's odd */
.card-competition:last-child:nth-child(odd)::before {
    border-bottom: 0;
    border-bottom-left-radius: 0;
}

/* Removing the border if it is the last card  and it's even */
.card-competition:last-child:nth-child(even)::before {
    border-bottom: 0;
    border-bottom-right-radius: 0;
}

/* Information about the timeline */
.info-card-competition {
    display: flex;
    flex-direction: column;
    background: var(--card-color-dark);
    color: rgb(180, 180, 180);
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 0 20px var(--card-color-shadow);
}
.info-card-competition hr {
    margin-right: 50%;
}

/* Title of the card */
.title-card-competition {
    color: var(--primary-color);
    position: relative;
    padding: 1% 2% 0;
}

/* text right if the card is even  */
.card-competition:nth-child(even) > .info-card-competition > .title-card-competition {
    text-align: right;
}

@media(max-width:767px) {
    #competitions {
        padding: 5%;
    }
    .timeline {
        margin: 20px auto;
        padding: 0;
    }
    .card-competition:nth-child(odd) {
        padding: 25px 0 25px 25px;
    }
    .card-competition:nth-child(even) {
        padding: 25px 25px 25px 0;
    }
}

/* --- Technologies Section ---------------- */
.tech-banner {
    margin: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    position: relative;

    /* fade effect */
    -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
    );
    mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
    );
}

.tech-scroll {
    display: flex;
    width: max-content;
    animation: scroll-tech 25s linear infinite;
}

.tech-scroll span {
    display: inline-block;
    margin: 0 2rem;
    font-size: 1.1em;
    color: #fff;
    font-family: "Share Tech Mono", monospace;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: 0.3s;
}

.tech-scroll span:hover {
    opacity: 1;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

@keyframes scroll-tech {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media(max-width: 767px) {
    .tech-scroll span {
        margin: 0 1rem;
        font-size: 1em;
    }
}

/* --- Projects Section ------------------- */
#projects {
    padding-top: 0;
}

.project-list {
    padding: 0 5%;
    display: flex;
    flex-flow: row wrap;
    gap: 10px;
}

.project-card {
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 2em auto;
    width: calc(40% - 10px);
    box-shadow: 0 0 20px var(--card-color-dark);
    transition: all 0.3s ease;
}

@media(max-width: 1080px) {
    .project-card {
        width: calc(50% - 10px);
    }
}
@media(max-width: 767px) {
    #projects {
        padding-left: 1em;
        padding-right: 1em;
    }
    .project-list {
        padding: 0;
        gap: 0;
    }
    .project-card {
        width: 100%;
    }
}

.project-card:hover {
    box-shadow: 0 0 20px var(--primary-color);
    transform: translateY(-3px);
}

/* Carousel */
.project-carousel {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.project-carousel img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.project-carousel img.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0 10px;
    transition: 0.3s;
    z-index: 2;
    border-radius: 50%;
}

.carousel-btn:hover {
    color: var(--primary-color);
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

/* Content */
.project-content {
    padding: 20px;
    text-align: left;
}

.project-title {
    color: var(--primary-color);
    font-family: "Share Tech Mono", monospace;
    margin-bottom: 0.5em;
}

.project-desc {
    color: #ccc;
    font-size: 0.95em;
    margin-bottom: 1em;
}

/* Tech list */
.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1em;
}

.tech-list span {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 4px 10px;
    font-family: "Share Tech Mono", monospace;
    font-size: 0.85em;
    color: #fff;
    transition: all 0.2s;
}

.tech-list span:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 10px var(--primary-color);
}

.project-links {
    display: inline-block;
}

.btn-project {
    display: inline-block;
    background: var(--primary-color);
    color: #000;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-family: "Share Tech Mono", monospace;
    transition: 0.3s;
}
.btn-project:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

.git-link {
    float: right;
}