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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Navigation */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B365D;
}

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

.nav-link {
    color: #666;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #1B365D;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1B365D;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    position: absolute;
    pointer-events: none;
}

.bg-main {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-ayobola-image {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.bg-blur-1 {
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
}

.bg-blur-2 {
    bottom: 20%;
    right: 10%;
    width: 250px;
    height: 250px;
}

.hero-decor-1 {
    top: 15%;
    right: 20%;
    width: 100px;
    height: 100px;
}

.hero-decor-2 {
    bottom: 15%;
    left: 15%;
    width: 80px;
    height: 80px;
}

.hero-container {
    max-width: 800px;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1B365D;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    font-weight: 500;
}

/* Featured Books Section */
.featured-books {
    padding: 80px 0;
    background: #f8fafc;
}

.featured-book {
    margin-bottom: 80px;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.featured-book.love-interest {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.featured-book.build-framework {
    position: relative;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.framework-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.framework-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-content {
    display: flex;
    align-items: center;
    padding: 60px;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.book-text {
    flex: 1;
}

.introduction-text {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.book-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.book-description {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.buy-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.buy-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.arrow-icon {
    width: 20px;
    height: 20px;
}

.book-image {
    flex: 0 0 300px;
}

.book-cover {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.book-cover.portrait {
    aspect-ratio: 2/3;
    height: 400px;
    object-fit: cover;
    object-position: center top;
}

.featured-book .book-cover.portrait {
    height: 450px;
    max-width: 320px;
}

/* Also Books Section */
.also-books {
    padding: 80px 0;
    background: #ffffff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1B365D;
    text-align: center;
    margin-bottom: 60px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.book-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.book-card .book-image {
    padding: 30px 30px 0;
}

.book-card .book-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.book-card .book-cover.portrait {
    aspect-ratio: 2/3;
    width: auto;
    max-width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center top;
}

.book-info {
    padding: 30px;
}

.book-card .book-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1B365D;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.book-author {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.book-card .buy-button {
    background: #1B365D;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    gap: 8px;
}

.book-card .buy-button:hover {
    background: #2c4a6b;
    transform: translateY(-2px);
}

.book-card .arrow-icon {
    width: 16px;
    height: 16px;
}

/* Newsletter Section */
.newsletter-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

.newsletter-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.newsletter-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.newsletter-text {
    flex: 1;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
}

.email-input-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.email-icon {
    position: absolute;
    left: 15px;
    width: 20px;
    height: 20px;
    z-index: 1;
}

.email-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.subscribe-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.newsletter-image {
    flex: 0 0 250px;
}

.ayobola-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Credentials Section */
.credentials-section {
    padding: 80px 0;
    background: #f8fafc;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.credential-item {
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.credential-item:hover {
    transform: translateY(-5px);
}

.credential-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.credential-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1B365D;
}

/* Footer */
.footer {
    background: #1B365D;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .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;
    }

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

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

    .book-content {
        flex-direction: column;
        padding: 40px 30px;
        gap: 40px;
        text-align: center;
    }

    .book-image {
        flex: none;
        max-width: 250px;
        margin: 0 auto;
    }

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

    .newsletter-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

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

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

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

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

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

    .book-content {
        padding: 30px 20px;
    }

    .book-title {
        font-size: 1.5rem;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }

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

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

.hero-container,
.book-content,
.newsletter-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Performance optimizations */
.hero-background img,
.newsletter-background img {
    will-change: transform;
}

.book-card,
.credential-item {
    will-change: transform;
}
