/* Custom CSS for Magic Tails Pet Grooming Salon */

/* Root Variables */
:root {
    --primary: #4A90E2;
    --secondary: #7ED321;
    --success: #50C878;
    --warning: #F5A623;
    --danger: #D0021B;
    --light: #F8F9FA;
    --dark: #2C3E50;
    --muted: #6C757D;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
}

/* Custom Primary Colors */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

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

.btn-primary:hover {
    background-color: #3A7BC8;
    border-color: #3A7BC8;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1055;
    font-size: 0.875rem;
}

.top-bar a:hover {
    opacity: 0.8;
}

.social-links-top a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.social-links-top a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
}

/* Responsive navbar positioning */
.navbar-responsive {
    top: 48px; /* With top bar on desktop */
}

@media (max-width: 991.98px) {
    .navbar-responsive {
        top: 0; /* No top bar on mobile/tablet */
    }
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Enhanced Brand Text */
.brand-text {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brandGlow 3s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
    letter-spacing: 0.5px;
}

@keyframes brandGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 5px rgba(74, 144, 226, 0.3));
    }
    100% {
        filter: brightness(1.1) drop-shadow(0 0 10px rgba(74, 144, 226, 0.5));
    }
}

.brand-text:hover {
    animation-duration: 1s;
}

/* Responsive flash messages */
.flash-responsive {
    margin-top: 128px; /* With top bar on desktop */
}

@media (max-width: 991.98px) {
    .flash-responsive {
        margin-top: 80px; /* No top bar on mobile/tablet */
    }
}

/* Responsive hero spacing */
.hero-spacer {
    margin-top: 48px; /* With top bar on desktop */
}

@media (max-width: 991.98px) {
    .hero-spacer {
        margin-top: 0; /* No top bar on mobile/tablet */
    }
}

/* Responsive page spacing */
.page-spacer {
    margin-top: 128px; /* With top bar on desktop */
}

@media (max-width: 991.98px) {
    .page-spacer {
        margin-top: 80px; /* No top bar on mobile/tablet */
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(74, 144, 226, 0.8), rgba(126, 211, 33, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Feature Icons */
.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Process Steps */
.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Gallery */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-image {
    transition: transform 0.3s ease;
}

.gallery-overlay {
    background: linear-gradient(45deg, rgba(74, 144, 226, 0.9), rgba(126, 211, 33, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

/* Contact Form */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* Contact Icons */
.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

/* Map Container */
.map-container {
    height: 450px;
}

/* Testimonials */
.testimonial-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stars i {
    font-size: 1rem;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 1050;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark) 0%, #34495E 100%);
    color: white !important;
}

footer * {
    color: white !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }
    
    .hero-slide {
        height: 70vh;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
}

/* Hover Effects */
.btn:hover {
    transform: translateY(-2px);
}

.card:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Color Utilities */
.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.bg-success {
    background-color: var(--success) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
}

/* Custom Spacing */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
}
