/* SureWell Health - Custom CSS */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #0F766E;
    --secondary-color: #7C3AED;
    --accent-color: #F97316;
    --text-color: #0B1220;
    --text-muted: #516072;
    --light-bg: #F4F7FB;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 0.75rem;
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 1rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn-primary:hover {
    background-color: #115E59;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: #EA580C;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

/* Hero Section */
.hero-section {
    background:
        radial-gradient(1200px 800px at 10% 10%, rgba(124, 58, 237, 0.28), transparent 60%),
        radial-gradient(1000px 700px at 90% 20%, rgba(249, 115, 22, 0.25), transparent 55%),
        linear-gradient(135deg, #063B38 0%, #0F172A 55%, #2A1457 100%);
    position: relative;
    overflow: hidden;
	padding:6rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 1200"><g fill="rgba(255,255,255,0.06)"><circle cx="220" cy="220" r="6"/><circle cx="440" cy="360" r="5"/><circle cx="680" cy="260" r="4"/><circle cx="980" cy="420" r="6"/><circle cx="780" cy="560" r="5"/><circle cx="520" cy="640" r="6"/><circle cx="300" cy="820" r="5"/><circle cx="980" cy="920" r="4"/></g></svg>');
    background-size: cover;
    opacity: 0.9;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.hero-metric {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: calc(var(--border-radius) + 0.25rem);
    padding: 1rem 0.75rem;
    backdrop-filter: blur(10px);
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(11, 18, 32, 0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color) 55%, var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

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

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Feature Items */
.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.25rem;
}

.feature-item h5 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-item p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-left: 4px solid var(--accent-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.patient-info strong {
    color: var(--text-color);
    display: block;
}

.patient-info small {
    color: var(--text-muted);
}

/* Appointment Form */
.appointment-form {
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(11, 18, 32, 0.10);
}

.appointment-form .form-control,
.appointment-form .form-select {
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    transition: var(--transition);
}

.appointment-form .form-control:focus,
.appointment-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.appointment-form .form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info .d-flex {
    transition: var(--transition);
}

.contact-info .d-flex:hover {
    transform: translateX(5px);
}

/* Footer */
footer {
    background:
        radial-gradient(900px 600px at 15% 20%, rgba(249, 115, 22, 0.12), transparent 55%),
        radial-gradient(900px 600px at 85% 10%, rgba(124, 58, 237, 0.14), transparent 55%),
        #071827 !important;
}

footer h5, footer h6 {
    color: white;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

footer .social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a:hover {
    color: var(--accent-color) !important;
    text-decoration: underline !important;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-top: 2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .hero-section .row.mt-5 {
        margin-top: 2rem !important;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .appointment-form {
        padding: 1.5rem !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 55%, var(--accent-color) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 55%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fixed-top-offset {
    margin-top: 76px;
}

.page-hero,
.service-hero,
.cta-section {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0;
    color: white;
    background:
        radial-gradient(1200px 700px at 10% 10%, rgba(124, 58, 237, 0.22), transparent 60%),
        radial-gradient(1000px 700px at 85% 15%, rgba(249, 115, 22, 0.20), transparent 55%),
        linear-gradient(135deg, #073B38 0%, #0B1F3A 55%, #2A1457 100%);
}

.page-hero::before,
.service-hero::before,
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 1200"><g fill="rgba(255,255,255,0.06)"><circle cx="220" cy="220" r="6"/><circle cx="440" cy="360" r="5"/><circle cx="680" cy="260" r="4"/><circle cx="980" cy="420" r="6"/><circle cx="780" cy="560" r="5"/><circle cx="520" cy="640" r="6"/><circle cx="300" cy="820" r="5"/><circle cx="980" cy="920" r="4"/></g></svg>');
    opacity: 0.9;
}

.page-hero .container,
.service-hero .container,
.cta-section .container {
    position: relative;
    z-index: 1;
}

.service-icon-large {
    width: 96px;
    height: 96px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.service-icon-large i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.service-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.service-detail-icon {
    width: 52px;
    height: 52px;
    background-color: var(--light-bg);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(11, 18, 32, 0.08);
}

.approach-item {
    padding: 1.75rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 100%;
    border: 1px solid rgba(11, 18, 32, 0.08);
}

.approach-icon {
    width: 78px;
    height: 78px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 1px solid rgba(11, 18, 32, 0.08);
}

.approach-icon i {
    font-size: 2rem;
}

.team-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(11, 18, 32, 0.08);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    height: 250px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
}

.diagnostic-features {
    padding: 1rem;
}

.diagnostic-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.diagnostic-item:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(5px);
}

.diagnostic-item i {
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.diagnostic-item h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.diagnostic-item p {
    margin-bottom: 0;
    line-height: 1.4;
}

.stat-item {
    padding: 1rem;
}

.contact-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(11, 18, 32, 0.08);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color) 55%, var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon i {
    font-size: 2rem;
    color: white;
}

.map-placeholder {
    border: 2px dashed rgba(11, 18, 32, 0.18);
}

.subscribe-area {
    background:
        radial-gradient(900px 500px at 15% 10%, rgba(249, 115, 22, 0.18), transparent 55%),
        radial-gradient(900px 500px at 85% 15%, rgba(124, 58, 237, 0.20), transparent 55%),
        #071827 !important;
}

.subscribe2-wrapper .subscribe-form input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.95);
}

.subscribe2-wrapper .subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.subscribe2-wrapper .subscribe-form button {
    background: white;
    border-radius: 999px;
    color: var(--text-color);
    box-shadow: var(--shadow);
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.border-radius-custom {
    border-radius: var(--border-radius);
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .service-card,
    .testimonial-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}


/* Technology Features */
.tech-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tech-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.tech-icon i {
    font-size: 1.5rem;
    color: white;
}

.tech-feature h5 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.tech-feature p {
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Innovation Stats */
.innovation-stats {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.stat-item {
    padding: 1rem;
    transition: var(--transition);
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0;
}

/* Image hover effects */
.img-fluid {
    transition: var(--transition);
}

.img-fluid:hover {
    transform: scale(1.02);
}

/* Interactive elements */
.service-card,
.tech-feature,
.testimonial-card {
    cursor: pointer;
}

/* Enhanced animations for modern feel */
@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);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Modern gradient overlays */
.gradient-overlay {
    position: relative;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: var(--border-radius);
    pointer-events: none;
}

/* Enhanced mobile responsiveness for new sections */
@media (max-width: 768px) {
    .tech-feature {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .tech-icon {
        margin: 0 auto 1rem;
    }
    
    .innovation-stats {
        padding: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
}

/* Loading animations for images */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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