/*
 * Main CSS 
 */

:root {
  --orange: rgba(255, 180, 110, 1);
  --bordeaux: rgba(65, 1, 67, 1);
  --green: rgb(122 137 0);
  --lavender: rgb(223, 197, 254);
  --lightgrey: rgb(241, 241, 241);
  --mid-blue: rgb(83, 157, 236, 1);
  --bs-body-font-family: "Manrope", sans-serif;
  --bs-header-font-family: "Abril Fatface", serif;
}


.section-style {
  min-height: 100vh;
}

.bg-green {
  background-color: var(--green);
  border: red;
}

.bg-orange {
  background-color: var(--orange);
  border: red;
}

.bg-lavender {
  background-color: var(--lavender);
  border: red;
}

.bg-lightgrey {
  background-color: var(--lightgrey);
  border: red;
}

html {
  scroll-behavior: smooth;
  height: -webkit-fill-available;
}

p,
ul {
  font-family: var(--bs-body-font-family);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: smaller;
}

h1,
h2,
h3,
h4 {
  font-family: var(--bs-header-font-family);
  font-weight: 400;
  font-style: normal;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/* Sidebar content styling */

#sidebar .nav-link {
  color: white;
  text-shadow: #000 1px 1px 10px;
  position: relative;
  padding: 12px 16px;
  transition: all 0.3s;
  font-family: var(--bs-body-font-family);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: small;
}

#sidebar .nav-link:hover {
  color: var(--mid-blue);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

#sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.15);
}

#sidebar .nav-link i {
  margin-right: 8px;
  vertical-align: text-bottom;
}

/*
 * About Page
*/

#aboutpage {
  padding-block-start: 2%;
}

.about-text ul.list-unstyled {
  font-size: small;
}

#aboutpage .rounded-mask {
  border-radius: 50%;
  border: 10px solid #fff;
}

#aboutpage img.img-fluid.rounded-mask.shadow {
  width: 90%;
}

/* 
  * Descrições Cartões Portofolio 
  */
.card {
  position: relative;
  overflow: hidden;
}

.card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card.project-card {
  cursor: pointer;
}

.card:hover .card-overlay {
  opacity: 1;
}

.card-overlay h5 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card-overlay p {
  font-size: 0.9rem;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}


/* Loading Overlay */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(65, 1, 67, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
  opacity: 1;
  overflow: hidden;
}

#loadingOverlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#content-container {
  overflow: hidden;
}

/* footer */

#footer {
  background-color: black;
  color: white;
  animation: colorChange 10s infinite;
  font-family: "Manrope", sans-serif;
  font-size: smaller;
}

@keyframes colorChange {
  0% {
    background-color: rgba(0, 0, 0, 1);
  }

  25% {
    background-color: rgb(114, 143, 0);
  }

  50% {
    background-color: rgb(255, 187, 1);
  }

  75% {
    background-color: rgb(1, 179, 255);
  }

  100% {
    background-color: rgb(0, 0, 0);
  }
}

a.text-body-secondary i::before,
.footer-info {
  color: white;
}

/* Modal */
#projectModal .modal-dialog {
  max-width: 100vw;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

#projectModal .modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
  width: 100%;
  min-height: 100vh;
}

#projectModal .modal-header {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 8px 8px 0 0;
  border: none;
  padding: 1.5rem;
}

#projectModal .modal-body {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 0 0 8px 8px;
  padding: 1.5rem;
}

/* Layout */
.project-media-layout {
  display: flex;
  gap: 1rem;
  max-height: calc(100vh - 250px);
  /* Constrain the entire layout */
}

#featured-display {
  flex: 1;
  min-width: 0;
  max-height: calc(100vh - 250px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Prevent overflow */
}

#featured-display img {
  max-width: 100%;
  max-height: calc(100vh - 250px);
  /* Fixed pixel value */
  object-fit: contain;
  width: auto;
  /* Let it size naturally */
  height: auto;
}

#featured-display .ratio {
  max-height: calc(100vh - 250px);
}

.thumbnails-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 250px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-right: 0.5rem;
  flex-shrink: 0;
}

/* Thumbnail styling */
.media-thumbnail {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

#featured-display p,
.media-thumbnail p {
  display: none;
}

/* Image thumbnails - taller for visibility */
.media-thumbnail img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

/* Video thumbnails - maintain aspect ratio */
.media-thumbnail .ratio {
  aspect-ratio: 16/9;
}

.media-thumbnail:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #007bff;
}

.media-thumbnail.active {
  border-color: #007bff;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.media-thumbnail {
  position: relative;
}

/* Other media layouts */
.media-featured,
.media-full-width {
  width: 100%;
}

.media-half {
  width: 48%;
  aspect-ratio: 16/9;
  display: inline-block;
  margin: 0.25rem;
}

/* Scrollbar */
.thumbnails-column::-webkit-scrollbar {
  width: 6px;
}

.thumbnails-column::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.thumbnails-column::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.thumbnails-column::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/*
 * Language Switcher
 */
#lang-switcher a {
  font-size: smaller;
}

#lang-switcher img {
  width: 20px;
}

#lang-switcher .btn-lang {
  background: rgba(255, 255, 255, 0.15);
}