/* Custom CSS for MΛCH10 - Medic Template Style */
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,700|Raleway:300,400,500,600,600i,700,900&display=swap");

/* Medical color palette - Template inspired */
:root {
    --primary-color: #00ADB5;
    --primary-hover: rgba(0, 173, 181, 0.7);
    --text-color: #8C96A7;
    --heading-color: #393E46;
    --white: #fff;
    --medical-red: #ef4444;
    --medical-blue: #3b82f6;
    --medical-green: #10b981;
    --medical-purple: #8b5cf6;
    --medical-orange: #f97316;
    --medical-pink: #ec4899;
    --medical-cyan: #00ADB5;
    --medical-indigo: #393E46;
    --medical-yellow: #f59e0b;
    --medical-teal: #14b8a6;
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", sans-serif;
    font-weight: normal;
    font-style: normal;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--heading-color);
    font-family: "Raleway", sans-serif;
    margin: 0px;
}

p {
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: var(--text-color);
    margin: 0px;
}

a:hover {
    transition: all 0.3s ease-out 0s;
    color: var(--primary-color);
}

/* Theme background */
.theme-bg {
    background-color: var(--primary-color);
}


/* Theme background */
.theme-bg {
    background-color: var(--primary-color);
}

/* Enhanced medical icon colors */
.medical-icon-red { color: var(--medical-red); }
.medical-icon-blue { color: var(--medical-blue); }
.medical-icon-green { color: var(--medical-green); }
.medical-icon-purple { color: var(--medical-purple); }
.medical-icon-orange { color: var(--medical-orange); }
.medical-icon-pink { color: var(--medical-pink); }
.medical-icon-cyan { color: var(--medical-cyan); }
.medical-icon-indigo { color: var(--medical-indigo); }
.medical-icon-yellow { color: var(--medical-yellow); }
.medical-icon-teal { color: var(--medical-teal); }

/* Theme button - Template style */
.theme-btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    padding: 18px 40px;
    font-size: 18px;
    border-radius: 10px;
    border: none;
    color: var(--white);
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease-out 0s;
    background-color: var(--primary-color);
    font-family: "Raleway", sans-serif;
}

.theme-btn:hover {
    background-color: var(--primary-hover);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(0, 173, 181, 0.3);
}

/* Advanced animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(0, 173, 181, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 25px rgba(0, 173, 181, 0.8), 0 0 35px rgba(0, 173, 181, 0.6);
        transform: scale(1.05);
    }
}

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

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(50px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
}

@keyframes animation1 {
    0% { transform: scale(1); }
    50% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

.medical-pulse {
    animation: medical-pulse 2s ease-in-out infinite;
}

.orbit-animation {
    animation: orbit 20s linear infinite;
}

/* Enhanced logo styles - Template inspired */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--medical-teal) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 173, 181, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--medical-teal), var(--medical-green));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-icon:hover::before {
    opacity: 1;
}

.logo-icon:hover {
    box-shadow: 0 8px 25px rgba(0, 173, 181, 0.5);
    transform: translateY(-2px);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--heading-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    font-family: "Raleway", sans-serif;
}

.logo-text:hover {
    background: linear-gradient(135deg, var(--medical-cyan) 0%, var(--medical-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced language switcher */
.lang-switcher {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 4px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    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;
}

.lang-btn:hover::before {
    left: 100%;
}

.lang-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.lang-btn:not(.active) {
    color: white;
    opacity: 0.8;
}

.lang-btn:not(.active):hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Enhanced medical card hover effects - Template style */
.medical-card {
    transition: all 0.3s ease-out 0s;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 35px rgba(0, 173, 181, 0.14);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.medical-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 173, 181, 0.05), transparent);
    transition: left 0.6s;
}

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

.medical-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 173, 181, 0.2);
}

/* Glassmorphism enhancements */
.glass-effect {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Enhanced hero medical icons arrangement */
.hero-medical-icons {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.hero-main-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    z-index: 2;
}

.hero-orbit-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .logo-text {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .lang-switcher {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .lang-btn:not(.active) {
        color: var(--primary-color);
    }
}

/* Loading and transition states */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Language transition effect */
body.lang-transition {
    transition: opacity 0.3s ease;
}

/* Custom scrollbar with medical theme */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--medical-teal));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--medical-teal), var(--medical-green));
}

