* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffd700 0%, #ffb6c1 25%, #ffc0cb 50%, #ffb6c1 75%, #ffd700 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* overflow: hidden; */
    cursor:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="10" cy="10" r="8" fill="%23885533" opacity="0.8"/><circle cx="20" cy="12" r="6" fill="%23996633"/><ellipse cx="16" cy="24" rx="8" ry="6" fill="%23a0744d"/></svg>') 16 16,
        auto;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* ===== LANDING SECTION ===== */
.landing-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-section.hidden {
    display: none;
}

.title {
    text-align: center;
    margin-bottom: 2rem;
}

.title h1 {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
    animation: wobble 3s ease-in-out infinite;
}

.title p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

@keyframes wobble {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(1deg);
    }

    75% {
        transform: rotate(-1deg);
    }
}

.teddies-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    width: 100%;
    margin: 2rem 0;
}

.teddy-card {
    background: radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.5), rgba(255, 200, 200, 0.3));
    border-radius: 40px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 3px dashed rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s ease-out backwards;
}

.teddy-card:nth-child(1) {
    animation-delay: 0.1s;
}

.teddy-card:nth-child(2) {
    animation-delay: 0.2s;
}

.teddy-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.teddy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.teddy-visual {
    font-size: 6rem;
    margin: 1rem 0;
    animation: heartBeat 2.6s ease-in-out infinite;
    filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.1));
}

.teddy-card:hover .teddy-visual {
    animation: heartBeat 1.6s ease-in-out infinite;
}

@keyframes heartBeat {

    0%, 100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.1);
    }
}

.teddy-info {
    margin: 1.5rem 0;
}

.teddy-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #8b4545;
    margin-bottom: 0.5rem;
}

.teddy-personality {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.adopt-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 107, 157, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.adopt-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 107, 157, 0.5);
}

.adopt-btn:active {
    transform: scale(0.98);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe4e9 100%);
    border-radius: 40px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.8);
    position: relative;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #ff6b9d;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.2);
}

.modal-title {
    font-size: 2rem;
    color: #8b4545;
    margin-bottom: 1rem;
    text-align: center;
}

.teddy-preview {
    font-size: 5rem;
    text-align: center;
    margin: 1.5rem 0;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.teddy-description {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    line-height: 1.6;
    border-left: 4px solid #ff6b9d;
}

.form-group {
    margin: 1.5rem 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #8b4545;
    font-weight: bold;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 3px solid #ffb6d9;
    border-radius: 25px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
    background: white;
}

.form-group input::placeholder {
    color: #ccc;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.btn-adopt,
.btn-cancel {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-adopt {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 107, 157, 0.3);
}

.btn-adopt:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 107, 157, 0.5);
}

.btn-cancel {
    background: rgba(200, 200, 200, 0.5);
    color: #666;
    border: 2px solid #ccc;
}

.btn-cancel:hover {
    background: rgba(200, 200, 200, 0.7);
}

/* ===== ADOPTION ANIMATION ===== */
.adoption-animation {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    font-size: 4rem;
    transform: translate(-50%, -50%);
    z-index: 1001;
    pointer-events: none;
}

.adoption-animation.active {
    display: block;
    animation: jumpToBox 1s ease-in-out forwards;
}

@keyframes jumpToBox {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-50%, -150%) scale(0.9);
    }

    100% {
        transform: translate(-30%, 100%) scale(0.3) rotate(360deg);
    }
}

.box-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-size: 5rem;
    z-index: 1000;
    animation: boxWobble 2s ease-in-out infinite;
}

@keyframes boxWobble {

    0%,
    100% {
        transform: rotate(0deg) translateY(0);
    }

    25% {
        transform: rotate(-2deg) translateY(-5px);
    }

    75% {
        transform: rotate(2deg) translateY(5px);
    }
}

/* ===== CONFETTI ===== */
.confetti {
    position: fixed;
    pointer-events: none;
    z-index: 999;
}

/* ===== COMPLETION SECTION ===== */
.completion-section {
    display: none;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.completion-section.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    min-height: 80vh;
}

.completion-teddy {
    font-size: 8rem;
    animation: gently-float 3s ease-in-out infinite;
}

@keyframes gently-float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

.completion-message {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 1rem 0;
}

.teddy-name-display {
    font-size: 3rem;
    font-weight: bold;
    color: #ff6b9d;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.teddy-tag {
    display: inline-block;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe4e9 100%);
    padding: 1rem 2rem;
    border-radius: 30px;
    margin-top: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 3px dashed #ffb6d9;
    font-size: 1.2rem;
    position: relative;
}

.teddy-tag::before {
    content: "🏷️";
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 1.5rem;
}

.heart-shower {
    position: fixed;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 998;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.heart-shower {
    animation: fall 3s ease-in forwards;
}

.btn-new {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe4e9 100%);
    color: #ff6b9d;
    border: 3px solid #ffb6d9;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-new:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 107, 157, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .title h1 {
        font-size: 2.5rem;
    }

    .teddies-container {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 2rem;
    }

    .completion-teddy {
        font-size: 5rem;
    }

    .completion-message {
        font-size: 1.8rem;
    }

    .box-container {
        font-size: 3rem;
        bottom: 1rem;
        right: 1rem;
    }
}

.teddy-tag-text {
    display: block;
    font-style: italic;
    color: #8b4545;
    margin-top: 0.5rem;
}