* {
    font-family: 'Montserrat', sans-serif;
}

.hero-gradient {
    background: linear-gradient(135deg, #1d7b5e 0%, #3286ac 50%, #209e74 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav.open {
    transform: translateX(0);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Appointment Popup Animation */
.animate-scale-in {
    animation: scaleIn 0.3s ease-out forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#appointmentPopupModal {
    transition: opacity 0.3s ease;
}

#appointmentPopupModal.hidden {
    opacity: 0;
    pointer-events: none;
}

.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    width: 100%;
}

.slider-item {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
}

/* Modern Hero Animations */
.hero-title {
    animation: slideInLeft 1s ease-out;
}

.hero-subtitle {
    animation: slideInLeft 1s ease-out 0.2s backwards;
}

.hero-buttons {
    animation: slideInLeft 1s ease-out 0.4s backwards;
}

.hero-image-container {
    animation: slideInRight 1s ease-out 0.3s backwards;
    position: relative;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating Animation for Hero Image */
.hero-image-float {
    animation: floatImage 3s ease-in-out infinite;
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Glowing Button Effect */
.glow-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glow-button::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;
}

.glow-button:hover::before {
    width: 300px;
    height: 300px;
}

.glow-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(45deg, #fff, #10b981, #fff, #0ea5e9);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Stats Counter Animation */
.stat-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.stat-card:hover::after {
    left: 100%;
}

.stat-card:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Modern Slider Dots */
.slider-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-dot.active {
    width: 2rem;
    opacity: 1;
    background: white;
}

.slider-dot:hover {
    opacity: 0.8;
    transform: scale(1.2);
}

/* Mobile responsive hero section styles */
@media (max-width: 1023px) {
    .hero-mobile-layout {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        order: 2;
        padding: 0 1rem;
    }

    .hero-image {
        order: 1;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
    }

    .hero-buttons button {
        min-width: 200px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1.125rem !important;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons button {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .hero-image img {
        border-radius: 0.5rem;
        width: 100%;
        height: auto;
        object-fit: cover;
        aspect-ratio: 4/3;
    }
}

/* Trusted Brands Animation */
.brands-container {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
}

.brands-track {
    display: flex;
    animation: scrollBrands 30s linear infinite;
    width: fit-content;
}

.brand-item {
    flex-shrink: 0;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.3) 0%, rgba(14, 165, 233, 0.3) 100%);
    border: 2px solid rgba(5, 150, 105, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2);
}

.brand-logo:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.5) 0%, rgba(14, 165, 233, 0.5) 100%);
    border-color: rgba(5, 150, 105, 0.8);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
    color: #fff;
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.brands-container:hover .brands-track {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .brand-logo {
        font-size: 18px;
        padding: 15px 20px;
    }

    .brand-item {
        padding: 0 20px;
    }
}

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(135deg, #059669 0%, #0ea5e9 100%);
    overflow: hidden;
    position: relative;
    padding: 16px 0;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.announcement-content {
    display: flex;
    animation: scrollAnnouncement 5s linear infinite;
    white-space: nowrap;
}

.announcement-text {
    display: inline-block;
    padding: 0 50px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
}

.announcement-banner:hover {
    background: linear-gradient(135deg, #047857 0%, #0284c7 100%);
}

.announcement-banner:hover .announcement-content {
    animation-play-state: paused;
}

.announcement-banner:hover .announcement-text {
    transform: scale(1.02);
}

@keyframes scrollAnnouncement {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .announcement-text {
        font-size: 14px;
        padding: 0 30px;
    }
}

/* Gallery Lightbox Styles */
#galleryLightbox {
    animation: fadeInLightbox 0.3s ease-in-out;
}

#galleryLightbox.hidden {
    animation: fadeOutLightbox 0.3s ease-in-out;
    pointer-events: none;
}

@keyframes fadeInLightbox {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOutLightbox {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

#lightboxImage {
    animation: zoomIn 0.4s ease-in-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-image-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-image-clickable:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* YouTube Story Videos Styles */
.story-video-card {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.story-video-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.story-video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.story-video-card:hover img {
    filter: brightness(0.7);
}

.story-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
}

.story-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.story-video-card:hover .story-video-play {
    background: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
}

.story-video-play i {
    color: white;
    font-size: 20px;
    margin-left: 3px;
}

.story-video-title {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-video-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Story Video Modal */
#storyVideoModal {
    animation: fadeInLightbox 0.3s ease-in-out;
}

#storyVideoModal.hidden {
    display: none;
}

.story-modal-content {
    max-width: 400px;
    width: 90%;
    aspect-ratio: 9/16;
    max-height: 85vh;
    position: relative;
    background: black;
    border-radius: 16px;
    overflow: hidden;
}

@media (max-width: 640px) {
    .story-modal-content {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
}

/* Story Videos Carousel Styles */
.story-carousel-container {
    position: relative;
    width: 100%;
    padding: 0 50px;
}

.story-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
}

.story-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: grab;
}

