:root {
    --primary-red: #2b6777;    /* Changed to teal */
    --secondary-red: #52ab98;  /* Changed to lighter teal */
    --light-pink: #c8d8e4;     /* Changed to light blue */
    --dark-red: #1b4552;       /* Changed to dark teal */
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --transition: all 0.3s ease-in-out;
}

body {
    background-color: #f8f9fa;
}

.heart-beat-banner {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 4rem;
}

.banner-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.heart-rate-animation {
    height: 50px;
    margin-top: 2rem;
    opacity: 0.8;
}

.doctor-profile-section {
    margin-top: -5rem;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.profile-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 3rem;
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.doctor-image-wrapper {
    height: 100%;
    min-height: 300px;
    position: relative;
}

.doctor-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info {
    padding: 2.5rem;
}

.doctor-info h2 {
    color: var(--dark-red);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.specialty {
    color: var(--primary-red);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.experience-badge {
    display: inline-block;
    background: var(--light-pink);
    color: var(--dark-red);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.qualification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.qualification-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.appointment-btn {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.appointment-btn:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
}

.services-section {
    padding: 4rem 0;
    background: #fff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    animation: slideUp 0.5s ease-in-out;
    animation-fill-mode: both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--light-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--primary-red);
}

.equipment-section {
    background: #f8f9fa;
    padding: 5rem 0;
}

.equipment-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.equipment-slide {
    padding: 1rem;
}

.equipment-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-5px);
}

.equipment-image {
    height: 300px;
    overflow: hidden;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.05);
}

.equipment-info {
    padding: 2rem;
}

.equipment-info h3 {
    color: var(--dark-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content {
    border-radius: 15px;
    border: none;
}

.form-control {
    padding: 0.8rem;
    border-radius: 8px;
    border: 2px solid var(--gray-200);
}

.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: none;
}

@media (max-width: 768px) {
    .doctor-profile-section {
        margin-top: -3rem;
    }
    
    .doctor-info {
        padding: 1.5rem;
    }
    
    .doctor-info h2 {
        font-size: 1.8rem;
    }
    
    .equipment-image {
        height: 200px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .heart-beat-banner {
        min-height: 40vh;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .equipment-slider {
        grid-template-columns: 1fr;
    }
}
