/* ===== Scrapbook "About Me" Section ===== */

/* ── Scrapbook Scroll Animations ── */
.sb-top-badge,
.sb-left,
.sb-right,
.sb-contact-note {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.sb-top-badge    { transform: translateX(60px); }
.sb-left         { transform: translateX(-60px); }
.sb-right        { transform: translateX(60px); }
.sb-contact-note { transform: translateY(30px); }

.scrapbook-section.sb-animated .sb-top-badge    { opacity: 1; transform: translateX(0); transition-delay: 0.2s; }
.scrapbook-section.sb-animated .sb-left         { opacity: 1; transform: translateX(0); transition-delay: 0.35s; }
.scrapbook-section.sb-animated .sb-right        { opacity: 1; transform: translateX(0); transition-delay: 0.5s; }
.scrapbook-section.sb-animated .sb-contact-note { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }

.scrapbook-section {
    position: relative;
    background-color: #f6f6f8;
    background-image: radial-gradient(#e0e0e6 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 55px 5% 55px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
    z-index: 10;
}

.sb-top-badge {
    position: absolute;
    top: 48px;
    right: 15%;
    background: #00A896;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    padding: 8px 24px;
    letter-spacing: -1px;
    box-shadow: 4px 10px 20px rgba(0,0,0,0.15);
    z-index: 20;
}

.sb-container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    gap: 28px;
    position: relative;
    z-index: 2;
    align-items: flex-start;
}

/* --- TAPE STRIPS --- */
.sb-tape {
    position: absolute;
    background: rgba(240, 230, 160, 0.6);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 10;
}
.sb-tape-1 {
    width: 60px; height: 25px;
    top: -10px; right: 20px;
    transform: rotate(-15deg);
}
.sb-tape-2 {
    width: 25px; height: 70px;
    bottom: 30px; left: -10px;
    transform: rotate(5deg);
    background: rgba(240, 230, 160, 0.4);
}

/* =========================================
   LEFT SIDE: ID CARD & LANYARD
   ========================================= */
.sb-left {
    position: relative;
    width: 240px;
    flex-shrink: 0;
    margin-top: 16px;
}

/* Lanyard Ribbon */
.sb-lanyard-strap {
    position: absolute;
    top: -100px;
    left: -28px;
    width: 55px;
    height: 120px;
    background: #00A896;
    border-radius: 30px;
    transform: rotate(30deg);
    z-index: 1;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.2);
}

/* Metal Clip */
.sb-clip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}
.sb-clip-ring {
    width: 24px; height: 24px;
    border: 4px solid #b0bec5;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.8);
}
.sb-clip-hook {
    width: 14px; height: 35px;
    border: 4px solid #b0bec5;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-top: -4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Glossy Plastic Holder */
.sb-id-holder {
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    padding: 15px;
    box-shadow: 
        inset 0 0 20px rgba(255,255,255,0.8),
        0 15px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 3;
    padding-top: 25px;
}
/* Center hole punch for clip */
.sb-holder-hole {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
}

/* Inner ID Card */
.sb-id-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: 260px;
}
.sb-id-logo {
    color: #00A896;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.sb-id-photo {
    width: 100%;
    height: 160px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}
.sb-id-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Yellow Contact Sticky Note overlapping the ID */
.sb-contact-note {
    position: absolute;
    bottom: -145px;
    left: -14px;
    background: #f7df72;
    padding: 12px 12px;
    width: 240px;
    box-shadow: 2px 8px 15px rgba(0,0,0,0.15);
    z-index: 15;
    transform: rotate(1deg);
}
.sb-contact-note .sb-tape {
    top: 50%; left: -15px;
    transform: rotate(85deg);
}
.sb-contact-note h3 {
    color: #00A896;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
}
.sb-contact-note ul {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
}
.sb-contact-note li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 0.85rem;
    font-weight: 600;
}
.sb-contact-note li:last-child {
    border-bottom: none;
}
.sb-contact-note li svg {
    width: 14px; height: 14px;
    fill: none; stroke: #333; stroke-width: 2;
    margin-right: 15px;
}
.sb-contact-note li span {
    text-align: right;
    flex: 1;
}

/* =========================================
   RIGHT SIDE: NOTEBOOK PAPER
   ========================================= */
.sb-right {
    flex: 1;
    position: relative;
    margin-top: 30px;
    z-index: 2;
}

/* The yellow paper acting as a background shadow */
.sb-paper-bg {
    position: absolute;
    top: 15px; left: -10px; right: -25px; bottom: -15px;
    background: #7de3d9;
    box-shadow: 5px 10px 20px rgba(0,0,0,0.1);
    transform: rotate(1deg);
    z-index: 1;
}

/* Main white notebook paper */
.sb-paper-main {
    position: relative;
    background: #fff;
    padding: 30px 40px 45px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: rotate(-0.5deg);
    z-index: 2;
    min-height: 340px;
}

