:root {
    --primary-color: #ff8fa3;
    --primary-dark: #ff4d6d;
    --secondary-color: #a0c4ff;
    --text-color: #2b2d42;
    --light-bg: #fffcfd;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Nunito', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: radial-gradient(circle at top left, #fff0f3 0%, #ffffff 100%);
}

.hero-content {
    flex: 1;
    padding-right: 3rem;
    z-index: 2;
    animation: fadeUp 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.highlight {
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--primary-color);
    opacity: 0.25;
    z-index: -1;
    transform: skewX(-15deg);
}

.hero-content p {
    font-size: 1.25rem;
    color: #5a5a5a;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(255, 77, 109, 0.35);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 77, 109, 0.45);
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInScale 1.2s ease-out;
}

.blob-bg {
    position: absolute;
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #a0c4ff, #cbf078);
    opacity: 0.4;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    50% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    100% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: rotate(2deg);
    transition: transform 0.5s;
    z-index: 1;
}

.hero-image img:hover {
    transform: rotate(-1deg) scale(1.03);
}

/* Common Section */
section {
    padding: 6rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    color: var(--text-color);
    font-weight: 800;
}

/* Categories / API Cards Section */
.categories-section {
    background-color: #fafafa;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s, box-shadow 0.4s;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-image-wrap {
    width: 100%;
    height: 180px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.card:hover .card-image-wrap img {
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.card p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.adopt-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
}

.adopt-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.adopt-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Modal specific styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    width: 90%;
    max-width: 500px;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--primary-dark);
}

/* Gallery Section */
.gallery-section {
    background-color: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 300px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Contact Section (Glassmorphism) */
.contact-section {
    padding: 8rem 5%;
    background: url('https://images.unsplash.com/photo-1544568100-847a948585b9?auto=format&fit=crop&q=80&w=1600') center/cover fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.glass-form-container {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 4rem 3rem;
    width: 100%;
    max-width: 600px;
    text-align: center;
    position: relative;
    z-index: 1;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.glass-form-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: inherit;
}

.glass-form-container p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
}

.input-group {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.input-group input {
    flex: 1;
    padding: 1.2rem 1.8rem;
    border: none;
    outline: none;
    font-size: 1.05rem;
    background: transparent;
    color: #333;
}

.submit-btn {
    padding: 0 2rem;
    border: none;
    background: var(--primary-dark);
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-color);
}

.hidden {
    display: none !important;
    margin-top: 1.5rem;
    font-weight: 600;
    color: #2d6a4f;
    background: rgba(216, 243, 220, 0.9);
    padding: 1rem;
    border-radius: 12px;
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem;
    background: #1a1a1a;
    color: #f1f1f1;
    font-size: 1rem;
}

/* Animations & Responsive */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media screen and (max-width: 900px) {
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateY(-100%);
        transition: transform 0.5s ease-in-out;
        z-index: 999;
    }

    .nav-links li {
        margin: 1.5rem 0;
        opacity: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .logo,
    .burger {
        z-index: 1001;
    }

    .burger {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 4rem;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .blob-bg {
        width: 300px;
        height: 300px;
    }
}

.nav-active {
    transform: translateY(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}