/* ==========================================================
   JUBAYER AHMAD • LUXURY EDITORIAL BOOKSHELF PORTAL
   Palette: Rich Saturated Warm Cream (#DFCAA8), Dark Mahogany & Teak
   Balanced Desktop Scale • Grand Double-Deck Bookshelf
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=JetBrains+Mono:wght@500;600&display=swap');

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

:root {
    /* Rich Deep Saturated Cream Background (From Reference Screenshots) */
    --bg-page: #DFCAA8;
    --bg-card: #D5BE9A;
    --border-warm: rgba(90, 60, 30, 0.24);
    
    /* Text Tones */
    --text-primary: #1C150F;
    --text-secondary: #4A3A2C;
    --text-muted: #735F4C;
    
    /* Accent & Badges */
    --gold-accent: #A14E05;
    --gold-badge-bg: #F9E7BC;
    --gold-badge-border: #E8CA82;
    --emerald-dark: #08281E;
    --emerald-btn: #059669;
    --emerald-btn-hover: #10B981;
    
    /* Deep Wooden Cabinet & Shelves */
    --cabinet-bg: linear-gradient(180deg, #180C07 0%, #29150D 100%);
    --cabinet-border: #3A2015;
    --shelf-plank-top: linear-gradient(180deg, #4A2718 0%, #381C10 100%);
    --shelf-plank-front: linear-gradient(180deg, #221008 0%, #120703 100%);
    
    --font-main: 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
    background-color: var(--bg-page);
    background-image: 
        radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.3) 0%, transparent 65%),
        radial-gradient(circle at 50% 85%, rgba(160, 120, 75, 0.25) 0%, transparent 70%);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
}

/* Page Frame Container */
.page-wrapper {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

/* ==========================================================
   Hero Profile Header (Well-Proportioned & Prominent)
   ========================================================== */
.hero-compact {
    text-align: center;
    margin-bottom: 28px;
}

.avatar-container {
    width: 136px;
    height: 136px;
    margin: 0 auto 16px;
    position: relative;
}

.avatar-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4.5px solid #C48028;
    box-shadow: 0 12px 30px rgba(130, 70, 10, 0.32),
                inset 0 0 10px rgba(0,0,0,0.2);
    background: #E8D5B8;
}

.name-role-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.author-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.role-pill {
    background: var(--gold-badge-bg);
    color: var(--gold-accent);
    border: 1.5px solid var(--gold-badge-border);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.short-bio {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 18px;
    line-height: 1.6;
}

/* Social Media Pill Dock */
.social-dock-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.social-strip-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid var(--border-warm);
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.social-strip-btn:hover {
    background: #FFFFFF;
    color: var(--gold-accent);
    border-color: var(--gold-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(120, 60, 10, 0.18);
}

/* ==========================================================
   Broadcast / Consultation Banner (Screenshot 1 Reference)
   Fills the gap between profile and cabinet beautifully
   ========================================================== */
.daily-broadcast-card {
    background: var(--emerald-dark);
    border-radius: 22px;
    padding: 24px 32px;
    margin-bottom: 34px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 18px 40px -12px rgba(8, 40, 30, 0.5);
    position: relative;
    overflow: hidden;
}

.daily-broadcast-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 220px;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.28), transparent 70%);
    pointer-events: none;
}

.broadcast-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #34D399;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.broadcast-text p {
    font-size: 0.95rem;
    color: #D1FAE5;
    line-height: 1.55;
    max-width: 620px;
}

.broadcast-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--emerald-btn);
    color: #FFFFFF;
    font-size: 0.94rem;
    font-weight: 700;
    padding: 13px 24px;
    border-radius: 30px;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
    flex-shrink: 0;
}

.broadcast-cta-btn:hover {
    background: var(--emerald-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.5);
}

/* ==========================================================
   Grand Double-Deck 3D Bookshelf Cabinet
   (Substantial, Wide, & Majestic on Desktop)
   ========================================================== */
.grand-bookshelf-cabinet {
    background: var(--cabinet-bg);
    border: 4px solid var(--cabinet-border);
    border-radius: 28px;
    padding: 28px 32px 24px;
    margin-bottom: 36px;
    position: relative;
    box-shadow: 0 30px 60px -15px rgba(26, 12, 6, 0.7),
                inset 0 1px 2px rgba(255, 255, 255, 0.18),
                inset 0 -2px 4px rgba(0, 0, 0, 0.85);
}

.cabinet-banner {
    text-align: center;
    background: rgba(0, 0, 0, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 10px 20px;
    margin-bottom: 28px;
    color: #FEE3A2;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.shelf-tier-title {
    font-size: 0.82rem;
    font-family: var(--font-mono);
    color: #FDE68A;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

/* Shelf Row */
.shelf-plank-stage {
    position: relative;
    padding: 0 12px;
    margin-bottom: 34px;
}

.shelf-plank-stage:last-of-type {
    margin-bottom: 8px;
}

.books-display-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    padding-bottom: 4px;
}

/* 3D Realistic Book Node (Larger & More Substantial) */
.book-node {
    position: relative;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    perspective: 900px;
    width: 156px;
}

.book-skin {
    width: 152px;
    height: 220px;
    border-radius: 4px 10px 10px 4px;
    position: relative;
    overflow: hidden;
    background: #1E120A;
    transition: var(--transition);
    transform-style: preserve-3d;
    box-shadow: 
        -5px 6px 14px rgba(0, 0, 0, 0.75),
        0 14px 28px rgba(0, 0, 0, 0.55);
}

/* Spine Indentation & Gloss */
.book-skin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.35) 0%, 
        rgba(0, 0, 0, 0.25) 25%, 
        rgba(0, 0, 0, 0.55) 50%, 
        rgba(255, 255, 255, 0.2) 75%, 
        transparent 100%);
    pointer-events: none;
    z-index: 3;
}

