@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #F0F9FF;
    --secondary-light: #E6F5FE;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --success: #10B981;
    --warning: #F59E0B;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

/* Simplified Video Styling */
video {
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    cursor: pointer;
}

video:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
}

.video-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    pointer-events: none;
}

/* Video loading states */
.video-container.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.video-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    z-index: 2;
}

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

/* Video play/pause indicator */
.video-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='24px' height='24px'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

/* Show play button by default for ready-to-play videos */
.video-container.ready-to-play::before {
    opacity: 0.7;
}

/* Enhanced hover state for ready-to-play videos */
.video-container.ready-to-play:hover::before {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.1);
}

/* When video is paused, always show play button */
.video-container:not(.playing)::before {
    opacity: 0.7;
}

/* When video is playing and user hovers, show pause button */
.video-container.playing:hover::before {
    opacity: 0.7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='24px' height='24px'%3E%3Cpath d='M6 19h4V5H6v14zm8-14v14h4V5h-4z'/%3E%3C/svg%3E");
}

/* Special mobile interaction indicator */
.video-container.needs-interaction::before {
    opacity: 0.9;
    background-color: rgba(0, 0, 0, 0.7);
    animation: pulse 2s infinite;
    width: 70px;
    height: 70px;
}

/* Error state */
.video-container.error::before {
    opacity: 0.9;
    background-color: rgba(0, 0, 0, 0.7);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff5252' width='24px' height='24px'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }
}

.hero-gradient {
    background: linear-gradient(99deg, var(--primary-light) 0%, var(--secondary-light) 100%);
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.25);
    transform: translateY(-5px);
}

.stats-gradient {
    background: linear-gradient(99deg, var(--primary-light) 0%, var(--secondary-light) 100%);
}

.testimonial-card {
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
}

.nav-link {
    position: relative;
}

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

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

.animate-bounce-slow {
    animation: bounce 3s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* New Hero Section Animations and Effects */
.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

@keyframes blob {
    0% {
        transform: scale(1);
    }
    33% {
        transform: scale(1.1) translateY(-10px);
    }
    66% {
        transform: scale(0.9) translateX(10px);
    }
    100% {
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-ping-slow {
    animation: ping 5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--text-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: #3B82F6;
}

.btn-ghost:hover {
    background: #F0F9FF;
}

/* Outline Button */
.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

/* Button sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Button with icon */
.btn-icon {
    gap: 0.5rem;
}

/* Loading state */
.btn-loading {
    position: relative;
    cursor: wait;
}

.btn-loading:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #FFFFFF;
    border-top-color: transparent;
    border-radius: 50%;
    animation: button-loading 0.6s linear infinite;
}

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

/* Hospital card gradients */
.hospital-apollo {
    background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
}

.hospital-fortis {
    background: linear-gradient(135deg, #E0E7FF 0%, #EEF2FF 100%);
}

.hospital-lilavati {
    background: linear-gradient(135deg, #E0F2FE 0%, #F0F9FF 100%);
}

/* Custom background gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #F0F9FF 0%, #F8FAFC 100%);
}

/* Section backgrounds */
.section-light {
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
}

.section-colored {
    background: linear-gradient(135deg, #DBEAFE 0%, #F0F9FF 100%);
}

/* Responsive Utilities */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
    h3 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
}

/* Additional Responsive Improvements */

/* Ensure text doesn't overflow on small screens */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.4;
    }
    
    /* Improve button spacing on mobile */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        min-width: auto;
    }
    
    /* Ensure cards don't get too narrow */
    .feature-card,
    .testimonial-card {
        min-height: auto;
        padding: 1rem;
    }
    
    /* Improve navigation spacing */
    .nav-link {
        padding: 0.5rem 0;
        font-size: 1rem;
    }
    
    /* Better mobile spacing for sections */
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Better form field sizing */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
}

/* Tablet-specific improvements */
@media (min-width: 641px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Ensure touch targets are large enough */
.btn, 
.nav-link,
a[href^="tel:"],
a[href^="mailto:"],
button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Improve table responsiveness */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Better container max-widths for different screen sizes */
.container {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Ensure text readability on all devices */
h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    hyphens: auto;
}

p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Improve focus states for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Better mobile menu positioning */
@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        background: white;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .mobile-menu.active {
        transform: translateX(0);
    }
}

/* Improved grid responsiveness */
.grid-responsive {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Footer responsive improvements */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Better responsive spacing utilities */
.space-y-responsive > * + * {
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .space-y-responsive > * + * {
        margin-top: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .space-y-responsive > * + * {
        margin-top: 2rem;
    }
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

/* No-JS fallback for video playback */
.no-js .video-container::after {
    content: 'Click to play video';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 10;
}

.no-js .video-container::before {
    opacity: 1;
}

/* Add styles for mobile browsers that may block autoplay */
@media (max-width: 768px) {
    .video-container::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        pointer-events: none;
        z-index: 1;
    }
}

/* Audio state indicators */
.video-container.playing::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='16px' height='16px'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

.video-container.playing.audio-enabled::after {
    opacity: 1;
}

.video-container.playing.audio-muted::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='16px' height='16px'%3E%3Cpath d='M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z'/%3E%3C/svg%3E");
    opacity: 1;
    background-color: rgba(255, 82, 82, 0.8);
}

/* Show audio indicator on hover */
.video-container:hover::after {
    opacity: 1 !important;
}

/* Enhanced Video Play Overlay Styles */
.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-play-overlay:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.play-button-circle {
    width: 4rem;
    height: 4rem;
    background-color: #3B82F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1);
    transition: all 0.3s ease;
}

.video-play-overlay:hover .play-button-circle {
    background-color: #2563EB;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
    .play-button-circle {
        width: 5rem;
        height: 5rem;
    }
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.video-modal video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.5rem;
}

/* Dark theme for experience cards */
.experience-card-dark {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
    border: 1px solid #4b5563 !important;
    color: white !important;
}

.experience-card-dark .text-gray-900 {
    color: #f9fafb !important;
}

.experience-card-dark .text-gray-700 {
    color: #d1d5db !important;
}

.experience-card-dark .text-gray-600 {
    color: #9ca3af !important;
}

/* Dark hover overlays */
.experience-card-dark .bg-gradient-to-br.from-primary\/10 {
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.2), transparent) !important;
}

