:root {
    --bs-body-bg: #1F1F1F;
    --bs-body-color: white;
    --bg-primary-color: #8A141F;
    --bg-primary-hover-color: #700812;
    --bg-secondary-color: #2B2B2B;
    --bg-secondary-light-color: #5C5C5B;

    --bs-font-sans-serif: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-heading-font-sans-serif: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";


    --fw-light: 300;
    --fw-medium: 500;
    --fw-bold: 700;
    --fw-extra-bold: 900;

    --radius-md: .75rem;
    --radius-lg: 1.5rem;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bg-primary-color);
    --bs-btn-border-color: var(--bg-primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bg-primary-hover-color);
    --bs-btn-hover-border-color: var(--bg-primary-hover-color);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bg-primary-color);
    --bs-btn-active-border-color: var(--bg-primary-color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bg-secondary-color);
    --bs-btn-hover-border-color: var(--bg-secondary-color);
    --bs-btn-focus-shadow-rgb: 130, 138, 145;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bg-secondary-color);
    --bs-btn-active-border-color: var(--bg-secondary-color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn-light {
    --bs-btn-color: var(--bg-primary-color);
    --bs-btn-bg: #f8f9fa;
    --bs-btn-border-color: #f8f9fa;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #d3d4d5;
    --bs-btn-hover-border-color: #c6c7c8;
    --bs-btn-focus-shadow-rgb: 211, 212, 213;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #c6c7c8;
    --bs-btn-active-border-color: #babbbc;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    font-weight: var(--fw-bold);
}

.btn-dark {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bg-secondary-color);
    --bs-btn-border-color: var(--bg-secondary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bg-secondary-light-color);
    --bs-btn-hover-border-color: var(--bg-secondary-light-color);
    --bs-btn-focus-shadow-rgb: 66, 70, 73;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bg-primary-color);
    --bs-btn-active-border-color: var(--bg-primary-color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn {
    border-radius: var(--radius-lg);
}

/* Containers */
@media (min-width: 1600px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1400px;
    }
}

@media (min-width: 1800px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1700px;
    }
}

@media (min-width: 2000px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1920px;
    }
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
    font-weight: var(--fw-bold);
}

.img-fluid {
    border-radius: .5rem;
}

.img-full-height {
    height: 100%;
    object-fit: cover;
}

section.bg-secondary .btn-secondary {
    --bs-btn-hover-bg: var(--bg-secondary-light-color);
}

