/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bona+Nova+SC:ital,wght@0,400;0,700;1,400&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


/* CSS reset */
*,
::before,
::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */

:root {
    --dark-bg: #1B1725;
    --white: #FCFCFC;
    --purple: rgb(89, 40, 229);
    --font-primary: "Poppins", sans-serif;
    --font-secondary: "Bona Nova SC", serif;
}


/* Utility Classes */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.items-center {
    align-items: center;
}

.justify-items-center {
    justify-content: center;
    align-items: center;
}

.gradient {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    background-image: linear-gradient(to right, #a518b3, #9802c3, #8500d4, #6401e7, #0016fb);
    background-size: 300% 300%;
    animation: gradientAnimation 3s ease infinite;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text {
    background: linear-gradient(to right, #a518b3, #9802c3, #8500d4, #6401e7, #0016fb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: gradientTextAnimation 5s ease infinite;
}

@keyframes gradientTextAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* Desktop Fontsize */

h1 {
    font-size: 40px;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 16px;
}

p {
    font-size: 16px;
}

a {
    display: inline-block;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

/* Body Style */

body {
    background-color: var(--dark-bg);
    color: var(--white);
    max-width: 1400px;
    margin: auto;
    overflow-x: hidden;
}

header {
    width: 100%;
    height: 80px;
    margin: auto;
    padding: 0px 40px;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo h2 a {
    color: var(--white);
    font-family: var(--font-secondary);
}


.desktop-nav-bar ul {
    display: flex;
    list-style: none;
}

.desktop-nav-bar ul li {
    padding: 0px 20px;
}

.desktop-nav-bar li a {
    color: var(--white);
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-primary);
    transition: transform 0.2s ease;
}

.desktop-nav-bar li a:hover {
    transform: scale(1.1);
}

.cta a {
    color: var(--white);
    border-radius: 15px;
    padding: 8px 20px;
    font-family: var(--font-primary);
    font-weight: 500;
}

.cta a i {
    font-size: 14px;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.cta a:hover i {
    transform: translateX(10px);
}

.mobile-nav-bar {
    display: none;
    position: absolute;
    width: 350px;
    right: 0;
    top: 80px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0px 5px 0px;
}

.mobile-nav-bar ul {
    list-style: none;
}

.mobile-nav-bar ul a {
    text-decoration: none;
    color: var(--white);
    font-size: 16px;
    padding: 20px;
    width: 100%;
    transition: 0.3s ease;
    font-family: var(--font-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-nav-bar ul a:hover {
    background-color: var(--purple);
} 

.mobile-menu {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

.show {
    display: block;
}

main,
section {
    width: 90%;
    margin: auto;
    margin-top: 40px;
}

.main-social {
    gap: 1.5rem;
}

main {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.main-left,
.main-light {
    width: 45%;
}



.main-left {
    gap: 1.5rem;
}

.main-says {
    font-family: var(--font-primary);
    gap: 1rem;
}

.main-says h1 {
    line-height: 40px;
}

.main-says p {
    line-height: 20px;
}

.wave-icon {
    display: inline-block;
    margin-right: 10px;
    animation: wave-animation 0.5s ease-in-out infinite;
}

@keyframes wave-animation {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(-15deg);
    }
}

.main-says h1 img {
    width: 30px;
    height: 30px;
}

.main-social i {
    color: var(--white);
    font-size: 18px;
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease-in-out;
}

.main-social i:hover {
    transform: scale(1.2);
}

.main-cta {
    gap: 1.5rem;
}

.main-cta a {
    color: var(--white);
    font-family: var(--font-primary);
}

.hello-btn {
    padding: 8px 20px;
    border-radius: 15px;
}

.hello-btn i {
    transition: transform 0.2s ease;
}

.hello-btn:hover i {
    transform: translateX(10px);
}

.secondary-btn {
    padding: 8px 20px;
    border: 1px solid var(--white);
    border-radius: 15px;
    transition: 0.2s ease;
}

.secondary-btn:hover {
    background-color: var(--purple);
}


.main-right .main-img {
    position: relative;
}

.main-right .main-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #a518b3, #9802c3, #8500d4, #6401e7, #0016fb);
    z-index: -1;
    filter: blur(1rem);
    opacity: 0.6;
    transition: all 1s ease-in-out;
    animation: animate 5s ease-in-out infinite;
}

.main-right .main-img img {
    position: relative;
    z-index: 1;
}

@keyframes animate {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

section {
    font-family: var(--font-primary);
}

.about-right {
    width: 45%;
}


.about-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gradient-border {
    --borderWidth: 3px;
    background: #1D1F20;
    position: relative;
    border-radius: var(--borderWidth);
  }
  .gradient-border:after {
    content: '';
    position: absolute;
    top: calc(-1 * var(--borderWidth));
    left: calc(-1 * var(--borderWidth));
    height: calc(100% + var(--borderWidth) * 2);
    width: calc(100% + var(--borderWidth) * 2);
    background: linear-gradient(60deg, #a518b3, #9802c3, #8500d4, #6401e7, #0016fb);
    border-radius: calc(2 * var(--borderWidth));
    z-index: -1;
    animation: animatedgradient 3s ease alternate infinite;
    background-size: 300% 300%;
    filter: blur(5px);
  }
  
  
  @keyframes animatedgradient {
      0% {
          background-position: 0% 50%;
      }
      50% {
          background-position: 100% 50%;
      }
      100% {
          background-position: 0% 50%;
      }
  }
  

.about-right {
    gap: 1.5rem;
}

.about-text {
    gap: 1rem;
}

.about-text h2 {
    line-height: 35px;
}

.about-text p {
    line-height: 20px;
}

.about-cta {
    gap: 1rem;
}

.about-cta a {
    color: var(--white);
}

/* Works Section Starts here */

#works-section {
    text-align: center;
    margin-top: 120px;
}

.underline {
    position: relative;
    display: inline-block;
    padding: 15px;
}

.underline::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 26px;
    background: url(Assets/underline.svg);
    bottom: 0;
    left: 0;
}

.cover-design {
    margin: 40px 0px;
    padding: 30px;
}

.tag-list {
    list-style: none;
    margin: 0;
    padding-inline: 0;
}

.tag-list img {
    height: 300px;
    width: 300px;
}

.scroller {
    max-width: 90%;
    margin: auto;
}


.scroller__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding-block: 1rem;
}

.scroller[data-animated = true] {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
} 

.scroller[data-animated = true] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction = "right"] {
    --_animation-direction: reverse;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 0.4rem));
    }
}

.children-book {
    max-height: 90vh;
    overflow-y: hidden;
    display: flex;
}

.scroller[data-direction="up"] .scroller__inner,
.scroller[data-direction="down"] .scroller__inner {
    display: block;
    animation: scroll-vertical var(--_animation-duration, 40s) linear infinite;
}

.scroller[data-direction="up"] .scroller__inner {
    --_animation-direction: normal;
}

.scroller[data-direction="down"] .scroller__inner {
    --_animation-direction: reverse;
}

@keyframes scroll-vertical {
    to {
        transform: translateY(calc(-100% - 0.4rem));
    }
}
/* Book Formatting section starts here */

.book-formatting {
    padding: 40px;
}

.book-formatting-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding-top: 20px;
}

.formatting-box {
    display: contents;
}

.formatting-img-container {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.formatting-img-container img {
    width: 100%;
    height: auto;
    display: block;
}

.formatting-img-container a {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: rgba(89, 40, 229, 0.9);
    color: var(--white);
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.formatting-img-container:hover a {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}



/* services section starts here */
.cards {
    margin: 30px 0px;
    gap: 1rem;
}
.card img {
    width: 100%;
}

.certificate {
    text-align: center;
    padding: 20px;
}

.cer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.item1 {
    grid-column: 1;
}

.item2 {
    grid-column: 2;
}

.item3 {
    grid-column: 1 / span 2;
}

.item4 {
    grid-column: 1;
}

.item5 {
    grid-column: 2;
}


.cer-img img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Optional: Adds rounded corners to the images */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds a shadow effect */
}

/* Testimonial section starts here */

#testimonial {
    gap: 1.5rem;
    text-align: center;
}
 
.test {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
}

.test-img {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding-top: 15px;
}

.test-img img {
    height: 200px;
    max-width: 100%;
    padding: 10px;
}
/* Testimonial section ends here */
  #stat {
    padding: 30px 0px;
  }

  #stat h2{
    text-align: center;
  }

  .counters {
    display: flex;
    justify-content: space-around;
    font-family: var(--font-primary);
    padding: 30px 0px;
  }

  .counter .inc-item{
    font-size: 1.2rem;
  }

  .counter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0px 20px;
  }

  .spanner {
    position: relative;
  }
  
  .spanner::after {
    content: "K";
  }

