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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #f5f0e1;
    overflow-x: hidden;
    line-height: 1.8;
    font-size: 18px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
#about-us .container {
    max-width: 1100px !important;
    margin: 0 auto;
}
#about-us h2 {
    margin-top: 40px;
}
/* паралакс */
.parallax-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #f5f0e1;
}

.layer {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 110%;
    height: 120%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.layer-1 {
    background-image: url('img/paral1.PNG');
    z-index: 3;
}

.layer-2 {
    background-image: url('img/paral2.PNG');
    z-index: 2;
}

.layer-3 {
    background-image: url('img/paral3.png');
    z-index: 1;
}

.main-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 40px);
    font-family: 'Comfortaa', cursive;
    font-size: 7vw;
    font-weight: 700;
    color: white;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: all 1.5s cubic-bezier(.22, 1, .36, 1);
    z-index: 10;
    pointer-events: none;
    text-align: center;
    width: 100%;
}

.main-title.show {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, #f5f0e1);
    z-index: 5;
}

.fixed-button-group {
    position: fixed;
    bottom: 40px;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.btn-shelter {
    display: inline-block;
    padding: 18px 36px;
    background-color: #800020;
    color: white !important;
    text-decoration: none;
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    font-size: 18px;
    border-radius: 50px;
    transition: 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: none;
}

.btn-shelter:hover {
    background-color: #a00028;
    transform: scale(1.05);
}

.content-section {
    padding: 120px 0;
    text-align: center;
}
.content-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.content-section h2 {
    font-family: 'Comfortaa', cursive;
    font-size: 3.5rem;
    color: #800020;
    margin-bottom: 40px;
    text-align: center;
}

.content-section p {
    font-size: 1.4rem;
    color: #444;
    margin-bottom: 30px;
    text-align: justify;
    text-align-last: center;
}

.pets-section {
    padding-bottom: 100px;
}

.pets-main-title {
    font-family: 'Comfortaa', cursive;
    font-size: 4rem;
    color: #800020;
    text-align: center;
    margin-bottom: 60px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #f5f0e1;
    overflow-x: hidden;
    line-height: 1.8;
    font-size: 18px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
#about-us .container {
    max-width: 1100px !important;
    margin: 0 auto;
}
#about-us h2 {
    margin-top: 40px;
}
/* паралакс */
.parallax-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #f5f0e1;
}

.layer {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 110%;
    height: 120%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.layer-1 {
    background-image: url('img/paral1.png');
    z-index: 3;
}

.layer-2 {
    background-image: url('img/paral2.png');
    z-index: 2;
}

.layer-3 {
    background-image: url('img/paral3.png');
    z-index: 1;
}

.main-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 40px);
    font-family: 'Comfortaa', cursive;
    font-size: 7vw;
    font-weight: 700;
    color: white;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: all 1.5s cubic-bezier(.22, 1, .36, 1);
    z-index: 10;
    pointer-events: none;
    text-align: center;
    width: 100%;
}

.main-title.show {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, #f5f0e1);
    z-index: 5;
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
}

.about-image-col {
    flex: 0 0 35%;
    display: flex;
    justify-content: center;
}

.about-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
}

.about-text-col {
    flex: 1;
    text-align: left;
}

.about-text-col h2 {
    margin-top: 0;
}

.fixed-button-group {
    position: fixed;
    bottom: 40px;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.btn-shelter {
    display: inline-block;
    padding: 18px 36px;
    background-color: #800020;
    color: white !important;
    text-decoration: none;
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    font-size: 18px;
    border-radius: 50px;
    transition: 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: none;
}

.btn-shelter:hover {
    background-color: #a00028;
    transform: scale(1.05);
}

.content-section {
    padding: 120px 0;
    text-align: center;
}
.content-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.content-section h2 {
    font-family: 'Comfortaa', cursive;
    font-size: 3.5rem;
    color: #800020;
    margin-bottom: 40px;
    text-align: center;
}

.content-section p {
    font-size: 1.4rem;
    color: #444;
    margin-bottom: 30px;
    text-align: justify;
    text-align-last: center;
}

.pets-section {
    padding-bottom: 100px;
}

.pets-main-title {
    font-family: 'Comfortaa', cursive;
    font-size: 4rem;
    color: #800020;
    text-align: center;
    margin-bottom: 60px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(128, 0, 32, 0.1);
    padding-bottom: 10px;
}

.category-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.pets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}
.pet-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.4s ease;
}

.pet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.pet-card:hover {
    transform: translateY(-5px);
}

.pet-card:hover .pet-image {
    filter: brightness(0.7);
    transform: scale(1.05);
}

.pet-info-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.pet-card:hover .pet-info-overlay {
    opacity: 1;
}

.pet-name {
    color: white;
    font-family: 'Comfortaa';
    font-size: 2.2rem;
}
.pet-image {
    transition: transform 0.4s ease, filter 0.4s ease;
    cursor: pointer;
}

.pet-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #f5f0e1;
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-body {
    display: flex;
    gap: 30px;
}

