@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css");

/* =========================================================
   Variables
========================================================= */

:root {
  --bs-primary: #92bbe3;
  --bs-secondary: #2c3e50;

  --bs-primary-rgb: 146, 187, 227;
  --bs-secondary-rgb: 44, 62, 80;

  --bs-link-color: #92bbe3;
  --bs-link-hover-color: #6fa6db;

  --bs-body-font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-heading-font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --color-light-bg: #f6f8fb;
  --color-dark: #2c3e50;
  --color-primary: #92bbe3;
}

/* =========================================================
   Base
========================================================= */

html {
  scroll-padding-top: calc(4.5rem - 1px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--bs-body-font-family);
  color: #212529;
  background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--bs-heading-font-family);
  font-weight: 700;
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
}

.navbar,
.btn {
  font-family: var(--bs-heading-font-family);
}

a.custom_a {
  color: var(--bs-secondary);
  text-decoration: none;
}

a.custom_a:hover {
  color: var(--bs-secondary);
  text-decoration: none;
}

/* =========================================================
   Utility backgrounds
========================================================= */

.gradient-dark {
  background-color: #2c3e50;
  background-image: linear-gradient(147deg, #2c3e50 0%, #243444 74%);
  background-size: cover;
}

.gradient-light {
  background-color: #92bbe3;
  background-image: linear-gradient(147deg, #92bbe3 0%, #82add7 74%);
  background-size: cover;
}

.bg-fixed {
  background-attachment: fixed;
}

@media (max-width: 991.98px) {
  .bg-fixed {
    background-attachment: scroll;
  }
}

/* =========================================================
   Sections
========================================================= */

.page-section {
  padding: 6rem 0;
}

.page-section .page-section-heading {
  font-size: 2.25rem;
  line-height: 1.1;
}

@media (min-width: 992px) {
  .page-section .page-section-heading {
    font-size: 3rem;
  }
}

/* =========================================================
   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: var(--bs-secondary);
  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: var(--bs-secondary);
  font-size: 2rem;
}

.divider-custom.divider-light .divider-custom-line {
  background-color: #fff;
}

.divider-custom.divider-light .divider-custom-icon {
  color: #fff;
}

/* =========================================================
   Buttons
========================================================= */

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #92bbe3;
  --bs-btn-border-color: #92bbe3;

  --bs-btn-hover-color: #2c3e50;
  --bs-btn-hover-bg: #92bbe3;
  --bs-btn-hover-border-color: #92bbe3;

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #92bbe3;
  --bs-btn-active-border-color: #92bbe3;

  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #92bbe3;
  --bs-btn-disabled-border-color: #92bbe3;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  font-size: 1.25rem;
}

/* =========================================================
   Navbar
========================================================= */

#mainNav,
#mainNav .nav-link,
#mainNav .navbar-brand {
  font-weight: 700;
}

#mainNav {
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-weight: 700;
}

#mainNav .navbar-brand {
  color: #fff;
}

#mainNav .navbar-nav {
  margin-top: 1rem;
}

#mainNav .navbar-nav .nav-link {
  color: #fff;
}

#mainNav .navbar-nav .nav-link:hover {
  color: var(--bs-primary);
}

#mainNav .navbar-nav .nav-link:focus,
#mainNav .navbar-nav .nav-link:active {
  color: #fff;
}

#mainNav .navbar-nav .nav-link.active {
  color: var(--bs-primary);
}

#mainNav .navbar-toggler {
  font-size: 80%;
  padding: 0.8rem;
}

@media (min-width: 992px) {
  #mainNav {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    transition: padding-top 0.3s ease, padding-bottom 0.3s ease;
  }

  #mainNav .navbar-brand {
    font-size: 1.75em;
    transition: font-size 0.3s ease;
  }

  #mainNav .navbar-nav {
    margin-top: 0;
  }

  #mainNav .navbar-nav > li.nav-item > a.nav-link.active {
    color: #fff;
    background: var(--bs-primary);
  }

  #mainNav .navbar-nav > li.nav-item > a.nav-link.active:hover,
  #mainNav .navbar-nav > li.nav-item > a.nav-link.active:focus,
  #mainNav .navbar-nav > li.nav-item > a.nav-link.active:active {
    color: #fff;
    background: var(--bs-primary);
  }

  #mainNav.navbar-shrink {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  #mainNav.navbar-shrink .navbar-brand {
    font-size: 1.5em;
  }
}

