/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Playfair+Display:wght@400;700&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

/* 🎨 Color Palette & Variables */
:root {
    --primary-color: #5D4037; /* A rich, chocolate brown */
    --secondary-color: #D1B490; /* A warm, golden-brown */
    --accent-color: #A36F49; /* A slightly darker accent brown */
    --text-dark: #333333;
    --text-light: #F5F5F5;
    --background-light: #F8F4F0; /* A soft, off-white for sections */
}

/* 🐶 General & Body Styling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden; /* Prevents horizontal scrollbar */
}

h1, h2, h3, .navbar-brand {
    font-family: 'Playfair Display', serif;
}

section {
    padding: 6rem 0; /* Consistent vertical spacing for all sections */
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--primary-color);
}
/* 💻 Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* A clean, white background */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

/* The loading paw print icon */
#preloader .paw-print {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    clip-path: polygon(
        50% 0%, 
        75% 15%, 
        100% 30%, 
        100% 50%, 
        75% 70%, 
        50% 100%, 
        25% 70%, 
        0% 50%, 
        0% 30%, 
        25% 15%
    ); /* A simple polygon to create a paw-like shape */
    animation: paw-pulse 1.5s ease-in-out infinite; /* Apply the pulsing animation */
}

/* Keyframes for the pulsing animation */
@keyframes paw-pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* ⚙️ Header & Navigation */
#mainNav {
    background-color: wheat;
    transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    z-index: 100;
}

#mainNav.scrolled {
    background-color: var(--background-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

#mainNav .navbar-brand {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

#mainNav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    margin: 0 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.25rem;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--accent-color) !important;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    width: 100%;
}

.navbar-brand .logo {
    height: 60px;
    margin-right: 0.5rem;
}

@media (max-width: 991.98px) {
    #mainNav .nav-link {
        margin: 0.5rem 0;
        text-align: center;
    }
}
#hero{
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../../assets/images/hero.jpg') no-repeat center center;
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    padding-top: 100px;
    z-index: 1; /* Ensures content is above other layers if any */

}

/* 🏞️ Hero Section */
 #about-hero, #care-hero, #adopt-hero, #stories-hero, #contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../../assets/images/hero.jpg') no-repeat center center;
    top: 100px;
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    padding-top: 100px;
    z-index: 1; /* Ensures content is above other layers if any */
}

#hero::before, #adopt-hero::before, #about-hero::before, #care-hero::before, #stories-hero::before, #contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

#hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    animation: fadeInScale 1s ease-out forwards;
}

#hero p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    animation: fadeInScale 1.2s ease-out 0.2s forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pawprints {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
    animation: floatingPaw 4s ease-in-out infinite;
}

.paw-icon {
    font-size: 2.5rem;
    margin: 0 10px;
}

@keyframes floatingPaw {
    0% { transform: translate(-50%, 0) rotate(0); }
    50% { transform: translate(-50%, -10px) rotate(-5deg); }
    100% { transform: translate(-50%, 0) rotate(0); }
}

/* 🐾 Card & Section Styling */
.puppy-card, .card {
    border: none;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.puppy-card:hover, .card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.puppy-card .social-share-icons {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.puppy-card:hover .social-share-icons {
    opacity: 1;
    visibility: visible;
}

.icon-lg {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.card:hover .icon-lg {
    color: var(--primary-color);
}

/* Price Styling */
/* Price Styling */
.original-price {
    color: #dc3545; /* Bootstrap's red for a striking "canceled" look */
    text-decoration: line-through;
    margin-right: 8px; 
    font-size: 0.9em;
}

.new-price {
    font-weight: bold;
    color: #198754; /* Bootstrap's green for a positive, eye-catching price */
}
.img-thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.img-thumbnail:hover, .img-thumbnail.active {
    border-color: var(--primary-color);
}

/* 📊 Counter Animation (Needs JS) */
.counter-number {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

/* 📜 Footer Styling */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 4rem 0;
}

footer h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

footer .social-icons a {
    font-size: 2rem;
    color: var(--text-light);
    margin-right: 1.25rem;
    transition: transform 0.2s, color 0.3s;
}

footer .social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* 💫 Smooth Scrolling & Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}