@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors - Soft Medical Palette */
    --primary-color: #5aa9e6;
    /* Soft Blue */
    --primary-dark: #2c8bc9;
    /* Mid Blue for hover */
    --primary-light: #a2d2ff;
    /* Very Light Blue */
    --secondary-color: #90e0ef;
    /* Pale Cyan */
    --secondary-dark: #00b4d8;
    /* Sky Blue for depth */
    --secondary-light: #caf0f8;
    /* Almost White Cyan */

    /* Accent Colors */
    --accent-yellow: #ffe66d;
    /* Soft Gold */
    --accent-red: #ff8fab;
    /* Soft Rose */
    --accent-blue: #ade8f4;
    /* Soft Cyan */

    /* Neutrals */
    --text-main: #2d3436;
    --text-muted: #636e72;
    --text-dark: #03045e;
    /* Dark Navy */
    --bg-body: #fdfdfd;
    --bg-light: #f0f8ff;
    /* AliceBlue Tint */
    --bg-white: #ffffff;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 119, 182, 0.08);
    /* Blue-tinted shadow */
    --shadow-md: 0 8px 16px rgba(0, 119, 182, 0.12);
    --shadow-lg: 0 16px 32px rgba(0, 119, 182, 0.15);
    --shadow-hover: 0 20px 40px rgba(0, 119, 182, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
}

body {
    font-family: 'Prompt', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Prompt', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
}

/* Navbar Modernization */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark), #023e8a) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand i {
    color: #fff;
    background: none;
    -webkit-text-fill-color: initial;
    font-size: 1.8rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.navbar-toggler span {
    color: #fff !important;
}

/* Hero Carousel */
.carousel-item {
    height: 600px;
    position: relative;
}

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 3rem;
    bottom: 15%;
    left: 15%;
    right: 15%;
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    text-align: center;
    z-index: 2;
}

.carousel-caption h3 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.carousel-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Modern Cards */
.card {
    border: none;
    border-radius: var(--radius-md);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img-top {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 148, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Section Styling */
.section-header {
    margin-bottom: 3rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 5px solid var(--primary-color);
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark)) !important;
}

/* Service Icons */
.service-card {
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--bg-light);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

/* Footer */
footer {
    background: #2d3436 !important;
    color: #dfe6e9 !important;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-soft-primary {
    background-color: rgba(0, 184, 148, 0.15);
    color: var(--primary-dark);
}

.badge-soft-secondary {
    background-color: rgba(108, 92, 231, 0.15);
    color: var(--secondary-dark);
}