/* Root Variables */
:root {
    --primary-color: #1e4a72;
    --secondary-color: #ff6b35;
    --accent-color: #e8f2ff;
    --text-dark: #2c3e50;
    --text-light: #5a6c7d;
    --white: #ffffff;
    --light-gray: #f8fafc;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-bottom: 0;
}

/* Scroll Margin for Fixed Header */
[id] {
    scroll-margin-top: 90px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 10px;
    transition: color 0.3s ease;
}

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

.btn-appointment {
    background: var(--secondary-color);
    color: #fff;
    border-radius: 25px;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-appointment:hover {
    filter: brightness(0.95);
    color: #fff;
}

/* Hero Section */
.hero {
    padding: 120px 0 100px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 50%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 15px;
    opacity: 0.9;
}

.lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary-hero {
    background: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-primary-hero:hover {
    background: transparent;
    color: var(--secondary-color);
}

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

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

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

.clinic-image {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

.clinic-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--white);
}

.about-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Facilities Section */
.facilities {
    background: var(--light-gray);
}

.facility-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.facility-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: var(--white);
}

.facility-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.facility-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.facility-content {
    padding: 25px;
    text-align: center;
}

.facility-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.facility-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.facility-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.facility-quote {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.facility-quote i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Services Section */
.services {
    background: var(--white);
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
    overflow: hidden;
    position: relative;
    padding: 8px;
    transition: all 0.3s ease;
}

.service-icon img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 10px;
}

.service-icon i {
    position: absolute;
    z-index: 1;
}

.service-card:hover .service-icon {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.price-tag {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 15px;
}

.price-tag:hover {
    background: var(--primary-color);
}

.price-details {
    display: none;
    background: var(--accent-color);
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
}

.price-details.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(30, 74, 114, 0.1);
}

.price-item:last-child {
    border-bottom: none;
}

.price-item-name {
    color: var(--text-dark);
    font-weight: 500;
}

.price-item-cost {
    color: var(--primary-color);
    font-weight: 600;
}

/* Doctors Section */
.doctor {
    background: var(--light-gray);
}

.doctor-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.doctor-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    border: 4px solid var(--secondary-color);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.doctor-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.doctor-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.doctor-credentials {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 14px;
}

.doctor-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.doctor-toggle {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.doctor-toggle:hover {
    background: var(--secondary-color);
}

.doctor-details {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: var(--accent-color);
    border-radius: 15px;
    text-align: left;
}

.doctor-details.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.doctor-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--white);
    border-radius: 10px;
}

.doctor-info-item:last-child {
    margin-bottom: 0;
}

.doctor-info-item i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    width: 20px;
}

/* Staff Section */
.staff {
    background: var(--white);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.staff-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.staff-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.staff-card:hover .staff-image {
    transform: scale(1.05);
}

.staff-content {
    padding: 25px 20px;
}

.staff-content h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.2rem;
}

.staff-role {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 14px;
}

.staff-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

.staff-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(30, 74, 114, 0.9);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.team-promise {
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(30, 74, 114, 0.1) 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.team-promise h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.team-promise h4 i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.team-promise p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* Contact Section */
.contact-form {
    background: var(--light-gray);
}

.appointment-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 74, 114, 0.1);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 40px;
}

.contact-info {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: fit-content;
}

.contact-info h4 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 10px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 2px;
    width: 20px;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background: #000000;
    color: var(--white);
    padding: 50px 0 100px;
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer p {
    color: #ccc;
    line-height: 1.6;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
    margin-top: 30px;
}

.developer-credit {
    margin-top: 10px;
    font-size: 14px;
    color: #999;
}

.developer-credit strong {
    color: var(--secondary-color);
}

/* Bottom Bar */
.bottom-bar {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-bar .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-bar-item {
    display: flex;
    gap: 8px;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.bottom-bar-item:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

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

/* Responsive Design */
@media (max-width: 991px) {
    .hero .row {
        display: flex;
        flex-direction: column;
    }

    .hero .col-lg-6:first-child {
        order: 2;
        margin-top: 30px;
    }

    .hero .col-lg-6:last-child {
        order: 1;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .facility-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .staff-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-features {
        flex-direction: column;
    }

    .feature-item {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .btn-hero {
        padding: 12px 20px;
        font-size: 14px;
    }

    .appointment-form {
        padding: 30px 20px;
    }

    .bottom-bar-item {
        font-size: 14px;
        padding: 6px 10px;
    }

    .bottom-bar-item span {
        display: none;
    }
}
