/* Global Styles */
:root {
    --primary-color: #D32F2F;
    --secondary-color: #212121;
    --accent-color: #1976D2;
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #757575;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #D32F2F 0%, #F44336 100%);
    --gradient-secondary: linear-gradient(135deg, #212121 0%, #424242 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: auto;
    /* Fixed: Ensure default cursor is visible */
}

/* Prevent auto-scroll on page load */


/* Re-enable smooth scroll after page load */
html.loaded {
    scroll-behavior: smooth;
}



html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    cursor: auto;
    scroll-behavior: auto;
    /* Fixed: Ensure default cursor */
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: auto;
    overflow-x: hidden;
    /* Fixed: Ensure default cursor */
}

/* Cursor fixes for interactive elements */
a,
button,
.btn,
.service-card,
.doctor-card,
.nav-links a,
.logo,
.social-links a,
.mobile-menu-btn {
    cursor: pointer !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    cursor: text !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

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

@keyframes pulse {

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

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

@keyframes float {

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

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

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

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

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

@keyframes shimmer {
    to {
        left: 100%;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scale-up {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    /* Fixed: Ensure links have pointer cursor */
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Enhanced Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer !important;
    /* Fixed: Ensure pointer cursor */
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.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;
    z-index: -1;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    cursor: pointer !important;
    /* Fixed: Ensure pointer cursor */
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-left: 10px;
    cursor: pointer !important;
    /* Fixed: Ensure pointer cursor */
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

/* Enhanced Section Title */
.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
    animation: fadeIn 1s ease-out;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 15px auto 0;
    border-radius: 2px;
    animation: slideInLeft 0.8s ease-out;
}

/* Enhanced Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    cursor: pointer !important;
    /* Fixed: Ensure pointer cursor */
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 45px;
    margin-right: 15px;
    animation: pulse 2s infinite;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary-color);
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    cursor: pointer !important;
    /* Fixed: Ensure pointer cursor */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer !important;
    /* Fixed: Ensure pointer cursor */
    transition: transform 0.3s ease;
    padding: 5px;
}

.mobile-menu-btn:hover {
    transform: rotate(90deg);
}

/* Enhanced Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
        url('assets/reception.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.hero-content {
    width: 100%;
    padding: 0 20px;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: slideInLeft 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .highlight {
    color: #FF5252;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInRight 1s ease-out 0.3s both;
}

.hero-btns {
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Enhanced Doctors Section */
.doctors-section {
    padding: 4rem 0;
    background: var(--light-bg);
    position: relative;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.doctor-card {
    background-color: var(--white) !important;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    padding-bottom: 2rem;
    position: relative;
    cursor: pointer !important;
    /* Fixed: Ensure pointer cursor */
}

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

.doctor-img-container {
    height: 250px;
    overflow: hidden;
    background-color: #f5f5f5 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.5s ease;
}

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

.doctor-info {
    padding: 1.5rem;
    background-color: var(--white) !important;
}

.doctor-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.specialty {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.qualifications,
.specialist,
.affiliations {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
    line-height: 1.6;
    background-color: transparent !important;
}

.affiliations {
    font-size: 0.85rem;
    font-style: italic;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.02) !important;
    border-radius: 10px;
}

.timings {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    background-color: #fff3e0 !important;
    padding: 12px 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.2);
}

.timings i {
    color: var(--primary-color);
}

/* Enhanced Services Section */
.services-section {
    padding: 2rem 0 0 0;
    background-color: var(--white) !important;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.service-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    background-color: var(--white) !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer !important;
    /* Fixed: Ensure pointer cursor */
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.05) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scale(1);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    animation: pulse 1s ease-in-out infinite;
}

.service-card h3 {
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Enhanced Contact Section */
.contact-section {
    padding: 4rem 0;
    background: var(--gradient-secondary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.contact-section .section-title {
    color: var(--white);
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.contact-info {
    background-color: var(--white) !important;
    color: var(--text-dark);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: transparent !important;
}

.info-item:hover {
    background-color: rgba(211, 47, 47, 0.05) !important;
    transform: translateY(-3px);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--white);
    background: var(--gradient-primary);
    padding: 0.8rem;
    border-radius: 50%;
    margin-right: 1rem;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
    min-width: 50px;
    text-align: center;
}

.info-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    font-weight: 600;
}

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

/* Enhanced Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #888;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content p {
    font-size: 0.95rem;
    color: #aaa;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer !important;
    /* Fixed: Ensure pointer cursor */
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .container {
        padding: 0 15px;
        width: 100%;
    }

    /* Navbar mobile styles */
    .navbar {
        padding: 0.8rem 0;
        background-color: var(--white) !important;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 35px;
        margin-right: 10px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--white) !important;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        text-align: center;
        gap: 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.8rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero mobile styles */
    .hero {
        min-height: 100vh;
        background-attachment: scroll !important;
        padding: 80px 20px 40px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.85rem;
        margin: 5px;
    }

    /* Section titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        letter-spacing: 1px;
    }

    /* Doctors cards */
    .doctors-section {
        padding: 3rem 0;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .doctor-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .doctor-card:hover {
        transform: none !important;
    }

    .doctor-img-container {
        height: 200px;
    }

    .doctor-info h3 {
        font-size: 1.2rem;
    }

    .specialty {
        font-size: 0.85rem;
        padding: 6px 15px;
    }

    .qualifications,
    .specialist,
    .affiliations {
        font-size: 0.85rem;
    }

    .timings {
        font-size: 0.85rem;
        padding: 10px 15px;
    }

    /* Services cards */
    .services-section {
        padding: 3rem 0;
    }

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

    .service-card {
        padding: 1.5rem;
    }

    .service-card:hover {
        transform: none !important;
    }

    .service-icon {
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    /* Contact section */
    .contact-section {
        padding: 3rem 0;
    }

    .contact-info {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }

    .info-item {
        justify-content: flex-start;
        min-width: auto;
        padding: 0.8rem;
    }

    .info-item:hover {
        transform: none !important;
    }

    .info-item i {
        font-size: 1.2rem;
        padding: 0.7rem;
        min-width: 40px;
    }

    .info-item h4 {
        font-size: 1rem;
    }

    .info-item p {
        font-size: 0.9rem;
    }

    /* Footer */
    footer {
        padding: 2rem 0;
    }

    .footer-content p {
        font-size: 0.85rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Remove animations on mobile */
    .fade-in,
    .slide-left,
    .slide-right,
    .scale-up {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

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

    .doctor-card,
    .service-card {
        margin: 0 5px;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .hero-btns,
    .mobile-menu-btn,
    .social-links {
        display: none;
    }

    .hero {
        height: auto;
        padding: 2rem 0;
        background: none;
        color: black;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

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

/* Mobile-Specific Animations - Add this to your existing CSS file */

/* Mobile animations (768px and below) */
@media (max-width: 768px) {

    /* Simple fade-in animation for mobile */
    @keyframes mobileFadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

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

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

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

    @keyframes mobileSlideIn {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }

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

    @keyframes mobileScale {
        from {
            opacity: 0;
            transform: scale(0.95);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    @keyframes mobilePulse {

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

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

    /* Hero Section Mobile Animations */
    .hero-content h1 {
        animation: mobileFadeIn 0.8s ease-out;
    }

    .hero-content p {
        animation: mobileFadeIn 0.8s ease-out 0.2s both;
    }

    .hero-btns {
        animation: mobileSlideUp 0.8s ease-out 0.4s both;
    }

    /* Section Titles Animation */
    .section-title {
        opacity: 0;
        animation: mobileFadeIn 0.6s ease-out forwards;
    }

    .section-title.visible {
        animation: mobileFadeIn 0.6s ease-out forwards;
    }

    /* Doctor Cards Mobile Animation */
    .doctor-card {
        opacity: 0;
        animation: mobileScale 0.5s ease-out forwards;
    }

    .doctor-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .doctor-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .doctor-card.visible {
        animation: mobileScale 0.5s ease-out forwards;
    }

    /* Service Cards Stagger Animation */
    .service-card {
        opacity: 0;
        transform: translateY(20px);
    }

    .service-card.visible {
        animation: mobileSlideUp 0.4s ease-out forwards;
    }

    .service-card.visible:nth-child(1) {
        animation-delay: 0.05s;
    }

    .service-card.visible:nth-child(2) {
        animation-delay: 0.1s;
    }

    .service-card.visible:nth-child(3) {
        animation-delay: 0.15s;
    }

    .service-card.visible:nth-child(4) {
        animation-delay: 0.2s;
    }

    .service-card.visible:nth-child(5) {
        animation-delay: 0.25s;
    }

    .service-card.visible:nth-child(6) {
        animation-delay: 0.3s;
    }

    .service-card.visible:nth-child(7) {
        animation-delay: 0.35s;
    }

    .service-card.visible:nth-child(8) {
        animation-delay: 0.4s;
    }

    /* Contact Info Items Animation */
    .info-item {
        opacity: 0;
        transform: translateX(-15px);
    }

    .info-item.visible {
        animation: mobileSlideIn 0.5s ease-out forwards;
    }

    .info-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .info-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .info-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    /* Mobile Menu Animation */
    .nav-links {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links.active a {
        opacity: 0;
        animation: mobileSlideIn 0.3s ease-out forwards;
    }

    .nav-links.active a:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-links.active a:nth-child(2) {
        animation-delay: 0.15s;
    }

    .nav-links.active a:nth-child(3) {
        animation-delay: 0.2s;
    }

    .nav-links.active a:nth-child(4) {
        animation-delay: 0.25s;
    }

    /* Button Tap Animation */
    .btn {
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .btn:active {
        transform: scale(0.95);
    }

    /* Card Press Effect */
    .service-card,
    .doctor-card {
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .service-card:active,
    .doctor-card:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    /* Scroll-triggered Animations */
    .fade-in-mobile {
        opacity: 0;
        transform: translateY(15px);
        transition: all 0.5s ease-out;
    }

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

    /* Icon Animation on Scroll */
    .service-icon {
        transition: all 0.3s ease;
    }

    .service-card.visible .service-icon {
        animation: mobilePulse 1s ease-in-out;
    }

    /* Progress Bar Animation for Mobile */
    @keyframes progressSlide {
        from {
            transform: scaleX(0);
            transform-origin: left;
        }

        to {
            transform: scaleX(1);
            transform-origin: left;
        }
    }

    /* Social Links Bounce */
    .social-links a {
        transition: all 0.2s ease;
    }

    .social-links a:active {
        transform: scale(0.9);
    }

    /* Smooth Page Transitions */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* Loading dots animation for mobile */
    @keyframes mobileDots {

        0%,
        80%,
        100% {
            transform: scale(0);
            opacity: 0.5;
        }

        40% {
            transform: scale(1);
            opacity: 1;
        }
    }

    /* Shimmer effect for loading states */
    @keyframes mobileShimmer {
        0% {
            background-position: -200px 0;
        }

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

    /* Subtle floating animation for icons */
    @keyframes mobileFloat {

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

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

    .timings i {
        animation: mobileFloat 2s ease-in-out infinite;
    }

    /* Navbar scroll effect */
    .navbar {
        transition: all 0.3s ease;
    }

    .navbar.scrolled {
        padding: 0.5rem 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* Mobile-optimized hover states (becomes tap states) */
    .doctor-card,
    .service-card {
        position: relative;
        overflow: hidden;
    }

    .doctor-card::after,
    .service-card::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(211, 47, 47, 0.1);
        transform: translate(-50%, -50%);
        transition: width 0.4s, height 0.4s;
    }

    .doctor-card:active::after,
    .service-card:active::after {
        width: 300px;
        height: 300px;
    }

    /* Smooth number counter animation */
    @keyframes countUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

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

    /* Mobile menu icon animation */
    .mobile-menu-btn {
        transition: transform 0.3s ease;
    }

    .mobile-menu-btn.active {
        transform: rotate(90deg);
    }

    /* Ripple effect for touch */
    @keyframes mobileRipple {
        0% {
            transform: scale(0);
            opacity: 1;
        }

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

    /* Optimized transitions for mobile */
    .doctor-info,
    .service-card p,
    .info-item {
        transition: all 0.2s ease;
    }
}

/* Extra smooth animations for modern phones */
@media (max-width: 768px) and (hover: none) {

    /* Remove hover effects on touch devices */
    .doctor-card:hover,
    .service-card:hover {
        transform: none;
    }

    /* Add touch feedback */
    .btn,
    .doctor-card,
    .service-card,
    .nav-links a {
        -webkit-tap-highlight-color: rgba(211, 47, 47, 0.1);
        touch-action: manipulation;
    }
}

/* Reduced motion for accessibility */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {

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

/* Add smooth scrolling for mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Performance optimization */
    .doctor-card,
    .service-card {
        will-change: transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

/* ============================================
   SERVICES FILTER AND CATEGORY STYLES
   ============================================ */

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.filter-btn {
    padding: 12px 25px;
    border: 2px solid transparent;
    background: var(--white);
    color: var(--text-dark);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: -1;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(211, 47, 47, 0.3);
}

.filter-btn i {
    font-size: 1.1rem;
}

/* Services Container */
.services-container {
    position: relative;
}

/* Service Category */
.service-category {
    margin-bottom: 4rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.service-category.hidden {
    display: none;
}

.service-category.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

/* Category Title */
.category-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    animation: slideInLeft 0.6s ease;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    animation: slideWidth 0.8s ease;
}

@keyframes slideWidth {
    from {
        width: 0;
    }

    to {
        width: 100px;
    }
}

.category-title i {
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

/* Adjusted Services Grid */
.service-category .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0;
}

/* Enhanced Service Card for Categories */
.service-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card:nth-child(5) {
    animation-delay: 0.5s;
}

.service-card:nth-child(6) {
    animation-delay: 0.6s;
}

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

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

/* Category-specific colors */
.service-category[data-category="gynae"] .category-title i {
    color: #E91E63;
}

.service-category[data-category="dental"] .category-title i {
    color: #00BCD4;
}

.service-category[data-category="hospital"] .category-title i {
    color: #4CAF50;
}

.service-category[data-category="gynae"] .service-card:hover {
    border-color: #E91E63;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.15);
}

.service-category[data-category="dental"] .service-card:hover {
    border-color: #00BCD4;
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.15);
}

.service-category[data-category="hospital"] .service-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.15);
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .filter-buttons {
        padding: 1rem;
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

    .filter-btn i {
        font-size: 1rem;
    }

    .category-title {
        font-size: 1.4rem;
        padding-bottom: 0.8rem;
    }

    .category-title i {
        font-size: 1.2rem;
    }

    .service-category .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-category {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .category-title {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
}

/* Smooth transitions for filter */
.services-container {
    min-height: 500px;
}

.service-category {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-category.filtering {
    animation: filterFade 0.4s ease;
}

@keyframes filterFade {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   ENHANCED CONTACT LINKS AND MAP
   ============================================ */

/* View Map Link */
.view-map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer !important;
}

.view-map-link:hover {
    color: #B71C1C;
    gap: 8px;
}

.view-map-link i {
    font-size: 0.75rem;
}

/* Clickable Phone and Email Links */
.info-item a {
    color: var(--text-light);
    transition: all 0.3s ease;
    cursor: pointer !important;
}

.info-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.info-item p a {
    display: inline-block;
}

/* Map Marker as Clickable Link */
.map-marker {
    text-decoration: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: mapBounce 2s ease-in-out infinite;
    cursor: pointer !important;
    z-index: 10;
    transition: all 0.3s ease;
}

.map-marker:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

@keyframes mapBounce {

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

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

.map-marker:hover {
    animation: none;
    transform: translate(-50%, -50%) scale(1.1);
}

.map-marker i {
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: pulse 1.5s infinite;
}

.map-marker span {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* Map Direction Button */
.map-direction-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer !important;
    text-decoration: none;
}

.map-direction-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Content Layout */
.contact-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.contact-content {
    background-color: var(--white) !important;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    min-height: 500px;
}

.contact-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: transparent !important;
}

.info-item:hover {
    background-color: rgba(211, 47, 47, 0.05) !important;
    transform: translateX(5px);
}

.info-item i {
    font-size: 1.3rem;
    color: var(--white);
    background: var(--gradient-primary);
    padding: 0.8rem;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.2rem;
}

/* Map Container */
.map-container {
    position: relative;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
}

.map-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-header i {
    font-size: 1.3rem;
}

.map-wrapper {
    position: relative;
    flex: 1;
    min-height: 400px;
    background: #e0e0e0;
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}

.map-wrapper:hover iframe {
    filter: brightness(1.05);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.map-overlay .map-marker {
    pointer-events: auto;
}

/* Pulse effect for marker */
.map-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50px;
    opacity: 0.3;
    animation: markerPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes markerPulse {

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

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 2rem;
        gap: 1.5rem;
    }

    .map-container {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .contact-content {
        border-radius: 15px;
    }

    .contact-info {
        padding: 1.5rem;
        gap: 1rem;
    }

    .info-item {
        padding: 0.8rem;
    }

    .info-item i {
        min-width: 40px;
        height: 40px;
        font-size: 1.1rem;
        padding: 0.7rem;
    }

    .info-item h4 {
        font-size: 1rem;
    }

    .info-item p {
        font-size: 0.9rem;
    }

    .view-map-link {
        font-size: 0.8rem;
    }

    .map-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }

    .map-header h3 {
        font-size: 1.1rem;
    }

    .map-direction-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }

    .map-wrapper {
        min-height: 300px;
    }

    .map-marker {
        padding: 8px 15px;
    }

    .map-marker span {
        font-size: 0.85rem;
    }

    .map-marker i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .contact-info {
        padding: 1rem;
    }

    .info-item {
        padding: 0.5rem;
    }

    .map-wrapper {
        min-height: 250px;
    }

    .map-marker {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Loading animation for map */
@keyframes mapLoad {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.map-wrapper {
    animation: mapLoad 0.8s ease-out;
}

/* Hover tooltip for map */
.map-wrapper::after {
    content: 'Click marker or "Get Directions" to open in Google Maps';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 5;
}

.map-wrapper:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .map-wrapper::after {
        font-size: 0.7rem;
        white-space: normal;
        max-width: 80%;
        text-align: center;
    }
}

/* Video with autoplay styles */
.video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Add subtle animation for autoplay video */
.video-player::before {
    content: 'Video Playing';
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 10;
    animation: fadeInOut 3s ease;
    pointer-events: none;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Volume control button (optional) */
.volume-control {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.volume-control:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Autoplay indicator */
.autoplay-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
    z-index: 10;
}

/* ============================================
   PROFESSIONAL VIDEO SECTION
   ============================================ */

.video-section {
    padding: 1rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative Background */
.video-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    /* background: radial-gradient(circle, rgba(211, 47, 47, 0.08) 0%, transparent 70%); */
    border-radius: 50%;
}

.video-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

/* Video Header */
.video-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease;
}

.video-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto 1rem;
    border-radius: 2px;
    position: relative;
}

.title-underline::before,
.title-underline::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: rgba(211, 47, 47, 0.3);
    border-radius: 2px;
    top: 0;
}

.title-underline::before {
    left: -50px;
}

.title-underline::after {
    right: -50px;
}

.video-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Video Content Container */
.video-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Video Wrapper - Centered and Sized */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    /* Controlled width */
    margin: 0 auto;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    animation: fadeInScale 1s ease 0.3s both;
}

/* Video Frame Decoration */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {

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

    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Video Frame Border */
.video-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    pointer-events: none;
    z-index: 1;
}

/* Video Aspect Ratio Container */
.video-wrapper iframe,
.video-wrapper video {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border-radius: 20px;
}

/* Hide all video controls for local video */
.clinic-video {
    pointer-events: none;
    /* Prevents interaction */
}

.clinic-video::-webkit-media-controls {
    display: none !important;
}

.clinic-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.clinic-video::-webkit-media-controls-panel {
    display: none !important;
}

.clinic-video::-moz-media-controls {
    display: none !important;
}

/* Professional Loading State */
.video-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: videoLoad 1s linear infinite;
    display: none;
}

.video-wrapper.loading::after {
    display: block;
}

@keyframes videoLoad {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .video-wrapper {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .video-section {
        padding: 4rem 0;
    }

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

    .video-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .video-header {
        margin-bottom: 3rem;
    }

    .video-wrapper {
        max-width: 100%;
        margin: 0 20px;
        border-radius: 15px;
    }

    .video-wrapper iframe,
    .video-wrapper video {
        border-radius: 15px;
    }

    .title-underline::before,
    .title-underline::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .video-section {
        padding: 3rem 0;
    }

    .video-title {
        font-size: 1.5rem;
    }

    .video-subtitle {
        font-size: 0.95rem;
    }

    .video-wrapper {
        margin: 0 15px;
        border-radius: 12px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    }
}

/* Optional: Subtle play indicator */
.video-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border-radius: 50%;
    animation: blink 2s infinite;
    z-index: 2;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Clean, minimal style */
.video-content {
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(211, 47, 47, 0.03) 0%, transparent 50%);
    border-radius: 30px;
}

/* ============================================
   ENHANCED DENTAL SERVICE CARDS
   ============================================ */

/* Featured Service Card with Details */
.service-card.featured-card {
    grid-column: span 1;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 2px solid var(--primary-color);
    position: relative;
    padding: 2rem 1.5rem;
}

.service-card.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.featured-header {
    border-bottom: 2px solid rgba(211, 47, 47, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.featured-header .service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-header h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin: 0;
}

.featured-content {
    text-align: left;
}

.featured-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.featured-content h4 i {
    font-size: 1rem;
    color: #FFD700;
}

.featured-content>p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Service Features List */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 0.6rem 0;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.service-features li i {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.service-features li strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Special Service Card with Badge (Invisible Braces) */
.service-card.special-card {
    position: relative;
    overflow: visible;
    border: 2px solid #4CAF50;
    background: linear-gradient(135deg, #ffffff 0%, #f1f8f4 100%);
}

.special-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.special-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    animation: pulse 2s infinite;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.special-card .service-icon {
    color: #4CAF50;
}

/* Hover Effects for Featured Cards */
.service-card.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(211, 47, 47, 0.2);
    border-color: #B71C1C;
}

.service-card.special-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.2);
    border-color: #45a049;
}

/* Responsive Design for Featured Cards */
@media (max-width: 768px) {
    .service-card.featured-card {
        padding: 1.5rem 1rem;
    }

    .featured-header {
        padding-bottom: 0.8rem;
        margin-bottom: 1rem;
    }

    .featured-header .service-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .featured-header h3 {
        font-size: 1.1rem;
    }

    .featured-content h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .featured-content>p {
        font-size: 0.9rem;
    }

    .service-features li {
        padding: 0.5rem 0;
        font-size: 0.85rem;
    }

    .special-badge {
        top: -10px;
        right: -10px;
        padding: 5px 14px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {

    .service-card.featured-card,
    .service-card.special-card {
        margin: 0 5px;
    }

    .featured-content h4 {
        font-size: 0.95rem;
    }

    .service-features li {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .special-badge {
        top: -8px;
        right: -8px;
        padding: 4px 12px;
        font-size: 0.65rem;
    }
}

/* Animation for service features */
.service-features li {
    opacity: 0;
    animation: slideInLeft 0.4s ease forwards;
}

.service-card:hover .service-features li:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:hover .service-features li:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:hover .service-features li:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:hover .service-features li:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card .service-features li {
    opacity: 1;
    animation: none;
}

/* Premium indicator for Zirconia */
.featured-content h4 i.fa-gem {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

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

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Specialty Tag Styling */
.specialty-tag {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 1rem auto;
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
    animation: slideInRight 1s ease-out 0.5s both;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.specialty-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .specialty-tag {
        font-size: 0.9rem;
        padding: 8px 20px;
        margin: 0.8rem auto;
    }
}

@media (max-width: 480px) {
    .specialty-tag {
        font-size: 0.8rem;
        padding: 6px 18px;
    }
}