/* PetForLove - Home page */

.hero {
    padding: 8.25rem 0 4.5rem;
    background:
        linear-gradient(135deg, rgba(255, 245, 247, 0.96) 0%, rgba(240, 249, 255, 0.96) 100%),
        #fff;
    position: relative;
    overflow: hidden;
}

.hero .container,
.features .container,
.how-it-works .container,
.cta-section .container,
.footer .container {
    max-width: 1180px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -22%;
    right: -8%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(255, 108, 146, 0.18) 0%, transparent 68%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
    gap: clamp(3rem, 6vw, 5.5rem);
    align-items: center;
    position: relative;
    z-index: 1;
}


.hero-content > * {
    min-width: 0;
}

.hero-title {
    color: var(--text-dark);
    font-size: clamp(3rem, 3.2vw, 3.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
    margin-bottom: var(--spacing-md);
    max-width: 16ch;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: var(--text-light);
    font-size: clamp(1.05rem, 1.25vw, 1.22rem);
    line-height: 1.75;
    margin-bottom: var(--spacing-lg);
    max-width: 61ch;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 650px;
    overflow: hidden;
    border: 1px solid rgba(255, 205, 210, 0.9);
    border-radius: var(--radius-md);
    background: rgba(255, 205, 210, 0.9);
    box-shadow: 0 18px 42px rgba(45, 55, 72, 0.07);
    text-align: center;
}

.stat {
    display: flex;
    min-height: 102px;
    flex-direction: column;
    justify-content: center;
    padding: 1.1rem 1.25rem;
    background: rgba(255, 255, 255, 0.88);
}

.stat-number {
    color: var(--primary-color);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero-image {
    position: relative;
}

.hero-image-placeholder {
    position: relative;
    min-height: 500px;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 205, 210, 0.8);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.38)),
        linear-gradient(135deg, rgba(255, 108, 146, 0.12), rgba(82, 118, 238, 0.12));
    box-shadow: 0 28px 70px rgba(45, 55, 72, 0.11);
}

.hero-image-placeholder::before,
.hero-image-placeholder::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.hero-image-placeholder::before {
    top: -48px;
    right: -48px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.12;
}

.hero-image-placeholder::after {
    bottom: -32px;
    left: -32px;
    width: 245px;
    height: 245px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    opacity: 0.1;
    animation-delay: 4s;
}

.hero-logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 145px;
    height: 145px;
    background-image: url('../assets/images/logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 18px 34px rgba(255, 108, 146, 0.28));
    transform: translate(-50%, -50%);
    animation: rotateAndPulse 8s ease-in-out infinite;
}

.heart-particle {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    font-size: 2rem;
    opacity: 0.14;
    animation: floatHearts 8s ease-in-out infinite;
}

.heart-particle:nth-child(2) {
    top: 10%;
    left: 20%;
}

.heart-particle:nth-child(3) {
    top: 60%;
    left: 70%;
    animation-delay: 2s;
}

.heart-particle:nth-child(4) {
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

.floating-card {
    position: absolute;
    z-index: 3;
    width: 245px;
    max-width: calc(100% - 2rem);
    min-height: 126px;
    padding: 2.1rem 1.45rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 22px 45px rgba(45, 55, 72, 0.14);
    backdrop-filter: blur(10px);
    animation: float 4.5s ease-in-out infinite;
}

.card-1 {
    top: 14%;
    left: 6%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 240, 245, 0.95));
}

.card-2 {
    right: 6%;
    bottom: 18%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(235, 245, 255, 0.95));
    animation-delay: 1.5s;
}

.profile-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.floating-card .profile-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 8px 16px rgba(255, 108, 146, 0.3);
    font-size: 1.5rem;
}

.card-2 .profile-avatar {
    background: linear-gradient(135deg, var(--secondary-color), #4058d9);
    box-shadow: 0 8px 16px rgba(82, 118, 238, 0.3);
}

.profile-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-name {
    color: var(--text-dark);
    font-size: 0.86rem;
    font-weight: 600;
}

.profile-pet {
    color: var(--text-light);
    font-size: 0.76rem;
}

.card-match {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 6px 14px rgba(255, 108, 146, 0.25);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.features {
    padding: 5.5rem 0;
    background: #fff;
}

.section-header {
    max-width: 760px;
    margin: 0 auto var(--spacing-2xl);
    text-align: center;
}

.section-title {
    color: var(--text-dark);
    font-size: clamp(2rem, 2.4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.section-description {
    color: var(--text-light);
    font-size: 1.2rem;
    line-height: 1.75;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.feature-card {
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 14px 34px rgba(45, 55, 72, 0.05);
    text-align: left;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 22px 45px rgba(45, 55, 72, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: grid;
    float: left;
    place-items: center;
    margin: 0 0.85rem 0.75rem 0;
    border: none;
    border-radius: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--secondary-color);
}

.feature-title {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 42px;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
}

.feature-description {
    clear: both;
    color: var(--text-light);
    line-height: 1.8;
}

.how-it-works {
    padding: 5.5rem 0;
    background: var(--bg-light);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: var(--spacing-xl);
}

.step {
    position: relative;
    display: flex;
    min-height: 285px;
    flex-direction: column;
    align-items: center;
    padding: 1.8rem;
    border: 1px solid rgba(255, 205, 210, 0.9);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: var(--shadow-lg);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.step-content {
    flex: 1;
}

.step-title {
    color: var(--text-dark);
    font-size: 1.45rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.step-description {
    color: var(--text-light);
    line-height: 1.8;
}

.cta-section {
    padding: 5.5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    text-align: center;
}

.cta-title {
    font-size: 2.45rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta-description {
    max-width: 56ch;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.2rem;
    opacity: 0.95;
}

.footer {
    padding: var(--spacing-2xl) 0 var(--spacing-md);
    background: var(--text-dark);
    color: #fff;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-md);
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    transition: background var(--transition-base), transform var(--transition-base);
}

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

.social-link svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    text-align: center;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.15;
        transform: scale(1.2);
    }
}

@keyframes rotateAndPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) rotate(-5deg) scale(1.12);
    }
}

@keyframes floatHearts {
    0%, 100% {
        opacity: 0.1;
        transform: translateY(0) rotate(0deg);
    }
    50% {
        opacity: 0.2;
        transform: translateY(-30px) rotate(180deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 980px) {
    .hero {
        padding: 7rem 0 4rem;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-text {
        text-align: center;
    }

    .hero-title,
    .hero-description,
    .hero-stats {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        max-width: 16ch;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        max-width: 620px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 3.5rem;
    }

    .hero-title {
        font-size: 2.45rem;
    }

    .hero-description {
        font-size: 1.05rem;
    }

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

    .hero-stats,
    .features-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .hero-image {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card,
    .step {
        text-align: center;
    }

    .feature-icon {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }

    .feature-title {
        justify-content: center;
        min-height: auto;
    }

    .feature-description {
        clear: none;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.1rem;
    }

    .stat {
        min-height: auto;
        padding: 1rem;
    }
}
