.cir-main-wrapper {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  width: 100%;
}

.cir-container {
  position: relative;
  width: 760px;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
}

.cir-ring-layer{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;

    pointer-events:none;

    transform-box: fill-box;
    transform-origin: 50% 50%;

    will-change: transform;

    overflow: visible;
}

.cir-forward {
    transform: scale(0.80);
}

.cir-reverse {
    transform: scale(0.80); 
}


.cir-content-box {
  position: relative;

  width: 70%;
  height: 90%;

  border-radius: 50%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 50px;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,0.25);

  box-shadow:
      0 8px 35px rgba(0,0,0,.12),
      inset 0 0 20px rgba(255,255,255,.25);

  overflow: hidden;
}


@media (max-width: 768px) {
  .cir-content-box {
    width: 90%;
    height: 90%;
    padding: 125px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .cir-content-box {
    width: 95%;
    height: 95%;
    padding: 20px;
  }
}

.cir-title {
  font-family: 'Inter', sans-serif;
  font-size: 3.8rem;          
  font-weight: 400;        
  text-transform: uppercase;
  color: black;
  user-select: none;
  margin: 0;
  padding: 0 0.2rem;
  text-align: center;
}

@media (max-width: 768px) {
  .cir-title {
    font-size: 2.2rem;
    letter-spacing: 0.2em;
  }
}

.animate-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(15px) translateZ(0);
  filter: blur(5px);
  will-change: transform, opacity, filter;
  
  animation: premiumFadeInOut 8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  
  animation-delay: calc(var(--letter-index) * 0.08s);
}

@keyframes premiumFadeInOut {
  0% {
    opacity: 0;
    transform: translateY(15px) translateZ(0);
    filter: blur(5px);
    text-shadow: 0 0 0px rgba(255, 255, 255, 0);
  }
  15%, 75% {
    opacity: 1;
    transform: translateY(0) translateZ(0);
    filter: blur(0px);
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
  }
  85%, 100% {
    opacity: 0;
    transform: translateY(-8px) translateZ(0);
    filter: blur(2px);
    text-shadow: 0 0 0px rgba(255, 255, 255, 0);
  }
}

.cir-description {
  max-width: 390px;

  margin-top: 5px;
  margin-bottom: 20px;

  font-size: 1.2rem;
  line-height: 1.7;

  color: #444;
}

.cir-button-group {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 20px;
  flex-wrap: wrap;
}

.cir-btn {
  position: relative; 
  padding: 14px 34px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cir-btn-primary {
  background: #000;
  color: #fff;
  border: 1px solid #000; 
}

.btn-text {
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.cir-btn:hover .btn-text {
  opacity: 0;
  transform: translateX(10px);
}

.cir-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left; 
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1; 
}

.cir-btn:hover::before {
  transform: scaleX(1);
}

.cir-btn-primary::after {
  content: '→'; 
  position: absolute;
  left: 0;
  opacity: 0;
  color: #000; 
  font-size: 2rem;
  transform: translateX(-100%); 
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 2; 
}

.cir-btn:hover::after {
  opacity: 1;
  left: 50%;
  transform: translateX(-50%);
}

.cir-btn-secondary {
  background: rgba(255, 255, 255, .35);
  color: #000;
  border: 1px solid rgba(0, 0, 0, .2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cir-btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  transform: scaleX(0);
  transform-origin: left; 
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.cir-btn-secondary:hover::before {
  transform: scaleX(1);
}

.btn-text-initial {
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.cir-btn-secondary:hover .btn-text-initial {
  opacity: 0;
  transform: translateY(-10px); 
}

.btn-text-hover {
  position: absolute;
  z-index: 2;
  color: #fff;
  opacity: 0;
  transform: translateY(10px); 
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px; 
}

.cir-btn-secondary:hover .btn-text-hover {
  opacity: 1;
  transform: translateY(0);
}


.bouncing-arrow {
  display: inline-block;
  animation: infiniteBounce 1.2s ease-in-out infinite;
}

@keyframes infiniteBounce {
  0%, 100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(3px);
  }
}



/* =========================
   Tablet (<= 992px)
========================= */
@media (max-width: 992px) {

  .cir-main-wrapper{
    min-height: auto;
    padding: 40px 20px;
  }

  .cir-container{
    width: 90vw;
    height: 90vw;
    max-width: 650px;
    max-height: 650px;
  }

  .cir-forward,
  .cir-reverse{
    transform: scale(0.88);
  }

  .cir-content-box{
    width: 74%;
    height: 74%;
    padding: 40px;
  }

  .cir-title{
    font-size: 2.8rem;
  }

  .cir-description{
    max-width: 320px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .cir-btn{
    padding: 12px 28px;
    font-size: .95rem;
  }
}


/* =========================
   Mobile (<= 768px)
========================= */
@media (max-width:768px){

  .cir-main-wrapper{
    padding:30px 15px;
    min-height:auto;
  }

  .cir-container{
    width:95vw;
    height:95vw;
    max-width:500px;
    max-height:500px;
  }

  .cir-forward,
  .cir-reverse{
    transform:scale(.92);
  }

  .cir-content-box{
    width:82%;
    height:82%;
    padding:30px;
  }

  .cir-title{
    font-size:2rem;
    letter-spacing:.08em;
  }

  .cir-description{
    max-width:260px;
    font-size:.95rem;
    line-height:1.5;
    margin-bottom:15px;
  }

  .cir-button-group{
    gap:12px;
  }

  .cir-btn{
    padding:11px 22px;
    font-size:.9rem;
  }
}


/* =========================
   Small Mobile (<= 480px)
========================= */
@media (max-width:480px){

  .cir-main-wrapper{
    padding:20px 10px;
  }

  .cir-container{
    width:98vw;
    height:98vw;
    min-width:390px;
    min-height:390px;
  }

  .cir-forward,
  .cir-reverse{
    transform:scale(.95);
  }

  .cir-content-box{
    width:86%;
    height:86%;
    padding:22px;
  }

  .cir-title{
    font-size: 1.85rem;
    letter-spacing:.05em;
  }

  .cir-description{
    max-width:210px;
    font-size:.82rem;
    line-height:1.4;
    margin-bottom:12px;
  }

  .cir-button-group{
    gap:10px;
    flex-direction:column;
  }

  .cir-btn{
    width:170px;
    justify-content:center;
    padding:10px 18px;
    font-size:.85rem;
  }

  .cir-btn-primary::after{
    font-size:1.5rem;
  }
}