.story-carousel-track:active {
    cursor: grabbing;
}

.story-carousel-track .story-video-card {
    flex: 0 0 auto;
    width: calc(16.666% - 14px);
}

@media (max-width: 1280px) {
    .story-carousel-track .story-video-card {
        width: calc(20% - 13px);
    }
}

@media (max-width: 1024px) {
    .story-carousel-track .story-video-card {
        width: calc(25% - 12px);
    }
}

@media (max-width: 768px) {
    .story-carousel-container {
        padding: 0 40px;
    }

    .story-carousel-track .story-video-card {
        width: calc(33.333% - 11px);
    }
}

@media (max-width: 640px) {
    .story-carousel-container {
        padding: 0 35px;
    }

    .story-carousel-track .story-video-card {
        width: calc(50% - 8px);
    }
}

@media (max-width: 400px) {
    .story-carousel-container {
        padding: 0 30px;
    }

    .story-carousel-track .story-video-card {
        width: 100%;
    }
}

.story-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669 0%, #0ea5e9 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.story-carousel-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}

.story-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.story-carousel-prev {
    left: 0;
}

.story-carousel-next {
    right: 0;
}

.story-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.story-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-carousel-dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.story-carousel-dot.active {
    background: linear-gradient(135deg, #059669 0%, #0ea5e9 100%);
    width: 24px;
    border-radius: 5px;
}

/* Dark mode styles for carousel */
.dark .story-carousel-dot {
    background: #4b5563;
}

.dark .story-carousel-dot:hover {
    background: #6b7280;
}

/* Testimonials Carousel Styles */
.testimonials-carousel-container {
    position: relative;
    width: 100%;
    padding: 0 50px;
}

.testimonials-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
}

.testimonials-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: grab;
}

.testimonials-carousel-track:active {
    cursor: grabbing;
}

.testimonial-card {
    flex: 0 0 auto;
    width: calc(33.333% - 16px);
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1024px) {
    .testimonial-card {
        width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .testimonials-carousel-container {
        padding: 0 40px;
    }

    .testimonial-card {
        width: calc(100% - 0px);
    }
}

@media (max-width: 640px) {
    .testimonials-carousel-container {
        padding: 0 35px;
    }
}

.testimonials-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669 0%, #0ea5e9 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.testimonials-carousel-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}

.testimonials-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.testimonials-carousel-prev {
    left: 0;
}

.testimonials-carousel-next {
    right: 0;
}

.testimonials-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.testimonials-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.testimonials-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-carousel-dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.testimonials-carousel-dot.active {
    background: linear-gradient(135deg, #059669 0%, #0ea5e9 100%);
    width: 28px;
    border-radius: 5px;
}

.testimonials-autoplay-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669 0%, #0ea5e9 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.3);
}

.testimonials-autoplay-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.5);
}

.testimonials-autoplay-btn.paused {
    background: #6b7280;
}

/* Testimonial card content styles */
.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669 0%, #0ea5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

.testimonial-stars {
    color: #fbbf24;
}

.testimonial-quote {
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: #059669;
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

/* Dark mode styles for testimonials carousel */
.dark .testimonial-card {
    background: #1f2937;
    border-color: #374151;
}

.dark .testimonials-carousel-dot {
    background: #4b5563;
}

.dark .testimonials-carousel-dot:hover {
    background: #6b7280;
}

/* Header Styles */
header {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark header.scrolled {
    background: #111827 !important;
    border-bottom: 1px solid #374151;
}

/* Dark Mode Styles */
.dark {
    color-scheme: dark;
}

.dark body {
    background-color: #1f2937;
    color: #f3f4f6;
}

.dark header {
    background-color: #111827;
    border-bottom: 1px solid #374151;
}

.dark .mobile-nav {
    background-color: #111827;
}

.dark .bg-white {
    background-color: #1f2937;
}

.dark .bg-gray-50 {
    background-color: #111827;
}

.dark .text-gray-800 {
    color: #f3f4f6;
}

.dark .text-gray-700 {
    color: #d1d5db;
}

.dark .text-gray-600 {
    color: #9ca3af;
}

.dark .text-gray-500 {
    color: #6b7280;
}

.dark .shadow-lg,
.dark .shadow-md {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

.dark .border-b {
    border-color: #374151;
}

.dark .border-gray-200 {
    border-color: #374151;
}

.dark footer {
    background-color: #0f172a;
}

.dark .border-gray-800 {
    border-color: #1f2937;
}

.dark .bg-gray-900 {
    background-color: #0f172a;
}

.dark input,
.dark select,
.dark textarea {
    background-color: #374151;
    color: #f3f4f6;
    border-color: #4b5563;
}

.dark input:focus,
.dark select:focus,
.dark textarea:focus {
    border-color: #059669;
    background-color: #4b5563;
}

.dark .bg-gray-100 {
    background-color: #374151;
}

#themeToggle {
    transition: all 0.3s ease;
}

#themeToggle:hover {
    transform: rotate(180deg);
}

/* WhatsApp & Call Floating Buttons */
.floating-button {
    position: fixed;
    bottom: 30px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease, transform 0.3s ease;
}

.whatsapp-button {
    left: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.call-button {
    right: 30px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.floating-button:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    animation: none;
}

.floating-button:active {
    transform: scale(0.95);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    }
}

.floating-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Header Call Button */
.header-call-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.3);
}

