/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B6B;
    --primary-dark: #E85555;
    --secondary: #FFB84D;
    --accent: #4ECDC4;
    --warm-bg: #FFF5F0;
    --warm-light: #FFF9F5;
    --text-dark: #2D3436;
    --text-gray: #636E72;
    --text-light: #B2BEC3;
    --success: #55EFC4;
    --border: #DFE6E9;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--warm-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--warm-light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-outline.white {
    border-color: white;
    color: white;
}

.btn-outline.white:hover {
    background: white;
    color: var(--primary);
}

.btn-primary.large,
.btn-outline.large {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-primary.full-width {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    background: linear-gradient(135deg, var(--warm-bg) 0%, var(--warm-light) 100%);
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    font-weight: 600;
    color: var(--text-dark);
    animation: fadeInUp 0.6s ease;
}

.badge-icon {
    font-size: 20px;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    height: 20px;
    background: rgba(255, 107, 107, 0.2);
    border-radius: 10px;
    z-index: -1;
}

.hero-description {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease 0.6s backwards;
}

.hero-stats {
    display: flex;
    gap: 48px;
    animation: fadeInUp 0.6s ease 0.8s backwards;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    font-size: 40px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Decoration */
.hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-paw {
    position: absolute;
    font-size: 60px;
    opacity: 0.1;
    animation: float 6s infinite ease-in-out;
}

.paw-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.paw-2 {
    top: 50%;
    right: 25%;
    animation-delay: 2s;
}

.paw-3 {
    top: 70%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* Search Preview */
.search-preview {
    padding: 0 0 80px;
    margin-top: -40px;
}

.search-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.search-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-dark);
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Featured Pets */
.featured-pets {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 18px;
    color: var(--text-gray);
}

.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.pet-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.pet-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.pet-image {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--warm-light), var(--warm-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pet-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.pet-badge.urgent {
    background: var(--primary);
    color: white;
}

.pet-badge.new {
    background: var(--accent);
    color: white;
}

.pet-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-emoji {
    font-size: 120px;
    transition: transform 0.4s;
}

.pet-card:hover .pet-emoji {
    transform: scale(1.1) rotate(5deg);
}

.favorite-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: var(--primary);
}

.favorite-btn:hover svg path {
    fill: white;
    stroke: white;
}

.pet-info {
    padding: 24px;
}

.pet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pet-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.pet-gender {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.pet-gender.male {
    background: rgba(78, 205, 196, 0.2);
    color: var(--accent);
}

.pet-gender.female {
    background: rgba(255, 107, 107, 0.2);
    color: var(--primary);
}

.pet-details {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.detail-item {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 600;
}

.pet-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.pet-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    padding: 4px 12px;
    background: var(--warm-light);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.section-footer {
    text-align: center;
    margin-top: 48px;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 24px;
    align-items: center;
}

.step-card {
    background: var(--warm-light);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    grid-column: span 1.5;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.step-arrow {
    font-size: 32px;
    color: var(--primary);
    text-align: center;
    grid-column: span 0.5;
}

/* Success Stories */
.success-stories {
    padding: 80px 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.story-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.story-image {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--warm-light), var(--warm-bg));
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-placeholder {
    font-size: 80px;
}

.story-content {
    padding: 32px;
}

.story-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.story-text {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 24px;
}

.story-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.author-name {
    font-weight: 700;
    color: var(--text-dark);
}

.author-date {
    font-size: 13px;
    color: var(--text-gray);
}

/* Shelters */
.shelters {
    padding: 80px 0;
    background: white;
}

.shelters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.shelter-card {
    background: var(--warm-light);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.shelter-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.shelter-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.shelter-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.shelter-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.shelter-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 600;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.cta h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

.cta .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-note {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 14px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--text-light);
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

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

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        grid-column: span 1;
    }

    .step-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .pets-grid,
    .stories-grid,
    .shelters-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cta-actions {
        flex-direction: column;
    }
}