:root {
    /* Colors - Premium White + Soft Blue */
    --color-primary: #1a73e8;
    --color-primary-light: #e8f0fe;
    --color-primary-dark: #1557b0;
    --color-secondary: #00acc1; /* teal tint */
    
    --color-text: #3c4043;
    --color-text-light: #5f6368;
    --color-heading: #202124;
    
    --color-bg: #ffffff;
    --color-bg-light: #f8faff;
    --color-bg-dark: #121826;
    
    --color-border: #e8eaed;
    --color-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(26, 115, 232, 0.05);
    --shadow-md: 0 10px 25px rgba(26, 115, 232, 0.1);
    --shadow-lg: 0 20px 40px rgba(26, 115, 232, 0.15);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.bg-light { background-color: var(--color-bg-light); }
.bg-dark { background-color: var(--color-bg-dark); }
.highlight { color: var(--color-primary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background-color: var(--color-bg-light);
    transform: translateY(-2px);
}

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

/* Animations (Intersection Observer) */
.reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}
.reveal.fade-in { transform: scale(0.95); }
.reveal.slide-up { transform: translateY(40px); }
.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-heading);
    white-space: nowrap; /* Prevents "My Dentist" from splitting on narrow screens */
}

.logo i { font-size: 28px; flex-shrink: 0; }

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

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--color-primary); }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-heading);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, rgba(232, 240, 254, 0.5) 0%, rgba(255, 255, 255, 1) 100%);
    overflow: hidden;
}

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

.trust-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-white);
    padding: 6px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.trust-badge-hero .stars {
    color: #fbbc05;
    font-size: 18px;
    letter-spacing: 2px;
}

.trust-badge-hero .badge-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-heading);
}

.hero-title {
    font-size: 56px;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
}

.feature-item i { color: var(--color-secondary); }

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--color-bg-light);
}

.image-wrapper img {
    border-radius: 24px;
    transform: scale(1.05);
    transition: transform 10s ease;
    width: 100%;
}

.image-wrapper:hover img {
    transform: scale(1);
}

.floating-badge {
    position: absolute;
    bottom: -8px; /* Adjusted for 95% on-image, 5% off-image overlap */
    left: -8px;   /* Adjusted for 95% on-image, 5% off-image overlap */
    background: var(--color-white);
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.floating-badge .icon-box {
    width: 48px;
    height: 48px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.badge-text-box strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-size: 16px;
}

.badge-text-box span {
    font-size: 13px;
    color: var(--color-text-light);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Trust Bar */
.trust-bar {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.trust-bar-grid {
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

.trust-item i {
    font-size: 32px;
    margin-bottom: 16px;
}

.trust-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.trust-item p {
    font-size: 14px;
    color: var(--color-text-light);
}

/* Services */
.section-title {
    font-size: 40px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 60px auto;
}

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

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

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

.service-card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .card-icon {
    background: var(--color-primary);
    color: var(--color-white);
}

.card-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.card-desc {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    font-family: var(--font-heading);
}

.card-link i { transition: transform 0.3s ease; }
.card-link:hover i { transform: translateX(5px); }

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.experience-badge {
    position: absolute;
    top: 30px;
    right: -8px; /* Adjusted for 95% on-image, 5% off-image overlap */
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.experience-badge .num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-heading);
}

.doctor-title {
    font-size: 20px;
    margin-bottom: 24px;
}

.about-text {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.about-list {
    list-style: none;
    margin-top: 30px;
}

.about-list li {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.list-item-content {
    display: block;
}

.list-item-content strong {
    display: inline;
    color: var(--color-heading);
}

@media (max-width: 768px) {
    .about-list li {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .list-item-content {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .list-item-content strong {
        display: block;
        line-height: 1.3;
        font-size: 17px;
    }
    
    .list-item-content span {
        font-size: 15px;
        color: var(--color-text-light);
    }
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 115, 232, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--color-white);
    font-size: 32px;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    border: 1px solid var(--color-border);
}

.review-stars {
    color: #fbbc05;
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.review-text {
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 30px;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.r-avatar {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    font-family: var(--font-heading);
}

.r-info strong {
    display: block;
    color: var(--color-heading);
}

.r-info span {
    font-size: 13px;
    color: var(--color-text-light);
}

/* CTA Section */
.cta-banner {
    background: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 30px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

/* Contact Section Styles */
.contact-section {
    background-color: var(--color-white);
}

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

.contact-info-card {
    padding-right: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
}

.cd-icon {
    min-width: 54px;
    height: 54px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.cd-text strong {
    display: block;
    font-size: 18px;
    font-family: var(--font-heading);
    margin-bottom: 5px;
    color: var(--color-heading);
}

.cd-text p {
    color: var(--color-text-light);
    font-size: 15px;
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-wrapper iframe {
    display: block;
}

/* Footer */
.footer {
    padding-top: 80px;
    color: var(--color-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo { color: var(--color-white); margin-bottom: 20px; }
.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-col h3 {
    color: var(--color-white);
    font-size: 20px;
    margin-bottom: 24px;
}

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

.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: var(--color-white); padding-left: 5px; }

.contact-list { list-style: none; }
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.contact-list i {
    color: var(--color-primary);
    margin-top: 5px;
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-wa:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive Media Queries - Mobile First & Tablet Optimized */
@media (max-width: 1024px) {
    .nav-container { padding: 0 16px; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        justify-content: center;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        padding-top: 60px;
        z-index: 1001;
    }
    
    .nav-links.active { right: 0; }
    .hamburger { display: flex; z-index: 1002; }
    .nav-cta { width: 100%; margin: 20px 0; }
    .nav-link { font-size: 18px; margin: 15px 0; }

    .hero-title { font-size: 44px; }
    .trust-bar-grid { grid-template-columns: repeat(2, 1fr); padding: 30px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-container { grid-template-columns: 1fr; gap: 40px; }
    .about-image { order: -1; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    body { overflow-x: hidden; }
    
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .hero { padding-top: 120px; }
    .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-buttons { justify-content: center; flex-direction: column; }
    .hero-features { justify-content: center; flex-direction: column; gap: 15px;}
    
    .trust-bar { margin-top: 40px; }
    .trust-bar-grid { grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px;}
    
    .services-grid { grid-template-columns: 1fr; }
    .about-container { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .gallery-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-info-card { padding-right: 0; }
    
    .cta-banner { flex-direction: column; text-align: center; gap: 30px; padding: 40px 20px;}
    .cta-buttons { flex-direction: column; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .section { padding: 60px 0; }
    .section-title { font-size: 32px; }
}

@media (max-width: 480px) {
    .trust-bar-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 36px; }
}
