@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

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

body {
    background-color: #FFF8DC;
    color: #333;
    text-align: center;
    font-size: 1rem;
    width: 100%;
    height: 100%;
    font-family: "Poppins", sans-serif;
    padding: 1rem;
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><text x="0" y="32" font-size="32">🦴</text></svg>'), pointer;
}

nav {
    background: #D2691E;
    font-family: "Dancing Script", cursive;
    padding: 1rem;
    color: #4B2E2E;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    max-width: 100%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    margin-bottom: 1rem;
}

button {
    background-color: #5C4033;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin: 0.5rem;
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><text x="0" y="32" font-size="32">🦴</text></svg>'), pointer;
    position: relative;
    overflow: hidden;
}

button:hover {
    background-color: #3A2A1A;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: scale(0.95);
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(92, 64, 51, 0.6); }
    50% { box-shadow: 0 0 15px rgba(92, 64, 51, 1); }
    100% { box-shadow: 0 0 5px rgba(92, 64, 51, 0.6); }
}

button.glow {
    animation: glow 1.5s infinite alternate ease-in-out;
}


img {
    max-width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

#main-screen, #about-us, #contact-info, #Payment, #pic, #up, #momanddad {
    max-width: 600px;
    width: 100%;
    margin: 1rem auto;
    padding: 1.5rem;
    background: #FFF8DC;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    color: #5C4033;
    font-family: "Poppins", sans-serif;
    text-align: center;
}

#logo-circle {
    width: 11.25rem;
    height: 11.25rem;
    border-radius: 50%;
    background-color: #fff8ec;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2.5rem auto 0 auto;
    transition: transform 0.3s ease;
}

#logo-circle:hover {
    transform: scale(1.05) rotate(3deg);
}

#logo-circle img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}


.scroll-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.5rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1rem;
}

.scroll-container::-webkit-scrollbar {
    height: 10px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #ff9900;
    border-radius: 10px;
    border: 2px solid #fff;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: #e68a00;
}

.scroll-container > * {
    flex: 0 0 auto;
    scroll-snap-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.scroll-container > *.visible {
     opacity: 1;
     transform: translateY(0);
}

/* --- Puppy Cards --- */
.puppy-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4.5rem;
    margin-top: 2rem;
}

.card {
    width: 200px;
    height: 260px;
    perspective: 1000px;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff8dc;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.card-front img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.card-back {
    transform: rotateY(180deg);
    background: #ffefd5;
    font-style: italic;
}

#back_btn6 {
    top: 25px;
    left: 10px;
}

.link {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><text x="0" y="32" font-size="32">🦴</text></svg>'), pointer;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.link:hover {
    color: #2ecc71;
    text-decoration: underline;
}

.hidden { display: none; }

/* Mobile / small-screen tweaks */
@media (max-width: 700px) {
    body {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    nav {
        font-size: 1.25rem;
        padding: 0.7rem;
    }

    /* Make scroll container wrap and buttons easier to tap */
    /* Keep horizontal scrolling on mobile like desktop */
    .scroll-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.8rem;
        padding: 0.5rem;
        justify-content: flex-start;
    }

    .scroll-container > * {
        flex: 0 0 45%;
        min-width: 140px;
        max-width: 45%;
        margin: 0.25rem 0;
        scroll-snap-align: center;
        /* keep default opacity/transform so IntersectionObserver still animates */
    }

    button {
        width: auto;
        min-width: 140px;
        padding: 0.9rem 1rem;
        font-size: 1.05rem;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }

    #logo-circle {
        width: 8rem;
        height: 8rem;
        margin-top: 1rem;
    }

    #main-screen, #about-us, #contact-info, #Payment, #pic, #up, #momanddad {
        width: calc(100% - 1rem);
        margin: 0.6rem auto;
        padding: 1rem;
    }

    .puppy-cards {
        flex-direction: column;
        gap: 1.25rem;
        align-items: center;
    }

    .card {
        width: 92%;
        max-width: 360px;
        height: 260px;
    }

    .card-front img {
        width: 90px;
        height: 90px;
    }

    /* Images should scale nicely on small screens */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Reduce some animation distances for better perceived performance on mobile */
    .scroll-container > * {
        transition: opacity 0.35s ease, transform 0.35s ease;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .scroll-container > * {
        flex: 1 1 100%;
        max-width: 100%;
    }

    nav { font-size: 1.1rem; }
    button { padding: 0.85rem; font-size: 1rem; }
    #logo-circle { width: 7rem; height: 7rem; }
}

#logo {
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    mix-blend-mode: multiply;
}