/* Premium hospital theme */
:root {
    --brand-navy: #0d2e5a;
    --brand-navy-2: #163c73;
    --brand-teal: #0a8da6;
    --brand-teal-2: #15b4c1;
    --ink: #0b1220;
    --muted: #5c667a;
    --surface: #ffffff;
    --surface-2: #f5f8fc;
    --surface-3: #eef4fb;
    --border: rgba(13, 46, 90, 0.10);
    --shadow: 0 18px 50px rgba(13, 46, 90, 0.12);
    --shadow-hover: 0 26px 70px rgba(13, 46, 90, 0.18);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --transition: 220ms cubic-bezier(.2,.8,.2,1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--ink);
    overflow-x: hidden;
    background: radial-gradient(1200px 700px at 20% -10%, rgba(21, 180, 193, 0.18), rgba(255,255,255,0)),
                radial-gradient(900px 600px at 90% 10%, rgba(22, 60, 115, 0.14), rgba(255,255,255,0)),
                var(--surface);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Top bar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1031;
    background: linear-gradient(90deg, rgba(13, 46, 90, 0.92), rgba(10, 141, 166, 0.90));
    color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar .topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
    gap: 1rem;
    font-size: 0.92rem;
}

.topbar a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: var(--transition);
}

.topbar a:hover {
    color: #fff;
    text-decoration: underline;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.topbar-sep {
    opacity: 0.55;
}

/* Navbar Styles */
.navbar {
    background: rgba(255,255,255,0.82) !important;
    background-color: rgba(255,255,255,0.82) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.75rem 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(13, 46, 90, 0.08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand img {
    height: 54px;
    width: auto;
    transition: var(--transition);
}

.navbar-nav .nav-link {
    color: rgba(11, 18, 32, 0.86) !important;
    font-weight: 600;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 999px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    background: rgba(10, 141, 166, 0.10);
    color: var(--brand-navy) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-navy-2));
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(13, 46, 90, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-cta {
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-2));
    color: #fff;
    border-radius: 999px;
    padding: 0.55rem 1.05rem;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(10, 141, 166, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition);
}

.btn-cta:hover {
    color: #fff;
    filter: brightness(1.02);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background:
        radial-gradient(900px 520px at 15% 20%, rgba(21, 180, 193, 0.40), rgba(255,255,255,0)),
        radial-gradient(900px 520px at 90% 0%, rgba(22, 60, 115, 0.35), rgba(255,255,255,0)),
        linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.90)),
        url('../img/header.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, rgba(13, 46, 90, 0.10), rgba(10, 141, 166, 0.10)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120"><defs><radialGradient id="g" cx="50%25" cy="50%25" r="65%25"><stop offset="0%25" stop-color="white" stop-opacity="0.14"/><stop offset="100%25" stop-color="white" stop-opacity="0"/></radialGradient></defs><circle cx="20" cy="20" r="18" fill="url(%23g)"/><circle cx="90" cy="35" r="22" fill="url(%23g)"/><circle cx="55" cy="95" r="26" fill="url(%23g)"/></svg>');
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--brand-navy);
}

.hero-title {
    font-size: 3.35rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    margin-top: 80px;
    letter-spacing: -0.02em;
    text-shadow: 0 14px 40px rgba(13, 46, 90, 0.18);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: rgba(13, 46, 90, 0.80);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.emergency-btn {
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2));
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 1s ease-out 0.4s both;
    color: #fff;
}

.emergency-btn:hover {
    filter: brightness(1.02);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: #fff;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--brand-navy);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-navy-2));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* About Section */
.about-section {
    background: linear-gradient(180deg, var(--surface-2), rgba(255,255,255,0));
}

.about-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.about-image-container:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.about-image {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 46, 90, 0.78), rgba(10, 141, 166, 0.78));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-container:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}

.about-image-container:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.overlay-content span {
    font-size: 1.2rem;
    font-weight: 600;
}

.about-content h3 {
    color: var(--brand-teal);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.explore-btn {
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-2));
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    color: #fff;
}

.explore-btn:hover {
    filter: brightness(1.02);
    transform: translateY(-2px);
    color: #fff;
}

/* Doctors Section */
.doctors-section {
    background: linear-gradient(180deg, var(--surface-3), rgba(255,255,255,0));
}

.doctor-card {
    background: rgba(255,255,255,0.86);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.doctor-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--primary-blue);
    transition: var(--transition);
}

.doctor-card:hover .doctor-image {
    border-color: var(--secondary-red);
}

.doctor-name {
    color: var(--brand-navy);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.doctor-specialty {
    color: var(--brand-teal);
    font-weight: 600;
    margin-bottom: 1rem;
}

.doctor-qualification {
    background: rgba(10, 141, 166, 0.10);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Specialties Section */
.specialty-card {
    background: rgba(255,255,255,0.92);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid transparent;
    border: 1px solid var(--border);
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--brand-teal);
}

.specialty-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.specialty-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--brand-navy);
}

.specialty-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.specialty-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.specialty-list li:last-child {
    border-bottom: none;
}

.specialty-list i {
    color: var(--brand-teal);
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

/* Why Choose Us Section */
.why-choose-section {
    background: linear-gradient(180deg, rgba(255,255,255,0), var(--surface-2));
}

.feature-card {
    background: rgba(255,255,255,0.92);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--brand-navy);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, var(--surface-3), rgba(255,255,255,0));
}

.contact-card {
    background: rgba(255,255,255,0.92);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
    border: 1px solid var(--border);
}

.contact-card i {
    color: var(--brand-teal);
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.contact-form {
    background: rgba(255,255,255,0.92);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: rgba(10, 141, 166, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(10, 141, 166, 0.18);
}

.submit-btn {
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2));
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
    color: #fff;
}

.submit-btn:hover {
    filter: brightness(1.02);
    transform: translateY(-2px);
    color: #fff;
}

/* Footer */
.footer {
    background: radial-gradient(900px 500px at 10% 0%, rgba(21, 180, 193, 0.20), rgba(255,255,255,0)),
                linear-gradient(180deg, var(--brand-navy), #0a2244);
    color: #fff;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255,255,255,0.10);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    opacity: 0.85;
}

.social-links a {
    color: rgba(255,255,255,0.92);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--brand-teal-2);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-brand img {
        height: 50px;
    }

    .doctor-card,
    .specialty-card,
    .feature-card {
        margin-bottom: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* If topbar is visible, offset navbar and hero */
@media (min-width: 992px) {
    .navbar.fixed-top {
        top: 36px;
    }
    .hero-title {
        margin-top: 110px;
    }
}
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Small helpers for the new single-page layout */
.page-content {
    padding-top: 6.5rem;
}

