/*Themes adjust*/
[data-bs-theme="dark"] {
  /* Hijos con reglas específicas */
  .card {
    --bs-card-cap-bg: rgb(69, 69, 69);
  }
  .blockquote-footer{
    color: #D7CCC8
  }
  .bg-body {
    background-image: linear-gradient(135deg, #17191c 0%, #656c77 100%);
  }
  .bg-info {
    background-image: linear-gradient(135deg, #ff4c00 0%, #ff7200 100%);
  }
  .case-item__icon {
    filter: invert(67%) sepia(35%) saturate(500%) hue-rotate(15deg) brightness(110%) contrast(95%);
  }
  .btn-outline-info{
    --bs-btn-color: #ff6f00;
    --bs-btn-border-color: #ff6e00;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #ff7000;
    --bs-btn-hover-border-color: #ff7000;
    --bs-btn-focus-shadow-rgb: 13,202,240;

  }
  --bs-info: #f62b0c;
  --bs-primary: #E91E63;
}

/* ===========================
   BASE & LAYOUT
   =========================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  background: url("../imgs/trianglify-lowres.png") no-repeat center center fixed;
  background-size: cover;
  font-family: lato, sans-serif;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

main {
  --bs-card-height: 75vh !important;
}

@media (max-width: 768px) {
  main {
    --bs-card-height: 100vh !important;
  }
}

/* ===========================
   NAVIGATION & TABS
   =========================== */
.nav-item {
  flex: 1 0 auto;
}

nav.bg-gradient {
  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}

.tab-content {
  position: relative;
  perspective: 1500px;
}

.tab-pane {
  position: absolute;
  flex-direction: column;
  top: 0;
  left: 0;
  min-height: 100%;
  width:100%;
  transform: translate3d(0,0,0);
}

.tab-pane.active {
  display:flex;
}

/* ===========================
   FORMS
   =========================== */
form input::placeholder {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--bs-gray-500);
}

form .btn[type='submit'] {
  --bs-btn-hover-color: #fff;
}

form .bi {
  user-select: none;
}

/* ===========================
   COMPONENTS & UTILITIES
   =========================== */
.fadeinout {
  transition: all 0.5s ease-in-out;
}

.case-item__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto;
}

.map {
  width: 100%;
  height: 100%;
}

.mytooltip {
  padding: 0;
  line-height: 0.1rem;
}

/* ===========================
   EDUCATION & LISTS
   =========================== */
.edulist mark {
  display: block;
  background-color: var(--bs-info-bg-subtle);
  color: var(--bs-body-bg);
  padding: 1rem 0.2rem;
  border-top-left-radius: 10px;
}

.edulist mark span {
  display: block;
  writing-mode: vertical-lr;
  transform: rotate(178deg);
}

.edulist .card {
  border-top-left-radius: 0;
  min-height: calc(100% + 0.5rem);
  background-color: var(--bs-card-bg);
  color: var(--bs-body-color);
}

/* ===========================
   BLOCKQUOTES
   =========================== */
.blockquote .text {
  position: relative;
  padding: 8px 10px 8px 16px;
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--bs-body-color);
}

.blockquote .text:after,
.blockquote .text:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: url("../imgs/quotes.svg") 0 0/contain no-repeat;
  opacity: .65;
}

.blockquote .text:after {
  left: auto;
  top: auto;
  right: 3px;
  bottom: 6px;
  transform: scale(-1);
  -webkit-transform: scale(-1);
}

.blockquote footer {
  font-size: 0.75rem;
}

/* ===========================
   REVIEWS / USER INFO
   =========================== */
.revs-item .user .img {
  margin: 0 auto;
  display: block;
  width: 60px;
}

.revs-item .info .name {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--bs-gray-800);
}

.revs-item .info .company {
  font-size: 14px;
  color: var(--bs-gray-500);
  font-weight: 400;
}

/* ===========================
   PROGRESS CIRCULAR BAR
   =========================== */
.progress-container {
  width: 90px;
  height: 90px;
}

.progress-circle {
  transform: rotate(-90deg);
}

.progress-bg {
  fill: none;
  stroke: var(--bs-light-border-subtle);
  stroke-width: 10;
}

.progress-bar {
  fill: none;
  stroke: var(--bs-info);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: var(--circle);
  stroke-dashoffset: var(--circle);
}

.progress-container.animate .progress-bar {
  animation: progress-animation 1.5s ease-in-out forwards;
}

