/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Global Styles */
:root {
    --primary-color: #2a7fba;
    --secondary-color: #3bb3bd;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --white-color: #fff;
    --black-color: #000;
    --gray-color: #6c757d;
    --light-gray: #f1f1f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.btn {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #1e6a96;
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-outline-light {
    border: 2px solid var(--white-color);
    color: var(--white-color);
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    position: relative;
    display: inline-block;
}

.title-divider {
    height: 3px;
    width: 80px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 15px 0;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 0;
    font-size: 14px;
}

.contact-info a {
    color: var(--white-color);
    margin-right: 20px;
}

.contact-info a:hover {
    color: var(--light-gray);
}

.contact-info i {
    margin-right: 5px;
}

.social-links {
    text-align: right;
}

.social-links a {
    color: var(--white-color);
    margin-left: 15px;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--light-gray);
    transform: translateY(-3px);
}

/* Navigation */
.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-nav .nav-item {
    margin: 0 10px;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 15px;
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 100%;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.appointment-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50px;
    padding: 8px 20px;
    margin-left: 10px;
}

.appointment-btn:hover {
    background-color: #1e6a96;
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(42, 127, 186, 0.9), rgba(59, 179, 189, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white-color);
    padding: 150px 0 100px;
    position: relative;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p.lead {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-btns .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

/* About Section */
.about-list {
    margin: 20px 0 30px;
}

.about-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.about-list i {
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 5px;
}

/* Services Section */
.service-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
}

.read-more i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.read-more:hover i {
    margin-left: 10px;
}

/* Products Section */
.product-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.product-features ul {
    margin: 15px 0;
}

.product-features li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

.product-features i {
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 5px;
}

/* Testimonials Section */
.testimonial-item {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    margin: 15px;
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 15px;
}

.rating {
    color: var(--warning-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

/* Appointment Section */
.appointment-features {
    margin: 20px 0 30px;
}

.appointment-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.appointment-features i {
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 5px;
}

.contact-info-box {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.contact-info-box h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-info-box p {
    margin-bottom: 10px;
}

.contact-info-box i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.appointment-form {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.appointment-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.form-control,
.form-select {
    height: 50px;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

textarea.form-control {
    height: auto;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, rgba(42, 127, 186, 0.9), rgba(59, 179, 189, 0.9)), url('../images/stats-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white-color);
    padding: 80px 0;
    text-align: center;
}

.stat-item {
    padding: 30px 15px;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 18px;
    font-weight: 500;
}

/* Blog Section */
.blog-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    transition: all 0.5s ease;
    width: 100%;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.blog-content h3 a {
    color: var(--dark-color);
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    margin-bottom: 15px;
}

/* Contact Section */
.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-form {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

/* Map Section */
.map-section {
    position: relative;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 50px 0;
}

.newsletter-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.newsletter-form .form-control {
    height: 50px;
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 10px 20px;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    height: 50px;
    padding: 10px 25px;
}

/* Footer */
.footer {
    background-color: #222;
    color: #aaa;
    padding: 80px 0 0;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 20px;
}

.footer-widget {
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--white-color);
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #aaa;
    transition: all 0.3s ease;
}

.footer-widget ul li a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.footer-contact i {
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 5px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
}

.copyright p {
    margin-bottom: 0;
    color: #aaa;
    font-size: 14px;
}

.footer-links {
    text-align: right;
}

.footer-links a {
    color: #aaa;
    margin-left: 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero-section {
        padding: 120px 0 80px;
    }

    .hero-section h1 {
        font-size: 42px;
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }

    .appointment-btn {
        margin-left: 0;
        margin-top: 10px;
    }

    .footer-links {
        text-align: center;
        margin-top: 15px;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 36px;
    }

    .hero-btns .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .top-bar .contact-info,
    .top-bar .social-links {
        text-align: center;
    }

    .top-bar .contact-info a {
        display: block;
        margin: 5px 0;
    }

    .social-links a {
        margin: 0 7px;
    }

    .newsletter-section .col-lg-6 {
        text-align: center;
        margin-bottom: 20px;
    }

    .newsletter-form .input-group {
        flex-direction: column;
    }

    .newsletter-form .form-control {
        border-radius: 50px;
        margin-bottom: 10px;
    }

    .newsletter-form .btn {
        border-radius: 50px;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .hero-section h1 {
        font-size: 30px;
    }

    .hero-section p.lead {
        font-size: 16px;
    }

    .stat-item h3 {
        font-size: 36px;
    }

    .stat-item p {
        font-size: 16px;
    }
}