/* =========================================================
   Homepage masthead
========================================================= */

.hero-bg {
  background-image: url("/assets/img/busje_extended.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-title-box {
  display: inline-block;
  max-width: 900px;
  padding: 1.25rem 2rem;
  background-color: rgba(44, 62, 80, 0.5);
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.masthead {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: calc(6rem + 74px);
  padding-bottom: 6rem;
}

.masthead .masthead-heading {
  font-size: 2.75rem;
  line-height: 1.1;
}

.masthead .masthead-subheading {
  font-size: 1.5rem;
}

.masthead .masthead-avatar {
  width: 15rem;
  max-width: 100%;
  height: auto;
}

@media (min-width: 992px) {
  .masthead {
    padding-top: calc(6rem + 104px);
    padding-bottom: 6rem;
  }

  .masthead .masthead-heading {
    font-size: 4rem;
  }
}

@media (max-width: 991.98px) {
  .hero-bg {
    background-attachment: scroll;
  }
}

@media (max-width: 575.98px) {
  .hero-title-box {
    padding: 1rem 1.25rem;
  }

  .masthead .masthead-heading {
    font-size: 2.25rem;
  }

  .masthead .masthead-subheading {
    font-size: 1.15rem;
  }
}

/* =========================================================
   Portfolio overview cards
========================================================= */

.portfolio .portfolio-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  max-width: 25rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: #343a40;
  cursor: pointer;
}

.portfolio .portfolio-item img {
  display: block;
  width: 100%;
  height: auto;
}

.portfolio .portfolio-item p {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  min-height: 3.5rem;
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-size: 1.05rem;
  line-height: 1.3;
  text-align: center;
}

.portfolio .portfolio-item .portfolio-item-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background-color: rgba(146, 187, 227, 0.9);
  transition: opacity 0.2s ease-in-out;
}

.portfolio .portfolio-item:hover .portfolio-item-caption,
.portfolio .portfolio-item:focus-within .portfolio-item-caption {
  opacity: 1;
}

.portfolio .portfolio-item .portfolio-item-caption-content {
  font-size: 1.5rem;
}