.progress-text {
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 16px;
  fill: var(--bs-highlight-color);
  transform-origin: center;
  transform: rotate(90deg);
}

@keyframes progress-animation {
  to {
    stroke-dashoffset: var(--filled);
  }
}

/* ===========================
   OTHER SKILLS ANIMATION
   =========================== */
.otherskills {
  gap: 0.15rem;
  padding: 0 1.5rem;
}

.otherskills div {
  --time: 0.5s;
  background: var(--bs-primary);
  color: var(--bs-light);
  opacity: 0;
  transition: opacity var(--time) ease-in-out var(--time);
}

.otherskills.show div {
  opacity: 1;
}


/* ===========================
   SOCIAL LINKS
   =========================== */
.social-links a {
  aspect-ratio: 1;
}

.social-links :is(a:hover i, a:hover) {
  border-radius: 50%;
  color: var(--bs-primary);
  transition: color 0.3s ease-in-out, background 0.3s ease-in-out;
}

/* ==============================
   ANIMATIONS
   ==============================*/

.subtitle-animeIn {
  opacity: 0;
  transform-style: preserve-3d;
  transform: translate3d(0,0,0);
  animation: subtitle 600ms ease-in-out both 500ms;
}
/*Avalaible animations for panel changes*/
/* room walls */
.animated-panel-rotateRoomLeftOut {
  -webkit-transform-origin: 100% 50%;
  transform-origin: 100% 50%;
  -webkit-animation: rotateRoomLeftOut .8s both ease;
  animation: rotateRoomLeftOut .8s both ease;
}
.animated-panel-rotateRoomLeftIn {
  -webkit-transform-origin: 0% 50%;
  transform-origin: 0% 50%;
  -webkit-animation: rotateRoomLeftIn .8s both ease;
  animation: rotateRoomLeftIn .8s both ease;
}
.animated-panel-rotateRoomRightOut {
  -webkit-transform-origin: 0% 50%;
  transform-origin: 0% 50%;
  -webkit-animation: rotateRoomRightOut .8s both ease;
  animation: rotateRoomRightOut .8s both ease;
}
.animated-panel-rotateRoomRightIn {
  -webkit-transform-origin: 100% 50%;
  transform-origin: 100% 50%;
  -webkit-animation: rotateRoomRightIn .8s both ease;
  animation: rotateRoomRightIn .8s both ease;
}
/* sides */
.animated-panel-rotateSidesOut {
  -webkit-transform-origin: -50% 50%;
  transform-origin: -50% 50%;
  -webkit-animation: rotateSidesOut .5s both ease-in;
  animation: rotateSidesOut .5s both ease-in;
}
.animated-panel-rotateSidesIn {
  -webkit-transform-origin: 150% 50%;
  transform-origin: 150% 50%;
  -webkit-animation: rotateSidesIn .5s both ease-out;
  animation: rotateSidesIn .5s both ease-out;
}
/*keyframes*/

@keyframes rotateRoomLeftOut {
  from { }
  to { opacity: .3; -webkit-transform: translateX(-100%) rotateY(90deg); transform: translateX(-100%) rotateY(90deg); }
}

@keyframes rotateRoomLeftIn {
  from { opacity: .3; -webkit-transform: translateX(100%) rotateY(-90deg); transform: translateX(100%) rotateY(-90deg); }
}


@keyframes rotateSidesOut {
  from { }
  to { opacity: 0; -webkit-transform: translateZ(-500px) rotateY(90deg); transform: translateZ(-500px) rotateY(90deg); }
}
@keyframes rotateSidesIn {
  from { opacity: 0; -webkit-transform: translateZ(-500px) rotateY(-90deg); transform: translateZ(-500px) rotateY(-90deg); }
}
/*Home Subtitle*/
@keyframes subtitle {
  0% {
    opacity: 0;
    transform: rotateX(90deg);
  }
  100% {
    opacity: 0.75;
    transform: rotateX(0deg);
  }
}

/* ===========================
   CONTACT FORM MESSAGE
   =========================== */
form{
  perspective: 1500px;
}
form .flip-inner {
  transform-style: preserve-3d;
  transition: transform 0.8s;
}
form.flipped .flip-inner {
  transform: rotateY(180deg);

}
#form-inputs, #success-message {
  backface-visibility: hidden;
}

#success-message {
  top: 0%;
  left: 0%;
  transform: rotateY(180deg);
}
#success-message > div {
  width: 60%;
  aspect-ratio: 1;
  padding: 1rem;
}
