/* ================================
   PREMIUM ENHANCEMENTS - $100K Quality
   Advanced Animations & Visual Effects
   ================================ */

/* ===== Premium Color Palette ===== */
:root {
    /* Luxury Gradients - Black & Gold Edition */
    --gradient-luxury: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #333333 100%);
    --gradient-premium: linear-gradient(135deg, #000000 0%, #111111 50%, #c5a059 100%);
    --gradient-medical: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2c2c2c 100%);
    --gradient-shine: linear-gradient(135deg, #c5a059 0%, #e6c686 50%, #fdfbf7 100%);
    --gradient-elegant: linear-gradient(135deg, #000000 0%, #c5a059 70%, #e6c686 100%);

    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(197, 160, 89, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Premium Shadows */
    --shadow-glow: 0 0 30px rgba(197, 160, 89, 0.3);
    --shadow-luxury: 0 30px 60px rgba(0, 0, 0, 0.3);
    --shadow-premium: 0 50px 100px rgba(0, 0, 0, 0.25);
}

/* ===== Animated Particle Background ===== */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 168, 204, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }

    25% {
        transform: scale(1.1) rotate(0deg);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05) rotate(0deg);
        opacity: 0.6;
    }

    75% {
        transform: scale(1.15) rotate(0deg);
        opacity: 0.9;
    }
}

/* ===== Floating Particles Effect ===== */
.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 10% 90%, white, transparent);
    background-size: 200% 200%;
    animation: floatingParticles 60s linear infinite;
    opacity: 0.3;
    z-index: 1;
}

@keyframes floatingParticles {
    from {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }

    to {
        background-position: 100% 100%, -100% -100%, 50% 50%, 100% 0%, 0% 100%, -100% 100%, 100% -100%;
    }
}

/* ===== Premium Glass Morphism Cards ===== */
.feature-card,
.service-card,
.team-member,
.testimonial-card,
.treatment-card,
.value-card,
.testimonial-full,
.gallery-item,
.faq-item,
.contact-method,
.contact-form-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.service-card:hover,
.team-member:hover,
.testimonial-card:hover,
.treatment-card:hover,
.value-card:hover,
.testimonial-full:hover,
.gallery-item:hover,
.faq-item:hover,
.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-luxury);
}

.feature-card::before,
.service-card::before,
.treatment-card::before,
.value-card::before,
.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before,
.service-card:hover::before,
.treatment-card:hover::before,
.value-card:hover::before,
.team-member:hover::before {
    left: 100%;
}

/* ===== Advanced Button Animations ===== */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Removed .btn-primary override to use modern.css gold style */

/* ===== Luxury Section Backgrounds ===== */
.section {
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: patternMove 30s linear infinite;
    pointer-events: none;
}

@keyframes patternMove {
    from {
        transform: rotate(0deg) translateX(0);
    }

    to {
        transform: rotate(360deg) translateX(50px);
    }
}

/* ===== Premium Hero Title Effect ===== */
.hero-title {
    background: linear-gradient(45deg, #ffffff, #e0e7ff, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 5s ease infinite;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

@keyframes shimmerText {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ===== Floating Animation for Hero Features ===== */
.hero-feature {
    animation: floatBounce 3s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-feature:nth-child(1) {
    animation-delay: 0s;
}

.hero-feature:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-feature:nth-child(3) {
    animation-delay: 1s;
}

@keyframes floatBounce {

    0%,
    100% {
        transform: translateY(0px);
    }

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

/* ===== Premium Card Hover Effects ===== */
.feature-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.feature-icon-large {
    animation: iconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ===== Advanced Stats Counter Glow ===== */
.stat-number {
    position: relative;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    animation: statGlow 2s ease-in-out infinite;
}

@keyframes statGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.9));
    }
}

/* ===== Luxury Testimonial Cards ===== */
.testimonial-card.active {
    transform: scale(1.02);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.98);
}

.testimonial-stars {
    animation: starShine 1.5s ease-in-out infinite;
}

@keyframes starShine {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(243, 156, 18, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(243, 156, 18, 0.9));
    }
}

/* ===== Premium Navigation ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
}

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

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

/* ===== Advanced Service Cards ===== */
.service-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-20px) rotateZ(2deg);
    box-shadow:
        0 40px 80px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(102, 126, 234, 0.1);
}

.service-image {
    position: relative;
    overflow: hidden;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    opacity: 0.8;
    animation: serviceIconFloat 3s ease-in-out infinite;
}

@keyframes serviceIconFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* ===== CTA Section Premium Effect ===== */
.cta-section {
    position: relative;
    background: var(--gradient-premium);
    background-size: 400% 400%;
    animation: gradientWave 15s ease infinite;
}

@keyframes gradientWave {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: ctaGlow 8s ease-in-out infinite;
}

@keyframes ctaGlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* ===== Floating Action Button Premium ===== */
.fab {
    background: var(--gradient-elegant);
    background-size: 200% 200%;
    animation: fabPulse 3s ease infinite, gradientShift 5s ease infinite;
    box-shadow: 0 10px 40px rgba(231, 76, 60, 0.4);
}

