.home-info {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('/static/images/library.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Black gradient overlay from left to right */
.home-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.home-info-v2 {
    position: relative;
    z-index: 2; /* Sits above the gradient overlay */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    box-sizing: border-box;
}


.home-info-v2 h1 {
    color: white;
    font-family: 'Space Mono', monospace;
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    align-self: flex-start;
    margin-bottom: 80px; /* Pushes h1 up away from the p tag */
}


.home-info-center {
    text-align: left;
    max-width: 600px;
    width: 100%;
}

/* Update the layout to stack vertically on the left */
.home-info-v2 {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    padding-top: 80px; /* Moves everything up */
    box-sizing: border-box;
}

/* Keep h1 styled the same */
.home-info-v2 h1 {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    margin: 0 0 20px 0;
}

/* Align p with h1 */
.home-info-center p {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

/* Align buttons to the left too */
.home-info-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

/* Buttons */
.home-btn {
    color: black;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    background-color: white; /* Browse button - white */
    border: 2px solid white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.home-btn:hover {
    background-color: #ddd;
    color: black;
    text-decoration: none;
    transform: scale(1.05);
}

.home-btn-secondary {
    background-color: #2a7fff; /* Get Started button - blue */
    color: white;
    border: 2px solid #2a7fff;
}

.home-btn-secondary:hover {
    background-color: #1a6fe8;
    color: white;
    text-decoration: none;
}

.hcontainer {
    width: 100%;
    padding: 20px;
    background-color: black;
}

.hcontainer h1 {
    font-family: 'Space Mono', monospace;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.home-page-book {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-card a {
    display: block;
    transition: transform 0.3s ease;
}

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

.book-card img {
    width: 180px;
    height: 270px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.book-card h3 {
    font-family: 'Space Mono', monospace;
    color: black;
    font-size: 1rem;
    margin-top: 15px;
    text-align: center;
    max-width: 180px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .home-page-book {
        grid-template-columns: 1fr;
    }
    
    .hcontainer {
        width: 90%;
    }
}