/* BiblioWoods Homepage - Modern Gradient Design */
:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-radius: 20px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Custom column for 5 books per row */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding: 4rem 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

/* Floating Book Animations */
.floating-books {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-book {
    position: absolute;
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.floating-book::before {
    content: '';
    position: absolute;
    left: 10px;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.floating-book:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.floating-book:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: -5s;
    animation-duration: 18s;
}

.floating-book:nth-child(3) {
    top: 30%;
    left: 70%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.floating-book:nth-child(4) {
    top: 70%;
    left: 15%;
    animation-delay: -15s;
    animation-duration: 25s;
}

.floating-book:nth-child(5) {
    top: 20%;
    left: 40%;
    animation-delay: -7s;
    animation-duration: 19s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-60px) rotate(-5deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-30px) rotate(3deg);
        opacity: 0.8;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 500;
}

.hero-feature i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-light.btn-hero {
    background: white;
    color: var(--primary);
}

.btn-outline-light.btn-hero {
    border: 2px solid white;
    color: white;
}

.btn-outline-light.btn-hero:hover {
    background: white;
    color: var(--primary);
}

/* Hero Visual - 3D Book Stack */
.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.book-stack-3d {
    position: relative;
    width: 400px;
    height: 500px;
    transform-style: preserve-3d;
    animation: rotateStack 20s infinite ease-in-out;
}

.book-3d {
    position: absolute;
    width: 200px;
    height: 280px;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.book-3d:nth-child(1) {
    transform: rotateY(-10deg) translateZ(50px);
    z-index: 3;
}

.book-3d:nth-child(2) {
    transform: rotateY(5deg) translateZ(0px) translateX(30px);
    z-index: 2;
}

.book-3d:nth-child(3) {
    transform: rotateY(20deg) translateZ(-50px) translateX(60px);
    z-index: 1;
}

.book-cover-3d {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

@keyframes rotateStack {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(10deg);
    }
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: var(--gradient-primary);
    color: white;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.cta-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 4rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.cta-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.cta-card p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-visual {
        display: none;
    }

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

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

/* Popular Books Section */
.popular-books-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.book-showcase {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.book-showcase img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.book-showcase:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.book-showcase:hover img {
    transform: scale(1.05);
}
