/* ------------- VARIABLES ------------- */
:root {
	--navbar-bkg: #D9D9D9;
	--navbar-label: #000000;

    --background-color: #070707;

    --semicircle-bkg: #D9D9D9;
    --jumbotron-label: #D9D9D9;

    --jumbotron-button-bkg: #D9D9D9;
    --jumbotron-button-label: #000000;

    --divider-line-color: #D9D9D9;
    --divider-icon-color: #D9D9D9;

    --body-label-color: #D9D9D9;

    --body-button-bkg: #D9D9D9;
    --body-button-bkg-selected: #CD4545;
    --body-button-label: #000000;
    --body-button-blob: #A0A0A0;
    --body-button-blob-selected: #CD4545;

    --body-icon-bkg: #D9D9D9;
    --body-icon-color: #000000;

    --footer-label-color: #D9D9D9;

    --projectcard-label-color: #ffffff;

    --modal-closebtn-bkg: #ffffff;

}
/* ------------------------------------- */

.navbar {
    font-family: "Gruppo", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.navbar-brand { 
    font-size: 30px;
}

.nav-link.active {
    background-color: var(--navbar-bkg);
    color: var(--navbar-label-black) !important;
    border-radius: 5px;
}

/* --------------------------------------------- */

.semi-vertical {
    width: 190px;
    height: 380px;
    overflow: hidden;
    border-radius: 300px 0 0 300px;
    position: relative;

    background-color: var(--semicircle-bkg);
}

.semi-vertical img {
    width: 380px;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: -100px;
    top: 0;

    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

@media (max-width: 768px) {
    .semi-vertical {
        width: 165px;
        height: 330px;
    }

    .semi-vertical img {
        height: 330px;
    }
}

.mobile-portrait img {
    width: 100%;
    height: auto;
    
    object-fit: cover;

    background-color: var(--semicircle-bkg);
    margin-top: 60px;
}

/* --------------------------------------------- */

.jumbotron {
    font-family: "Gruppo", sans-serif;
    font-weight: 200;
    font-style: normal;

    color: var(--jumbotron-label);
}

.jumbotron h4 {
    font-size: 2.2rem;
}

.jumbotron h1 {
    font-weight: 400;
    font-size: 7rem;
    line-height: 70px;
}

@media (max-width: 900px) {
    .jumbotron h4 {
        font-size: 1.8rem;
    }

    .jumbotron h1 {
        font-size: 5rem;
        line-height: 50px;
    }
}

@media (max-width: 768px) {
    .jumbotron h4 {
        font-size: 1.6rem;
    }

    .jumbotron h1 {
        font-size: 2.95rem;
        line-height: 30px;
    }
}

@media (max-width: 576px) {
    .jumbotron h4 {
        font-size: 1.6rem;
    }

    .jumbotron h1 {
        font-size: 3rem;
        word-wrap: break-word;
    }
}

.btn-div .btn {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-style: normal;
    /* font-size: 1.4rem; */
    font-size: clamp(1rem, 2vw, 1.4rem);

    height: 50px;

    background-color: var(--jumbotron-button-bkg);
    border-color: var(--jumbotron-button-bkg);
    color: var(--jumbotron-button-label);
}

.btn-div .btn:hover,
.btn-div .btn:focus {
    opacity: 0.9;
}

.btn-square {
    aspect-ratio: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;

    font-size: 36px !important;
}

/* --------------------------------------------- */

.profile-divider {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 160px;
    color: var(--divider-line-color);
}

.profile-divider i {
    font-size: 3rem;
}

.lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lines span {
    height: 2px;
    background: var(--divider-icon-color);
}

.lines .long { 
    width: 70%;
}
.lines .short {
    width: 40%;
}

.about-me-div {
    text-align: center;
    color: var(--body-label-color);
    font-size: 22px;

    margin-top: 30px;
}

/* --------------------------------------------- */

.blob-btn {
    position: relative;
    width: 160px;
    height: 80px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

}

.blob-btn .blob {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: var(--body-button-blob);
    z-index: 1;
}

.blob-btn .icon {
    position: relative;
    z-index: 2;
    font-size: 40px;
}

/* --------------------------------------------- */

body {
    background-color: var(--background-color);
}

.btn.btn-primary {
    background-color: var(--body-button-bkg);
    border-color: var(--body-button-bkg);
    color: var(--body-button-label);
}

.btn.btn-primary:active {
    background-color: var(--body-button-bkg-selected);
    border-color: var(--body-button-bkg-selected);

}

.btn.btn-primary:hover .blob-btn .blob,
.btn.btn-primary:focus  .blob-btn .blob {
    fill: var(--body-button-blob-selected);
}

.text-primary {
    color: var(--body-label-color) !important;
}

/* --------------------------------------------- */

.contacts-div {
    margin-top: 30px;
    width: max-content;
    
    margin-left: auto;
    margin-right: auto;
}

.contacts-div .rounded-circle {
    width: 70px;
    height: 70px;

    color: var(--body-icon-color);
    background-color: var(--body-icon-bkg);

    font-size: 52px;

    aspect-ratio: 1;
}

.contacts-div h6 {
    color: var(--body-label-color);
    /* width: clamp(40vw, 40vw, 270px); */
    /* width: 270px; */
    max-width: 50vw;
}

/* --------------------------------------------- */

footer {
    color: var(--footer-label-color);
    margin-top: 250px;
}

footer h1 {
    font-family: "Gruppo", sans-serif;
    font-weight: 400;
    font-style: normal;
}

footer p {
    font-size: 12px;
}

footer .btn:hover,
footer .btn:focus {
    opacity: 0.9;
}

/* --------------------------------------------- */

.portfolio-header {
    color: var(--body-label-color);
}

.portfolio-header h1 {
    font-family: "Gruppo", sans-serif;
    font-weight: 400;
    font-style: normal;

    /* font-size: 60px; */
    font-size: clamp(2rem, 10.3vw, 60px);
    word-wrap: break-word;
}

/* --------------------------------------------- */

.project-card {
    position: relative;
    display: block;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--projectcard-label-color);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.4) 40%,
        rgba(0,0,0,0) 70%
    );
}

.project-card .content {
    position: absolute;
    bottom: 15px;
    left: 20px;
    right: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-card .title {
    font-size: 1.2rem;
    font-weight: 500;
}

.project-card i {
    font-size: 1.4rem;
    opacity: 0.9;
}

.project-card .overlay {
    transition: background 0.3s ease;
}

.project-card:hover .overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.6) 40%,
        rgba(0,0,0,0.2) 80%
    );
}

/* --------------------------------------------- */

.video-container iframe {
    width: 100%;
    height: 512px;
}

/* --------------------------------------------- */

.clickable-img {
    cursor:pointer;
}

.btn-close.btn-close-white {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.9))
            drop-shadow(0 0 8px rgba(0,0,0,0.8));
    transform: scale(1.2);

    background-color: var(--modal-closebtn-bkg);
    border-radius: 50%;
    padding: 0.6rem;
}

/* --------------------------------------------- */

p.max-width-limited,
ul.max-width-limited {
    max-width: 1200px;
}

.image-container img {
    width: 100%;
    height: 300px;      /* choose the height you prefer */
    object-fit: cover;  /* crop instead of distort */
}