/* Professional Writers - Modern Light Blue Theme */

/* CSS Variables for Soft Light Blue Theme */
:root {
    --primary-blue: #0c7af8;
    --light-blue: #12bbfd;
    --sky-blue: #bce2fd;
    --soft-blue: #F0F8FF;
    --white: #FFFFFF;
    --light-grey: #F8FAFB;
    --text-dark: #2C3E50;
    --text-light: #6B7280;
    --gradient-primary: linear-gradient(135deg, #4A90E2 0%, #87CEEB 100%);
    --gradient-soft: linear-gradient(135deg, #E3F2FD 0%, #F0F8FF 100%);
    --shadow-soft: 0 4px 20px rgba(74, 144, 226, 0.08);
    --shadow-medium: 0 8px 30px rgba(74, 144, 226, 0.12);
    --shadow-large: 0 15px 50px rgba(74, 144, 226, 0.15);
    --border-radius: 20px;
    --border-radius-small: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    zoom: 1.11;
    position: relative;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif !important;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

* {
    font-family: 'Lato', sans-serif !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif !important;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.75rem; font-weight: 600; }
h3 { font-size: 2.25rem; font-weight: 600; }
h4 { font-size: 1.75rem; font-weight: 500; }
h5 { font-size: 1.5rem; font-weight: 500; }
h6 { font-size: 1.25rem; font-weight: 500; }

/* Wave Divider */
.wave-divider {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.wave-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,60 C300,120 900,0 1200,60 L1200,120 L0,120 Z' fill='%23F0F8FF'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
}

.wave-divider.reverse::before {
    transform: rotate(180deg);
}

/* Logo Protection */
.logo-img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
    -webkit-touch-callout: none;
}

.logo-img::selection {
    background: transparent;
}

.logo-img::-moz-selection {
    background: transparent;
}

/* Apply protection to all logo images */
img[src*="PW_logo"], img[alt*="Professional Writers"] {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
    -webkit-touch-callout: none;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.479);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    padding: 1.2rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(74, 144, 226, 0.05);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 700;
    margin: 0 0.75rem;
    padding: 0.75rem 0;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

/* Hero Image Container with Curves */
.hero-image-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.hero-image-container::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 140%;
    height: 120%;
    background: radial-gradient(circle at top left, #cfe9ff 0%, transparent 70%);
    border-radius: 50%;
    transform: rotate(15deg);
    z-index: 0;
}

.hero-image-container::after {
    content: "";
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at bottom right, #b0dcff 0%, transparent 70%);
    border-radius: 50%;
    transform: rotate(-10deg);
    z-index: 0;
}

.hero-standing-image {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.standing-img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(74, 144, 226, 0.2));
    transition: transform 0.3s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}



/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-image-container {
        margin-top: 3rem;
    }
    
    .hero-image-container::before {
        width: 120%;
        height: 100%;
        top: -50px;
        left: -50px;
    }
    
    .hero-image-container::after {
        width: 100%;
        height: 100%;
        bottom: -100px;
        right: -50px;
    }
    
    .standing-img {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-image-container::before {
        width: 100%;
        height: 80%;
        top: -30px;
        left: -30px;
    }
    
    .hero-image-container::after {
        width: 80%;
        height: 80%;
        bottom: -50px;
        right: -30px;
    }
    
    .hero-image-container {
        padding: 1rem 0;
    }
    
    .standing-img {
        max-height: 350px;
    }
}

/* Hero Section */
.hero-section {
    background: var(--gradient-soft);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    font-weight: 400;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* Section Styling */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-alt {
    background: var(--soft-blue);
}

/* Feature Cards */
.feature-card {
    display: block;
    position: relative;
    background-color: #f2f8f9;
    border-radius: var(--border-radius);
    padding: 1rem 0.8rem;
    margin: 0.25rem;
    text-decoration: none;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--soft-blue), #fff);
    height: 100%;
    text-align: center;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    gap: 0.5rem;
}

.feature-card::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -16px;
    right: -16px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    height: 32px;
    width: 32px;
    border-radius: 32px;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 0.6s ease-out;
}

