/* --- Variables & Reset --- */
:root {
    --primary: #FF7E5F;
    --primary-dark: #eb6b4d;
    --secondary: #4A90E2;
    --accent: #FFD93D;
    --text-main: #2D3436;
    --text-light: #636E72;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --radius-lg: 24px;
    --radius-md: 12px;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn {
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 126, 95, 0.3);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-main);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
}

/* --- Navbar --- */
.navbar {
    height: 90px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-light);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-main);
}

/* --- Hero --- */
.hero {
    padding: 80px 0;
    background: radial-gradient(circle at top right, #fff5f2 0%, #ffffff 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.badge {
    background: #fff0ed;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
}

.main-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: -40px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Filters & Adoption --- */
.adopt-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.filter-wrapper {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid #eee;
    background: #fcfcfc;
    font-size: 1rem;
    outline: none;
}

.filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-controls select {
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid #eee;
    background: var(--white);
    cursor: pointer;
}

.pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.pet-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}

.pet-card:hover {
    transform: translateY(-10px);
}

.pet-card-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.favorite-btn.active {
    color: #e74c3c;
}

.pet-info {
    padding: 24px;
}

.pet-info h3 {
    margin-bottom: 5px;
}

.pet-breed {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.pet-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.pet-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: #f0f2f5;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
}

.empty-state {
    text-align: center;
    padding: 60px 0;
}

.hidden { display: none; }

/* --- Services --- */
.services {
    padding: 100px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    background: #fff9f8;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.price {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 25px;
}

/* --- How it Works --- */
.how-it-works {
    padding: 100px 0;
    background: #1a1d1f;
    color: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 24px;
    font-weight: 800;
}

.step h4 {
    margin-bottom: 15px;
    font-size: 20px;
}

.step p {
    color: #a0a0a0;
}

/* --- Testimonials --- */
.testimonials {
    padding: 100px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 40px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Newsletter --- */
.newsletter {
    padding-bottom: 100px;
}

.newsletter-card {
    background: var(--secondary);
    padding: 60px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--white);
}

.newsletter-card h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.newsletter-form {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    outline: none;
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.info-item .icon {
    font-size: 24px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
}

.form-feedback {
    margin-top: 15px;
    font-weight: 500;
}

.form-feedback.success { color: #2ecc71; }
.form-feedback.error { color: #e74c3c; }

/* --- Footer --- */
.footer {
    padding: 80px 0 40px;
    background: #fcfcfc;
    border-top: 1px solid #eee;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-links h5 {
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
    color: var(--text-light);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #eee;
    text-align: center;
    color: var(--text-light);
}

.demo-footer-text {
    font-size: 12px;
    max-width: 800px;
    margin: 20px auto 0;
}

/* --- Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 800px;
    border-radius: var(--radius-md);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    border: none;
    background: none;
    cursor: pointer;
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.modal-img {
    border-radius: var(--radius-md);
    width: 100%;
}

.demo-notice {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    margin-top: 10px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-container, .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p, .hero-btns {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-content h1 { font-size: 3rem; }
    .hero-image { order: -1; }
    .floating-card { left: 0; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 40px;
        box-shadow: var(--shadow);
    }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    .modal-body-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
}