/* Gradient Animation for Button */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 4px 15px rgba(2, 16, 36, 0.3), 0 0 20px rgba(61, 107, 142, 0);
  }
  50% {
    box-shadow: 0 4px 15px rgba(2, 16, 36, 0.3), 0 0 30px rgba(125, 170, 202, 0.4);
  }
  100% {
    box-shadow: 0 4px 15px rgba(2, 16, 36, 0.3), 0 0 20px rgba(61, 107, 142, 0);
  }
}

@keyframes floatUp {
  0% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translateY(-15px) rotateX(2deg) rotateY(2deg);
  }
  100% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }
}

@keyframes dynamicShadow {
  0% {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  100% {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

@keyframes iconTilt {
  0% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
  }
  50% {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.1);
  }
  100% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
  }
}

.chooseus-section {
  padding: 145px 0px;
  position: relative;
}

.chooseus-block-one .inner-box {
  position: relative;
  display: block;
  background: #FFFFFF;
  padding: 35px 25px;
  border-radius: 12px;
  border: 1px solid rgba(15, 24, 29, 0.1);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(15, 24, 29, 0.08), 0 0 1px rgba(125, 170, 202, 0.1);
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.chooseus-block-one .inner-box:hover {
  transform: translateY(-16px) scale(1.02) perspective(1000px) rotateX(2deg);
  box-shadow: 0 20px 45px rgba(15, 24, 29, 0.2), 0 8px 20px rgba(125, 170, 202, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-color: rgba(62, 107, 142, 0.25);
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.95) 100%);
}

.chooseus-block-one .inner-box .icon-box {
  position: relative;
  display: inline-block;
  margin-bottom: 22px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 30px;
  background: linear-gradient(135deg, rgba(61, 107, 142, 0.05) 0%, rgba(125, 170, 202, 0.05) 100%);
  border-radius: 16px;
  border: 1px solid rgba(125, 170, 202, 0.15);
  animation: floatUp 3.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.15));
}

.chooseus-block-one .inner-box .icon-box img {
  display: block;
  height: 80px;
  width: 80px;
  object-fit: contain;
  animation: dynamicShadow 3.5s ease-in-out infinite;
}

.chooseus-block-one .inner-box:hover .icon-box {
  transform: scale(1.15) perspective(1000px) rotateX(8deg) rotateY(8deg);
  background: linear-gradient(135deg, rgba(61, 107, 142, 0.12) 0%, rgba(125, 170, 202, 0.12) 100%);
  border-color: rgba(125, 170, 202, 0.3);
  animation: none;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25));
}

.chooseus-block-one .inner-box:hover .icon-box img {
  animation: iconTilt 0.6s ease-in-out infinite;
}

.chooseus-block-one .inner-box h3 {
  display: block;
  font-size: 24px;
  line-height: 34px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--main-color);
}

.chooseus-block-one .inner-box h3 a {
  display: inline-block;
  color: var(--main-color);
  transition: all 0.3s ease;
}

.chooseus-block-one .inner-box h3 a:hover {
  color: var(--secondary-color);
}

.chooseus-block-one .inner-box p {
  margin-bottom: 20px;
  color: #666666;
  line-height: 1.6;
}

/* Dynamic Gradient Button with Animation */
.chooseus-block-one .inner-box .link-btn a {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 9999px;
  background: linear-gradient(to right, #101c38, #295396, #101c38);
  background-size: 200% auto;
  background-position: left center;
  color: #FFFFFF;
  font-weight: 600;
  transition: all 0.4s ease;
  text-decoration: none;
}

.chooseus-block-one .inner-box .link-btn a:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(41, 83, 150, 0.4);
}

.chooseus-block-one .inner-box .link-btn a span {
  display: inline-block;
  transition: all 300ms ease;
  padding-right: 0;
}

.chooseus-block-one .inner-box .link-btn a span::before {
  display: none;
  content: none;
}

.chooseus-block-one .inner-box .link-btn a i {
  margin-left: 8px;
  transition: transform 0.3s ease;
  display: inline-block;
  font-size: 14px;
}

.chooseus-block-one .inner-box .link-btn a:hover i {
  transform: translateX(4px);
}

/* Premium real-photo upgrade for the home choose-us cards */
.chooseus-section .row{
  display: flex;
  align-items: stretch;
}

.chooseus-section .chooseus-block,
.chooseus-section .chooseus-block-one{
  display: flex;
}

.chooseus-section .chooseus-block-one{
  width: 100%;
}

.chooseus-block-one .inner-box{
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 380px;
  padding: 20px 18px 22px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 171, 0, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.92));
  border: 1px solid rgba(6, 38, 90, 0.1);
  box-shadow: 0 24px 70px rgba(8, 38, 86, 0.1);
  transform-style: preserve-3d;
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 650ms ease, border-color 650ms ease;
}

.chooseus-block-one .inner-box::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 8%, rgba(255,255,255,0.8) 22%, transparent 38%);
  transform: translateX(-120%);
  transition: transform 850ms ease;
  pointer-events: none;
}

.chooseus-block-one .inner-box:hover{
  transform: translateY(-12px) rotateX(4deg) rotateY(-3deg) scale(1.015);
  border-color: rgba(255, 171, 0, 0.32);
  box-shadow: 0 28px 65px rgba(8, 38, 86, 0.16);
}

.chooseus-block-one .inner-box:hover::before{
  transform: translateX(125%);
}