.btn {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

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

.bg-primary {
    background-color: var(--bg-primary-color) !important;
}

.bg-secondary {
    background-color: var(--bg-secondary-color) !important;
}

.link-light {
    text-decoration: none;
    width: fit-content;
    display: block;
}

.link-light:hover {
    text-decoration: underline;
}

section {
    padding: 4rem 0;
}

section.bg-secondary + section.bg-secondary {
    padding-top: 0;
}

p a {
    color: var(--bg-primary-color);
}

.large-heading {
    font-size: 2rem;
    font-weight: var(--fw-extra-bold);
}

@media (min-width: 992px) {
    .large-heading {
        font-size: 2.75rem;
    }
}

@media (min-width: 1400px) {
    .large-heading {
        font-size: 3.75rem;
    }
}

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

.text-secondary {
    color: var(--bg-secondary-color) !important;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

@media (min-width: 992px) {
    .navbar {
        top: 50px;
    }
}

.navbar .nav-link {
    background-color: var(--bs-body-bg);
    color: white;
    font-weight: var(--fw-bold);
    --bs-navbar-nav-link-padding-x: 1rem;
    --bs-navbar-active-color: white;
    border-radius: var(--radius-lg);
    padding: .5rem 1rem;
    margin-top: .5rem;
    text-align: center;
}

.navbar .navbar-nav .nav-item:last-of-type .nav-link {
    background-color: var(--bg-primary-color);
}

.navbar .nav-item:last-of-type {
    margin-top: auto;
}

@media (min-width: 992px) {
    .navbar .nav-link {
        margin-top: 0;
        font-size: .875rem;
    }
}

@media (min-width: 1200px) {
    .navbar .nav-link {
        font-size: 1rem;
    }
}

.navbar .nav-link-primary {
    background-color: var(--bg-primary-color);
}

.navbar .nav-link:hover {
    background-color: var(--bg-primary-color);
}

.navbar .offcanvas-body {
    justify-content: end;
}

.navbar .offcanvas {
    width: 100%;
}

.navbar .offcanvas-body {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

@media (min-width: 992px) {
    .navbar .offcanvas-body {
        margin-top: 0;
        justify-content: end;
    }
}

.navbar .offcanvas-header {
    padding: var(--bs-navbar-padding-y);
}

.navbar .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    box-shadow: none;
}

.navbar .offcanvas.offcanvas-end {
    border-left: none;
}

/* NAVBAR TOGGLER */
nav.navbar .navbar-toggler {
    max-width: 50px;
    max-height: 50px;
    padding: 0;
    border: none;
}

nav.navbar .navbar-toggler:focus,
nav.navbar .navbar-toggler:active {
    box-shadow: none;
}

.ham {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 400ms;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.hamRotate.active {
    transform: rotate(45deg);
}
.hamRotate180.active {
    transform: rotate(180deg);
}
.line {
    fill:none;
    transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
    stroke: white;
    stroke-width:5.5;
    stroke-linecap:round;
}

.ham .top {
    stroke-dasharray: 40 82;
}
.ham .middle {
    stroke-dasharray: 40 111;
}
.ham .bottom {
    stroke-dasharray: 40 161;
}
.ham.active .top {
    stroke-dasharray: 17 82;
    stroke-dashoffset: -62px;
}
.ham.active .middle {
    stroke-dashoffset: 23px;
}
.ham.active .bottom {
    stroke-dashoffset: -83px;
}

/* Header */
header.full-height {
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    background-position: center;
    position: relative;
    z-index: 0;
    overflow: hidden;
    max-height: 700px;
    --bs-link-color-rgb: white;
}

header.full-height::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: black;
    opacity: .5;
}

@media (min-width: 768px){
    header.full-height::before {
        display: none;
    }
}

header.full-height .row {
    padding-bottom: 5rem;
}

header.full-height:has(.contact-info) .row {
    padding-bottom: 0;
}

header.full-height:has(.tag) .row {
    padding-bottom: 1rem;
}

header.full-height .large-heading {
    font-size: 2.25rem;
}

@media (min-width: 992px) {
    header.full-height {
        margin: 2rem;
        height: calc(100vh - 4rem) /* 100vh - margin * 2 */;
        border-radius: 1rem;
        max-height: 1000px;
    }

    header.full-height .large-heading {
        font-size: 3rem;
    }
}

@media (min-width: 1400px) {
    header.full-height .large-heading {
        font-size: 3.75rem;
    }
}

header.half-header {
    height: calc(75vh - 4rem);
}

header.full-height .container,
header.full-height .row {
    height: inherit;
    position: relative;
    max-height: inherit;
}

header.full-height .row {
    align-items: end;
}

header.full-height h1 {
    text-shadow: 0 0 3em black;
    hyphens: auto;
}

header.full-height .contact-info h1 {
    font-size: 1.75rem;
    font-weight: 800;
}

header .header-content {
    position: relative;
    z-index: 2;
    padding-bottom: 3rem;
}

header .header-content {
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    header .header-content:before {
        position: absolute;
        content: '';
        width: calc(100vw + 3rem);
        right: -3rem;
        bottom: -1px;
        background-color: var(--bs-body-bg);
        border-top-right-radius: 2rem;
        z-index: -1;
        opacity: 1;
        height: calc(100% + 3rem + 1px);
    }
}

/* Contact info */
.contact-info p {
    font-weight: bold;
    margin-bottom: 0.25rem;
    margin-top: 1.75rem;
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Tag */
.tag {
    width: fit-content;
    background-color: var(--bg-primary-color);
    padding: .5rem 1.25rem;
    border-radius: var(--radius-lg);
    font-weight: var(--fw-bold);
    margin-bottom: .75rem;
}

/* Recruiter */
.recruiter-info {
    background-color: var(--bs-body-bg);
}

.recruiter-info .img-fluid {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1200px) {
    .recruiter-info .h2 {
        font-size: 1.25rem;
    }
}

/* Our projects */
.our-projects,
.image-showcase {
    --bs-gutter-y: 1rem;
    --bs-gutter-x: 1rem;
}

section:has(.our-projects) {
    overflow: hidden;
    position: relative;
}

.our-projects {
    transition: 250ms;
}

.our-projects.loading {
    opacity: 0;
    visibility: hidden;
}

section:has(.our-projects.loading):after {
    content: '';
    position: absolute;
    top: 300px;
    left: 0;
    right: 0;
    text-align: center;
    animation: breathing 2s infinite ease-in-out;
    background-image: url("../img/logo/logo.svg");
    width: 100%;
    height: 100px;
    background-repeat: no-repeat;
    background-position: center;
}

@keyframes breathing {
  0% { 
      opacity: 1;
      transform: scale(1.0);
  }
  50% { 
      opacity: 0.5;
      transform: scale(.95);
  }
  100% { 
      opacity: 1;
      transform: scale(1.0);
  }
}


.image-showcase img {
    height: 450px;
    width: 100%;
    object-fit: cover;
    transition: 250ms;
}

.image-showcase img:hover {
    opacity: .8;
}

.our-projects {
    margin-bottom: 3rem;
}

.our-projects .card {
    --bs-card-spacer-x: 2rem;
    --bs-card-border-radius: .5rem;
    --bs-card-border-width: 0;
    overflow: hidden;
}

.our-projects .card p {
    margin-bottom: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 12;
    line-clamp: 12;
    -webkit-box-orient: vertical;
}

.our-projects.carousel-on-mobile .card {
    margin-left: .75rem;
}

@media (min-width: 768px) {
    .our-projects .card,
    .our-projects.carousel-on-mobile .card {
        margin-left: 0;
    }
}

@media (min-width: 992px) {
    .our-projects .card p {
        -webkit-line-clamp: 8;
        line-clamp: 8;
    }
}

.our-projects .project:first-of-type .card {
    margin-left: 0;
}

.our-projects .card,
.our-projects .card .stretched-link:after {
    height: 400px;
}

.our-projects .card .stretched-link:after {
    top: unset;
}

.our-projects .card-body {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #00000080;
    backdrop-filter: blur(4px);
}

@media (max-width: 767px) {
    .our-projects .card-body {
        position: absolute;
        bottom: 0;
        width: 100%;
        background-color: #00000080;
        backdrop-filter: blur(1px);
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.our-projects .card-img-top {
    height: 100%;
    object-fit: cover;
    transition: 250ms;
}

.our-projects .card:hover .card-img-top {
    transform: scale(1.05);
}

.our-projects .card p {
    margin-bottom: 0;
}

.our-projects .card-title a {
    color: white;
    text-decoration: none;
}

@media (min-width: 768px) {
    .our-projects .card-text {
        max-height: 0;
        transition: 350ms;
        margin-bottom: -.75rem;
        opacity: 0;
        padding-bottom: 1rem;
    }

    .our-projects .card:hover .card-text {
        max-height: 350px;
        opacity: 1;
    }
}

section:has(.project-filters){
    display: none;
}

@media (min-width: 768px) {
    section:has(.project-filters){
        padding-top: 1rem;
        padding-bottom: 3rem;
        display: block;
    }
}

.project-filters {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
}

@media (min-width: 1200px) {
    .project-filters {
        justify-content: center;
    }
}

.project-filters button {
    font-weight: bold;
    text-wrap: nowrap;
}

/* Quote */
.blockquote-footer {
    font-size: 1rem;
    color: white;
    margin-top: 0;
    font-style: italic;
}

.blockquote p {
    font-weight: 800;
}

/* Accordion */
.accordion-item {
    border: 1px solid #454545 !important;
    padding: 1rem;
    border-radius: var(--radius-md) !important;
    cursor: pointer;
    background-color: transparent;
    transition: 250ms;
}

.accordion-item.opened {
    background-color: #5C5C5C;
    box-shadow: var(--bs-box-shadow);
}

.accordion-item + .accordion-item {
    margin-top: 3rem;
}

.accordion.accordion-small .accordion-item + .accordion-item {
    margin-top: 1rem;
}

.accordion.accordion-small .accordion-item.opened + .accordion-item {
    margin-top: 2rem;
}

.accordion-button {
    --bs-accordion-active-bg: transparent;
    --bs-accordion-btn-bg: transparent;
    box-shadow: none !important;
    color: white !important;
    font-size: 1.25rem;
    font-weight: 800;
    padding-bottom: 0;
}

.accordion-body p:last-of-type {
    margin-bottom: 0;
}

.accordion.accordion-small .accordion-button {
    padding: 0 1rem;
}

.accordion:not(.accordion-small) .collapse:not(.show) {
    display: block;
    height: 100px;
    overflow: hidden;
}

.accordion:not(.accordion-small) .collapsing {
    height: 100px;
}

.accordion-button.collapsed::after,
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-read-more {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: 250ms;
}

.accordion-item.opened .accordion-read-more {
    visibility: visible;
    opacity: 1;
}

.accordion-item:not(.opened) .accordion-body p:first-of-type {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Reviews */
.review-slider {
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .col-12:has(.accordion) {
        padding-left: 0rem;
        margin-left: 3rem;
    }

    .review-slider .review-slide-content {
        padding: 5rem 0;
    }

    .review-slider {
        margin: 0;
    }
}

.review-content p {
    font-style: italic;
}

.review-content {
    position: relative;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .review-content {
        margin-top: 0;
    }
}

.review-content:before {
    content: url("../img/icons/quotes.svg");
    position: absolute;
    top: -40px;
    left: 0;
    z-index: -1;
}

@media (min-width: 768px) {
    .review-content:before {
        left: -25px;
        top: -55px;
    }
}

@media (min-width: 768px) {
    .review-slide-buttons {
        display: block;
        margin-top: 1.5rem;
    }
}

.review-stars img {
    width: 26px;
}

.review-slide-buttons button {
    background-color: transparent;
    border: none;
}

.review-slide-buttons button[disabled] {
    opacity: .3;
}

/* Form */
.form-control,
.form-select,
.form-control:focus {
    background-color: rgba(245,245,245, .2);
    border: none;
    padding: .5rem 1rem;
    --bs-border-radius: 3rem;
}

textarea {
    --bs-border-radius: 1rem !important;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 .15rem rgba(186, 109, 116, 1) !important;
}

.form-select {
    color: #BA6D74;
}

.form-control::placeholder,
.form-select {
    color: #BA6D74;
}

.form-select option {
    color: black;
}

.form-select option:first-of-type {
    color: gray;
}

/* Video component */
.video-component {
    position: relative;
    display: block;
}

.video-component:before {
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: black;
    opacity: .5;
    position: absolute;
    transition: opacity 250ms;
}

.video-component:hover:before {
    opacity: .4;
}

.video-component:after {
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 150px;
    height: 150px;
    background-size: contain;
    position: absolute;
    margin: auto;
    background-image: url("data:image/svg+xml,%3Csvg width='150' height='151' viewBox='0 0 150 151' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M75 150.221C116.267 150.221 149.721 116.767 149.721 75.5C149.721 34.2326 116.267 0.778809 75 0.778809C33.7326 0.778809 0.278809 34.2326 0.278809 75.5C0.278809 116.767 33.7326 150.221 75 150.221ZM54.8027 110.482L115.394 75.4998L54.8027 40.5177L54.8027 110.482Z' fill='%238A141F'/%3E%3C/svg%3E");
}

.video-component img {
    width: 100%;
}

/* Half screen image */
.half-screen-image {
    width: 100%;
    object-fit: cover;
}

@media (min-width: 992px) {
    .half-screen-image {
        position: absolute;
        width: inherit;
        height: 600px;
        top: 50%;
        transform: translateY(-50%);
        max-width: 1450px;
        min-width: 500px;
    }

    .half-screen-image-left {
        left: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    section:has(.half-screen-image) {
        overflow: hidden;
        min-height: 1000px;
        position: relative;
        display: flex;
        align-items: center;
        padding-top: 0;
    }
}

@media (min-width: 1200px) {
    section:has(.half-screen-image) {
        min-height: 800px;
    }
}

@media (min-width: 1400px) {
    section:has(.half-screen-image) {
        min-height: 900px;
    }
}

/* Footer */
footer {
    padding-top: 2rem;
}

section:not(.bg-secondary):last-of-type + footer {
    background-color: var(--bg-secondary-color);
}

footer > div:not(.sub-footer) .col-12 {
    padding: 1rem 2rem;
}

@media (min-width: 768px) {
    footer > div:not(.sub-footer) .col-12 {
        padding: 3rem 2rem;
    }
    
    footer ul.nav {
        margin-top: 1rem;
    }
}

footer .nav-item {
    --bs-nav-link-padding-x: 0;
    --bs-nav-link-padding-y: .35rem;
    --bs-nav-link-color: white;
    --bs-nav-link-hover-color: white;
}

footer .nav-link {
    padding-bottom: 0;
    margin-top: .4rem;
}

footer .nav .nav-item:first-of-type .nav-link {
    margin-top: 0;
}

.footer-icons a {
    display: inline-block;
}

.footer-icons a + a {
    margin-top: .5rem;
}

footer h5,
footer .nav-item {
    position: relative;
    cursor: default;
    width: fit-content;
}

footer h5 a {
    color: white;
    text-decoration: none;
}

@media (min-width: 1200px) {
    footer h5 {
        font-size: 1.5rem;
    }
}

footer h5:after,
footer .nav-item:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--bg-primary-color);
    opacity: 0;
    transition: width 300ms, opacity 500ms;
    z-index: 0;
}

footer h5:hover:after,
footer .nav-item:hover:after{
    width: 100%;
    opacity: 1;
}

footer:before {
    content: '';
    position: absolute;
    height: 1px;
    top: -1px;
    left: 0;
    width: 100%;
    background-color: RGBA(255, 255, 255, .5);
    z-index: 2;
}

footer .sub-footer {
    background-color: var(--bg-primary-color);
    padding: .25rem 0;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    footer .sub-footer {
        margin-top: 0;
    }
}

footer .sub-footer p {
    text-align: center;
    margin-bottom: 0;
}

/* Youtube BG */
.youtube-background {
    opacity: 0;
    transition: 250ms;
}

.youtube-background.ready {
    opacity: 1;
}