/* ============================================
   PREMIUM WORLD-CLASS ENHANCEMENTS
   ============================================ */

/* ============================================
   1. CUSTOM CURSOR (Desktop Only)
   ============================================ */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(37, 211, 208, 0.3);
}

.custom-cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
}

@media (max-width: 1024px) {
    .custom-cursor {
        display: none !important;
    }
}

/* ============================================
   2. BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 43, 91, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 43, 91, 0.4);
}

.back-to-top::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ============================================
   3. GLASSMORPHISM EFFECTS
   ============================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 43, 91, 0.1);
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.service-card::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 ease;
}

.service-card:hover::before {
    left: 100%;
}

/* ============================================
   4. ANIMATED GRADIENTS
   ============================================ */
.gradient-bg {
    background: linear-gradient(-45deg, #002B5B, #004080, #25D3D0, #1ebdbb);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

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

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

.stats-section {
    background: linear-gradient(-45deg, #002B5B, #003366, #004080, #002B5B);
    background-size: 300% 300%;
    animation: gradient-shift 10s ease infinite;
}

/* ============================================
   5. PREMIUM HOVER EFFECTS
   ============================================ */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow:
        0 20px 40px rgba(0, 43, 91, 0.15),
        0 0 0 1px rgba(37, 211, 208, 0.3);
}

.service-card .icon-box {
    transition: all 0.4s ease;
}

.service-card:hover .icon-box {
    transform: scale(1.1) rotateY(180deg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
}

/* Image hover zoom effect */
.doctor-image img,
.why-image img {
    transition: all 0.5s ease;
}

.doctor-image:hover img,
.why-image:hover img {
    transform: scale(1.05);
}

.doctor-image,
.why-image {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

/* ============================================
   6. SCROLL ANIMATIONS (Enhanced)
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-up {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scale-up.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animation delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

/* ============================================
   7. LOADING SKELETON
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   8. FLOATING ELEMENTS
   ============================================ */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

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

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

.floating-slow {
    animation: floating 6s ease-in-out infinite;
}

/* ============================================
   9. GLOW EFFECTS
   ============================================ */
.glow-primary {
    box-shadow: 0 0 20px rgba(0, 43, 91, 0.3);
}

.glow-secondary {
    box-shadow: 0 0 20px rgba(37, 211, 208, 0.4);
}

.btn:hover {
    box-shadow: 0 0 25px rgba(37, 211, 208, 0.5);
}

/* ============================================
   10. TEXT ANIMATIONS
   ============================================ */
.hero-title span {
    display: inline-block;
    animation: text-shimmer 3s infinite;
}

@keyframes text-shimmer {

    0%,
    100% {
        background: var(--color-secondary);
        -webkit-background-clip: text;
        background-clip: text;
    }

    50% {
        background: linear-gradient(90deg, var(--color-secondary), #FFE66D, var(--color-secondary));
        background-size: 200% auto;
        -webkit-background-clip: text;
        background-clip: text;
    }
}

/* ============================================
   11. CREDENTIALS SECTION
   ============================================ */
.credentials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 0;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.credential-item {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.credential-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.credential-item i {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.credential-item h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.credential-item p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ============================================
   12. CASES GALLERY
   ============================================ */
.cases-gallery {
    padding: 80px 0;
    background-color: var(--color-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 43, 91, 0.9));
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ============================================
   13. PREMIUM NAVBAR ENHANCEMENTS
   ============================================ */
.navbar {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-links a {
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-links a:hover::before {
    transform: translateX(0);
}

/* ============================================
   14. TESTIMONIAL CARDS PREMIUM
   ============================================ */
.testimonial-card {
    background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
    border: 1px solid rgba(37, 211, 208, 0.1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8rem;
    font-family: serif;
    color: rgba(37, 211, 208, 0.1);
    line-height: 1;
}

/* ============================================
   15. PREMIUM FORM STYLES
   ============================================ */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(37, 211, 208, 0.1);
    transform: translateY(-2px);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    transition: all 0.3s ease;
}

/* ============================================
   16. PAGE TRANSITION
   ============================================ */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    z-index: 100000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-transition.active {
    transform: translateY(0);
}

/* ============================================
   17. TOOLTIP STYLES
   ============================================ */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    padding: 8px 12px;
    background: var(--color-primary);
    color: white;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* ============================================
   18. ANIMATED UNDERLINE
   ============================================ */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.animated-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ============================================
   19. PREMIUM BADGE
   ============================================ */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-badge i {
    font-size: 0.8rem;
}

/* ============================================
   20. RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .credentials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .credential-item {
        padding: 20px;
    }

    .credential-item i {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}