/* Page Specific Styles - Library Theme (Emerald) */
.library-hero {
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.library-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.library-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #ecfdf5;
    /* Emerald 50 */
}

.library-text span.highlight {
    color: #34d399;
    /* Emerald 400 */
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #d1fae5;
    /* Emerald 100 */
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.subtitle strong {
    color: #fff;
}

.library-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

/* Abstract Library Interface */
.digital-book {
    background: rgba(6, 78, 59, 0.6);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 20px;
    padding: 0;
    width: 320px;
    height: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transform: rotateY(-15deg);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease;
    overflow: hidden;
}

.digital-book:hover {
    transform: rotateY(0deg) scale(1.02);
    border-color: rgba(52, 211, 153, 0.6);
}

.book-screen {
    background: #064e3b;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.book-header {
    height: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
}

.book-content {
    padding: 20px;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    overflow-y: hidden;
    position: relative;
}

.book-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    height: 140px;
    position: relative;
    overflow: hidden;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.book-card::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 10px;
    width: 80%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.search-bar {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 50px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.4);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6ee7b7;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Floating elements */
.float-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
    z-index: 10;
}

.float-1 {
    top: 55px;
    right: -10px;
    animation: float 6s ease-in-out infinite;
}

.float-2 {
    bottom: 100px;
    left: -10px;
    animation: float 7s ease-in-out infinite reverse;
    background: #059669;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Button Styling - Emerald Theme */
.btn-neon {
    background: linear-gradient(90deg, #059669, #10b981);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    /* Standardized Shape */
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-neon:hover {
    background: linear-gradient(90deg, #10b981, #34d399);
    /* Brighter Emerald */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(16, 185, 129, 0.6);
    border-color: rgba(52, 211, 153, 0.5);
}

.btn-secondary-neon {
    background: transparent;
    color: white;
    padding: 0 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 211, 153, 0.5);
    box-shadow: none;
}

.btn-secondary-neon:hover {
    background: linear-gradient(90deg, #10b981, #34d399);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(16, 185, 129, 0.6);
}

/* Feature Cards - Emerald Overlay */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #ecfdf5;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.15);
    border-color: #a7f3d0;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #064e3b;
}

.feature-desc {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Modules Dark Section (Emerald Variant) */
.modules-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #022c22 0%, #064e3b 100%);
    position: relative;
    overflow: hidden;
}

.modules-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #10b981;
    top: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #34d399;
    bottom: -150px;
    right: -150px;
    animation: float 8s ease-in-out infinite reverse;
}

/* Stats Section */
.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #059669;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Integration Grid Layout */
.integration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Integration Flow Responsive */
.integration-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    .integration-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .integration-flow {
        flex-direction: column;
        gap: 0.5rem;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }

    .flow-item {
        width: 100% !important;
        max-width: 220px;
        box-sizing: border-box;
    }

    .flow-main {
        transform: scale(1) !important;
        margin: 0.5rem 0;
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .library-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .library-text h1 {
        font-size: 3rem;
    }

    .subtitle {
        margin: 0 auto 2rem;
    }

    .library-visual {
        width: 100%;
        margin-top: 2rem;
    }

    .book-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .library-hero {
        padding: 6rem 0 4rem;
        min-height: auto;
    }

    .library-text h1 {
        font-size: 2.5rem;
    }

    .digital-book {
        width: 100%;
        max-width: 300px;
        height: 450px;
        transform: none !important;
    }

    .digital-book:hover {
        transform: none !important;
    }

    /* Ensure visual doesn't overflow */
    .library-visual {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .library-text h1 {
        font-size: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* Responsive Comparison Section */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.comparison-card {
    padding: 3rem;
    border-radius: 20px;
}

@media (max-width: 991px) {
    .comparison-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .comparison-card {
        padding: 2rem !important;
    }

    .comparison-card[style*="scale"] {
        transform: scale(1) !important;
        margin-top: 1.5rem;
    }
}