.feature-card:hover::before {
    transform: scale(42);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(12,122,248,0.1) 0%, rgba(18,187,253,0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 1.25rem;
    color: var(--primary-blue);
    transition: all 0.5s ease;
    position: relative;
    border: 2px solid rgba(12,122,248,0.1);
    z-index: 2;
}

.feature-card:hover .feature-icon {
    background: white;
    color: var(--primary-blue);
    transform: rotateY(360deg) scale(1.1);
    border-color: white;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.feature-title {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 0.25rem;
    transition: all 0.5s ease-out;
    position: relative;
    z-index: 2;
    padding: 0 0.25rem;
}

.feature-description {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-light);
    transition: all 0.5s ease-out;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    padding: 0 0.25rem;
}

.feature-card:hover .feature-title,
.feature-card:hover .feature-description {
    color: white;
}

.go-corner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 2.5em;
    height: 2.5em;
    overflow: hidden;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 0 var(--border-radius) 0 32px;
    transition: all 0.3s ease;
    z-index: 2;
}

.go-arrow {
    margin-top: -4px;
    margin-right: -4px;
    color: white;
    font-family: courier, sans;
    font-size: 1.2em;
    font-weight: 600;
}

.feature-card:hover .go-corner {
    background: white;
}

.feature-card:hover .go-arrow {
    color: var(--primary-blue);
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(74, 144, 226, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.service-card-header {
    background: var(--gradient-soft);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.service-card-body {
    padding: 2rem;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    margin: 1rem 0;
    border: 1px solid rgba(74, 144, 226, 0.05);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.stars {
    color: #FFB800;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
}

.client-info {
    color: var(--text-dark);
    font-weight: 600;
}

/* Pricing Cards */
.pricing-card {
    background: var(--white);
    border: 2px solid rgba(74, 144, 226, 0.1);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.pricing-card.featured {
    border-color: var(--primary-blue);
    transform: scale(1.05);
    box-shadow: var(--shadow-large);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 2rem 0;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
    color: var(--text-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .included {
    color: #10B981;
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(74, 144, 226, 0.05);
}

.form-control {
    border: 2px solid rgba(74, 144, 226, 0.1);
    border-radius: var(--border-radius-small);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.15);
    background: var(--white);
}

.contact-info {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 8rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,60 C300,0 900,120 1200,60 L1200,0 L0,0 Z' fill='%23FFFFFF'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
}

.footer-section h5 {
    margin-bottom: 1.5rem;
    color: var(--light-blue);
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--light-blue);
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--light-blue);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* WhatsApp Sticky Button */
.whatsapp-sticky {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background: #25D366 !important;
    color: white !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(37,211,102,0.3) !important;
    z-index: 9999 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.whatsapp-sticky:hover {
    transform: scale(1.1) !important;
    color: white !important;
    background: #128c7e !important;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4) !important;
}

/* Chat Widget Positioning */
.support-chat-widget {
    position: fixed !important;
    bottom: 90px !important;
    right: 20px !important;
    z-index: 9998 !important;
}

/* Ensure both widgets are visible on mobile */
@media (max-width: 768px) {
    .support-chat-widget {
        bottom: 90px !important;
        right: 20px !important;
    }
    
    .support-chat-widget.open {
        width: calc(100vw - 40px) !important;
        right: 20px !important;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-sticky {
        bottom: 20px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.3rem !important;
    }
    
    .support-chat-widget {
        bottom: 90px !important;
        right: 20px !important;
    }
}

@media (max-width: 480px) {
    .whatsapp-sticky {
        bottom: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
    }
    
    .support-chat-widget {
        bottom: 75px !important;
        right: 15px !important;
    }
}

/* Dashboard Styles */
.dashboard-sidebar {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(74, 144, 226, 0.05);
}

.dashboard-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(74, 144, 226, 0.05);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Feature Card Buttons */
.feature-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.feature-btn {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 120px;
}

.feature-btn-book {
    background: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
}

.feature-btn-more {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.feature-card:hover .feature-btn-book {
    background: white;
    color: var(--primary-blue);
    border-color: white;
}

.feature-card:hover .feature-btn-more {
    background: white;
    color: var(--primary-blue);
    border-color: white;
}

/* Chat Widget Responsive Adjustments */
.chat-widget-responsive {
    position: relative;
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .pricing-card.featured { transform: none; }
    .section { padding: 4rem 0; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    /* Ensure chat widget doesn't interfere with content */
    body {
        padding-bottom: 0;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    .feature-card,
    .service-card,
    .testimonial-card,
    .pricing-card {
        margin-bottom: 2rem;
    }
}

/* Prevent chat widget from covering important content */
@media (max-height: 600px) {
    .support-chat-widget .chat-widget-body {
        height: 300px;
    }
    
    .support-chat-widget .chat-widget-messages {
        max-height: 200px;
    }
}