/* Custom styles for Doctor Vet website */

/* Logo styles */
.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.hero-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.section-spacing {
    padding: 5rem 0;
}

/* Smooth scrolling enhancement */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.focus\:ring-2:focus {
    outline: none;
}

/* Custom animations */
.transition-all {
    transition: all 0.3s ease;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Button hover effects */
.btn-primary {
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Social media icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Form enhancements */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Pricing card special styling */
.pricing-popular {
    position: relative;
    transform: scale(1.05);
}

.pricing-popular::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    z-index: -1;
}

/* Navigation improvements */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Feature icons pulse effect */
.feature-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .section-spacing {
        padding: 3rem 0;
    }
    
    .hero-bg h1 {
        font-size: 2.5rem;
    }
    
    .hero-bg p {
        font-size: 1.125rem;
    }
}

/* Loading animation for form */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Tooltip Styles */
.tooltip-container {
    position: relative;
    display: inline-block;
    margin-left: 4px;
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    width: 300px;
    max-width: 90vw;
    background-color: #333;
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 12px 16px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* Tooltip Arrow */
.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Show tooltip on hover (desktop) */
.tooltip-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Show tooltip on click/touch (mobile) */
.tooltip-container.active .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .tooltip {
        width: 280px;
        left: -140px;
        transform: none;
        font-size: 13px;
    }
    
    .tooltip::after {
        left: 50%;
        margin-left: -5px;
    }
    
    /* Disable hover on mobile to prevent conflicts */
    .tooltip-container:hover .tooltip {
        visibility: hidden;
        opacity: 0;
    }
} 