/* Modern Design System */
:root {
    --primary: #0a2647;
    /* Deep Navy - Trust & Professionalism */
    --secondary: #144272;
    /* Rich Blue */
    --accent: #2C74B3;
    /* Bright Blue - Highlights */
    --highlight: #205295;
    /* Vibrant Blue */
    --cta: #E6B325;
    /* Muted Gold - Calls to Action */
    --white: #ffffff;
    --light-bg: #f9fbfd;
    /* Very subtle blue-grey */
    --dark-text: #1a1a1a;
    --gray-text: #555555;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--gray-text);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 179, 37, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(230, 179, 37, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 179, 37, 0);
    }
}

/* --- Components --- */
.btn-primary,
.btn-secondary,
.btn-white {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--cta);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

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

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

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

.btn-white:hover {
    background: #e2e6ea;
    transform: scale(1.05);
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--cta);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Header & Top Bar --- */
.top-bar {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar i {
    color: var(--cta);
    margin-right: 8px;
}

.top-bar a {
    color: var(--white);
}

.main-header {
    background-color: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--cta);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .btn-primary {
    color: var(--white) !important;
    padding: 10px 25px;
}

.nav-links .btn-primary:hover {
    color: var(--white) !important;
}

/* Hide Hamburger by default on Desktop */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* --- Hero Section --- */
.hero {
    height: 90vh;
    min-height: 600px;
    position: relative;
    background: linear-gradient(135deg, rgba(10, 38, 71, 0.8), rgba(20, 66, 114, 0.7)), url('assets/clinic-interior.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 50px;
}

.hero-overlay {
    display: none;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    padding: 0 20px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.hero-btns a {
    margin: 0 10px;
}

/* --- Features --- */
.features {
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 5px solid transparent;
}

.feature-card:hover {
    transform: translateY(-15px);
    border-bottom-color: var(--cta);
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 25px;
    background: #eef5fa;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    transition: var(--transition);
}

.feature-card:hover i {
    background: var(--accent);
    color: var(--white);
    transform: rotateY(360deg);
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* --- About Section --- */
.about {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 20px 20px 0px var(--accent) !important;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow: 10px 10px 0px var(--primary) !important;
}

.check-list li {
    background: var(--white);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    font-weight: 600;
}

.check-list i {
    color: #2ecc71;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background-color: var(--light-bg);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover h3,
.service-card:hover p {
    color: var(--white);
}

.service-card:hover .icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    background: #eef5fa;
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    transition: var(--transition);
}

/* --- Reviews --- */
.reviews {
    padding: 100px 0;
    background: var(--white);
}

.google-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    margin-top: 20px;
    background: var(--light-bg);
    padding: 15px;
    border-radius: 50px;
    display: inline-flex;
}

.google-rating .score {
    color: var(--primary);
}

.google-rating .stars {
    color: var(--cta);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #eee;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.review-card::after {
    content: '\f10e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #f0f0f0;
    z-index: 0;
}

.reviewer-info {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.review-card p {
    position: relative;
    z-index: 1;
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
}

.avatar {
    background: var(--accent);
    font-size: 1.2rem;
}

.review-card .stars {
    color: var(--cta);
}

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 100px 0;
    text-align: center;
    color: var(--white);
    margin: 50px 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.cta-banner .btn-white {
    animation: pulse-glow 2s infinite;
    color: var(--primary);
    margin-top: 30px;
}

/* --- Contact & Footer --- */
.contact {
    padding: 80px 0;
}

.contact-wrapper {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-details h2 {
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 35px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-top: 0;
}

.info-item h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 700;
}

.info-item p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

.map-container iframe {
    height: 100%;
    min-height: 400px;
    border-radius: 15px;
}

footer {
    background: linear-gradient(to right, #05192e, #0a2647);
    color: #b0bfd1;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--cta);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.footer-logo h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-logo p {
    line-height: 1.6;
}

.footer-links h3,
.footer-social h3 {
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-links h3::after,
.footer-social h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--cta);
    margin: 10px auto 0;
}

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

.footer-links a {
    color: #b0bfd1;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--cta);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    align-items: center;
}

.social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--white);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:last-child {
    margin-right: 0;
}

.social-icons a:hover {
    background: var(--cta);
    transform: translateY(-5px);
    color: #000;
    border-color: var(--cta);
}

.social-icons a i {
    color: inherit;
    margin: 0;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 25px 0;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #8a9bb0;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-md);
        clip-path: circle(0% at 100% 0);
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0);
        pointer-events: all;
    }

    .nav-links li {
        margin: 15px 0;
    }

    /* Show hamburger only on mobile */
    .hamburger {
        display: block;
    }

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

    .hero {
        clip-path: none;
        height: auto;
        padding: 100px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-bottom: 40px;
    }

    .about-image img {
        box-shadow: 10px 10px 0px var(--accent) !important;
    }

    .top-bar {
        display: none;
    }

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

/* --- Title Alignment Fix --- */
.title-with-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.title-with-rating h2 {
    margin-bottom: 0;
}

.title-with-rating .google-rating {
    margin-top: 0;
}