#contact {
    font-family: var(--font-primary);
    padding: 30px 0px;
}

.contact {
    gap: 1.5rem;
}

.copy {
    width: 100%;
    
}

.contact-header h2{
    text-align: center;
    font-family: var(--font-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.or {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-top:  1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    text-align: center;
    margin: 30px 0px;
}

.contact-form {
    width: 100%;
}

.form {
    width: 80%;
    margin: auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px; 
    color: var(--white);
}

.name-email {
    display: flex;
    gap: 2rem;
    justify-content: center;
}



input {
    outline: none;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    font-size: 1rem;
    caret-color: var(--white);
    color: var(--white);
}



.name, .email {
    width: 100%;
}


textarea {
    width: 100%;
    resize: none;
    border: none;
    outline: none;
    background: none;
    font-size: 1rem;
    font-family: var(--font-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    caret-color: var(--white);
    font-size: 1rem;
    color: var(--white);
}

.submit-btn {
    width: 150px;
    margin: auto;
    font-size: 1rem;
    border: none;
    outline: none;
    cursor: pointer;
}

footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 30px;
    font-family: var(--font-primary);
    padding: 0px 30px;
    height: 100px;
}



.footer-left ul{
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-left ul a {
    font-size: 1.3rem;
    color: var(--white);
    transition: 0.3s ease;
}

.footer-left ul a:hover {
    transform: scale(1.1);
}


.footer-nav ul{
    display: flex;
    gap: 1.3rem;
    list-style: none;
}

.footer-nav ul a {
    color: var(--white);
    transition: transform 0.3s ease;
}

.footer-nav ul a:hover {
    transform: translateY(-20%);
}




/* Media Queries  */

@media screen and (max-width: 992px) {
    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    h3 { font-size: 26px; }
    h4 { font-size: 22px; }
    h5 { font-size: 18px; }
    h6 { font-size: 16px; }
    p { font-size: 15px; }
    .desktop-nav-bar {
        display: none;
    }

    .cta {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .about-img img {
        width: 320px;
        height: 320px;
    }

    #works-section {
        margin-top: 40px;
    }

    .underline::after {
        height: 24px;
    }
}

@media screen and (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }
    h5 { font-size: 16px; }
    h6 { font-size: 14px; }
    p { font-size: 14px; }

    main {
        flex-direction: column;
        gap: 2rem;
    }

    .main-left {
        width: 100%;
    }

    #about-section {
        flex-direction: column;
        gap: 2rem;
    }

    .about-right {
        width: 100%;
        order: 1;
    }

    .about-left {
        order: 2;
        width: 100%;
    }

    .underline::after {
        height: 23px;
    }

    .cer-container {
        padding: 0;
    }
    .name-email {
        flex-direction: column;
    }
    footer {
        height: 250px;
    }
    .footer-nav ul {
        flex-direction: column;
    }
}


@media screen and (max-width: 480px) {
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    h4 { font-size: 18px; }
    h5 { font-size: 14px; }
    h6 { font-size: 12px; }
    p { font-size: 12px; }

    .mobile-nav-bar {
        width: 100%;
    }

    .underline::after {
        height: 22px;
    }

    .book-formatting {
        padding: 20px;
    }

    .book-formatting-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .cer-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        padding: 0;
    }

    .item1 {
        grid-column: 1;
    }
    
    .item2 {
        grid-column: 1;
    }
    
    .item3 {
        grid-column: 1;
    }
    
    .item4 {
        grid-column: 1;
    }
    
    .item5 {
        grid-column: 1;
    }

    .counters {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .counter {
        width: 50%;
    }
}