:root {
  --page-padding: 40px;
}

.navbar > .container-fluid,
.portfolio-header > .container-fluid {
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

body {
  min-height: 100vh;
}

body {
  --bs-body-font-family: "Open Sans", sans-serif;
  background-color: #232424;
}

h2 {
  font-weight: bold;
  font-size: 1rem;
}

.btn-primary {
  color: #333;
  background-color: white;
}

.modal-content {
  background-color: #333;
  color: white;
  text-align: center;
}

/* .modal-header {
  border-bottom: 0;
} */

.modal-title {
  display: none;
}

.btn:hover {
  background-color: #f8c206;
  color: #333;
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
  background-color: #f8c206;
  color: #333;
}

.about {
  max-width: 800px;
  margin: 8rem auto 1rem auto;
}

.lead {
  font-style: italic;
}

.navbar-brand {
  width: auto;
}

.project-header {
  margin-bottom: 24px;
  text-align: left;
  box-sizing: border-box;

  opacity: 0;
  /* transition: opacity 0.1s ease; */
}

.project-header.fade-in {
  opacity: 1;
}

.banner-preview {
  opacity: 1;
  /* transition: opacity 0.1s ease; */
}

.banner-preview.fade-in {
  opacity: 1;
}

.project-header h2 {
  margin-bottom: 8px;
}

.project-header p {
  width: 60%;
  margin-bottom: 0;
}

.project-thumb {
  cursor: pointer;
  transition: 0.25s;
}
.project-thumb:hover {
  transform: scale(1.03);
  cursor: pointer;
}

.carousel-item img,
.carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

#portfolioCarousel {
  flex: 1;
}

.carousel-btn {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 34px;
  line-height: 56px;
  text-align: center;
  cursor: pointer;
  transition: 0.25s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: #fff;
  color: #000;
}

:root {
  --site-header-height: 180px;
  --main-nav-height: 78px;
}

/* Prevent fixed header from covering page content */
body {
  padding-top: var(--site-header-height);
}

/* Entire fixed header */
.site-header {
  width: 100%;
  z-index: 10;
  background: #232424;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

/* Main navbar */
.site-header .navbar {
  min-height: 70px;
  padding: 0;
  background: #191a1a;
}

.site-header .navbar > .container-fluid {
  min-height: 70px;
}

/* Name and job title */
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-brand:hover,
.site-brand:focus {
  color: #fff;
}

.site-brand strong {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.brand-divider {
  color: rgba(255, 255, 255, 0.65);
}

.brand-role {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
}

.linkedin-link {
  font-size: 2rem;
  color: gray;
}

.linkedin-link:hover,
.linkedin-link:focus {
  color: #f8c206;
}

.site-header .navbar > .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-button {
  transform: scale(0.9);
}

/* Portfolio area */
.portfolio-header {
  padding: 15px 0;
  background: #232424;
}

.portfolio-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
}

.portfolio-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  font-size: 1.2rem;
  font-weight: 300;
}

.portfolio-navigation a {
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
  transition: color 0.2s ease;
}

.portfolio-navigation a:hover,
.portfolio-navigation a:focus-visible {
  color: #f8c206;
}

/* Keep anchor targets from hiding behind the fixed header */
.project {
  scroll-margin-top: calc(var(--site-header-height) + 20px);
}

@media (max-width: 991.98px) {
  :root {
    --site-header-height: 225px;
  }

  .site-header .navbar {
    padding: 12px 0;
  }

  .site-brand {
    gap: 7px;
  }

  .site-brand strong {
    font-size: 1rem;
  }

  .brand-role {
    font-size: 0.9rem;
  }

  .site-header .navbar-collapse {
    padding: 15px 0;
  }

  .site-header .navbar-nav {
    align-items: stretch !important;
  }

  .linkedin-link {
    font-size: 2rem;
  }

  .header-button {
    display: block;
    width: auto;
    margin-bottom: 0;
  }

  .portfolio-header {
    padding: 35px 0 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --page-padding: 20px;
    --site-header-height: 200px;
  }

  .site-header .navbar {
    padding: 10px 0;
  }

  .site-brand {
    display: grid;
    grid-template-columns: auto;
    gap: 2px;
    line-height: 1.1;
  }

  .site-brand strong {
    font-size: 0.95rem;
  }

  .brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .brand-role {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
  }

  .site-brand strong {
    font-size: 1rem;
  }

  .brand-divider {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .header-button {
    min-width: 0;
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 390px) {
  :root {
    --site-header-height: 200px;
  }

  .site-header .navbar > .container-fluid {
    position: relative;
  }

  .header-actions {
    position: absolute;
    right: 20px;
    margin-left: 0;
    gap: 4px;
  }

  .header-button {
    width: auto;
    min-width: 0;
    margin-bottom: 0;
    padding: 0.3rem 0.55rem;
    font-size: 0.7rem;
    line-height: 1.1;
  }
  .brand-role {
    font-size: 0.7rem;
  }

  .linkedin-link {
    font-size: 1.2rem;
  }

  .portfolio-header {
    padding: 10px;
  }

  .portfolio-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 1rem;
    padding: 12px 0;
  }
  .portfolio-navigation span {
    display: none;
  }
}