@media (max-width: 767.98px) {
  .portfolio .portfolio-item {
    max-width: none;
    min-height: 180px;
  }

  .portfolio .portfolio-item p {
    min-height: 2.75rem;
    padding: 0.5rem;
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .portfolio .portfolio-item .portfolio-item-caption-content {
    font-size: 1rem;
  }

  .portfolio .portfolio-item .portfolio-item-caption-content i.fa-3x {
    font-size: 1.5em;
  }
}


/* =========================================================
   Project detail pages
========================================================= */

.project-title-line {
  width: 100%;
  max-width: 760px;
  height: 4px;
  border-radius: 2.5px;
  margin: 2rem auto 2.5rem;
  border: 0;
  background-color: var(--bs-secondary);
  opacity: 1;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.project-links .btn i {
  margin-right: 0.35rem;
}

.project-page {
  padding-top: 10rem;
  background-color: var(--color-light-bg);
  min-height: 100vh;
}

.project-article {
  width: 100%;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.project-article h1 {
  font-size: clamp(1.75rem, 2.3vw, 2.6rem);
  line-height: 1.2;
}

/* Main image directly below the project title */
.project-main-image {
  display: block;
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  object-fit: initial;
  margin-right: auto;
  margin-left: auto;
}

/* Images inside the article body */
.project-content-image {
  display: block;
  width: min(100%, 720px);
  max-height: 520px;
  height: auto;
  object-fit: contain;
  margin-right: auto;
  margin-left: auto;
}

/* Side-by-side images, for example thesis comparison */
.project-image-grid img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

/* Related projects sidebar */
.project-sidebar {
  position: sticky;
  top: 7rem;
  align-self: flex-start;
}

.related-projects-card {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.related-projects-card h2 {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.related-project-link {
  display: block;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  color: var(--bs-secondary);
  text-decoration: none;
  background-color: var(--color-light-bg);
  border-left: 4px solid transparent;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.related-project-link:hover,
.related-project-link:focus {
  color: var(--bs-secondary);
  background-color: #e9eef5;
  transform: translateY(-2px);
}

.related-project-link.active {
  background-color: rgba(44, 62, 80, 0.12);
  border-left-color: var(--bs-secondary);
}

.related-project-link span {
  display: block;
  margin-bottom: 0.2rem;
  color: #6c757d;
  font-size: 0.8rem;
}

.related-project-link strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.25;
}

@media (max-width: 991.98px) {
  .project-page {
    padding-top: 8rem;
  }

  .project-sidebar {
    position: static;
  }

  .project-main-image {
    width: min(100%, 560px);
    max-height: none;
  }
}

@media (max-width: 575.98px) {
  .project-page {
    padding-top: 7rem;
  }

  .project-article {
    padding: 1.5rem !important;
  }

  .project-article h1 {
    font-size: 1.6rem;
  }
}

/* =========================================================
   Footer
========================================================= */

.footer-minimal {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.footer-minimal h4 {
  letter-spacing: 0.03em;
}

.footer-tagline {
  font-size: 1rem;
  opacity: 0.9;
}

.footer-links a {
  font-weight: 700;
  opacity: 0.95;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.75;
}

@media (min-width: 992px) {
  .footer-minimal .footer-links {
    margin-bottom: 0.75rem;
  }
}

/* =========================================================
   Testimonials
========================================================= */

.testimonials-carousel {
  position: relative;
}

.card-0 {
  position: relative;
  min-height: 384px;
  margin-left: 70px;
  color: #fff;
  background-color: #92bbe3;
  border-radius: 10px;
}

.profile {
  position: absolute;
  top: 15%;
  left: -70px;
  min-width: 221px;
  color: #000;
  background-color: #2c3e50;
  border-radius: 8px;
}

.profile-pic {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.open-quotes {
  margin-top: 100px;
  margin-left: 200px;
}

.content {
  margin-right: 80px;
  margin-left: 220px;
}

.close-quotes {
  margin-right: 60px;
  margin-bottom: 100px;
}

.carousel-indicators button,
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50% !important;
  cursor: pointer;
}

.testimonial-control {
  top: 50%;
  width: 3.5rem;
  height: 3.5rem;
  opacity: 1;
  background-color: rgba(44, 62, 80, 0.9);
  border-radius: 50%;
  transform: translateY(-50%);
}

.testimonial-control:hover,
.testimonial-control:focus {
  opacity: 1;
  background-color: rgba(44, 62, 80, 1);
}

.testimonials-carousel .carousel-control-prev {
  left: -4.5rem;
}

.testimonials-carousel .carousel-control-next {
  right: -4.5rem;
}

.testimonials-carousel .carousel-control-prev-icon,
.testimonials-carousel .carousel-control-next-icon {
  width: 1.5rem;
  height: 1.5rem;
}

@media (max-width: 1199.98px) {
  .testimonials-carousel .carousel-control-prev {
    left: -2rem;
  }

  .testimonials-carousel .carousel-control-next {
    right: -2rem;
  }
}

@media (max-width: 991.98px) {
  .testimonial-control {
    width: 3rem;
    height: 3rem;
  }

  .testimonials-carousel .carousel-control-prev {
    left: 0.5rem;
  }

  .testimonials-carousel .carousel-control-next {
    right: 0.5rem;
  }
}

@media (max-width: 600px) {
  .card-0 {
    min-height: auto;
    margin-top: 100px;
    margin-left: 0;
  }

  .profile {
    top: -10%;
    left: 50%;
    min-width: 200px;
    transform: translateX(-50%);
  }

  .profile-pic {
    width: 90px;
    height: 90px;
  }

  .open-quotes {
    margin-top: 150px;
    margin-left: 30px;
  }

  .content {
    margin-right: 50px;
    margin-left: 50px;
  }

  .close-quotes {
    margin-right: 30px;
    margin-bottom: 80px;
  }
}