/* Base Styles */
:root {
    --primary-color: #4a6bff;
    --secondary-color: #6c757d;
    --accent-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --text-light: #6c757d;
    --white: #ffffff;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
}

.cta-button i {
    margin-right: 0.5rem;
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.cta-button.primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 6rem 5% 4rem;
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 400px;
}

.hero-illustration {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
}

.hero-illustration .book {
    position: absolute;
    width: 200px;
    height: 280px;
    background: linear-gradient(145deg, #5c6bc0, #3949ab);
    border-radius: 10px 15px 15px 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: rotate(-5deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2.5rem;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
}

.hero-illustration .book::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 15px 15px 0;
}

.hero-illustration .page {
    position: absolute;
    width: 190px;
    height: 270px;
    background: white;
    border-radius: 5px 10px 10px 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(5deg);
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
}

.hero-illustration .page::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    background: #f5f5f5;
}

.hero-illustration .page-line {
    height: 12px;
    background: #f0f0f0;
    margin: 5px 0;
    border-radius: 3px;
}

.hero-illustration .page-line:nth-child(1) { width: 80%; }
.hero-illustration .page-line:nth-child(2) { width: 90%; }
.hero-illustration .page-line:nth-child(3) { width: 70%; }
.hero-illustration .page-line:nth-child(4) { width: 85%; }
.hero-illustration .page-line:nth-child(5) { width: 75%; }

.hero-illustration .magnifying-glass {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 8px solid var(--primary-color);
    border-radius: 50%;
    bottom: 50px;
    right: 50px;
    z-index: 3;
}

.hero-illustration .magnifying-glass::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 30px;
    background: var(--primary-color);
    bottom: -25px;
    right: -15px;
    transform: rotate(45deg);
    border-radius: 0 0 5px 5px;
}

.hero-illustration .star {
    position: absolute;
    color: #ffd700;
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.hero-illustration .star:nth-child(1) { top: 30px; right: 30px; animation-delay: 0s; }
.hero-illustration .star:nth-child(2) { top: 60px; right: 100px; animation-delay: 0.5s; }
.hero-illustration .star:nth-child(3) { bottom: 40px; left: 40px; animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-illustration {
        max-width: 400px;
        height: 350px;
    }
    
    .hero-illustration .book {
        width: 160px;
        height: 240px;
        font-size: 2rem;
    }
    
    .hero-illustration .page {
        width: 150px;
        height: 230px;
    }
    
    .hero-illustration .magnifying-glass {
        width: 60px;
        height: 60px;
        border-width: 6px;
        bottom: 70px;
        right: 70px;
    }
}

@media (max-width: 576px) {
    .hero-illustration {
        max-width: 300px;
        height: 250px;
    }
    
    .hero-illustration .book {
        width: 120px;
        height: 180px;
        font-size: 1.5rem;
    }
    
    .hero-illustration .page {
        width: 110px;
        height: 170px;
    }
    
    .hero-illustration .magnifying-glass {
        width: 50px;
        height: 50px;
        bottom: 50px;
        right: 50px;
    }
    
    .hero-illustration .star {
        font-size: 1.2rem;
    }
}

/* Features Section */
.features {
    padding: 6rem 5%;
    background-color: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--dark-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 5%;
    background-color: var(--light-color);
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--dark-color);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 5%;
    background-color: var(--white);
    text-align: center;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--dark-color);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.testimonial p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.author {
    font-weight: 600;
    color: var(--primary-color);
}

/* CTA Section */
.cta {
    padding: 6rem 5%;
    text-align: center;
    background: linear-gradient(135deg, #4a6bff 0%, #3a56d6 100%);
    color: var(--white);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.cta .cta-button {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.cta .cta-button:hover {
    background-color: transparent;
    color: var(--white);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 5rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3, .footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-section p, .footer-section a {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    display: block;
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-image img {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features h2, .how-it-works h2, .testimonials h2, .cta h2 {
        font-size: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
    }
}
