/* ============================================
   Book Marketing Page - Modern Tailwind Sections
   ============================================
   Sections Included:
   - services-showcase (sub_banner)
   - narrative
   - faqs
   - newslatter
   
   Theme: Amber gradient with clean modern design
   ============================================ */

/* ============================================
   SERVICES SHOWCASE SECTION (sub_banner)
   ============================================ */
.services-showcase {
    position: relative;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.services-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.service-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1rem 1rem 0 0;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
}

.icon-wrapper {
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Card hover glow effect */
.service-card:hover.hover\:border-blue-100 {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.service-card:hover.hover\:border-purple-100 {
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.service-card:hover.hover\:border-emerald-100 {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.service-card:hover.hover\:border-amber-100 {
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
}

/* ============================================
   NARRATIVE SECTION
   ============================================ */
.narrative {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 50%, #ffffff 100%);
}

.narrative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(245, 158, 11, 0.02) 0%, transparent 50%),
        linear-gradient(-135deg, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.narrative_animation span {
    animation: floatNarrative 8s ease-in-out infinite;
}

.narrative_animation span:nth-child(2n) {
    animation-delay: 1s;
    animation-duration: 10s;
}

.narrative_animation span:nth-child(3n) {
    animation-delay: 2s;
    animation-duration: 12s;
}

@keyframes floatNarrative {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.2;
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-50px) rotate(-3deg);
        opacity: 0.25;
    }
    75% {
        transform: translateY(-30px) rotate(3deg);
        opacity: 0.15;
    }
}

.narrative .section_title h3 {
    position: relative;
    display: inline-block;
}

.narrative .section_title h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 2px;
}

.narrative .section_title h4 {
    font-style: italic;
    font-weight: 400;
}

.narrative_slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
}

.narrative_item {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.narrative_item span {
    position: relative;
    font-weight: 700;
    transition: all 0.3s ease;
}

.narrative_item h3 {
    color: #1f2937;
    transition: all 0.3s ease;
    font-weight: 600;
}

.narrative_item:hover span {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.narrative_item:hover h3 {
    color: #2563eb;
}

/* Add pulse animation to narrative items */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.narrative_item:hover {
    animation: pulse 2s infinite;
}

/* ============================================
   FAQS SECTION
   ============================================ */
.faqs {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.faqs::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.faqs_Parent {
    position: relative;
    z-index: 10;
}

.faqs_cont h3 {
    line-height: 1.2;
}

.faqs_cont h3 span {
    background: linear-gradient(135deg, #f39b0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faqs_cont p {
    line-height: 1.7;
}

.faqs_cont a {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faqs_cont a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

/* Modern FAQ Items */
.faqs_main details {
    position: relative;
    transition: all 0.3s ease;
}

.faqs_main details[open] {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.faqs_main summary {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0.5rem;
}

.faqs_main summary::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.faqs_main details[open] summary::before {
    height: 100%;
}

.faqs_main summary:hover {
    color: #2563eb;
    padding-left: 1rem;
}book-writing

.faqs_main summary svg {
    transition: transform 0.3s ease;
}

.faqs_main details[open] summary svg {
    transform: rotate(180deg);
}

/* FAQ Particles animation */
.faqs_particles img {
    animation: floatParticles 6s ease-in-out infinite;
}

.faqs_particles img:nth-child(1) {
    animation-delay: 0s;
}

.faqs_particles img:nth-child(2) {
    animation-delay: 1.5s;
}

.faqs_particles img:nth-child(3) {
    animation-delay: 3s;
}

.faqs_particles img:nth-child(4) {
    animation-delay: 4.5s;
}

@keyframes floatParticles {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 0.2;
    }
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newslatter {
    position: relative;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #f59e0b 100%);
    overflow: hidden;
}

.newslatter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: pulseNewsletter 10s ease-in-out infinite;
    border-radius: 50%;
}

.newslatter::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulseNewsletter 12s ease-in-out infinite;
    animation-delay: 2s;
    border-radius: 50%;
}

@keyframes pulseNewsletter {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.2) rotate(5deg);
        opacity: 0.6;
    }
}

.newslatter_cont {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 4rem 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.newslatter_cont h2 {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.newslatter_cont p {
    color: #6b7280;
    line-height: 1.7;
}

/* Form Styling */
.news__form .form__feild {
    position: relative;
}

.news__form input,
.news__form textarea {
    transition: all 0.3s ease;
    background: #ffffff;
    border: 2px solid #e5e7eb;
}

.news__form input:focus,
.news__form textarea:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
    transform: translateY(-2px);
}

.news__form input::placeholder,
.news__form textarea::placeholder {
    color: #9ca3af;
}

.news__form .themebtn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    transition: all 0.3s ease;
}

.news__form .themebtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.news__form .themebtn:hover::before {
    left: 100%;
}

.news__form .themebtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */

@media (max-width: 1024px) {
    .services-showcase {
        padding: 4rem 0;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .narrative {
        padding: 4rem 0;
    }
    
    .faqs {
        padding: 4rem 0;
    }
    
    .newslatter {
        padding: 4rem 0;
    }
    
    .newslatter_cont {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .services-showcase {
        padding: 3rem 0;
    }
    
    .narrative .section_title h3 {
        font-size: 1.875rem;
    }
    
    .narrative .section_title h4 {
        font-size: 1.125rem;
    }
    
    .narrative_slider {
        gap: 1.5rem;
    }
    
    .faqs_cont {
        margin-bottom: 2rem;
    }
    
    .faqs_cont h3 {
        font-size: 1.875rem;
    }
    
    .faqs_cont a {
        display: block;
        text-align: center;
        margin-bottom: 0.75rem;
    }
    
    .faqs_main summary {
        font-size: 1rem;
        padding: 0.75rem 0.5rem;
    }
    
    .faqs_particles img {
        width: 80px !important;
        opacity: 0.2;
    }
    
    .newslatter_cont {
        padding: 2.5rem 1.5rem;
    }
    
    .newslatter_cont h2 {
        font-size: 1.875rem;
    }
}

@media (max-width: 640px) {
    .service-card {
        padding: 1.5rem 1.25rem;
    }
    
    .narrative .section_title h3 {
        font-size: 1.5rem;
    }
    
    .narrative .section_title h3::after {
        width: 80px;
        height: 3px;
    }
    
    .faqs_cont h3 {
        font-size: 1.5rem;
    }
    
    .faqs_cont p {
        font-size: 0.9375rem;
    }
    
    .newslatter_cont {
        padding: 2rem 1.25rem;
    }
    
    .newslatter_cont h2 {
        font-size: 1.5rem;
    }
    
    .newslatter_cont p {
        font-size: 0.9375rem;
    }
    
    .news__form input,
    .news__form textarea {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }
    
    .news__form .themebtn {
        padding: 0.875rem 2.5rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   ADDITIONAL MODERN EFFECTS
   ============================================ */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.narrative_item,
.faqs_main details,
.newslatter_cont {
    animation: fadeInUp 0.6s ease-out backwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.narrative_item:nth-child(1) { animation-delay: 0.1s; }
.narrative_item:nth-child(2) { animation-delay: 0.2s; }
.narrative_item:nth-child(3) { animation-delay: 0.3s; }
.narrative_item:nth-child(4) { animation-delay: 0.4s; }
.narrative_item:nth-child(5) { animation-delay: 0.5s; }

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
    border-radius: 0.375rem;
}

/* Gradient text utility */
.gradient-text-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-blue {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