.experience-card-dark .bg-gradient-to-br.from-teal-100\/50 {
    background: linear-gradient(to bottom right, rgba(20, 184, 166, 0.2), transparent) !important;
}

.experience-card-dark .bg-gradient-to-br.from-blue-100\/50 {
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.2), transparent) !important;
}

/* Dark icon backgrounds */
.experience-card-dark .bg-purple-100 {
    background-color: #581c87 !important;
}

.experience-card-dark .bg-teal-100 {
    background-color: #134e4a !important;
}

.experience-card-dark .bg-blue-100 {
    background-color: #1e3a8a !important;
}

.experience-card-dark .bg-green-100 {
    background-color: #14532d !important;
}

/* Dark badge styles */
.experience-card-dark .bg-primary {
    background-color: #3b82f6 !important;
}

.experience-card-dark .bg-teal-100.text-teal-600 {
    background-color: #134e4a !important;
    color: #5eead4 !important;
}

.experience-card-dark .bg-blue-100.text-blue-600 {
    background-color: #1e3a8a !important;
    color: #93c5fd !important;
}

.experience-card-dark .bg-green-100.text-green-600 {
    background-color: #14532d !important;
    color: #86efac !important;
}

/* Dark text colors for icons */
.experience-card-dark .text-purple-600 {
    color: #c084fc !important;
}

.experience-card-dark .text-teal-600 {
    color: #5eead4 !important;
}

.experience-card-dark .text-blue-600 {
    color: #93c5fd !important;
}

.experience-card-dark .text-green-600 {
    color: #86efac !important;
}

/* Dark hover effects */
.experience-card-dark:hover {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(-2px) !important;
}

.experience-card-dark .group-hover\:bg-purple-200:hover {
    background-color: #6b21a8 !important;
}

.experience-card-dark .group-hover\:bg-teal-200:hover {
    background-color: #0f766e !important;
}

.experience-card-dark .group-hover\:bg-blue-200:hover {
    background-color: #1d4ed8 !important;
}

.experience-card-dark .group-hover\:bg-green-200:hover {
    background-color: #166534 !important;
}
