/* CSS Variables for consistent color scheme */
:root {
    --primary-blue: #8B9DC3;
    --light-blue: #B8C5E8;
    --soft-purple: #C8A8E9;
    --pastel-pink: #F2B5D4;
    --light-pink: #F7D7E3;
    --cream: #FFF8F0;
    --dark-text: #2C3E50;
    --medium-text: #5A6C7D;
    --light-text: #8B9DC3;
    --white: #FFFFFF;
    --shadow: rgba(139, 157, 195, 0.2);
    --shadow-dark: rgba(139, 157, 195, 0.3);
    --gradient-primary: linear-gradient(135deg, #4e75c6, #a664ea, #ff95cb);
    --gradient-secondary: linear-gradient(45deg, #B8C5E8, #F7D7E3, #FFF8F0);
    --gradient-text: linear-gradient(135deg, #8B9DC3, #C8A8E9, #F2B5D4);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-text);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-dark);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(139, 157, 195, 0.7), rgba(200, 168, 233, 0.7)), url('assets/images/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 4s ease-in-out infinite reverse;
}

.hero::before {
    content: '';
    position: absolute;
    top: 60%;
    left: 5%;
    width: 60px;
    height: 60px;
    background: var(--pastel-pink);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 5s ease-in-out infinite;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 30%;
    right: 20%;
    width: 80px;
    height: 80px;
    background: var(--soft-purple);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 7s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: lab(98.81% -3.95 13.64);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--white);
    border-radius: 2px;
    animation: expandLine 1.5s ease-out 0.5s both;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--white);
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}


/* About Book Section */
.about-book {
    padding: 80px 0;
    background: var(--cream);
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.about-book.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-book::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23F2B5D4" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23C8A8E9" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23B8C5E8" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.book-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--medium-text);
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-dark);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1);
    color: var(--soft-purple);
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.feature-box p {
    color: var(--medium-text);
    line-height: 1.6;
}

/* About Author Section */
.about-author {
    padding: 80px 0;
    background: var(--white);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.about-author.animate {
    opacity: 1;
    transform: translateY(0);
}

.author-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.author-image {
    text-align: center;
}

.author-photo {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow);
}

.author-bio h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.author-bio p {
    margin-bottom: 1.5rem;
    color: var(--medium-text);
    line-height: 1.7;
}

.signature {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-top: 2rem;
    text-align: right;
}

/* Sneak Peek Section */
.sneak-peek {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-blue), var(--soft-purple));
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.sneak-peek.animate {
    opacity: 1;
    transform: translateY(0);
}

.sneak-peek .section-title {
    color: var(--white);
}

.book-mockups {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.book-mockup {
    transition: transform 0.3s ease;
}

.book-mockup:hover {
    transform: translateY(-10px);
}

.book-image {
    width: 300px;
    height: 450px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.highlighted-quote {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.highlighted-quote blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--white);
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Lead Magnet Section */
.lead-magnet {
    padding: 80px 0;
    background: var(--cream);
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.lead-magnet.animate {
    opacity: 1;
    transform: translateY(0);
}

.lead-magnet .section-title {
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.lead-magnet h3 {
    font-size: 2rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.lead-magnet p {
    font-size: 1.1rem;
    color: var(--medium-text);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.email-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    background: var(--white);
}

.email-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 6px 20px var(--shadow-dark);
    transform: translateY(-2px);
}

.message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Final CTA Section */
.final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--soft-purple));
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.final-cta.animate {
    opacity: 1;
    transform: translateY(0);
}

.final-cta h2 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 2rem;
}

.availability-note {
    color: var(--white);
    opacity: 0.9;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--primary-blue);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.contact-info p {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.copyright p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .book-mockups {
        flex-direction: column;
        align-items: center;
    }
    
    .form-group {
        flex-direction: column;
        align-items: center;
    }
    
    .email-input {
        min-width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .final-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .feature-box {
        padding: 2rem;
    }
    
    .book-image {
        width: 150px;
        height: 210px;
    }
    
    .highlighted-quote blockquote {
        font-size: 1.4rem;
        padding: 1.5rem;
    }
}