.header-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.5);
}

.header-call-btn i {
    font-size: 2.5rem;
    animation: shake 2s infinite;
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-10deg);
    }

    20%,
    40% {
        transform: rotate(10deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-button {
        width: 65px;
        height: 65px;
        font-size: 42px;
        bottom: 20px;
    }

    .whatsapp-button {
        left: 20px;
    }

    .call-button {
        right: 20px;
    }

    .header-call-btn {
        padding: 12px 24px;
        font-size: 1rem;
        gap: 10px;
    }

    .header-call-btn i {
        font-size: 2rem;
    }
}


/* Chatbot Styles */
.chatbot-launcher {
    position: fixed;
    bottom: 125px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-launcher:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.4);
}

.chatbot-launcher.active {
    transform: rotate(180deg) scale(0.9);
}

.chatbot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.6;
    animation: ripple 2s infinite;
    z-index: -1;
}

.chatbot-container {
    position: fixed;
    bottom: 205px;
    right: 30px;
    width: 380px;
    height: 520px;
    background-color: white;
    border-radius: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpChat 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUpChat {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, #059669 0%, #0ea5e9 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Custom scrollbar for messages */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}
.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chatbot-messages::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.3);
    border-radius: 20px;
}

.bot-msg-wrapper {
    display: flex;
    justify-content: flex-start;
    animation: fadeInMsg 0.3s ease-out forwards;
}

.user-msg-wrapper {
    display: flex;
    justify-content: flex-end;
    animation: fadeInMsg 0.3s ease-out forwards;
}

@keyframes fadeInMsg {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-msg {
    max-width: 80%;
    background-color: white;
    color: #1f2937;
    padding: 12px 16px;
    border-radius: 0px 16px 16px 16px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    white-space: pre-line;
}

.user-msg {
    max-width: 80%;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 16px 16px 0px 16px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

.chatbot-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    transition: all 0.3s ease;
    margin-top: 4px;
}

.chatbot-wa-btn:hover {
    background: linear-gradient(135deg, #20ba5a 0%, #0e7065 100%);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    color: white;
}

.quick-replies-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    animation: fadeInMsg 0.3s ease-out forwards;
}

.quick-reply-btn {
    background-color: white;
    color: #059669;
    border: 1.5px solid #059669;
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-reply-btn:hover {
    background-color: #059669;
    color: white;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.15);
}

.chatbot-input-area {
    display: flex;
    padding: 12px 16px;
    background-color: white;
    border-top: 1px solid #f3f4f6;
    align-items: center;
    gap: 12px;
}

.chatbot-input {
    flex: 1;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.chatbot-input:focus {
    border-color: #059669 !important;
}

.chatbot-send-btn {
    background-color: #059669;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chatbot-send-btn:hover {
    background-color: #047857;
    transform: scale(1.05);
}

/* Typing loader */
.bot-msg.typing {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
    align-items: center;
}

.chatbot-dot {
    width: 8px;
    height: 8px;
    background-color: #9ca3af;
    border-radius: 50%;
    animation: chatbotBounce 1.4s infinite ease-in-out both;
}

.chatbot-dot:nth-child(1) { animation-delay: -0.32s; }
.chatbot-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes chatbotBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Dark Mode Overrides */
.dark .chatbot-container {
    background-color: #1f2937;
}

.dark .chatbot-messages {
    background-color: #111827;
}

.dark .bot-msg {
    background-color: #1f2937;
    color: #f3f4f6;
    border-color: #374151;
    box-shadow: none;
}

.dark .quick-reply-btn {
    background-color: #1f2937;
    color: #10b981;
    border-color: #10b981;
}

.dark .quick-reply-btn:hover {
    background-color: #10b981;
    color: #111827;
}

.dark .chatbot-input-area {
    background-color: #1f2937;
    border-top-color: #374151;
}

.dark .chatbot-input {
    background-color: #374151;
    color: #f3f4f6;
    border-color: #4b5563 !important;
}

.dark .chatbot-input:focus {
    border-color: #10b981 !important;
}

.dark .chatbot-send-btn {
    background-color: #10b981;
    color: #111827;
}

.dark .chatbot-send-btn:hover {
    background-color: #059669;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .chatbot-launcher {
        bottom: 105px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .chatbot-container {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 2000;
    }
    
    .chatbot-header {
        padding: 14px 16px;
    }
}
