/* Modern Discover Page - Clean and Professional CSS */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #E9C660 0%, #632194 100%);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8c7223 0%, #5d1a89 100%);
}

/* Hero Section Styles */
.hero-discover {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-discover img {
    transition: transform 0.3s ease;
}

.hero-discover:hover img {
    transform: scale(1.02);
}

/* Subtle Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 70%;
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.1;
    }
}

/* Hero Content Animations */
.hero-badge,
.hero-title,
.hero-subtitle,
.hero-buttons {
    transform: translateY(30px);
    opacity: 0;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Button Styles */
.cta-primary {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-secondary {
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Modern Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Card Animations */
.pet-card,
.service-card,
.product-card,
.doctor-card {
    transform: translateY(20px);
    /* opacity: 0; */
    transition: all 0.3s ease;
}

.pet-card.animate,
.service-card.animate,
.product-card.animate,
.doctor-card.animate {
    transform: translateY(0);
    opacity: 1;
}

/* Pet Cards Hover Effects */
.pet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pet-card img {
    transition: transform 0.5s ease;
}

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

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: translateY(-2px);
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.product-card:hover {
    border-color: #e5e7eb;
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card img {
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

/* Doctor Cards */
.doctor-card {
    transition: all 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.doctor-avatar img {
    transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-avatar img {
    transform: scale(1.05);
}

/* Statistics Counter Animation */
.counter {
    transition: all 0.3s ease;
}

.counter.animate {
    animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Section Reveal Animations */
.section-reveal {
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.section-reveal.animate {
    transform: translateY(0);
    opacity: 1;
}

/* Button Hover Effects */
.explore-btn,
.service-btn,
.add-to-cart,
.book-appointment {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.explore-btn::before,
.service-btn::before,
.add-to-cart::before,
.book-appointment::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.explore-btn:hover::before,
.service-btn:hover::before,
.add-to-cart:hover::before,
.book-appointment:hover::before {
    left: 100%;
}

/* Focus States for Accessibility */
button:focus,
.btn:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #334155);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(16, 185, 129, 0.3);
    border-top: 3px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

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

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .pet-card,
    .service-card,
    .product-card,
    .doctor-card {
        margin-bottom: 1.5rem;
    }

    .floating-shapes {
        display: none;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons button {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* Performance Optimizations */
.hero-discover,
.pet-explorer,
.services-showcase,
.products-showcase,
.doctors-showcase,
.stats-section,
.cta-section {
    will-change: transform;
    backface-visibility: hidden;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {

    .hero-badge,
    .service-card,
    .product-card,
    .doctor-card {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-shapes {
        display: none;
    }
}

/* Print Styles */
@media print {

    .floating-shapes,
    .scroll-indicator {
        display: none;
    }

    .hero-discover,
    .services-showcase,
    .products-showcase,
    .doctors-showcase,
    .stats-section,
    .cta-section {
        background: white !important;
        color: black !important;
    }

    .hero-discover img {
        filter: grayscale(100%);
    }
}

/* Modern Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle Animations for Better UX */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-in-up {
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Interactive Elements */
.interactive-element {
    cursor: pointer;
    user-select: none;
}

.interactive-element:active {
    transform: scale(0.98);
}

/* Modern Card Styles */
.modern-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.modern-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Enhanced Typography */
.heading-gradient {
    background: linear-gradient(135deg, #1f2937, #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Micro-interactions */
.hover-lift {
    transition: transform 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Professional Button Variants */
.btn-modern {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid #10b981;
    border-radius: 12px;
    color: #10b981;
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.btn-outline-modern:hover {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
}

/* Progress Bar Styles */
/* .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1001;
} */

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: width 0.3s ease;
}

.bg-gradient-accent {
    background: linear-gradient(90deg, #fbbf24, #f59e0b) !important;
}

/* Scroll to Top Button */
#scrollToTopBtn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#scrollToTopBtn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* System Button Colors */
.btn-warning {
    background-color: #fbbf24 !important;
    border-color: #fbbf24 !important;
    color: #1f2937 !important;
}

.btn-warning:hover {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #1f2937 !important;
}

.btn-outline-purple {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-color: transparent;
}

.btn-outline-purple:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-primary {
    background-color: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--text-white) !important;
}

/* Game Cards Hover Effects */
.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.game-card:hover .price-circle {
    transform: scale(1.1);
    background-color: #7c3aed !important;
}

.game-card:hover .price-circle i {
    color: white !important;
}

/* Fix Game Cards Visibility */
.game-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Creative Doctor Cards */
.creative-doctor-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: auto;
    min-height: 500px;
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.creative-doctor-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(59, 130, 246, 0.15);
}

.creative-doctor-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.doctor-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border-radius: 0 24px 0 100px;
}

.doctor-image-container {
    position: relative;
    padding: 20px 20px 0;
    text-align: center;
}

.doctor-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
}

.creative-doctor-card:hover .doctor-photo {
    transform: scale(1.1);
    border-color: #3b82f6;
}

.doctor-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.doctor-info {
    padding: 20px 24px 24px;
}

.doctor-header {
    text-align: center;
    margin-bottom: 16px;
}

.doctor-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.2;
}

.doctor-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 12px;
}

.doctor-rating i {
    color: #fbbf24;
    font-size: 14px;
}

.rating-number {
    margin-left: 8px;
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
}

.doctor-specialty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    font-weight: 600;
    color: #3b82f6;
    font-size: 14px;
}

.doctor-specialty i {
    font-size: 16px;
}

.doctor-bio {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 20px;
}

.doctor-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 24px;
    padding: 16px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.stat-item i {
    font-size: 20px;
    color: #3b82f6;
    margin-bottom: 4px;
}

.stat-item div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item strong {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.stat-item span {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.doctor-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-view-profile {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-view-profile:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-book-appointment {
    border: 2px solid #10b981;
    color: #10b981;
    background: transparent;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-book-appointment:hover {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Creative Doctor Cards */
@media (max-width: 768px) {
    .creative-doctor-card {
        min-height: 450px;
    }

    .doctor-name {
        font-size: 1.2rem;
    }

    .doctor-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-item {
        flex-direction: row;
        justify-content: center;
    }

    .doctor-actions {
        flex-direction: column;
    }
}