.book-skin::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset -2px 0 3px rgba(255, 255, 255, 0.25),
                inset 0 0 1px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

/* Hover Physics */
.book-node:hover {
    transform: translateY(-18px);
}

.book-node:hover .book-skin {
    transform: rotateY(-8deg) scale(1.06);
    box-shadow: 
        -12px 24px 36px rgba(0, 0, 0, 0.85),
        0 0 30px rgba(245, 158, 11, 0.45);
}

/* Thematic Covers */
.thematic-cover {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 12px 16px;
    text-align: center;
    position: relative;
    border-radius: 4px 10px 10px 4px;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.45);
}

.cover-video {
    background: linear-gradient(145deg, #7F1D1D 0%, #450A0A 100%);
    border: 1px solid #991B1B;
}
.cover-gaming {
    background: linear-gradient(145deg, #4C1D95 0%, #2E1065 100%);
    border: 1px solid #6D28D9;
}
.cover-ecommerce {
    background: linear-gradient(145deg, #064E3B 0%, #022C22 100%);
    border: 1px solid #047857;
}
.cover-software {
    background: linear-gradient(145deg, #1E3A8A 0%, #172554 100%);
    border: 1px solid #1D4ED8;
}
.cover-portfolio {
    background: linear-gradient(145deg, #78350F 0%, #451A03 100%);
    border: 1px solid #B45309;
}
.cover-cv {
    background: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
    border: 1px solid #334155;
}

.cover-icon-seal {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: #FEE3A2;
    background: rgba(0, 0, 0, 0.38);
    border: 2.5px solid rgba(254, 227, 162, 0.45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55), inset 0 2px 4px rgba(255, 255, 255, 0.25);
    margin: 8px 0;
}

.cover-tag-pill {
    font-size: 0.66rem;
    font-family: var(--font-mono);
    color: #FDE68A;
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.cover-title-text {
    font-size: 0.95rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.cover-sub-text {
    font-size: 0.72rem;
    color: #E2E8F0;
    margin-top: 3px;
    font-weight: 500;
}

/* Shelf Ground Shadow */
.book-ground-shadow {
    position: absolute;
    bottom: -6px;
    width: 140px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.88) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* 3D Shelf Ledge */
.cabinet-shelf-ledge {
    position: relative;
    width: 100%;
    height: 24px;
    z-index: 1;
    margin-top: -6px;
}

.shelf-surface {
    height: 11px;
    width: 100%;
    border-radius: 4px;
    background: var(--shelf-plank-top);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.shelf-facade {
    height: 13px;
    width: 100%;
    border-radius: 0 0 5px 5px;
    background: var(--shelf-plank-front);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.75);
    border-top: 1px solid #140804;
}

/* ==========================================================
   Send a Message to the Author / WhatsApp Card (Screenshot 2)
   ========================================================== */
.message-author-card {
    background: #D8C2A0;
    border: 2px solid #C4AC8A;
    border-radius: 24px;
    padding: 34px 30px;
    margin: 36px auto 30px;
    text-align: center;
    max-width: 720px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.message-author-title {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.message-textarea {
    width: 100%;
    min-height: 115px;
    background: #FAF7F2;
    border: 1.5px solid #C4AC8A;
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 0.98rem;
    font-family: var(--font-main);
    color: var(--text-primary);
    resize: vertical;
    outline: none;
    transition: var(--transition);
    margin-bottom: 18px;
}

.message-textarea:focus {
    background: #FFFFFF;
    border-color: var(--emerald-btn);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.18);
}

.btn-send-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #38A169;
    color: #FFFFFF;
    font-size: 0.98rem;
    font-weight: 700;
    padding: 13px 32px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(56, 161, 105, 0.4);
}

.btn-send-whatsapp:hover {
    background: #2F855A;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(47, 133, 90, 0.5);
}

/* ==========================================================
   Footer
   ========================================================== */
.footer-compact {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid var(--border-warm);
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.footer-compact a {
    color: var(--gold-accent);
    font-weight: 700;
    text-decoration: none;
}

.footer-compact a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 800px) {
    body {
        padding: 24px 14px;
    }
    .author-title {
        font-size: 1.9rem;
    }
    .avatar-container {
        width: 110px;
        height: 110px;
    }
    .daily-broadcast-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 18px;
    }
    .broadcast-cta-btn {
        width: 100%;
        justify-content: center;
    }
    .grand-bookshelf-cabinet {
        padding: 20px 14px 16px;
    }
    .book-node {
        width: 120px;
    }
    .book-skin {
        width: 116px;
        height: 170px;
    }
}
/* ==========================================================
   Dual Action Buttons Under Books (Live Site + GitHub Code)
   ========================================================== */
.book-actions-dock {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    width: 100%;
    z-index: 3;
    position: relative;
}

.book-btn-mini {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 6px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.book-btn-live {
    background: #059669;
    color: #FFFFFF;
    border: 1px solid #10B981;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35);
}

.book-btn-live:hover {
    background: #10B981;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.45);
}

.book-btn-code {
    background: rgba(255, 255, 255, 0.75);
    color: #1C150F;
    border: 1px solid var(--border-warm);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.book-btn-code:hover {
    background: #FFFFFF;
    color: var(--gold-accent);
    border-color: var(--gold-accent);
    transform: translateY(-2px);
}
