
h1, h2, h3, h4, h5, h6 {
    font-family: 'Teko', sans-serif !important;
}

/* Background Floating Books */

#floating-books {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.floating-book {
    position: absolute;
    width: 120px; 
    height: auto;
    opacity: 0.7;
    animation: floatBook linear infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    will-change: transform;
}

@keyframes floatBook {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

.floating-book:nth-child(1) { left: 2%; animation-duration: 20s; }  
.floating-book:nth-child(2) { left: 12%; animation-duration: 25s; } 
.floating-book:nth-child(3) { left: 25%; animation-duration: 30s; } 
.floating-book:nth-child(4) { left: 40%; animation-duration: 35s; } 
.floating-book:nth-child(5) { left: 55%; animation-duration: 40s; } 
.floating-book:nth-child(6) { left: 70%; animation-duration: 45s; } 
.floating-book:nth-child(7) { left: 85%; animation-duration: 50s; }
.floating-book:nth-child(8) { left: 95%; animation-duration: 55s; } 


@media (max-width: 768px) {
    .floating-book { 
        width: 100px; 
    }
    .floating-text { 
        font-size: 1rem; 
    }
}

/* Main section */

.contact-section {
    display: block;
    justify-content: center;
    align-items: center;
    padding: 60px 10%;
    background: url('images/Pen.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 80vh;
    height: auto;
}

.contact-section .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding-top: 50px;
}

.text-section h1 {
    font-size: 50px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #3e3e3e;
}

.text-section span {
    color: #6a1b9a;
}

.contact-section strong {
    color: #6a1b9a;
    font-family: 'poppins';
    font-size: 20px;
}

.text-section p {
    font-size: 18px;
    margin-bottom: 30px;
    font-family: 'poppins';
}

.cta-button {
    padding: 12px 30px;
    margin-bottom: 30px;
    background-color: #6a1b9a;
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.cta-button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(106, 17, 203, 0.3);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.form-section {
    background: #6a1b9a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 40px;
}

.contact-form label {
    color: #fff;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button[type=submit] {
    background-color: #fff;
    color: #000;
    cursor: pointer;
    margin-top: 10px;
    border: #3f0979;
    width: 100%;
}

/* Desktop */

@media (max-width: 1440px) {

    .text-section h1 {
        font-size: 40px;

    }

    .contact-section strong {
        font-size: 20px;
    }

    .text-section p {
        font-size: 17px;
    }
}

/* Laptops */
@media (max-width: 1280px) { 

    .contact-section {
        display: flex;
        height: auto;
    }
    
    .contact-section .row {
        width: 100%;
        max-width: 1200px;
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .text-section h1 {
        font-size: 36px;
    }
    

    .contact-section strong {
        font-size: 18px;
    }
    
    .text-section p {
        font-size: 16px;

    }
    
}

/* Mobile */

@media (max-width: 768px) {
    .contact-section {
        height: auto;
    }

    .contact-section .row {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .text-section h1 {
        font-size: 28px;
    }

    .text-section p {
        font-size: 15px;
        text-align: left;
    }

}

/* Logo Carousel */

.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    margin: 20px 0;
}

.logos-container {
    display: flex;
    align-items: center;
    gap: 20px;
    animation: slideLeft 20s linear infinite;
    width: max-content; 
    height: 10vh;
}

.logos-container logo {
    flex: 0 0 auto;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.logos-container .logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes slideLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.carousel:hover .logos-container {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .logos-container logo {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .logos-container logo {
        height: 50px;
    }
}

/* Ghostwriting Section */

#ghostwriting {
    background: linear-gradient(45deg, #6a1b9a, #3f0979);
    padding: 80px 8% 50px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.animate-float {
    animation: float 4s infinite ease-in-out;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(45deg, #d2a8ff, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.2); 
    padding: 20px;
    border-radius: 5px;
    backdrop-filter: blur(5px); 
    transition: 0.3s ease-in-out;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.3); 
    transform: translateY(-5px);
}

.stat-box h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.d-grid.gap-3 a {
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1rem;
    transition: 0.3s ease;
} 

.btn-light {
    background: #fff;
    color: #000;
    font-weight: bold;
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff !important;
}

.btn-light:hover,
.btn-outline-light:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    color: #6a11cb !important;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (max-width: 768px) {
    .text-gradient {
        font-size: 2rem;
        text-align: center;
    }

    .lead {
        font-size: 1.1rem;
        text-align: center;
    }

    .stat-box {
        padding: 15px;
    }

    .stat-box h3 {
        font-size: 1.8rem;
    }

    .stat-box p {
        font-size: 0.9rem;
    }

    .d-grid.gap-3 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .text-gradient {
        font-size: 1.8rem;
    }

    .lead {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
    }
}


/* Book Categories Section */

.book-categories {
    padding: 80px 10%;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    
}


.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #3e3e3e;
}

.section-header span {
    color: #6a1b9a;
}

.section-header strong {
    color: #6a1b9a;
    font-family: 'poppins';
    font-size: 20px;
}

.section-header p {
    font-size: 18px;
    margin-bottom: 30px;
    font-family: 'poppins';
}

.category-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-btn {
    padding: 10px 20px;
    background: rgba(106, 17, 203, 0.1);
    border: 1px solid rgba(106, 17, 203, 0.2);
    border-radius: 30px;
    color: #6a11cb;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.category-btn:hover {
    background: rgba(106, 17, 203, 0.2);
    transform: translateY(-3px);
}

.category-btn.active {
    background: linear-gradient(45deg, #6a1b9a, #3f0979);
    border: none;
    color: #fff;
}

.scrollable-book-grid {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 15px;
}

.book-grid {
    display: inline-flex;
    gap: 20px;
    padding: 10px 0;
}

.book-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    flex: 0 0 auto;
    width: 200px;
}

.book-card:hover {
    transform: translateY(-8px);
}

.book-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.book-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
    white-space: normal;
}


.scrollable-book-grid::-webkit-scrollbar {
    height: 6px;
}

.scrollable-book-grid::-webkit-scrollbar-thumb {
    background: rgba(106, 17, 203, 0.3);
    border-radius: 10px;
}

.scrollable-book-grid::-webkit-scrollbar-track {
    background: rgba(106, 17, 203, 0.1);
}

@media (max-width: 768px) {
    .book-categories {
        padding: 60px 20px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Process */

.process-section {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(45deg, #6a1b9a, #3f0979);

}
.process-container {
    max-width: 1200px;
    margin: 0 auto;
}

.process-section h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #fff;
}

.process-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.process-steps {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    padding: 10px;
    transition: all 0.3s ease-in-out;
}

.step:hover {
    transform: scale(1.05);
}

.step span {
    font-size: 20px;
    font-weight: bold;
    background: rgb(255, 255, 255);
    color: #6a11cb;
    padding: 10px 15px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step p {
    font-size: 18px;
    color: #fff;
}

.process-content {
    width: 50%;
    text-align: left;
}

.process-content h3 {
    font-size: 40px;
    text-transform: uppercase;
    font-weight: 600;
    color: #fff;
}

.process-content p {
    font-size: 16px;
    color: #fff;
}

.process-content img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .process-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .process-steps {
        width: 100%;
    }

    .step {
        justify-content: center;
    }

    .process-content {
        width: 100%;
    }
}


/* Genres */

.genres-section {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    background: url('images/Genre.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.genres-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header h2 {
    font-size: 40px;
    color: #1a1a2e;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-header .subtitle {
    color: #4a4a6a;
    font-size: 18px;
    margin-bottom: 30px;
}

.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.genre-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(40px);
}

.genre-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.genre-card:hover {
    transform: scale(1.05);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #6a11cb, #3f0979) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.card-icon i {
    color: white;
    font-size: 32px;
}

.genre-card h3 {
    color: #1a1a2e;
    margin-bottom: 15px;
    font-size: 22px;
}

.genre-card p {
    color: #4a4a6a;
    line-height: 1.6;
    margin-bottom: 20px;
}

.genre-cta {
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
}

.genre-cta primary {
    color: #fff
}

.primary {
    background: linear-gradient(45deg, #6a11cb, #3f0979);
    color: white;
}

.secondary {
    border-color: #6a11cb;
    background: transparent;
}

.genre-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.15);
} 

@keyframes icon-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.card-icon:hover {
    animation: icon-pulse 1s ease infinite;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    .genre-grid {
        grid-template-columns: 1fr;
    }

}

/* Publishing Process */

.publishing-process {
    background: linear-gradient(45deg, #6a1b9a, #3f0979);
    padding: 100px 20px;
}

.publishing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.publishing-header {
    text-align: center;
    margin-bottom: 60px;
}

.publishing-header h2 {
    font-size: 40px;
    color: #fff;
    margin-bottom: 20px;
}

.publishing-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.publishing-steps {
    position: relative;
    padding: 40px 0;
}

.publishing-step {
    position: relative;
    margin-bottom: 40px;
    transition: all 0.4s ease;
}

.step-content {
    display: flex;
    align-items: center;
    background: #541289;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.publishing-step:hover .step-content {
    transform: translateX(20px);
    border-color: #3f0979;
    box-shadow: 0 10px 30px rgba(106, 17, 203, 0.2);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #6a11cb, #3f0979);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    flex-shrink: 0;
}

.step-icon i {
    color: #fff;
    font-size: 20px;
}

.step-text h3 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 20px;
}

.step-text p {
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
}

.step-line {
    position: absolute;
    left: 35px;
    top: 70px;
    bottom: -40px;
    width: 2px;
    background: #fff;
    z-index: 1;
}

.publishing-step:last-child .step-line {
    display: none;
}

.publishing-image {
    height: 1000px;
    border-radius: 20px;
    overflow: hidden;
    animation: imageEntrance 1s 0.5s forwards;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.publishing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.4s ease;
}

.publishing-image:hover img {
    transform: scale(1.03);
}

@media (max-width: 992px) {

    .publishing-wrapper {
        grid-template-columns: 1fr;
    }

    .publishing-image {
        height: 400px;
        margin-left: 0;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .publishing-image {
        height: 300px;
        border-radius: 15px;
    }

    .publishing-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Parallax Effect */
@media (prefers-reduced-motion: no-preference) {
    .publishing-image {
        transition: transform 0.3s ease-out;
    }

    .publishing-image[data-scroll] {
        transform: translateY(calc(var(--scroll-y) * -0.5px));
    }
}


@keyframes imageEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) rotate(3deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

@keyframes imageFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes overlayPulse {
    0% {
        opacity: 0.9;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }

    100% {
        opacity: 0.9;
        transform: scale(1);
    }
}

/* Services */

.sec_3 {
    padding: 80px 20px;
    background: url('images/Portfolio-BG.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.contant_wrap h2 {
    font-size: 40px;
    font-weight: 700;
    color: #222;
}

.contant_wrap .highlight {
    color: #6a1b9a;
    font-weight: 700;
}

.contant_wrap p {
    font-size: 16px;
    font-family: 'poppins';
    color: #555;
    line-height: 1.6;
    margin: 15px 0;
}

.contant_wrap ul {
    list-style: none;
    padding: 0;
}

.contant_wrap li {
    font-size: 16px;
    color: #222;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contant_wrap li i {
    color: #6a1b9a;
    font-weight: bold;
    margin-right: 10px;
}

.btn {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.3s;
}

.over-btns {
    background: #6a1b9a;
    color: #fff;
    margin-right: 10px;
}

.btn-primary {
    background: #222;
    color: #fff;
}

.btn:hover {
    opacity: 0.8;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.service-thumbnail {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #222;
    border: 2px solid #6a1b9a;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
}

.service-thumbnail:hover {
    background: #6a1b9a;
    color: #fff;
}

.service-thumbnail h3 {
    margin: 0;
    text-decoration: none;
}

.contant_wrap span {
    color: #6a1b9a;
    text-transform: uppercase;
}

.contant_wrap p {
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 768px) {
        .sec_3 {
    background-position: left;
    background-repeat: no-repeat;
    
}


    .contant_wrap h2 {
        font-size: 24px;
    }

    .contant_wrap p {
        font-size: 14px;
    }
}


@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    

    .sec_3 {

        background-position: left;
        background-repeat: no-repeat;
        
    }
    

    .services-grid {
        grid-template-columns: 1fr;
    }
}
