:root {
    --primary: #c92093;
    --secondary: #AD1457;
    --accent: #F8BBD9;
    --dark: #4A148C;
    --light: #FFF8E1;
    --orange: #EC407A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

.top-bar a:hover {
    color: var(--accent);
}

/* Navbar */
.navbar {
    background: white !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary) !important;
}

.navbar-brand i {
    color: var(--secondary);
}

.nav-link {
    font-weight: 600;
    margin: 0 10px;
    color: var(--dark) !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.btn-adopt {
    background: var(--primary);
    color: white;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
}

.btn-adopt:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

/* Dual Adoption Buttons */
.adoption-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-adopt-admin1 {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
    flex: 1;
    min-width: 120px;
    font-size: 14px;
}

.btn-adopt-admin2 {
    background: var(--secondary);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
    flex: 1;
    min-width: 120px;
    font-size: 14px;
}

.btn-adopt-admin1:hover {
    background: #d81b60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.btn-adopt-admin2:hover {
    background: #7b1fa2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.3);
}

@media (max-width: 576px) {
    .adoption-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .btn-adopt-admin1,
    .btn-adopt-admin2 {
        width: 100%;
        min-width: unset;
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* Hero Section */
.hero {
    background: url('https://images.unsplash.com/photo-1548681528-6a5c45b66b42?w=1920&h=800&fit=crop') center center;
    background-size: cover;
    padding: 150px 0 250px;
    position: relative;
    overflow: visible;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 72px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: capitalize;
}

.hero-content .highlight {
    position: relative;
    display: inline-block;
}

.hero-content .highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    height: 15px;
    background: var(--primary);
    border-radius: 10px;
    z-index: -1;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Hero Cards */
.hero-cards {
    position: relative;
    margin-top: -150px;
    z-index: 3;
}

.hero-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.hero-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.hero-card.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.hero-card-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 45px;
}

.hero-card.primary .hero-card-icon {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-card:not(.primary) .hero-card-icon {
    background: var(--light);
    color: var(--primary);
}

.hero-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-card p {
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.7;
    margin-bottom: 25px;
}

.hero-card.primary p {
    color: rgba(255, 255, 255, 0.9);
}

.hero-card .btn-card {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.hero-card.primary .btn-card {
    background: white;
    color: var(--primary);
}

.hero-card .btn-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.section-badge {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-text {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-feature {
    display: flex;
    align-items: start;
    margin-bottom: 30px;
}

.about-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--orange));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.about-feature h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.experience-badge h3 {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--light);
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    border: 3px solid transparent;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--light), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 40px;
    color: var(--primary);
}

.service-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
}

/* Cats Gallery */
.cats-section {
    padding: 100px 0;
}

.cat-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.cat-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Ensure media fits container by default (desktop) */
.cat-image img,
.cat-image iframe {
    width: 100%;
    height: 100% !important;
    /* override any attribute heights */
    object-fit: cover;
    object-position: center;
    display: block;
    background: #f8f9fa;
}

.cat-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 12px;
}

.cat-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cat-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cat-info {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.cat-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cat-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Testimonials */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light) 0%, var(--accent) 100%);
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: 40px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
}

.testimonial-text {
    font-style: italic;
    color: #666;
    margin-bottom: 25px;
    margin-top: 30px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-right: 15px;
}

.author-info h6 {
    font-weight: 700;
    margin-bottom: 5px;
}

.author-info span {
    font-size: 14px;
    color: #999;
}

