html {
    font-size: 106.25%;
    scroll-behavior: smooth;
}

[x-cloak] {
    display: none !important;
}

::selection {
    background-color: #F7941D;
    color: #fff;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.fade-up-delay-1, .fade-left-delay-1, .fade-right-delay-1 { transition-delay: 0.12s; }
.fade-up-delay-2, .fade-left-delay-2, .fade-right-delay-2 { transition-delay: 0.24s; }
.fade-up-delay-3 { transition-delay: 0.36s; }
.fade-up-delay-4 { transition-delay: 0.48s; }
.fade-up-delay-5 { transition-delay: 0.60s; }

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.48) 50%,
        rgba(0, 0, 0, 0.64) 100%
    );
}

.hero-overlay-light {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

.page-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.50) 40%,
        rgba(0, 0, 0, 0.30) 100%
    );
    z-index: 1;
}

.page-hero > * {
    position: relative;
    z-index: 2;
}

.page-hero-diagonal::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--next-bg, #F9F9F9);
    clip-path: polygon(0 100%, 100% 30%, 100% 100%);
    z-index: 3;
}

.hero-carousel .carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-carousel .carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-carousel .carousel-slide.outgoing {
    opacity: 1;
    z-index: 1;
}

.overlay-card {
    position: relative;
    overflow: hidden;
    display: block;
}

.overlay-card img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-card:hover img,
.overlay-card:focus img {
    transform: scale(1.06);
}

.overlay-card .card-gradient {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.38) 35%,
        transparent 65%
    );
    transition: opacity 0.4s ease;
}

.overlay-card:hover .card-gradient {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.50) 40%,
        rgba(0, 0, 0, 0.08) 70%
    );
}

.overlay-card .card-content {
    transform: translateY(6px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-card:hover .card-content {
    transform: translateY(0);
}

.bento-card {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
}

.donation-section {
    position: relative;
    overflow: hidden;
}

.donation-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(38, 173, 228, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(247, 148, 29, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.counter-value {
    font-variant-numeric: tabular-nums;
}

.step-connector {
    position: relative;
}

.step-connector::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 56px;
    bottom: -8px;
    width: 2px;
    background: linear-gradient(to bottom, #FAAA24, #FDD889);
}

.step-connector:last-child::before {
    display: none;
}

.grain-texture {
    position: relative;
}

.grain-texture::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.grain-texture > * {
    position: relative;
    z-index: 1;
}

.divider-paw {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #FAAA24;
}

.divider-paw::before,
.divider-paw::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #FAAA24, transparent);
}

.btn-pulse {
    animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { box-shadow: 0 10px 25px -5px rgba(38, 173, 228, 0.35); }
    50% { box-shadow: 0 10px 35px -5px rgba(38, 173, 228, 0.55); }
}

.icon-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(247, 148, 29, 0.15);
}

.header-scrolled {
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08);
}

.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s ease;
}

.img-zoom:hover img {
    transform: scale(1.05);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #F7941D;
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0.5rem;
}

.timeline-step {
    position: relative;
    padding-left: 3.5rem;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 1.125rem;
    top: 2.75rem;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(to bottom, #FAAA24, #FDD889);
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.placeholder-img {
    background: linear-gradient(135deg, #FEECBF 0%, #FDD889 50%, #FCC04D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.animal-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.animal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(247, 148, 29, 0.18);
}