/* Print styles */
@media print {
    .no-print, .lang-switcher, nav {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .medical-gradient {
        background: var(--primary-color) !important;
    }
}

/* Additional Template Styles */
/* Scroll top button - Template style */
.scroll-top {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    text-align: center;
    line-height: 45px;
    font-size: 20px;
    color: var(--white);
    border-radius: 5px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9;
    cursor: pointer;
    transition: all 0.3s ease-out 0s;
}

.scroll-top:hover {
    color: var(--white);
    background: var(--primary-hover);
}

/* Read more links - Template style */
.read-more {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    font-family: "Raleway", sans-serif;
    text-decoration: none;
}

.read-more i {
    margin-left: 15px;
    transition: all 0.3s ease-out 0s;
}

.read-more:hover i {
    margin-left: 30px;
}

/* Section titles - Template style */
.section-title {
    font-family: "Raleway", sans-serif;
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-color);
    font-size: 18px;
    line-height: 28px;
}

/* Cards with template style - Exact from Medic Template */
.service-card,
.solution-card,
.service-item {
    background: white;
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease-out 0s;
    box-shadow: 0 10px 35px rgba(0, 173, 181, 0.14);
    position: relative;
    z-index: 1;
}

.service-card:hover,
.solution-card:hover,
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 173, 181, 0.2);
}

/* Service Icon */
.service-icon,
.solution-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--medical-teal));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease-out 0s;
}

/* Service Content */
.service-content h4,
.service-card h3,
.solution-card h3 {
    margin-bottom: 20px;
    color: var(--heading-color);
    font-family: "Raleway", sans-serif;
}

.service-content p,
.service-card p,
.solution-card p {
    font-size: 16px;
    line-height: 25px;
    margin-bottom: 25px;
    color: var(--text-color);
}

/* Hover effect with overlay */
.service-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transition: all 0.3s ease-out 0s;
    background: linear-gradient(135deg, var(--primary-color), var(--medical-teal));
}

.img-bg {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.service-overlay::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 20px;
    background: rgba(0, 173, 181, 0.91);
}

.service-card:hover .service-overlay,
.service-item:hover .service-overlay {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.service-card:hover .service-icon svg path,
.service-card:hover .service-icon i,
.service-item:hover .service-icon svg path,
.service-item:hover .service-icon i {
    color: #fff;
    fill: #fff;
}

.service-card:hover .service-content h4,
.service-card:hover .service-content h3,
.service-card:hover .service-content p,
.service-card:hover .service-content a,
.service-item:hover .service-content h4,
.service-item:hover .service-content p,
.service-item:hover .service-content a,
.service-item:hover h4,
.service-item:hover p {
    color: #fff;
}

/* Navbar styles - Template exact style */
.navbar-area {
    transition: all 0.3s ease-out 0s;
    background: white;
}

.navbar {
    background: transparent;
    transition: all 0.3s ease-out 0s;
    padding: 15px 0;
}

.sticky {
    position: fixed;
    z-index: 99;
    width: 100%;
    top: 0;
    left: 0;
    background-color: white;
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-out 0s;
}

.sticky .navbar {
    background: white;
    padding: 10px 0;
}

.nav-item a {
    font-size: 18px;
    font-weight: 500;
    color: var(--heading-color);
    font-family: "Raleway", sans-serif;
    padding: 10px 20px;
    transition: all 0.3s ease-out 0s;
    position: relative;
}

.navbar.sticky .nav-item a {
    color: var(--heading-color);
}

.nav-item a:hover,
.nav-item a.active {
    color: var(--primary-color);
}

.navbar-toggler .toggler-icon {
    width: 30px;
    height: 2px;
    background-color: #222;
    display: block;
    margin: 5px 0;
    position: relative;
    transition: all 0.3s ease-out 0s;
}

.navbar-toggler.active .toggler-icon:nth-of-type(1) {
    transform: rotate(45deg);
    top: 7px;
}

.navbar-toggler.active .toggler-icon:nth-of-type(2) {
    opacity: 0;
}

.navbar-toggler.active .toggler-icon:nth-of-type(3) {
    transform: rotate(135deg);
    top: -7px;
}

/* Hero section - Template exact style */
.hero-section,
.slider-section {
    position: relative;
    z-index: 1;
}

.hero-section::after,
.slider-section .single-slider::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-image: linear-gradient(to right, #00adb5 0%, rgba(0, 173, 181, 0.11) 70.76%, rgba(255, 255, 255, 0) 100%);
}

.hero-section {
    padding: 190px 0 200px;
    position: relative;
}

@media (max-width: 991px) {
    .hero-section {
        padding: 110px 0;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 100px 0;
    }
}

.hero-title {
    font-size: 65px;
    line-height: 76px;
    font-weight: 900;
    margin-bottom: 30px;
    color: white;
    font-family: "Raleway", sans-serif;
}

@media (max-width: 1199px) {
    .hero-title {
        font-size: 60px;
        line-height: 72px;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 54px;
        line-height: 66px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 36px;
        line-height: 48px;
    }
}

.hero-description {
    color: white;
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 30px;
}

.hero-section .theme-btn {
    background: white;
    color: var(--primary-color);
}

.hero-section .theme-btn:hover {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.5);
}

