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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    position: relative;
    overflow-x: hidden;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #4A90E2;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 2000;
}

.skip-link:focus {
    top: 6px;
}

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

/* Removed typewriter paper background */

/* Removed additional typewriter paper effect */

/* Removed typewriter keyframes */

/* Removed old mesh animation */

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    padding: 1.2rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.6rem;
    font-weight: 400;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: -0.02em;
}

.nav-logo a:hover {
    color: #4A90E2;
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover {
    color: #4A90E2;
    background-color: rgba(74, 144, 226, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 60%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.nav-toggle:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('attached_assets/6afaa128-600f-4f62-98c6-71b4951fb33d_1752447128120.png') center top/contain no-repeat;
    color: #2C3E50;
    overflow: hidden;
}

/* Hero background overlay removed */

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.3) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes backgroundMove {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    animation: shimmer 8s ease-in-out infinite;
    z-index: 2;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

/* Floating Particles */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 120px 120px;
    animation: floatParticles 15s linear infinite;
    z-index: 1;
}

@keyframes floatParticles {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

/* Animated Shapes */
.animated-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 15%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 20s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 25%;
    animation-delay: -15s;
    animation-duration: 35s;
}

.shape-5 {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    animation-delay: -20s;
    animation-duration: 25s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-100px) translateX(50px) rotate(90deg);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-50px) translateX(-30px) rotate(180deg);
        opacity: 0.4;
    }
    75% { 
        transform: translateY(-80px) translateX(20px) rotate(270deg);
        opacity: 0.7;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    margin-top: 65vh;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #2C3E50;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.85;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4A5568;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #2C3E50, #4A5568);
    color: white;
    padding: 18px 36px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.4);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(44, 62, 80, 0.5);
}

/* Old hero styles removed - replaced with new design */

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

/* Books Section Enhanced Background */
.books {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
    position: relative;
    overflow: hidden;
}

/* Add magical sparkle effect to books section */
.books::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 60% 40%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 80% 20%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 90% 80%, rgba(255, 255, 255, 0.5), transparent);
    background-size: 200px 200px, 300px 300px, 150px 150px, 250px 250px, 180px 180px;
    animation: sparkle 8s linear infinite;
    z-index: 1;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}



.books::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    animation: booksGlow 8s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes booksGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.books .container {
    position: relative;
    z-index: 2;
}

.books .section-title {
    color: white;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 4rem;
    color: #2c3e50;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(45deg, transparent, #4A90E2, transparent);
}

/* About Section */
.about {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    animation: aboutBackground 12s ease-in-out infinite;
    z-index: 1;
}

@keyframes aboutBackground {
    0%, 100% { transform: translateX(-100%); opacity: 0.3; }
    50% { transform: translateX(100%); opacity: 0.6; }
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23ffffff" fill-opacity="0.1"></path></svg>');
    background-size: 1200px 120px;
    animation: waveMove 10s ease-in-out infinite;
    z-index: 1;
}

@keyframes waveMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-50px); }
}

.about .container {
    position: relative;
    z-index: 2;
}

.about .section-title {
    color: white;
}

/* A Word From The Author Section */
.author-word {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    position: relative;
    overflow: hidden;
}

.author-word::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    animation: authorGlow 12s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes authorGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.author-word .container {
    position: relative;
    z-index: 2;
}

.author-word .section-title {
    color: #8B4513;
    margin-bottom: 3rem;
}

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

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

.author-word-portrait {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    border: 4px solid #ffffff;
    position: relative;
}

.author-word-portrait::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #ffecd2, #fcb69f, #ff9a9e);
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.author-word-portrait:hover::before {
    opacity: 1;
}

.author-word-portrait:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.author-word-text {
    position: relative;
}

.author-word-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #5d4037;
    text-align: justify;
    font-style: italic;
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.author-word-text p::before {
    content: '"';
    font-size: 4rem;
    color: #ff9a9e;
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-family: serif;
    opacity: 0.5;
}

.author-word-text p::after {
    content: '"';
    font-size: 4rem;
    color: #ff9a9e;
    position: absolute;
    bottom: -2rem;
    right: 1rem;
    font-family: serif;
    opacity: 0.5;
}

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

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

.author-portrait {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    border: 4px solid #ffffff;
    position: relative;
}

.author-portrait::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.author-portrait:hover::before {
    opacity: 1;
}

.author-portrait:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 400;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    letter-spacing: -0.01em;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
}

/* Books Section */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.05), rgba(78, 205, 196, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.book-card:hover::before {
    opacity: 1;
}

.book-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.book-cover {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
}

.book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.book-card:hover .book-cover::after {
    opacity: 1;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.08);
}

.book-info {
    padding: 2rem;
    position: relative;
}

.book-title {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    letter-spacing: -0.01em;
}

.book-description {
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
}

.buy-button {
    display: inline-block;
    background: linear-gradient(45deg, #4A90E2, #357ABD);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.buy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.buy-button:hover::before {
    left: 100%;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}



/* Contact Section */
.contact {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #667eea 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: 
        conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255, 255, 255, 0.1) 60deg, transparent 120deg, rgba(255, 255, 255, 0.1) 180deg, transparent 240deg, rgba(255, 255, 255, 0.1) 300deg, transparent 360deg);
    animation: contactSpiral 20s linear infinite;
    z-index: 1;
}

@keyframes contactSpiral {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: contactPulse 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes contactPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.contact .section-title {
    color: white;
}

.contact .section-title::after {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 400;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.contact-details {
    margin-bottom: 2rem;
}

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

.contact-item i {
    color: #4ecdc4;
    font-size: 1.2rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #4ecdc4;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4A90E2;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    transform: translateY(-1px);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.visible {
    display: block;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero, .about, .books, .contact {
        background: linear-gradient(135deg, #000080, #4B0082);
    }
    
    .nav-link, .book-title, .post-title a {
        color: #000;
    }
    
    .nav-link:hover, .post-title a:hover {
        color: #0000FF;
    }
    
    .hero::before, .hero::after, .about::before, .about::after, 
    .author-word::before, .books::before, .books::after, 
    .contact::before, .contact::after {
        display: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero::before, .hero::after, .hero-background,
    .about::before, .about::after, .author-word::before,
    .books::before, .books::after, .contact::before, .contact::after,
    .footer::before, .footer::after, .animated-shapes, .shape,
    body::before, body::after {
        animation: none !important;
    }
}

.submit-button {
    width: 100%;
    background: linear-gradient(45deg, #4A90E2, #357ABD);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #4a4a4a 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(45deg, transparent, #4ecdc4, transparent);
    animation: footerLine 3s ease-in-out infinite;
}

@keyframes footerLine {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(78, 205, 196, 0.1) 50%, transparent 100%);
    animation: footerGlow 4s ease-in-out infinite alternate;
}

@keyframes footerGlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.footer p {
    position: relative;
    z-index: 2;
}

.footer p {
    margin: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(45deg, #357ABD, #2a5298);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
}

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

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content,
    .author-word-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .author-word-text p {
        font-size: 1.1rem;
        padding: 1.5rem;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-menu li {
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .book-info {
        padding: 1rem;
    }

    .blog-post {
        padding: 1.5rem;
    }
}
