/* --- Page-specific Watermark Styles --- */

/* Home Page Watermark - bg6.jpg behind all sections */
body.index-page {
    position: relative;
}

body.index-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Images/bg4.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.20;
    z-index: -1;
    pointer-events: none;
}

body.index-page main::before {
    display: none;
}

/* About Us Page - vel.png background covering whole page */
body.about-page {
    position: relative;
}

body.about-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Images/vel.png') no-repeat center center;
    background-size: 80% auto;
    background-attachment: fixed;
    opacity: 1.12;
    z-index: -1;
    pointer-events: none;
}

/* Make about page cards semi-transparent to show watermark */
body.about-page .card,
body.about-page section {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Services Page Watermark */
body.services-page {
    position: relative;
}

body.services-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Images/bg5.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* Gallery Page Watermark - Using bg2.jpg twice */
body.gallery-page {
    position: relative;
    background: none !important;
}

/* First watermark: Behind all sections - full page coverage */
body.gallery-page::before {
    content: '';
    position: fixed;
    top: -200px;
    left: 0;
    width: 300%;
    height: 100%;
    background: url('Images/bg5.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    opacity: 1.0;
    z-index: -2;
    pointer-events: none;
}

/* Second watermark: Instead of white background for cards */
body.gallery-page .card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: visible;
}

body.gallery-page .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('Images/bg5.png') no-repeat center center;
    background-size: cover;
    opacity: 2.15;
    z-index: -1;
    pointer-events: none;
}

/* Ensure main content appears above watermark */
body.gallery-page main {
    position: relative;
    z-index: 1;
}

/* General Dentistry Page Watermark */
body.general-dentistry-page {
    position: relative;
    background: url('Images/bg1.jpg') no-repeat center center fixed;
    background-size: cover;
}

body.general-dentistry-page main {
    position: relative;
    z-index: 1;
}

body.general-dentistry-page .card,
body.general-dentistry-page section {
    background: rgba(255, 255, 255, 0.85) !important;
}

/* Pediatric Dentistry Page Watermark */
body.pediatric-dentistry-page {
    position: relative;
    background: url('Images/bg2.jpg') no-repeat center center fixed;
    background-size: cover;
}

body.pediatric-dentistry-page main {
    position: relative;
    z-index: 1;
}

body.pediatric-dentistry-page .card,
body.pediatric-dentistry-page section {
    background: rgba(255, 255, 255, 0.85) !important;
}

/* Contact Page - NO WATERMARK as requested */
body.contact-page {
    position: relative;
}

/* Ensure sections appear above watermark */
body.index-page main,
body.about-page main,
body.services-page main,
body.gallery-page main,
body.general-dentistry-page main,
body.pediatric-dentistry-page main {
    position: relative;
    z-index: 1;
}

/* Ensure cards appear above watermark */
body.index-page .card,
body.about-page .card,
body.services-page .card,
body.gallery-page .card,
body.general-dentistry-page .card,
body.pediatric-dentistry-page .card {
    position: relative;
    z-index: 2;
}

/* Remove global card watermark for pages that have their own watermark */
body.index-page .card::before,
body.about-page .card::before,
body.services-page .card::before,
body.gallery-page .card::before,
body.general-dentistry-page .card::before,
body.pediatric-dentistry-page .card::before {
    display: none;
}