.rating {
    color: var(--accent);
    margin-top: 15px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--orange));
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 50%;
    top: -200px;
    right: -100px;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-cta {
    background: var(--accent);
    color: var(--dark);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    border: none;
    font-size: 18px;
    transition: all 0.3s;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 230, 109, 0.3);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 200px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-cards {
        margin-top: -100px;
    }

    .hero-card {
        padding: 40px 30px;
        margin-bottom: 20px;
    }

    .hero-card-icon {
        width: 80px;
        height: 80px;
        font-size: 35px;
    }

    .hero-card h3 {
        font-size: 24px;
    }

    .about-section,
    .services-section,
    .cats-section,
    .testimonials-section,
    .cta-section {
        padding: 60px 0;
    }

    .cat-image iframe,
    .cat-image img {
        width: 100%;
        height: 100% !important;
        border-radius: 20px 20px 0 0;
        object-fit: contain;
        /* show full image on smaller screens */
        object-position: center;
        background: #f8f9fa;
    }

    @media (max-width: 768px) {
        .container {
            padding-left: 20px;
            padding-right: 20px;
        }

        .cat-item {
            padding-left: 10px;
            padding-right: 10px;
            margin-bottom: 25px;
        }

        .cat-card {
            height: 100%;
            margin-bottom: 25px;
        }

        .cat-image {
            aspect-ratio: 4/3;
        }

        .cat-image iframe,
        .cat-image img {
            height: 100% !important;
            object-fit: contain;
        }

        .cat-content {
            padding: 20px;
        }

        .cat-title {
            font-size: 18px;
            margin-bottom: 12px;
        }

        .cat-info {
            margin-bottom: 12px;
        }

        .cat-desc {
            font-size: 14px;
            margin-bottom: 15px;
        }

        .cats-section {
            padding: 80px 0;
        }
    }

    @media (max-width: 576px) {
        .container {
            padding-left: 15px;
            padding-right: 15px;
        }

        .cat-item {
            padding-left: 8px;
            padding-right: 8px;
            margin-bottom: 20px;
        }

        .cat-card {
            height: 100%;
        }

        .cat-image {
            aspect-ratio: 4/3;
        }

        .cat-image iframe,
        .cat-image img {
            height: 100% !important;
            object-fit: contain;
        }

        .cat-content {
            padding: 18px;
        }

        .cat-title {
            font-size: 16px;
            line-height: 1.3;
        }

        .cat-info span {
            font-size: 13px;
        }

        .cat-desc {
            font-size: 13px;
            line-height: 1.4;
        }

        .btn-adopt {
            padding: 12px 20px;
            font-size: 14px;
        }

        .cats-section {
            padding: 60px 0;
        }

        .section-title {
            font-size: 28px;
        }

        .section-text {
            font-size: 16px;
        }
    }

    .cat-card {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease;
    }

    .cat-card.show {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Overlay */
.cat-image {
    position: relative;
    overflow: hidden;
}

.clickable-card .cat-image {
    cursor: pointer;
}

/* Make columns stretch so cards equalize heights */
.cat-item {
    display: flex;
    margin-bottom: 24px;
}

/* Vertical spacing between card rows in gallery */
#catGallery {
    row-gap: 24px;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.clickable-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 24px;
    margin-bottom: 8px;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    max-width: 90vw;
    max-height: 95vh;
    width: 800px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.close-modal:hover {
    opacity: 1;
}

.modal-body {
    padding: 0;
    overflow: auto;
    max-height: calc(95vh - 80px);
    /* Mengurangi tinggi header */
}

.gallery-container {
    display: flex;
    flex-direction: column;
}

.main-image-container {
    position: relative;
    min-height: 400px;
    max-height: 70vh;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#mainGalleryImage {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

#mainGalleryVideo {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dark);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.thumbnail-container {
    padding: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    background: #f8f9fa;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: var(--secondary);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary);
    transform: scale(1.1);
}

.video-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.video-thumbnail:hover {
    border-color: var(--secondary);
    transform: scale(1.05);
}

.video-thumbnail.active {
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95vw;
        max-height: 95vh;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .main-image-container {
        min-height: 250px;
        max-height: 60vh;
    }

    #mainGalleryImage {
        max-height: 60vh;
    }

    #mainGalleryVideo {
        max-height: 60vh;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .thumbnail-container {
        padding: 15px;
        gap: 8px;
    }
}