@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root{
    --navy-color: #0f2b4c;
}
body {
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
.font-serif {
    font-family: "DM Serif Display", serif;
    font-weight: 700;
}

.text-navy{
    color: var(--navy-color);
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}
.stack-layer {
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid transparent;
    background-color: #0f2b4c0f;
    position: relative;
    z-index: 11;
}
.stack-layer:hover {
    background-color: #0f2b4c0f;
    transform: translateX(5px);
}
.stack-layer.active::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 23%;
    width: 30px;
    height: 30px;
    transform: rotate(45deg);
    z-index: 0;
    background: #fff;
    border-top: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    transition: all 0.3s ease;
}
.stack-layer.active {
    background-color: #fff;
    transform: translateX(10px);
    font-weight: 500;
}
.stack-layer.active span {
    font-size: 22px;
    margin-bottom: 2px;
}
.stack-layer.active p {
    font-size: 15px;
    margin-bottom: 2px;
}
.chart-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    max-height: 300px;
}
.spectrum-btn {
    transition: all 0.3s;
}
.spectrum-btn.active {
    background-color: #0F2B4C;
    color: white;
    border-color: #0F2B4C;
}
.button-one-position {
    top: 45%;
    left: 22%;
}
.button-two-position {
    top: 60%;
    left: 45%;
}


/*  = =  Works Flow Sections = = */

.layer {
  width: 100%;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  transform: translateY(4px);
  opacity: 1;
  position: relative;
}
.layer:nth-child(1) { z-index: 9; }
.layer:nth-child(2) { z-index: 9; }
.layer:nth-child(3) { z-index: 9; }
.layer:hover {
  /*transform: translateY(-5px) scale(1.01);*/
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}
.micro-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  margin-bottom: 6px;
  display: block;
}
.micro-desc {
  font-size: 14px;
  color: rgba(0,0,0,0.65);
}
.micro-foot {
  font-size: 13px;
  color: rgba(0,0,0,0.4);
  margin-top: 10px;
  display: block;
}
.hover-info {
  opacity: 0;
  transform: translateY(10px);
  font-size: 14px;
  margin-top: 10px;
  color: rgba(0,0,0,0.6);
  transition: all 0.3s ease;
}
.layer:hover .hover-info {
  opacity: 1;
  transform: translateY(0);
}
.layer::after {
  content: '';
  position: absolute;
  right: -45px;
  bottom: 50%;
  width: 30px;
  height: 2px;
  background: rgba(0,0,0,0.1);
  transform: translateX(-50%);
}
.layer:last-child::after {
  display: none;
}
.layer.active {
  transform: translateY(0);
  opacity: 1;
}


@media( max-width: 767px){
    .layer::after {
      left: 50%;
      bottom: -30px;
      width: 2px;
      height: 30px;
    }
    .stack-layer.active{
        transform: translateX(0px);
    }
}