.modal-body img {
    width: 300px;
    border-radius: 15px;
    object-fit: cover;
}

.modal-desc {
    font-style: italic;
    color: #555;
    margin: 20px 0;
    padding: 15px;
    border-left: 3px solid #800020;
    background: rgba(128, 0, 32, 0.03);
    border-radius: 0 10px 10px 0;
    line-height: 1.6;
    font-size: 1.1rem;
    position: relative;
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #800020;
    cursor: pointer;
}

.btn-adopt {
    display: block;
    width: fit-content;
    margin-top: 25px;
    padding: 18px 36px;
    background: #800020;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Comfortaa';
    border: none;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.btn-adopt:hover {
    background-color: #800020;
    transform: scale(1.05);
}


.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


.btn-ai {
    background-color: #1a5b40 !important;
    color: #ffffff !important;
}

.modal-title {
    font-family: 'Comfortaa', cursive;
    color: #800020;
    margin-bottom: 20px;
    text-align: center;
}

.donate-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.donate-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.donate-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.btn-copy {
    background: #eee;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.volunteer-list {
    margin: 20px 0;
    list-style: none;
    padding: 0;
}

.volunteer-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}


.main-footer {
    background-color: #ede7d5;

    padding: 70px 0 30px;
    border-top: 1px solid rgba(128, 0, 32, 0.1);
    font-family: 'Montserrat', sans-serif;
}

.stats-section {
    padding: 100px 0;
    background-color: #f5f0e1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(128, 0, 32, 0.12);
    border-color: #800020;
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.4s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(10deg);
}

.stat-number {
    font-family: 'Comfortaa';
    font-size: 3.5rem;
    color: #800020;
    font-weight: 700;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: start;
    justify-items: center;
    text-align: center;
}

.footer-col h3 {
    font-family: 'Comfortaa', cursive;
    color: #800020;
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #444;
    transition: 0.3s ease;
    font-size: 1.1rem;
}

.footer-col ul li a:hover {
    color: #800020;
    padding-left: 5px;
}

.contact-item p {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #555;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
}

.social-icons img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: 0.3s ease;
}

.social-icons img:hover {
    opacity: 1;
    transform: scale(1.2);
}

.work-time {
    font-style: italic;
    font-size: 0.8rem !important;
    color: #888 !important;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}
.footer-logo {
    width: 150px;
    height: auto;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 1;
}



/* адаптивність на телефоні */
@media (max-width: 768px) {

    .parallax-container {
            height: 60vh;
        }
    
        .layer {
            top: 0;
            height: 100%;
            width: 100%;
            background-attachment: scroll;
        }
    
        .modal-content {
            padding: 20px;
            width: 95%;
        }
    
        .modal-body {
            gap: 15px;
        }
        .modal-desc {
            font-size: 1rem;
            padding: 10px;
            margin: 10px 0;
        }
    
        .pet-name {
            font-size: 1.5rem;
        }

    .pets-grid,
        .stats-grid,
        .footer-grid {
            grid-template-columns: 1fr;
        }
        
    .main-title {
        font-size: 14vw;
    }

    .fixed-button-group {
        left: 0;
        bottom: 0;
        width: 100%;
        flex-direction: row;
        gap: 0;
        padding: 10px;
        background: rgba(245, 240, 225, 0.9);
        backdrop-filter: blur(5px);
        flex-wrap: wrap;
    }

    .btn-shelter {
        flex: 1;
        border-radius: 10px;
        margin: 0 5px;
        font-size: 12px;
        padding: 12px 5px;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-body img {
        width: 100%;
        height: 250px;
    }

    .content-section h2 {
        font-size: 2rem;
    }
    .content-section p {
        text-align: center;
        text-align-last: center;
    }
    .pets-main-title {
        font-size: 2.5rem;
    }

    .layer {
        will-change: auto;
    }
        .about-wrapper {
            flex-direction: column;
            text-align: center;
            gap: 20px;
        }
    
        .about-image-col {
            flex: 0 0 100%;
        }
    
        .about-text-col {
            text-align: center;
        }
    
}
/* Адаптивність для планшетів (iPad, Android Tablets) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }

    .main-title {
        font-size: 8vw;
    }

    .pets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .content-section {
        padding: 80px 0;
    }

    .content-section h2 {
        font-size: 2.8rem;
    }

    .content-section p {
        font-size: 1.2rem;
    }

    .modal-content {
        max-width: 90%;
        padding: 30px;
    }

    .modal-body img {
        width: 250px;
    }
}
.category-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(128, 0, 32, 0.1);
    padding-bottom: 10px;
}

.category-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.pets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}
.pet-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.4s ease;
}

.pet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.pet-card:hover {
    transform: translateY(-5px);
}

.pet-card:hover .pet-image {
    filter: brightness(0.7);
    transform: scale(1.05);
}

.pet-info-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.pet-card:hover .pet-info-overlay {
    opacity: 1;
}

.pet-name {
    color: white;
    font-family: 'Comfortaa';
    font-size: 2.2rem;
}


.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #f5f0e1;
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    animation: slideIn 0.4s ease-out;
}
#modalFormContainer {
    width: 100%;
}
@keyframes slideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-body {
    display: flex;
    gap: 30px;
}

.modal-body img {
    width: 300px;
    border-radius: 15px;
    object-fit: cover;
}

.modal-desc {
    font-style: italic;
    color: #555;
    margin: 20px 0;
    padding: 15px;
    border-left: 3px solid #800020;
    background: rgba(128, 0, 32, 0.03);
    border-radius: 0 10px 10px 0;
    line-height: 1.6;
    font-size: 1.1rem;
    position: relative;
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #800020;
    cursor: pointer;
}

.btn-adopt {
    display: block;
    width: fit-content;
    margin-top: 25px;
    padding: 14px 30px;
    background: #800020;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Comfortaa';
    border: none;
    cursor: pointer;
}

/* анімації */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


.btn-ai {
    background-color: #1a5b40 !important;
    color: #ffffff !important;
}

.modal-title {
    font-family: 'Comfortaa', cursive;
    color: #800020;
    margin-bottom: 20px;
    text-align: center;
}

.donate-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.donate-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.donate-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.btn-copy {
    background: #eee;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.volunteer-list {
    margin: 20px 0;
    list-style: none;
    padding: 0;
}

.volunteer-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}


.main-footer {
    background-color: #ede7d5;

    padding: 70px 0 30px;
    border-top: 1px solid rgba(128, 0, 32, 0.1);
    font-family: 'Montserrat', sans-serif;
}

.stats-section {
    padding: 100px 0;
    background-color: #f5f0e1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(128, 0, 32, 0.12);
    border-color: #800020;
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.4s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(10deg);
}

.stat-number {
    font-family: 'Comfortaa';
    font-size: 3.5rem;
    color: #800020;
    font-weight: 700;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: start;
    justify-items: center;
    text-align: center;
}

.footer-col h3 {
    font-family: 'Comfortaa', cursive;
    color: #800020;
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #444;
    transition: 0.3s ease;
    font-size: 1.1rem;
}

.footer-col ul li a:hover {
    color: #800020;
    padding-left: 5px;
}

.contact-item p {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #555;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
}

.social-icons img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: 0.3s ease;
}

