.carousel-img-btn {
    background: none;
    border: none;
    padding: 0.15rem 0.35rem;
    cursor: pointer;
    outline: none;
    border-radius: 6px;
    transition: background 0.15s, filter 0.15s;
    vertical-align: middle;
}
.carousel-img-btn.disabled,
.carousel-img-btn:disabled {
    opacity: 0.85;
    filter: brightness(0.55);
    cursor: not-allowed;
}
.carousel-btn-img {
    width: 108px;
    height: 72px;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
    transition: filter 0.15s, brightness 0.15s, transform 0.12s;
    object-fit: contain;
}
.carousel-img-btn:hover .carousel-btn-img {
    filter: brightness(1.2) drop-shadow(0 2px 10px rgba(0,0,0,0.18));
    transform: scale(1.04);
}

.centered-scroll-text,
.extra-scroll-text {
    color: #fff !important;
}

#coin-cursor {
    position: fixed;
    width: 48px;
    height: 48px;
    pointer-events: none;
    z-index: 100001; 
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.1s;
}

.scroll-reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(.4,0,.2,1), transform 1s cubic-bezier(.4,0,.2,1);
}
.scroll-reveal-visible {
    opacity: 1;
    transform: none;
}
.centered-scroll-text {
    text-align: center;
    font-family: inherit;
    font-size: 1.5em;
    margin: 0.6em 0 0 0;
    color: #fff !important;
    letter-spacing: 0.02em;
    font-weight: 500;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.header-scroll-list {
    max-width: 800px;
    margin: 1.2rem auto 0 auto;
    padding: 0 1rem;
}
.extra-scroll-text {
    margin: 3.5rem 0 0 0; /* spaced so user scrolls */
}

body, h1, h2, h3, p, button, nav, aside, main, footer {
    font-family: 'Bitter', serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #b4d8b4 0%, #d2ddff 100%);
    color: #222;
    min-height: 100vh;
    position: relative;
    z-index: 0;
}

body::before {
    content:"";
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: url('images/background.gif') center center / cover no-repeat;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

.sidebar {
    background: linear-gradient(180deg, #5fae8b 0%, #4dafa7 100%);
    color: #fff;
    width: 220px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(0,0,0,0.08);
    z-index: 10;
}

.brand-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: auto;
}

.nav-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.05rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, transform 0.12s;
    outline: none;
    display: block;
    width: 140px; /* slightly narrower */
    margin: 0.15rem auto;
    text-align: center;
}

.nav-btn.active,
.nav-btn:hover {
    background: rgba(255,255,255,0.18);
    color: #e0ffe0;
}

.main {
    margin-left: 240px;
    padding: 2rem;
    transition: margin-left 0.3s;
}

.pagedoll {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 240px; /* ~2.5x larger */
    height: auto;
    z-index: 99998; /* below modal overlay */
    cursor: pointer;
    transition: filter 0.12s, transform 0.12s;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.pagedoll:hover,
.pagedoll:focus {
    filter: brightness(1.12);
    transform: translateY(-3px);
    outline: none;
}

/* coin counter (top-right) */
.coin-counter {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 100000;
    background: rgba(255,255,255,0.9);
    color: #0b7a3a;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.about-center-img {
    display: flex;
    max-width: 420px;
    max-height: 250px;
    justify-content: center;
    margin: 1rem 0;
}

.about-starter-img {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}
.starter-img {
    max-width: 240px;
    max-height: 180px;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.time-greeting {
    margin-top: 0.6rem;
    margin-bottom: 0.4rem;
    text-align: left;
    font-size: 1rem;
    color: #2b8c6f;
    background: rgba(255,255,255,0.92);
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
}

.time-greeting.small {
    font-size: 0.95rem;
    padding: 0.45rem 0.7rem;
}





.content {
    max-width: 900px;
    margin: 0 auto;
}

.content-section {
    display: none;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    padding: 2rem;
}

.content-section.active {
    display: block;
}

#about {
    margin-bottom: 2rem;
}

#about.content-section {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.about-block {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    margin: 2rem auto;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideUpIn 0.5s;
}

.about-block:not(:first-child) {
    margin-top: 2rem;
}

.transparent-img-block {
    background: none !important;
    box-shadow: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0!important;
    margin: 2rem 0 0 0;
    border: none !important;
}

.center-img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: none !important;
    opacity: 1 !important;
    background: none !important;
}

.projects-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.card {
    background: linear-gradient(135deg, #f5f7fa 0%, #eef5f3 100%);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 1rem;
    min-width: 180px;
    flex: 1;
    color: #222;
}

.card h3 {
    margin-bottom: 0.5rem;
    color: #2b8c6f;
}

#contact a {
    color: #2b8c6f;
    text-decoration: underline;
    transition: color 0.2s;
}

#contact a:hover {
    color: #72d4b3;
}

footer {
    margin-top: 2rem;
    text-align: center;
    color: #2b8c6f;
    font-weight: 500;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .main {
        margin-left: 0;
        padding: 1rem;
    }
    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem;
    }
    .content {
        padding: 0;
    }
    .projects-grid {
        flex-direction: column;
        gap: 1rem;
    }
}

header.hero{
    margin-bottom: 2.5rem;
}



.content-section {
    margin-bottom: 1.5rem;
    padding: 2.5rem 2rem;
}

.content-section h2{
    margin-bottom: 1.5rem;
}

.content-section p{
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.projects-grid {
    gap: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
}

footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

.typed-text {
    color: #dbfcdd;
    font-weight: bold;
    transition: color 0.3s;
}

.static-text {
    color: #fff;
}

@keyframes slideUpIn {
    from {opacity: 0; transform: translateY(60px);}
    to {opacity: 1; transform: translateY(0);}
}

@keyframes slideDownOut {
    from {opacity: 1; transform: translateY(0);}
    to {opacity: 0; transform: translateY(60px);}
}

.content-section.anim-in,
footer.anim-in {
    animation: slideUpIn 0.5s;
}

.content-section.anim-out,
footer.anim-out {
    animation: slideDownOut 0.5s forwards;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.modal-box {
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    max-width: 520px;
    width: calc(100% - 3rem);
    box-shadow: 0 8px 30px rgba(0,0,0,0.28);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.modal-message {
    color: #0b7a3a; /* green text */
    font-weight: 600;
    margin-bottom: 0.9rem;
    line-height: 1.4;
}
.modal-coin {
    max-width: 140px;
    width: 40%;
    height: auto;
    margin: 0.5rem auto 0.9rem auto;
}
.modal-ok-img {
    width: 100px;
    height: auto;
    display: block;
    cursor: pointer;
    border-radius: 8px;
    transition: filter 0.12s, transform 0.08s;
}
.modal-ok-img:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.pagedoll {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 96px;
    height: auto;
    z-index: 99998;
    cursor: pointer;
    transition: filter 0.12s, transform 0.12s;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.pagedoll:hover,
.pagedoll:focus {
    filter: brightness(1.12);
    transform: translateY(-3px);
    outline: none;
}

.pagedoll-modal-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.pagedoll-popup-img {
    width: 120px;
    height: auto;
    flex-shrink: 0;
    margin-right: 0.6rem;
    border-radius: 8px;
}
@media (max-width: 520px) {
    .pagedoll-modal-content {
        flex-direction: column;
        align-items: center;
    }
    .pagedoll-popup-img {
        width: 48%;
        margin: 0 0 0.5rem 0;
    }
}