/* Stats section - Template style */
.stats-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease-out 0s;
    box-shadow: 0 10px 35px rgba(0, 173, 181, 0.14);
}

.stats-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 173, 181, 0.2);
}

.stats-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: "Raleway", sans-serif;
    margin-bottom: 10px;
    line-height: 1;
}

.stats-label {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 600;
    font-family: "Raleway", sans-serif;
}

/* Contact form - Template style */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 25px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 16px;
    font-family: "Open Sans", sans-serif;
    color: var(--text-color);
    background: white;
    transition: all 0.3s ease-out 0s;
    box-shadow: 0 0 25px rgba(0, 173, 181, 0.1);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 173, 181, 0.2);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer - Template style */
.footer {
    background: var(--heading-color);
    color: rgba(255, 255, 255, 0.8);
}

.pt-100 {
    padding-top: 100px;
}

.footer .footer-widget-wrapper {
    margin-bottom: 30px;
}

.footer .footer-widget-wrapper .footer-widget a.logo {
    margin-bottom: 35px;
}

.footer .footer-widget-wrapper .footer-widget {
    margin-bottom: 30px;
}

.footer .footer-widget-wrapper .footer-widget h4 {
    color: #fff;
    margin-bottom: 35px;
    margin-top: 40px;
    font-family: "Raleway", sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.footer .footer-widget-wrapper .footer-widget p {
    color: #fff;
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 38px;
}

.footer .footer-widget-wrapper .footer-widget .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-widget-wrapper .footer-widget .footer-links li {
    margin: 0;
}

.footer .footer-widget-wrapper .footer-widget .footer-links li a {
    color: #fff;
    line-height: 37px;
    transition: .3s;
    display: inline-block;
}

.footer .footer-widget-wrapper .footer-widget .footer-links li a:hover {
    color: #00ADB5;
    padding-left: 8px;
}

.footer .footer-widget-wrapper .footer-widget .footer-social-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.footer .footer-widget-wrapper .footer-widget .footer-social-links ul li {
    display: inline-block;
    margin: 0;
}

.footer .footer-widget-wrapper .footer-widget .footer-social-links ul li a {
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    color: #fff;
    background: #8C96A7;
    border-radius: 5px;
    margin-right: 20px;
    display: inline-block;
    transition: .3s;
}

.footer .footer-widget-wrapper .footer-widget .footer-social-links ul li a:hover {
    background: #00ADB5;
    color: #fff;
}

.footer .footer-widget-wrapper .footer-widget .footer-social-links ul li:last-child a {
    margin-right: 0;
}

.footer .footer-widget-wrapper .footer-widget .map-canvas .map {
    border-radius: 10px;
    width: 100%;
    height: 207px;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .footer .footer-widget-wrapper .footer-widget .map-canvas .map {
        height: 300px;
    }
}

.footer .copyright-area {
    padding: 25px 0;
    border-top: 1px solid #8C96A7;
}

.footer .copyright-area p {
    color: #fff;
    margin: 0;
}

.footer .copyright-area a {
    color: #8C96A7;
}

.footer .copyright-area a:hover {
    color: #00ADB5;


/* Card hover effect with green border */
.card-hover {
    transition: all 0.3s ease-out;
    border: 2px solid transparent;
}

.card-hover:hover {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.05);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
    transform: translateY(-5px);
}
