/* Unified Pet Theme CSS - All Pages */
:root {
    --primary-pet: #8b5a2b;
    --secondary-pet: #6f42c1;
    --accent-pet: #ff6b6b;
    --success-pet: #28a745;
    --warning-pet: #ffc107;
    --danger-pet: #dc3545;
    --info-pet: #17a2b8;
    --light-pet: #f8f9fa;
    --dark-pet: #343a40;
    --gradient-pet: linear-gradient(135deg, #8b5a2b, #6f42c1);
    --gradient-success: linear-gradient(135deg, #28a745, #20c997);
    --gradient-primary: linear-gradient(135deg, #8b5a2b, #6f42c1);
    --shadow-pet: rgba(139, 69, 19, 0.15);
    --shadow-success: rgba(40, 167, 69, 0.15);
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-light: #e9ecef;
    --white: #ffffff;
    --gray-light: #f8f9fa;
}

/* Testimonial Avatar Styling */
.testimonial-avatar {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid #007bff !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.testimonial-avatar:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3) !important;
}

/* Global Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f5f7fa 100%);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://picsum.photos/seed/pet-paw-pattern-background/1920/1080.jpg') center/cover;
    opacity: 0.08;
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

body::after {
    content: '🐾 🐕 🐈 🐾 🐕 🐈 🐾 🐕 🐈 🐾 🐕 🐈';
    position: fixed;
    top: 15%;
    right: 8%;
    font-size: 2rem;
    opacity: 0.15;
    z-index: -1;
    animation: floatAround 15s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
        opacity: 0.12; 
    }
    25% { 
        transform: translate(20px, -10px) scale(1.05); 
        opacity: 0.15; 
    }
    50% { 
        transform: translate(-30px, 20px) scale(1.1); 
        opacity: 0.18; 
    }
    75% { 
        transform: translate(-20px, -15px) scale(1.05); 
        opacity: 0.15; 
    }
}

@keyframes floatAround {
    0% { 
        transform: translate(0, 0) rotate(0deg); 
        opacity: 0.15; 
    }
    25% { 
        transform: translate(50px, -30px) rotate(15deg); 
        opacity: 0.2; 
    }
    50% { 
        transform: translate(-40px, 20px) rotate(-10deg); 
        opacity: 0.25; 
    }
    75% { 
        transform: translate(-30px, -40px) rotate(5deg); 
        opacity: 0.2; 
    }
    100% { 
        transform: translate(0, 0) rotate(0deg); 
        opacity: 0.15; 
    }
}

/* Unified Navbar */
.navbar {
    background: var(--gradient-pet) !important;
    box-shadow: 0 8px 32px rgba(139, 69, 19, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 12px 40px rgba(139, 69, 19, 0.25);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--white) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* Unified Hero Section */
.hero-section {
    background: var(--gradient-pet);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://picsum.photos/seed/happy-pets-dogs-cats-playing-together/1920/800.jpg') center/cover;
    opacity: 0.35;
    z-index: 0;
    animation: heroImageFloat 10s ease-in-out infinite;
}

@keyframes heroImageFloat {
    0%, 100% { 
        transform: scale(1) translateY(0); 
        opacity: 0.35; 
    }
    50% { 
        transform: scale(1.05) translateY(-10px); 
        opacity: 0.4; 
    }
}

.hero-section::after {
    content: '🐾 🐕 🐈 🐾 🐕 🐈 🐾';
    position: absolute;
    bottom: 50px;
    right: 50px;
    font-size: 3.5rem;
    opacity: 0.5;
    z-index: 2;
    animation: petEmojiFloat 4s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

@keyframes petEmojiFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.5; 
    }
    25% { 
        transform: translateY(-15px) rotate(10deg) scale(1.1); 
        opacity: 0.6; 
    }
    50% { 
        transform: translateY(-25px) rotate(0deg) scale(1.2); 
        opacity: 0.7; 
    }
    75% { 
        transform: translateY(-15px) rotate(-10deg) scale(1.1); 
        opacity: 0.6; 
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    animation: slideInFromTop 1.5s ease-out;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-content h1 {
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.6);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        filter: brightness(1); 
        transform: scale(1); 
    }
    50% { 
        filter: brightness(1.2); 
        transform: scale(1.05); 
    }
}

.hero-content .lead {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 2s ease-out;
}

@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 0.95;
    }
}

/* Unified Cards */
.card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.12);
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-pet);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.card:hover::before {
    width: 10px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.2);
    border-color: var(--primary-pet);
}

.card::after {
    content: '🐾';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    opacity: 0.08;
    transform: rotate(15deg);
    z-index: 0;
    transition: all 0.3s ease;
}

.card:hover::after {
    transform: rotate(25deg) scale(1.2);
    opacity: 0.15;
}

/* Unified Buttons */
.btn-primary {
    background: var(--gradient-pet);
    border: none;
    padding: 15px 40px;
    font-weight: 700;
    border-radius: 15px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.4);
    filter: brightness(1.1);
    color: white;
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-success {
    background: var(--gradient-success);
    border: none;
    padding: 15px 40px;
    font-weight: 700;
    border-radius: 15px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    color: white;
}

.btn-success:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.4);
    filter: brightness(1.1);
    color: white;
}

/* Unified Forms */
.form-control {
    border: 2px solid var(--border-light);
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.4s ease;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-pet);
    box-shadow: 0 0 0 0.3rem rgba(139, 69, 19, 0.25);
    transform: translateY(-2px);
    background: var(--white);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.form-label i {
    margin-right: 10px;
    color: var(--primary-pet);
    font-size: 1.1rem;
}

/* Unified Alerts */
.alert {
    border: none;
    border-radius: 15px;
    padding: 20px 25px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    animation: slideInFromTop 0.6s ease-out;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 5px solid var(--success-pet);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 5px solid var(--danger-pet);
}

/* Unified Footer */
footer {
    background: linear-gradient(135deg, var(--dark-pet), #2c3e50);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://picsum.photos/seed/pet-paw-footer-pattern/1920/200.jpg') repeat-x;
    opacity: 0.05;
}

footer .social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-pet);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    margin: 0 10px;
}

footer .social-links a:hover {
    transform: scale(1.15) rotate(360deg);
    background: var(--gradient-success);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.3);
}

/* Unified Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-weight: 800;
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-pet);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Unified Pet Cards */
.pet-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.12);
    transition: all 0.4s ease;
    position: relative;
}

.pet-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(139, 69, 19, 0.25);
}

.pet-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.pet-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pet-card:hover .pet-image-container img {
    transform: scale(1.1);
}

.pet-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.pet-type-badge {
    background: var(--gradient-pet);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.vaccination-badge {
    background: var(--gradient-success);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.2rem;
    }
    
    .card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .pet-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .card {
        padding: 15px;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: slideInFromLeft 0.8s ease-out;
}

.fade-in-right {
    animation: slideInFromRight 0.8s ease-out;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