@keyframes fabPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(231, 76, 60, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 60px rgba(231, 76, 60, 0.6);
    }
}

.fab::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    animation: fabShine 2s linear infinite;
}

@keyframes fabShine {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== Premium Page Header ===== */
.page-header {
    position: relative;
    background: var(--gradient-luxury);
    background-size: 400% 400%;
    animation: gradientWave 15s ease infinite;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: headerPattern 20s linear infinite;
}

@keyframes headerPattern {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.page-title {
    position: relative;
    z-index: 2;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

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

/* ===== Gallery Item Premium Hover ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: 'View';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(102, 126, 234, 0.95);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

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

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

/* ===== Form Input Premium Effects ===== */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: transparent;
    box-shadow:
        0 0 0 3px rgba(102, 126, 234, 0.2),
        0 10px 30px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 1);
}

/* ===== Team Member Card Premium ===== */
.team-member {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow:
        0 30px 60px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(102, 126, 234, 0.1);
}

.team-member:hover .member-photo {
    transform: scale(1.05);
    box-shadow: inset 0 0 50px rgba(102, 126, 234, 0.3);
}

/* ===== Advanced Loading States ===== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* ===== Scroll Progress Indicator ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-shine);
    z-index: 9999;
    transform-origin: left;
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.9);
    }
}

/* ===== Luxury Footer ===== */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient-shine);
    animation: footerLine 3s ease-in-out infinite;
}

@keyframes footerLine {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

/* ===== Responsive Premium Effects ===== */
@media (max-width: 768px) {
    .hero::after {
        animation-duration: 40s;
    }

    .feature-card:hover {
        transform: translateY(-10px) scale(1.01);
    }
}

/* ===== Performance Optimizations ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================
   MINIMAL MODE OVERRIDES
   Disables flashy animations per brain.txt rules
   Keep premium structure but enforce static, clinical look
   ================================ */

/* Disable hero particle/floating animations */
.hero::before,
.hero::after {
    animation: none !important;
    opacity: 0.15;
}

/* Disable section pattern animations */
.section::before {
    animation: none !important;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 1px, transparent 1px) !important;
}

/* Disable footer line animation */
.footer::before {
    animation: none !important;
    left: 0 !important;
    width: 100% !important;
    background: var(--gradient-gold) !important;
}

/* Disable CTA section animations */
.cta-section,
.cta-box {
    animation: none !important;
    transform: none !important;
}

/* Keep cards static - no shine sweep */
.feature-card::before,
.service-card::before,
.treatment-card::before,
.value-card::before,
.team-member::before {
    display: none !important;
}

/* Reduce hover transforms */
.feature-card:hover,
.service-card:hover,
.team-member:hover,
.testimonial-card:hover,
.treatment-card:hover,
.value-card:hover,
.testimonial-full:hover,
.gallery-item:hover {
    transform: translateY(-4px);
}

/* Gold glow on hover (replace purple glow) */
.feature-card:hover,
.service-card:hover,
.team-member:hover,
.testimonial-card:hover,
.treatment-card:hover,
.value-card:hover,
.testimonial-full:hover,
.gallery-item:hover,
.contact-method:hover,
.diagnostic-card:hover,
.maintenance-card:hover,
.insurance-card:hover,
.accreditation-item:hover,
.reason-item:hover {
    box-shadow:
        0 18px 45px rgba(197, 160, 89, 0.25),
        0 0 0 1px rgba(197, 160, 89, 0.18) !important;
}

/* Hero elements - ensure visibility */
.hero-buttons {
    opacity: 1 !important;
    animation: none !important;
}

.hero-subtitle,
.hero-title,
.hero-description {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
}

/* Buttons - square corners, solid look */
.btn {
    border-radius: 2px !important;
}

.btn::before {
    display: none !important;
}

/* Service image overlay - no emoji */
.service-image::before {
    content: '' !important;
}

/* Gallery overlay - no emoji */
.gallery-item::after {
    content: 'View' !important;
    background: rgba(197, 160, 89, 0.95) !important;
    color: var(--primary) !important;
}

/* Testimonials readability */
.testimonials-section .testimonial-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.testimonials-section .testimonial-text {
    color: rgba(255, 255, 255, 0.95) !important;
}

.testimonials-section .testimonial-author span {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Reinforce clinical palette and typography */
.navbar {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.nav-link::after {
    background: var(--accent) !important;
}

.hero-title {
    background: none !important;
    -webkit-text-fill-color: var(--bg-white) !important;
    color: var(--bg-white) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    animation: none !important;
}

.page-header {
    background: var(--gradient-primary) !important;
    animation: none !important;
}

.page-header::before {
    display: none !important;
}

.page-title {
    animation: none !important;
    text-shadow: none !important;
}

.cta-section {
    background: var(--bg-white) !important;
}

.cta-section::before {
    display: none !important;
}