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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background-color: #3498db;
    color: white;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
}

.nav-brand h1 {
    color: #3498db;
    font-size: 1.8rem;
    margin-bottom: 0;
}

.tagline {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: #3498db;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3498db;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.dental-treatment-card {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dental-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.doctor-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.doctor-info-overlay h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 700;
}

.doctor-info-overlay p {
    font-size: 1.2rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.dental-treatment-card:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(52, 152, 219, 0.3);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-image:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    border-color: #2980b9;
}

.fallback-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.professional-fallback {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.equipment-fallback {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
}

.comfort-fallback {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.care-fallback {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.fallback-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Services Preview */
.services-preview {
    padding: 4rem 0;
    background: #f8f9fa;
}

.services-preview h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

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

/* Contact Info */
.contact-info {
    padding: 4rem 0;
    background: white;
}

.contact-info h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
}

.contact-item h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.phone-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Phone and Email Links */
.phone-link,
.email-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.phone-link:hover,
.email-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.phone-link {
    font-size: 1.1rem;
}

/* Mobile Call Button */
.mobile-call-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    z-index: 1001;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.mobile-call-btn:hover {
    background: #229954;
    transform: scale(1.05);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Services Detailed */
.services-detailed {
    padding: 4rem 0;
}

.service-section {
    margin-bottom: 4rem;
}

.service-section h2 {
    color: #3498db;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-detail {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.service-detail h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-detail ul {
    margin-left: 1.5rem;
    color: #555;
}

.service-detail li {
    margin-bottom: 0.5rem;
}

.services-cta {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 3rem;
}

.services-cta h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* About Page Styles */
.about-content {
    padding: 4rem 0;
}

.about-section {
    margin-bottom: 4rem;
}

.about-section h2 {
    color: #3498db;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.mission-content,
.story-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.values-section {
    margin: 4rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.team-section {
    margin: 4rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.member-photo {
    flex-shrink: 0;
}

.photo-placeholder {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #3498db;
}

.doctor-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.member-info h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.member-title {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-credentials {
    margin-top: 1rem;
}

.member-credentials span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.facility-section {
    margin: 4rem 0;
}

.facility-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.technology-list,
.comfort-list {
    margin: 1rem 0 2rem 2rem;
    color: #555;
}

.technology-list li,
.comfort-list li {
    margin-bottom: 0.5rem;
}

.community-section {
    margin: 4rem 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.community-activities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.activity {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.activity h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.about-cta {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 3rem;
}

/* Contact Page Styles */
.contact-content {
    padding: 4rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-form-section h2 {
    color: #3498db;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

/* Form Styles */
.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 6px;
    border-left: 4px solid;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert h4 {
    margin-bottom: 0.5rem;
}

.alert ul {
    margin-left: 1rem;
}

/* Contact Info Cards */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card,
.emergency-card,
.insurance-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-card h3,
.emergency-card h3,
.insurance-card h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-text h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.contact-text p {
    margin-bottom: 0.25rem;
}

.contact-text .small {
    font-size: 0.9rem;
    color: #666;
}

.emergency-phone {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    text-decoration: none;
    margin: 1rem 0;
}

.emergency-phone:hover {
    text-decoration: underline;
}

.insurance-card ul {
    margin-left: 1.5rem;
}

.insurance-card li {
    margin-bottom: 0.5rem;
}

/* Map Section */
.map-section {
    margin-top: 4rem;
}

.map-section h2 {
    color: #3498db;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.map-placeholder {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    border: 2px dashed #ddd;
}

.map-content h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

.map-features {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.map-features span {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #bdc3c7;
}

.footer-links h4,
.footer-contact h4 {
    color: #3498db;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a:hover {
    color: #3498db;
}

.footer-contact p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 15px;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .page-header h1 {
        font-size: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-member {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .map-features {
        flex-direction: column;
        align-items: center;
    }

    .dental-treatment-card {
        max-width: 400px;
        aspect-ratio: 4/3;
    }

    .female-doctor {
        font-size: 3rem;
    }

    .patient {
        font-size: 2.8rem;
    }

    .treatment-action {
        font-size: 1.8rem;
    }

    .doctor-info h3 {
        font-size: 1.6rem;
    }

    .features-grid,
    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .community-activities {
        grid-template-columns: 1fr;
    }

    /* Mobile Phone Enhancements */
    .mobile-call-btn {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-call-btn::before {
        content: "📞";
        font-size: 18px;
    }

    .phone-link {
        display: inline-block;
        background: #3498db;
        color: white !important;
        padding: 10px 20px;
        border-radius: 25px;
        text-decoration: none;
        margin: 5px 0;
        font-weight: bold;
        transition: all 0.3s ease;
    }

    .phone-link:hover {
        background: #2980b9;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    }

    .emergency-phone {
        display: inline-block;
        background: #e74c3c;
        color: white !important;
        padding: 15px 25px;
        border-radius: 30px;
        text-decoration: none;
        font-size: 1.3rem;
        font-weight: bold;
        margin: 1rem 0;
        animation: emergencyPulse 2s infinite;
    }

    @keyframes emergencyPulse {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
        }

        100% {
            transform: scale(1);
        }
    }

    .phone-subtitle {
        font-size: 0.8rem;
        color: #2980b9;
        font-weight: bold;
        margin-top: 0.5rem;
    }

    /* Enhanced contact details for mobile */
    .contact-detail {
        background: #f8f9fa;
        padding: 1.5rem;
        border-radius: 10px;
        margin-bottom: 1rem;
        border-left: 4px solid #3498db;
    }

    .contact-icon {
        font-size: 2rem !important;
    }

    /* Make email links mobile-friendly too */
    .email-link {
        display: inline-block;
        background: #27ae60;
        color: white !important;
        padding: 10px 20px;
        border-radius: 25px;
        text-decoration: none;
        margin: 5px 0;
        font-weight: bold;
    }

    .email-link:hover {
        background: #229954;
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .features h2,
    .services-preview h2,
    .contact-info h2 {
        font-size: 2rem;
    }

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

    .dental-treatment-card {
        max-width: 100%;
        aspect-ratio: 4/3;
    }

    .female-doctor {
        font-size: 2.5rem;
    }

    .patient {
        font-size: 2.2rem;
    }

    .treatment-action {
        font-size: 1.5rem;
    }

    .doctor-info h3 {
        font-size: 1.4rem;
    }

    .doctor-info p {
        font-size: 1rem;
    }

    .service-card,
    .feature-card,
    .contact-card,
    .emergency-card,
    .insurance-card {
        padding: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}
/* Placeholder styling for select dropdowns */
select:required:invalid {
    color: #999;
}

option[value=""] {
    color: #999;
}

option {
    color: #333;
}