.social-icons img:hover {
    opacity: 1;
    transform: scale(1.2);
}

.work-time {
    font-style: italic;
    font-size: 0.8rem !important;
    color: #888 !important;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}



/* адаптивність на інших пристроях */
@media (max-width: 480px) {
    .main-title {
        font-size: 16vw;
    }

    .btn-shelter,
    .btn-adopt {
        padding: 10px 15px;
        font-size: 14px;
    }

    .modal-content {
        padding: 15px;
    }
}

@media (max-width: 768px) {

    .parallax-container {
        height: 50vh;
    }

    .layer {
        will-change: auto;
    }

    .pets-grid,
    .stats-grid,
    .footer-grid,
    .donate-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .pets-main-title {
        font-size: 2.2rem;
    }

    .container {
        padding: 0 15px;
    }

    .modal-body {
        flex-direction: column;
        align-items: center;
    }

    .modal-body img {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .fixed-button-group {
        left: 0;
        bottom: 0;
        width: 100%;
        flex-direction: row;
        padding: 10px;
        background: rgba(245, 240, 225, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    }

    .fixed-button-group .btn-shelter {
        flex: 1;
        margin: 0 5px;
        border-radius: 12px;
        font-size: 13px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }

    .pets-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-title {
        font-size: 9vw;
    }

    .modal-content {
        max-width: 85%;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1200px;
    }

    body {
        font-size: 20px;
    }
}

@media (hover: none) {
    .pet-card:hover .pet-image {
        transform: none;
    }

    .pet-info-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.3);
    }
}

.ai-modal-content {
    max-width: 500px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 30px 25px 20px;
}

#ai-chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    margin-top: 10px;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 5px;
    scrollbar-width: thin;
}

.chat-message {
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-message.user .chat-bubble {
    background: #800020;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.bot .chat-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.chat-message.typing .chat-bubble {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 14px 18px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #aaa;
    border-radius: 50%;
    animation: dotBounce 1.2s infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

#chat-input-area {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

#chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    outline: none;
    background: white;
    transition: border-color 0.2s;
}

#chat-input:focus {
    border-color: #800020;
}

#chat-send {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #800020;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

#chat-send:hover {
    background: #a00028;
    transform: scale(1.05);
}

.adoption-form-title {
    font-family: 'Comfortaa', cursive;
    color: #800020;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.adoption-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: white;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #800020;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.adoption-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    margin-top: 10px;
}

.btn-back {
    background: none;
    border: none;
    color: #800020;
    font-family: 'Comfortaa', cursive;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-back:hover { text-decoration: underline; }

.pet-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(128, 0, 32, 0.85);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    z-index: 5;
}

.no-pets,
.pets-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 40px;
    font-size: 1.1rem;
}