/* Custom Premium Design System Variable Definition */
:root {
    --bg-primary: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --brand-blue: #38bdf8;
    --brand-dark-blue: #0284c7;
    --brand-hover: #0369a1;
    --pure-white: #ffffff;
    --card-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.02);
    --border-color: #e2e8f0;
}

/* Global Setup Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Premium Obsidian Header Background Grid */
.premium-header {
    background: radial-gradient(circle at top left, #1e293b 0%, #0f172a 100%);
    color: var(--pure-white);
    padding: 90px 0 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

.premium-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.header-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Avatar Layout and Tagline Style rules */
.doctor-avatar-wrapper {
    position: relative;
    text-align: center;
}

.doctor-img {
    width: 220px;
    height: 220px;
    border-radius: 32px;
    object-fit: cover;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.avatar-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 14px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(6, 95, 70, 0.85);
    backdrop-filter: blur(8px);
    color: #a7f3d0;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(52, 211, 153, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #34d399;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 1; }
}

.sub-title {
    color: var(--brand-blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.header-details h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 15px;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.degree-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
}

.bio {
    color: #94a3b8;
    max-width: 650px;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 35px;
}

.quick-info-bar {
    display: flex;
    gap: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.info-item .icon {
    font-size: 1.2rem;
    background: rgba(255,255,255,0.04);
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
}

.info-item h4 {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
}

.info-item p {
    font-size: 0.95rem;
    font-weight: 500;
    color: #f1f5f9;
}

/* Master Layout Content Grid mapping */
.main-content {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 45px;
    padding: 70px 0;
}

.left-panel-layout {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.section-title-area {
    margin-bottom: 35px;
}

.section-title-area h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.section-title-area p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Treatment Modules Cards configuration */
.services-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.premium-card {
    background: var(--pure-white);
    border: 1px solid rgba(226, 232, 240, 0.7);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover {
    transform: translateY(-6px);
    border-color: rgba(2, 132, 199, 0.2);
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.12);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: inline-block;
}

.premium-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
}

.premium-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Clean Gallery Section Architecture */
.gallery-section {
    padding-top: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #cbd5e1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.9);
}

/* Lightbox Screen Popup Sheet styling */
.lightbox {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.lightbox-content-wrapper {
    max-width: 80%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightboxImg {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #94a3b8;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--pure-white);
}

.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 1.5rem;
    padding: 18px 22px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: var(--pure-white);
    color: var(--text-main);
    transform: scale(1.05);
}

.prev-btn { left: 40px; }
.next-btn { right: 40px; }

/* Sticky Right-side Scheduling Node Card */
.booking-sticky-card {
    background: var(--pure-white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 40px;
    border-radius: 28px;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 40px;
}

.field-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}

.field-group label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 0.8px;
}

.premium-form input[type="text"],
.premium-form input[type="tel"],
.premium-form input[type="date"] {
    width: 100%;
    padding: 15px 18px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    transition: all 0.25s ease;
}

.premium-form input:focus {
    background: var(--pure-white);
    border-color: var(--brand-dark-blue);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.08);
}

/* Dynamic Shift Sections Layout styling */
.shift-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-dark-blue);
    margin: 10px 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.p-slot-node {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: center;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.p-slot-node:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

.p-slot-node.active-slot {
    background: var(--brand-dark-blue);
    color: var(--pure-white);
    border-color: var(--brand-dark-blue);
    box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.4);
}

.submit-premium-btn {
    width: 100%;
    padding: 16px;
    background: var(--brand-dark-blue);
    color: var(--pure-white);
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
    transition: all 0.2s ease;
}

.submit-premium-btn:hover {
    background: var(--brand-hover);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.3);
}

.success-screen {
    text-align: center;
    padding: 15px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.success-screen h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.success-screen p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.receipt-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 22px;
    border-radius: 16px;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.8;
}

.hidden {
    display: none !important;
}

/* Premium Footer Split Engine Look */
.premium-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-left, .footer-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.copyright-text {
    font-weight: 400;
    letter-spacing: 0.3px;
}

.doctor-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-link.fb:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.social-link.wa:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.developer-credits, .developer-contact {
    text-align: right;
}

.dev-name {
    color: #38bdf8;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dev-phone {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.dev-phone:hover {
    color: #38bdf8;
}

/* Responsive Adaptive Layer breakpoints */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .booking-sticky-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .lightbox-nav {
        padding: 12px 16px;
        font-size: 1.2rem;
    }
    .prev-btn { left: 15px; }
    .next-btn { right: 15px; }
    .lightbox-close { top: 20px; right: 25px; }
}

@media (max-width: 680px) {
    .header-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .doctor-avatar-wrapper {
        margin: 0 auto;
    }
    .quick-info-bar {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .header-details h1 {
        font-size: 2.5rem;
    }
    .degree-badges {
        justify-content: center;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-left, .footer-right {
        align-items: center;
    }
    .developer-credits, .developer-contact {
        text-align: center;
    }
}