/* Ring binder holes along top edge */
.sb-holes {
    position: absolute;
    top: 5px;
    left: 20px;
    right: 20px;
    height: 15px;
    /* Draws repeated transparent circles on a white background to look punched out */
    background-image: radial-gradient(circle, #f7f5ef 6px, transparent 7px);
    background-size: 25px 15px;
    background-repeat: repeat-x;
}

/* Paper Content Header */
.sb-paper-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    margin-top: 8px;
}
.sb-doodle-hello {
    width: 40px;
}
.sb-paper-main h2 {
    font-size: 2.2rem;
    color: #00A896;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
}

/* Body Text */
.sb-paper-body p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 12px;
}
.sb-paper-body strong {
    color: #222;
    font-weight: 700;
}

/* Sticky Tabs on the right edge */
.sb-tabs-container {
    position: absolute;
    right: -40px;
    top: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: -1; /* Goes slightly behind main paper edge */
}
.sb-tab {
    padding: 8px 15px 8px 25px;
    color: rgba(0,0,0,0.6);
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    box-shadow: 2px 4px 8px rgba(0,0,0,0.1);
}
.sb-tab-blue { background: #00A896; }
.sb-tab-orange { background: #eb8431; }
.sb-tab-yellow { background: #f0db6c; }

/* Bottom Yellow Sticky Note */
.sb-cta-btn {
    display: inline-block;
    background: #00A896;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 16px;
    transition: background 0.2s, transform 0.2s;
    letter-spacing: 0.02em;
}

.sb-cta-btn:hover {
    background: #007a6e;
    transform: translateY(-2px);
}

.sb-bottom-note {
    position: absolute;
    bottom: -15px;
    left: 40px;
    background: #ccf2ee;
    padding: 10px 20px;
    font-family: 'Caveat', cursive;
    color: #00A896;
    font-size: 1.5rem;
    transform: rotate(-3deg);
    box-shadow: 2px 5px 10px rgba(0,0,0,0.1);
}

/* Bottom CD Sticker Graphic (Holographic coin) */
.sb-sticker-wrapper {
    position: absolute;
    bottom: 20px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sb-cd-sticker {
    width: 60px; height: 60px;
    border-radius: 50%;
    /* Holographic rainbow gradient */
    background: conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2), inset 0 0 10px rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.sb-cd-sticker::before {
    content: '';
    position: absolute;
    width: 15px; height: 15px;
    background: #fff;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}
/* Adds a glossy white glare */
.sb-cd-sticker::after {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 20px; bottom: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}
.sb-sticker-text {
    font-family: 'Caveat', cursive;
    color: #eb8431;
    font-size: 1.2rem;
    max-width: 80px;
    line-height: 1.1;
    transform: rotate(-10deg);
}

/* ── Tablet ── */
@media (max-width: 900px) {
    .scrapbook-section {
        padding: 40px 16px 60px;
        align-items: flex-start;
        flex-direction: column;
    }

    /* 1. Badge on top */
    .sb-top-badge {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 24px;
        font-size: 1.4rem;
        padding: 6px 20px;
        align-self: flex-end;
    }

    /* Stack left then right */
    .sb-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .sb-left {
        width: 200px;
        margin-top: 0;
    }

    .sb-right {
        margin-top: 100px;
        width: 100%;
    }

    .sb-paper-main {
        padding: 24px 24px 36px;
        min-height: auto;
    }

    .sb-tabs-container {
        right: -24px;
    }
}

/* ── Mobile ── */
@media (max-width: 560px) {
    .scrapbook-section {
        padding: 28px 12px 80px;
    }

    .sb-top-badge {
        font-size: 1.1rem;
        padding: 5px 16px;
        margin-bottom: 20px;
    }

    .sb-left {
        width: 100%;
    }

    .sb-id-holder {
        width: 100%;
    }

    .sb-id-card {
        height: 240px;
        width: 100%;
    }

    .sb-id-photo {
        height: 160px;
        width: 100%;
    }

    .sb-contact-note {
        width: 100%;
        bottom: -150px;
        left: 0;
        padding: 14px 16px;
    }

    .sb-contact-note li {
        font-size: 0.75rem;
    }

    .sb-right {
        margin-top: 110px;
        width: 100%;
    }

    .sb-paper-main {
        padding: 20px 18px 30px;
    }

    .sb-paper-main h2 {
        font-size: 1.6rem;
    }

    .sb-paper-body p {
        font-size: 0.82rem;
    }

    .sb-tabs-container {
        display: none;
    }

    .sb-sticker-wrapper {
        display: none;
    }

    .sb-paper-bg {
        display: none;
    }

    .sb-lanyard-strap {
        display: none;
    }

    .sb-cta-btn {
        width: 100%;
        text-align: center;
    }

    .sb-bottom-note {
        position: relative;
        bottom: auto;
        left: auto;
        display: inline-block;
        margin-top: 12px;
        transform: rotate(-2deg);
    }
}