:root {
  --primary: #09235c;
  --secondary: #f89b3b;
  --black: #242424;
  --white: #fefefe;
  --primary-rgb: 0, 123, 255;
}


html,
body {
  overflow-x: hidden;
}

ul {
  padding: 0;
}

p {
  margin: 0;
}

a,
a:hover {
  color: unset;
  outline: none;
  text-decoration: none;
}

.logo {
  max-width: 180px;
}

.btn {
  border-radius: 5px;
  font-weight: 600;
  padding: 10px 25px !important;
  text-transform: capitalize;
}

.btn:hover {
  background-color: var(--black);
  color: var(--white);
}

.p-btn {
  color: var(--white);
  background-color: var(--primary);
}

.p-text {
  color: var(--primary);
}

.p-bg {
  background-color: var(--primary);
}

.s-btn {
  color: var(--white);
  background-color: var(--secondary);
}

.s-text {
  color: var(--secondary);
}

.s-bg {
  background-color: var(--secondary);
}

.beat {
  animation: customAni infinite 3s linear;
}

@keyframes customAni {
  0% {
    animation-timing-function: ease-out;
    transform: scale(1);
    transform-origin: center center;
  }

  10% {
    animation-timing-function: ease-in;
    transform: scale(0.91);
  }

  17% {
    animation-timing-function: ease-out;
    transform: scale(0.98);
  }

  33% {
    animation-timing-function: ease-in;
    transform: scale(0.87);
  }

  45% {
    animation-timing-function: ease-out;
    transform: scale(1);
  }
}

.hover-btn {
  position: fixed;
  top: 25%;
  right: 20px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hover-btn a {
  background: white;

  padding: 10px 15px;
  border-radius: 50%;
  animation: border-move infinite 3s linear;
}

@media screen and (max-width: 578px) {
  .hover-btn {
    position: fixed;
    top: 25%;
    left: 5px;
    right: unset;
  }

  .hover-btn a {
    padding: 5px 10px;
  }

  .res-btn{
    display: none;
  }
}

@keyframes border-move {

  0%,
  100% {
    transform: scale(1);
    border-top: 3px solid var(--primary);
    border-left: 3px solid var(--secondary);
    border-right: 3px solid var(--secondary);
    border-bottom: 3px solid var(--primary);
  }

  50% {
    transform: scale(1.1);
    border-top: 3px solid var(--secondary);
    border-left: 3px solid var(--primary);
    border-right: 3px solid var(--primary);
    border-bottom: 3px solid var(--secondary);
  }
}

section {
  padding: 40px 0;
}


/* Section 1 */

.sec-1 {
  position: relative;
  padding: 50px 0 40px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
}

.banner-list li {
  margin: 10px 0;
}

.sec-1-video {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: -1;
}

.sec-1-video::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.platform-img {
  max-width: 100px;
  animation: scaling 3s infinite linear;
  object-fit: contain;
}

.bark {
  filter: brightness(3);
  animation-delay: 2s;
}

@keyframes scaling {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.07);
  }
}

.form-box {
  background: #fff;
  border-width: 4px;
  border-style: solid;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 4px solid var(--secondary);
  padding: 10px 20px;
  transition: all 0.3s;
}

/* Main border animation */
@keyframes border-dance {
  0% {
    border-top-color: var(--secondary);
    border-right-color: var(--primary);
    border-bottom-color: var(--secondary);
    border-left-color: var(--primary);

  }

  25% {
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-bottom-color: var(--primary);
    border-left-color: var(--secondary);

  }

  50% {
    border-top-color: var(--secondary);
    border-right-color: var(--primary);
    border-bottom-color: var(--secondary);
    border-left-color: var(--primary);

  }

  75% {
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-bottom-color: var(--primary);
    border-left-color: var(--secondary);

  }

  100% {
    border-top-color: var(--secondary);
    border-right-color: var(--primary);
    border-bottom-color: var(--secondary);
    border-left-color: var(--primary);

  }
}

/* Add shine effect */
.form-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  animation: shine 2s linear infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  50% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

/* Add hover effect */
.form-box:hover {
  transform: scale(1.01);
  transition: transform 0.3s ease;
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}

.discount-img {
  position: absolute;
  right: 0;
  top: -30px;
  width: 80px;
  z-index: 1;
  animation: scaling 3s infinite linear;
}

