/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --primary-color: #27d8d8;
  --secondary-color: #003366;
  --accent-color: #28a7e9;
  --dark-color: #0d233e;
  --text-color: #5f6c7b;
  --light-blue-bg: #f0faff;
  --light-grey-bg: #f8f9fa;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.7;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark-color);
  font-weight: 700;
}

.lead {
  font-weight: 400;
  color: rgba(255,255,255,0.9);
}
.lead-sm {
    font-size: 1.1rem;
}


.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #22bebe;
    color: #fff;
    box-shadow: 0 5px 20px rgba(39, 216, 216, 0.4);
    transform: translateY(-2px);
}

.btn-light {
    color: var(--dark-color);
}

.btn-light:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

section {
    padding: 100px 0;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #fff;
    transition: opacity 0.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader .spinner {
    border: 6px solid var(--primary-color);
    border-top-color: #ecf8f8;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    -webkit-animation: animate-preloader 1s linear infinite;
    animation: animate-preloader 1s linear infinite;
}

@-webkit-keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 996;
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50px;
    transition: all 0.4s;
}
.back-to-top i {
    font-size: 24px;
    color: #fff;
    line-height: 0;
}
.back-to-top:hover {
    background: #39eaea;
}
.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    padding: 5px 0;
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}

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

.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background-color: var(--primary-color);
    margin: 8px auto 0;
    border-radius: 2px;
}

/*--------------------------------------------------------------
# Hero & Page Headers
--------------------------------------------------------------*/
.hero-section {
    background: linear-gradient(rgba(81,181,169, 0.8), rgba(28, 122, 122, 0.6)), url('images/heroimg2.png') no-repeat center center;
    background-size: cover;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.hero-section h1, .page-header h1 {
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-section .highlight {
    color: var(--primary-color);
}

.page-header {
    background: linear-gradient(rgba(13, 35, 62, 0.75), rgba(39, 216, 216, 0.65)), url('images/teeth.png') no-repeat center center;
    background-size: cover;
    padding: 120px 0;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services-section {
    background-color: #fff;
}

.service-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(39, 216, 216, 0.2);
}

.service-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: var(--light-blue-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
    transition: all 0.3s;
}

.service-card:hover .icon-wrapper {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1) rotate(15deg);
}

/*--------------------------------------------------------------
# About Page & Preview
--------------------------------------------------------------*/
.icon-wrapper-large {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: var(--light-blue-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: var(--primary-color);
}


/*--------------------------------------------------------------
# Service Details & Grid
--------------------------------------------------------------*/
.service-detail-item {
    padding: 40px 0;
    border-bottom: 1px solid #e9ecef;
}

.our-technology-section {
    border-bottom: none;
}

.service-details-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.service-details-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
}

.service-details-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-color);
}

.service-grid-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-grid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(39, 216, 216, 0.2);
}

.service-grid-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-grid-card-body {
    padding: 25px;
    flex-grow: 1;
}

.service-card-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.service-card-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.service-card-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/*--------------------------------------------------------------
# Doctors Page
--------------------------------------------------------------*/
.doctor-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(39, 216, 216, 0.2);
}

.doctor-photo-wrapper {
    overflow: hidden;
}

.doctor-photo {
    transition: transform 0.4s ease;
}

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

.doctor-info {
    padding: 25px;
}

.social-icons-doctors a {
    color: var(--text-color);
    margin: 0 8px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons-doctors a:hover {
    color: var(--primary-color);
}

/*--------------------------------------------------------------
# Contact Page
--------------------------------------------------------------*/
.contact-section .form-control {
    min-height: 50px;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}
.contact-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(39, 216, 216, 0.25);
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: 15px;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}


/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials-section {
    background-color: var(--light-grey-bg);
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    height: 100%;
    border-top: 4px solid var(--primary-color);
}

.testimonial-card .stars {
    color: #ffc107;
}

/*--------------------------------------------------------------
# CTA Section
--------------------------------------------------------------*/
.cta-section {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    padding: 100px 0;
}

.cta-section h2 {
    color: #fff;
}

.cta-section .heart-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}
/*--------------------------------------------------------------
# WhatsApp Button
--------------------------------------------------------------*/
.whatsapp-button {
    position: fixed;
    left: 15px;
    bottom: 15px;
    color:#fff;
    z-index: 996;
    background: #25D366; /* WhatsApp Green */
    width: 90px;
    height: 50px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.whatsapp-button i {
    font-size: 28px;
    color: #fff;
    line-height: 0;
    margin-right:10px;
}
.whatsapp-button:hover {
    background: #128C7E; /* Darker WhatsApp Green */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer-section {
    background-color: var(--secondary-color);
}

.footer-section p, .footer-section li {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-section h5 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section .social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.footer-section .social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-section .contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-section .contact-info i {
    margin-right: 15px;
    margin-top: 5px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.footer-section hr {
    border-top: 1px solid rgba(255,255,255,0.1);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 20px;
        text-align: center;
    }
    .nav-link.active::after {
        display: none;
    }
    .hero-section {
        height: auto;
        padding: 120px 0;
    }
    .display-2, .display-3, .display-4, .display-5 {
        font-size: calc(1.4rem + 2.5vw);
    }
}