/* ===== GLOBAL RESET & BASE ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

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

/* ===== NAVBAR ===== */

.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.navbar .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #800000;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: #1a1a1a;
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    animation: fadeIn 0.6s ease-out 0.1s both;
}

.nav-links a:hover {
    color: #800000;
}

.nav-profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #800000 0%, #630d16 100%);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out 0.1s both;
    box-shadow: 0 2px 8px rgba(128, 0, 0, 0.15);
}

.nav-profile-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.25);
}

.nav-profile-icon .material-icons {
    font-size: 1.4rem;
}

.btn-login {
    background: #800000;
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s ease !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(128, 0, 0, 0.15);
}

.btn-login:hover {
    background: #630d16;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.25);
    transform: translateY(-1px);
}

/* ===== HERO SECTION ===== */

.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f7f4 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(128, 0, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(128, 0, 0, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(50px);
}

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

.accent-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.1) 0%, rgba(128, 0, 0, 0.05) 100%);
    border: 1.5px solid rgba(128, 0, 0, 0.2);
    color: #800000;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 32px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.08);
    animation: slideInDown 0.7s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero h1 {
    font-family: 'Lora', serif;
    font-size: 4rem;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -1px;
    animation: slideInDown 0.8s ease-out 0.1s both;
}

.hero h1 .highlight {
    color: #800000;
    font-style: italic;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #5a6370;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 500;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

/* ===== HERO BUTTONS ===== */

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.btn-primary {
    display: inline-block;
    background: #800000;
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #630d16;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(128, 0, 0, 0.25);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #800000;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid #800000;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #800000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(128, 0, 0, 0.15);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #800000;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-outline:hover {
    border-color: #800000;
    background: #f8f7f4;
    transform: translateY(-1px);
}

/* ===== HERO STATS ===== */

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-item .material-icons {
    font-size: 2rem;
    color: #800000;
}

.stat-number {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
}

.stat-label {
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== FEATURED BOOKS SECTION ===== */

.featured-books-section {
    padding: 100px 0;
    background: #ffffff;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Lora', serif;
    font-size: 2.4rem;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-left: auto;
    margin-right: 30px;
}

.view-all-link {
    color: #800000;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-all-link:hover {
    color: #630d16;
    transform: translateX(4px);
}

/* ===== BOOKS GRID ===== */

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.featured-book-card {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-book-card:hover {
    transform: translateY(-8px);
}

.book-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 2.5/3.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #f3f4f6;
    margin-bottom: 16px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.featured-book-card:hover .book-image-wrapper {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #e5e7eb;
}

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

.featured-book-card:hover .book-image {
    transform: scale(1.05);
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-book-card:hover .book-overlay {
    opacity: 1;
}

.btn-read {
    background: #800000;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.4px;
    transition: all 0.3s ease;
}

.btn-read:hover {
    background: #630d16;
    transform: scale(1.05);
}

.book-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #800000;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(128, 0, 0, 0.2);
}

.book-badge .material-icons {
    font-size: 1rem;
}

.book-card-info {
    padding: 0 4px;
}

.book-category {
    display: inline-block;
    background: #f3f4f6;
    color: #800000;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
}

.book-title {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.book-reads {
    color: #6b7280;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.book-reads .material-icons {
    font-size: 0.9rem;
}

/* ===== WHY READLOOM SECTION ===== */

.why-readloom-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f7f4 0%, #ffffff 100%);
    border-bottom: 1px solid #f0f0f0;
}

.section-center {
    text-align: center;
    margin-bottom: 80px;
    animation: slideInDown 0.8s ease-out;
}

.section-title-large {
    font-family: 'Lora', serif;
    font-size: 2.8rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-description {
    font-size: 1.05rem;
    color: #6b7280;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.feature-card {
    text-align: center;
    padding: 40px 28px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: #e5e7eb;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.2rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);
}

.feature-icon.seamless {
    background: #f0f0f0;
    color: #800000;
}

.feature-icon.gamification {
    background: #f0f0f0;
    color: #800000;
}

.feature-icon.library {
    background: #f0f0f0;
    color: #800000;
}

.feature-title {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.feature-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== CTA SECTION ===== */

.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f7f4 0%, #ffffff 100%);
    border-bottom: 1px solid #f0f0f0;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: slideInUp 0.8s ease-out;
}

.cta-title {
    font-family: 'Lora', serif;
    font-size: 2.6rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: #6b7280;
    margin-bottom: 40px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ===== FOOTER ===== */

.footer {
    padding: 40px 0;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
}

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

.footer-copyright {
    color: #6b7280;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #800000;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-stats {
        gap: 50px;
    }

    .books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

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

    .section-title-large {
        font-size: 2.2rem;
    }

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

    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }

    .hero {
        padding: 60px 0 50px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 50px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
        padding-top: 30px;
    }

    .accent-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .featured-books-section {
        padding: 60px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 40px;
    }

    .section-subtitle {
        margin-left: 0;
        margin-right: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 28px 20px;
    }

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

    .section-title-large {
        font-size: 1.8rem;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .cta-section {
        padding: 60px 0;
    }

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

    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 70px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .hero {
        padding: 40px 0 40px;
    }

    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        gap: 8px;
        margin-bottom: 30px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .hero-stats {
        gap: 15px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-item .material-icons {
        font-size: 1.6rem;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .book-image-wrapper {
        border-radius: 8px;
        margin-bottom: 10px;
    }

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

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

    .section-title-large {
        font-size: 1.4rem;
    }

    .cta-title {
        font-size: 1.3rem;
    }

    .cta-subtitle {
        font-size: 0.9rem;
    }

    .features-grid {
        gap: 16px;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }

    .footer-links {
        gap: 15px;
    }

    .footer-links a {
        font-size: 0.8rem;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-stats {
        gap: 40px;
    }

    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .section-title-large {
        font-size: 2.5rem;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }

    .hero {
        padding: 60px 0 60px;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 60px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
        padding-top: 30px;
    }

    .accent-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .featured-books-section {
        padding: 70px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-card {
        padding: 30px 20px;
    }

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

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

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-section {
        padding: 70px 0;
    }

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

    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 70px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.85rem;
    }

    .hero {
        padding: 50px 0 50px;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        gap: 10px;
        margin-bottom: 40px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .book-image-wrapper {
        border-radius: 10px;
        margin-bottom: 12px;
    }

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

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

    .section-title-large {
        font-size: 1.6rem;
    }

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

    .cta-subtitle {
        font-size: 0.95rem;
    }

    .features-grid {
        gap: 20px;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .feature-title {
        font-size: 1.2rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }

    .footer-links {
        gap: 15px;
        font-size: 0.85rem;
    }
}
