/* style.css */

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

:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --accent-color: #0d6efd;
    --light-blue: #e8f4fd;
    --light-green: #e6f4ea;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
    padding-top: 76px; /* To account for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Header & Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-scrolled {
    padding: 0.7rem 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.hospital-logo {
    width: 50px;
    height: 100px;
    margin-right: 10px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.hospital-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1.2;
}

.tagline {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color);
    margin: 0 0.5rem;
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

.btn-appointment {
    background-color: var(--primary-color);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-appointment:hover {
    background-color: #0d5dc4;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fdff 0%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 115, 232, 0.05) 0%, rgba(52, 168, 83, 0.05) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: translateY(-5px);
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.about-content {
    padding-left: 2rem;
}

.about-list li {
    padding: 0.5rem 0;
    font-weight: 500;
}

.about-list i {
    font-size: 1.1rem;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.service-card {
    border-radius: 15px;
    transition: var(--transition);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.service-card h4 {
    margin: 1rem 0;
    color: var(--dark-color);
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fdff 0%, #f0f9ff 100%);
}

.choose-card {
    background-color: white;
    border-radius: 15px;
    transition: var(--transition);
}

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

.choose-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background-color: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.choose-card h4 {
    margin: 1rem 0;
    color: var(--dark-color);
}

/* Doctors Section */
.doctors-section {
    padding: 5rem 0;
}

.doctor-card {
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.doctor-img-container {
    height: 250px;
    overflow: hidden;
}

.doctor-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.doctor-card:hover .doctor-img-container img {
    transform: scale(1.05);
}

.doctor-card .card-title {
    margin-top: 0.5rem;
    color: var(--dark-color);
}

.doctor-card .card-subtitle {
    font-weight: 500;
}

/* Emergency Banner */
.emergency-banner {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 0;
}

.btn-emergency {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-emergency:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.emergency-number {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
}

.contact-info {
    border-radius: 15px;
}

.contact-item .contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.appointment-form {
    border-radius: 15px;
}

.form-control, .form-select {
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(26, 115, 232, 0.25);
}

/* Footer */
.footer {
    background-color: #1a1a2e;
    color: #ddd;
}

.footer h3.hospital-name {
    color: white;
    font-size: 1.8rem;
}

.footer .tagline {
    color: var(--secondary-color);
}

.footer-title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer ul li a {
    color: #aaa;
    transition: var(--transition);
}

.footer ul li a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info li {
    margin-bottom: 1rem;
    color: #aaa;
}

.contact-info li a {
    color: #aaa;
}

.contact-info li a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .hero-content h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 991.98px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-content {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .hero-section::before {
        width: 60%;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 70px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn.me-3 {
        margin-right: 0 !important;
    }
    
    .hero-section::before {
        width: 100%;
        height: 50%;
    }
    
    .navbar-brand {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hospital-logo {
        margin-bottom: 5px;
    }
}

@media (max-width: 575.98px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-appointment {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}