.sec-1 {
  background: linear-gradient(rgba(0,0,0,0.6) , rgba(0,0,0,0.7)) , url(https://penpublishingservices.com/bookpublishingservices/assets/images/pen-banner.webp);
}

.sec-1-form input,
textarea {
  margin-bottom: 10px;
}


/* Slider */

.platform-box {
  overflow: hidden;
}

.platform-box .slick-track {
  margin-top: 5px;
}

.slider-img {
  max-width: 80px;
}

#platform-slider .slick-track {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Section 2 */

.sec-2 {
  background: var(--primary);
}

.circle-2 {
  position: absolute;
  height: 100%;
  width: 450px;
  background-color: var(--secondary);
  border-radius: 50%;
}

.mock-img {
  max-width: 260px !important;
  animation: moving infinite 3s linear;
}

@media screen and (max-width: 992px) {
  .circle-2 {
    width: 350px;
  }
}

@media screen and (max-width: 578px) {
  .circle-2 {
    width: 300px;
    height: 90%;
  }
}

@keyframes moving {

  0%,
  100% {
    transform: rotate(0);
  }

  50% {
    transform: translateY(10px) rotate(-5deg);

  }
}

/* Our Services */

.services-box {
  background: #f5ede6;
  padding: 40px;
  position: relative;
  margin: 0 0 20px;
  border-radius: 10px;

}


/* Steps */

.steps-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.step-card {
  background: var(--secondary);
  border-radius: 15px;
  padding: 30px;
  width: 300px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.step-number {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
  font-weight: bold;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.step-card:hover .step-number {
  transform: scale(1);
}

.step-icon {
  font-size: 40px;
  color: var(--white);
  margin-bottom: 20px;

  transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
  transform: translateY(-10px);
}

.step-title {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 15px;
  position: relative;
}

.step-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--white);
  transition: width 0.3s ease;
}

.step-card:hover .step-title::after {
  width: 100%;
}

.step-description {
  color: #252525;
  line-height: 1.6;
  margin-bottom: 20px;
  transform: translateY(20px);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.step-card:hover .step-description {

  opacity: 1;
}



@media (max-width: 768px) {
  .steps-container {
    gap: 20px;
  }

  .step-card {
    width: 100%;
    max-width: 350px;
  }
}

/* why choose */

.why-choose-list {
  column-count: 2;
  -webkit-column-count: 2;
  -moz-column-count: 2;
  list-style: none;
  padding: 0;
  row-gap: 10px;
}

.why-choose-img {
  transform: translateY(42px);
}

@media screen and (max-width:576px) {
  .why-choose-list {
    column-count: 1;
    -webkit-column-count: 1;
    -moz-column-count: 1;
  }
}


/* Marquee */

.marquee-box {
  background-color: black;
  color: white;
}

.marquee {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 20s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}


/* Trust section */

#trust-slider .slick-slide {
  display: block;
  margin: 0 20px;
}

#trust-slider .slick-slide img {
  border-radius: 15px;
}


/* Section 4 */

.sec-4 {
  position: relative;
}

.cta-box {
  background: var(--primary);
  padding: 10px 20px;
  border-radius: 15px;
  color: var(--white);
  position: relative;
}

.circle {
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: var(--secondary);
  border-radius: 50%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.cta-img {
  position: absolute;
  left: 10%;
  height: auto;
  max-width: 220px;
  animation: cta infinite linear 3s;
  z-index: 2;
}

.cta-img-2 {
  position: absolute;
  left: 30%;
  height: auto;
  max-width: 220px;
  animation: cta infinite linear 3s;
  z-index: 2;
}

@keyframes cta {

  0%,
  100% {
    transform: rotate(-24deg);
  }

  50% {
    transform: translateY(10px) rotate(-20deg);

  }
}

@media screen and (max-width: 768px) {

  .cta-img,
  .cta-img-2 {
    position: relative;
    top: 7%;
    left: 5%;
    max-width: 153px;
    height: 198px;
  }
}

@media (min-width:576px) and (max-width: 767px) {
  .circle {
    width: 160px;
    height: 160px;
  }

  .cta-img,
  .cta-img-2 {
    top: -2%;
    left: 0;
    max-width: 120px;
  }
}

@media screen and (max-width: 576px) {
  .circle {
    width: 160px;
    height: 160px;
  }

  .cta-img,
  .cta-img-2 {
    position: unset;
    top: -2%;
    left: 5%;
    max-width: 120px;
    animation: unset;
  }
}

.c-btn {
  background: transparent;
  border: 1px solid var(--white);
  color: white;
}

/* Section 5 */

.sec-5 {
  position: relative;
}

.bottom-formbox {
  background: url(../images/bg.jpg) center center / cover no-repeat;
  border: 4px solid var(--secondary);
  border-radius: 15px;
}

.bottom-formbox input,
.bottom-formbox textarea {
  box-shadow: 2px 2px 0;
}

@media screen and (max-width: 578px) {
  .bottom-formbox{
    padding: 20px;
  }
}

.sec-5-form {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.b-formbox-img {
  transform: translate(50px, 0px);
}

@media screen and (max-width:768px) {
  .b-formbox-img {
    display: none;
  }

  .sec-5-form {
    align-items: center;
  }
}


/* Footer */

.footer {
  background-color: var(--primary);
  color: #fff;
  padding: 60px 0 0;
}



.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  max-width: 150px;
  height: auto;
}

.footer-description {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-section h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: color 0.3s ease;
}

.contact-info li:hover {
  color: #fff;
}

.contact-info i {
  color: var(--secondary);
  width: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

.copyright {
  margin-top: 40px;
  padding: 20px;
  background-color: #111;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.copyright a {
  color: var(--secondary);
  text-decoration: none;
}

.copyright a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .btn-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo-section {
    align-items: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-info {
    display: inline-block;
    text-align: left;
  }

  .social-links {
    justify-content: center;
  }

}

@media screen and (max-width:578px) {
  .btn {
    border-radius: 5px;
    font-weight: 600;
    padding: 10px 5px !important;
    text-transform: capitalize;
  }
}

@media screen and (max-width: 1025px) {
  .sec-4 .popup-btn {
    display: none;
  }

}