:root {
    --primary-color: #00a0b0;
    --secondary-color: #4f6d7a;
    --accent-color: #45b7d1;
    --background-color: #f8f9fa;
    --text-color: #2c3e50;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --hover-color: #008999;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    padding-top: 76px;
    line-height: 1.6;
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: var(--white) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--hover-color) !important;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    color: var(--secondary-color) !important;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background-color: var(--background-color);
    padding: 4rem 0;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--background-color) 0%, #e3f2fd 100%);
}

.hero-section h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-section .lead {
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: var(--white);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,160,176,0.3);
}

/* Form Elements */
.form-control {
    border-radius: 8px;
    padding: 0.8rem 1rem;
    border: 2px solid var(--light-gray);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,160,176,0.25);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer p {
    color: rgba(255,255,255,0.8);
}

/* Services Section */
.services-section .card {
    height: 100%;
    text-align: center;
}

.services-section .bi {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* About Section */
.about-section img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Appointment Form */
.appointment-section .card {
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .hero-section h1, .hero-section .lead {
    animation: fadeIn 1s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 56px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* Clinic Description */
.clinic-description {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.clinic-description .lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-color);
    text-align: justify;
}

/* Image Gallery Styles */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .clinic-description .lead {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 15px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Interactive Elements */
.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.card:hover .service-icon {
    transform: scale(1.1);
}

/* Form Success Message */
.form-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    display: none;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.5s ease-out;
}