.chooseus-block-one .inner-box .icon-box{
  position: relative;
  display: inline-flex;
  width: 130px;
  height: 130px;
  padding: 6px;
  margin-bottom: 16px;
  border-radius: 22px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(255,171,0,0.82), rgba(0,48,109,0.72)) border-box;
  border: 2px solid transparent;
  box-shadow:
    0 20px 45px rgba(8, 38, 86, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.92);
  overflow: hidden;
  filter: none;
  animation: choosePhotoFloat 5.6s ease-in-out infinite;
  transform: translateZ(44px);
}

.chooseus-block:nth-child(2) .icon-box{ animation-delay: 0.35s; }
.chooseus-block:nth-child(3) .icon-box{ animation-delay: 0.7s; }
.chooseus-block:nth-child(4) .icon-box{ animation-delay: 1.05s; }

.chooseus-block-one .inner-box .icon-box::before{
  content: '';
  position: absolute;
  inset: -28%;
  background: conic-gradient(from 160deg, transparent 0 18%, rgba(255,171,0,0.5) 28%, transparent 42% 100%);
  animation: chooseRingSpin 7s linear infinite;
}

.chooseus-block-one .inner-box .icon-box img{
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 17px;
  object-fit: cover;
  animation: none;
  filter: saturate(1.08) contrast(1.04);
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1), filter 650ms ease;
}

.chooseus-block-one .inner-box:hover .icon-box{
  animation: none;
  transform: translateY(-8px) translateZ(50px) rotateZ(-2deg);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(255,171,0,0.88), rgba(0,48,109,0.8)) border-box;
  border-color: transparent;
  filter: none;
  box-shadow:
    0 28px 60px rgba(8, 38, 86, 0.2),
    0 0 28px rgba(255, 171, 0, 0.16);
}

.chooseus-block-one .inner-box:hover .icon-box img{
  animation: none;
  transform: scale(1.08);
  filter: saturate(1.15) contrast(1.08);
}

.chooseus-block-one .inner-box h3{
  font-size: 20px;
  line-height: 26px;
  font-weight: 800;
  margin-top: 0 !important;
  margin-bottom: 2px !important;
  transform: translateZ(28px);
}

.chooseus-block-one .inner-box h3 a{
  margin-bottom: 0 !important;
}

.chooseus-block-one .inner-box p{
  color: #657082;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 0 !important;
  margin-bottom: 14px;
  flex-grow: 1;
  transform: translateZ(20px);
}

.chooseus-block-one .inner-box .link-btn{
  margin-top: auto;
  transform: translateZ(24px);
}

@keyframes choosePhotoFloat{
  0%, 100% { transform: translateY(0) translateZ(44px) rotateX(0deg) rotateZ(0deg); }
  50% { transform: translateY(-12px) translateZ(50px) rotateX(5deg) rotateZ(1.5deg); }
}

@keyframes chooseRingSpin{
  to { transform: rotate(360deg); }
}

/* Premium real-photo floating cards in the Australia-ready journey visual */
.home_one .dream-visual .floating-card{
  gap: 14px;
  padding: 14px 18px 14px 14px;
  min-width: 238px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.32);
  box-shadow: 0 24px 55px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.25);
  transform-style: preserve-3d;
}

.home_one .dream-visual .floating-card img{
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(255, 171, 0, 0.78);
  box-shadow: 0 14px 28px rgba(0,0,0,0.25);
}

.home_one .dream-visual .floating-card span{
  font-size: 17px;
  line-height: 1.25;
}

.home_one .dream-visual .card-a{
  left: -44px;
  top: 24px;
}

.home_one .dream-visual .card-b{
  right: -18px;
  bottom: 50px;
}

@media (max-width: 1199px){
  .chooseus-block-one .inner-box{
    min-height: 370px;
  }

  .chooseus-block-one .inner-box .icon-box{
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 991px){
  .chooseus-block-one .inner-box{
    min-height: 500px;
    margin-bottom: 30px;
  }

  .home_one .dream-visual .floating-card{
    min-width: 205px;
  }

  .home_one .dream-visual .card-a{
    left: 14px;
  }

  .home_one .dream-visual .card-b{
    right: 14px;
  }
}

@media (max-width: 767px){
  /* 2 cards per row on mobile — 2x2 grid (overrides Bootstrap col-sm-12) */
  .chooseus-section .chooseus-block{
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .chooseus-block-one .inner-box{
    min-height: auto;
    padding: 16px 14px 22px;
    margin-bottom: 16px;
  }

  .chooseus-block-one .inner-box .icon-box{
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
    padding: 6px;
    border-radius: 20px;
  }

  .chooseus-block-one .inner-box h3{
    font-size: 17px;
    line-height: 24px;
    margin-bottom: 10px;
  }

  .chooseus-block-one .inner-box p{
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .chooseus-block-one .inner-box .link-btn a{
    padding: 9px 16px;
    font-size: 13px;
  }

  .home_one .dream-visual .floating-card{
    min-width: 0;
    padding: 10px 12px;
    gap: 10px;
  }

  .home_one .dream-visual .floating-card img{
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }

  .home_one .dream-visual .floating-card span{
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce){
  .chooseus-block-one .inner-box,
  .chooseus-block-one .inner-box::before,
  .chooseus-block-one .inner-box .icon-box,
  .chooseus-block-one .inner-box .icon-box::before,
  .chooseus-block-one .inner-box .icon-box img{
    animation: none;
    transition: none;
  }
}

.chooseus-section .pattern-layer{
  position: absolute;
  top: -150px;
  right: -30px;
  width: 355px;
  height: 376px;
  background-repeat: no-repeat;
  -webkit-animation: zoom-fade 7s infinite linear;
  animation: zoom-fade 7s infinite linear;
}
