/* 
    Ultra-Modern Premium Design System - Patra Dental Clinic
    A state-of-the-art, luxurious aesthetic focusing on depth, clarity, and precision.
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    /* Core Palette */
    --gold-primary: #D4AF37;
    /* Metallic Gold */
    --gold-secondary: #B8860B;
    /* Dark Goldenrod */
    --gold-light: #FFF3CC;
    --gold-dark: #996515;

    /* Backgrounds (Dark - Default) */
    --bg-deep: #121214;
    --bg-card: rgba(25, 25, 28, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.04);

    /* Semantic */
    --text-pure: #F5F5F7;
    --text-dim: #9A9A9E;
    --text-gold: #E6C200;

    /* Borders & Accents */
    --glass-border: rgba(255, 255, 255, 0.08);
    --gold-border: rgba(230, 194, 0, 0.2);

    /* Effects */
    --transition-main: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-gate: all 1.2s cubic-bezier(0.85, 0, 0.15, 1);
    --blur-heavy: blur(30px);
    --blur-light: blur(10px);
}

/* --- Premium Door/Shutter Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}

.loader-gates {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1;
}

.gate {
    width: 50%;
    height: 100%;
    background: var(--bg-deep);
    transition: var(--transition-gate);
    position: relative;
}

.gate.left {
    border-right: 1px solid var(--gold-border);
}

.gate.right {
    border-left: 1px solid var(--gold-border);
}

#preloader.loaded .gate.left {
    transform: translateX(-100%);
}

#preloader.loaded .gate.right {
    transform: translateX(100%);
}

.loader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

#preloader.loaded .loader-content {
    opacity: 0;
    transform: scale(1.1) translateY(-20px);
    pointer-events: none;
}

.loader-logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo-img {
    height: 80px;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
}

.dental-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    border: 2px solid var(--gold-border);
    border-radius: 50%;
    border-top-color: var(--gold-primary);
    animation: spin 2s linear infinite;
}

.tooth-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: var(--gold-primary);
    opacity: 0.15;
    animation: tooth-beat 2s infinite ease-in-out;
}

@keyframes tooth-beat {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
        filter: blur(2px);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.3;
        filter: blur(0px);
    }
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.loader-text {
    overflow: hidden;
}

.loader-welcome {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 10px;
    color: var(--gold-primary);
    font-weight: 700;
    display: block;
    animation: fadeInUp 0.8s ease forwards;
}

.loader-title {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 auto;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.loader-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold-secondary), var(--gold-primary));
    box-shadow: 0 0 15px var(--gold-primary);
    animation: progress 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes progress {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Fix for loading state */
body:has(#preloader:not(.loaded)) {
    overflow: hidden !important;
}

/* Light Mode Overrides for Preloader */
body.light-mode #preloader .gate {
    background: #FFFFFF;
}

body.light-mode .loader-progress {
    background: rgba(0, 0, 0, 0.05);
}

/* Light Mode Variables Override */
body.light-mode {
    --bg-deep: #FFFFFF;
    --bg-card: #F1F4F9;
    /* Enhanced visibility for containers */
    --bg-glass: rgba(241, 244, 249, 0.7);
    --text-pure: #170c1f;
    --text-dim: #4B5563;
    --glass-border: rgba(0, 0, 0, 0.08);
    --gold-border: rgba(184, 134, 11, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
}

/* Background Setup */
body {
    background-color: var(--bg-deep);
    color: var(--text-pure);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100vh;
}

/* Continuous Animated Background Effect */
body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    pointer-events: none;
}

body::before {
    background: var(--bg-deep);
    transition: background 0.4s ease;
}

/* Animated Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 194, 0, 0.1) 0%, transparent 60%);
    filter: blur(80px);
    border-radius: 50%;
    animation: move 20s infinite alternate ease-in-out;
}

.blob:nth-child(1) {
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.blob:nth-child(2) {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(230, 194, 0, 0.08) 0%, transparent 60%);
    animation-duration: 30s;
    animation-delay: -5s;
}

.blob:nth-child(3) {
    top: 50%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 194, 0, 0.05) 0%, transparent 60%);
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(5%, 10%) scale(1.1);
    }

    66% {
        transform: translate(-5%, 15%) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

body.light-mode .blob {
    background: radial-gradient(circle, rgba(184, 134, 11, 0.06) 0%, transparent 65%);
}

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

h1,
h2,
h3,
h4,
h5,
.display-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}



/* Theme Toggle Button Style */
.theme-toggle-btn {
    display: none !important;
}

/* Ultra Glassmorphism */
.premium-glass {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-heavy);
    -webkit-backdrop-filter: var(--blur-heavy);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    /* Reduced for lightness */
    transition: var(--transition-main);
}

/* Modern Segment Container */
.modern-segment {
    background: var(--bg-card);
    backdrop-filter: var(--blur-heavy);
    -webkit-backdrop-filter: var(--blur-heavy);
    border: 1px solid var(--glass-border);
    border-radius: 60px;
    padding: 100px 60px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-main);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

body.light-mode .modern-segment {
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.modern-segment:hover {
    border-color: var(--gold-border);
    transform: translateY(-5px);
}

.segment-wrapper {
    padding: 60px 0;
}

@media (max-width: 991px) {
    .modern-segment {
        border-radius: 40px;
        padding: 60px 30px;
    }
}

@media (max-width: 575px) {
    .modern-segment {
        border-radius: 30px;
        padding: 40px 20px;
    }
}

body:not(.light-mode) .premium-glass {
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

.premium-glass:hover {
    border-color: var(--gold-border);
    background: rgba(255, 255, 255, 0.08);
    /* Boosted for hover */
    transform: translateY(-8px);
}

body.light-mode .premium-glass:hover {
    background: rgba(242, 246, 250, 0.9);
}

/* Gold Text Effect */
.gold-gradient-text {
    background: linear-gradient(135deg, #FFF3CC 0%, #D4AF37 40%, #996515 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .gold-gradient-text {
    background: linear-gradient(135deg, #B8860B 0%, #D4AF37 50%, #996515 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Buttons */
.btn-primary-gold {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #e0e0e0;
    padding: 16px 40px;
    border-radius: 100px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: var(--transition-main);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(230, 194, 0, 0.2);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.btn-primary-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: all 0.6s ease;
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.btn-primary-gold:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 20px 40px rgba(230, 194, 0, 0.4);
    background: linear-gradient(135deg, #FFF1B5, var(--gold-primary));
}

.btn-secondary-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-light);
    border: 1px solid var(--glass-border);
    color: var(--text-pure);
    padding: 16px 40px;
    border-radius: 100px;
    font-weight: 600;
    transition: var(--transition-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

body.light-mode .btn-secondary-glass {
    background: rgba(0, 0, 0, 0.03);
}

.btn-secondary-glass:hover {
    background: rgba(230, 194, 0, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* Hero Section */
#home.section-padding {
    padding-top: 0 !important;
}

#home .modern-segment {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

.hero-wrapper {
    height: 90vh;
    /* Default to desktop size */
    padding-top: 130px; /* Adjusted for floating header space */
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 991px) {
    .hero-wrapper {
        min-height: 60vh !important;
        /* Shorter for mobile readability */
        padding-top: 10rem !important;
    }
}

#home.section-padding {
    padding-top: 20px;
    /* Reduced since hero-wrapper has the bulk */
}

.hero-wrapper h1 {
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-wrapper p {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Specialty Cards & Gallery Items */
.premium-glass {
    overflow: hidden;
}

.premium-glass img {
    transition: var(--transition-main);
}

.premium-glass:hover img {
    transform: scale(1.08);
}

.transition-main {
    transition: var(--transition-main);
}

/* Service Info Overlays (if still used) */
.bento-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    z-index: 2;
}

body.light-mode .bento-info {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
}

/* Hero Section Responsive */
@media (max-width: 991px) {
    .hero-wrapper {
        margin-top: -10px;
        padding-top: 100px !important;
        /* Proper clearance for mobile navbar */
        padding-bottom: 60px !important;
        text-align: center;
        height: auto !important;
        min-height: 80vh !important;
    }

    .hero-wrapper .row {
        display: flex;
        flex-direction: column;
    }

    .hero-content-col {
        display: contents !important;
    }

    .hero-text-content {
        order: 1;
    }

    .hero-image-col {
        order: 2;
        margin-top: 0.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-btns {
        order: 3;
        margin-top: 1rem !important;
    }

    .hero-wrapper .display-font {
        font-size: 2.8rem !important;
        line-height: 1.2;
    }

    .hero-wrapper p {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1rem !important;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 12px !important;
    }

    .hero-btns .btn-primary-gold,
    .hero-btns .btn-secondary-glass {
        width: 100%;
        justify-content: center;
        margin-top: 0;
    }

    .floating-experience-badge {
        left: 50% !important;
        bottom: -30px !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 300px;
    }
}

@media (max-width: 767px) {
    .display-font {
        font-size: 2.8rem !important;
    }

    .section-padding {
        padding: 60px 0;
    }
}

/* Service Grid Responsive (Bento Grid Fix) */
@media (max-width: 991px) {
    .service-bento-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .bento-card,
    .bento-card.large {
        grid-column: span 12;
        height: 300px;
        width: 100%;
    }
}

/* Navbar Responsive */
@media (max-width: 991px) {
    .navbar-floating {
        top: 3px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        height: 80px;
        padding: 0 20px;
        display: flex;
        background: rgba(35, 35, 40, 0.8);
        backdrop-filter: blur(12px);
        border-radius: 100px;
        border: 2px solid var(--gold-primary);
    }

    .navbar-floating.scrolled {
        top: 5px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        height: 80px;
        background: rgba(35, 35, 40, 0.8);
        border-radius: 100px;
        border: none !important;
        border-bottom: none !important;
    }

    body.light-mode .navbar-floating.scrolled {
        background: rgba(18, 18, 20, 0.9);
    }

    .nav-links {
        display: none;
    }
}

/* Utility */
.section-padding {
    padding: 40px 0;
    scroll-margin-top: 120px;
    /* Offset for fixed navbar */
}

.tagline {
    display: inline-block;
    color: var(--gold-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

.text-dim {
    color: var(--text-dim);
}

.glow-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 194, 0, 0.15) 0%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
}

/* Floating Actions Fix for Mobile */
.fixedBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.fixedBtn a {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: var(--blur-light);
    border: 1px solid var(--glass-border);
    color: var(--text-pure);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition-main);
    text-decoration: none;
    animation: heartbeat 2s ease-in-out infinite;
}

.fixedBtn a:hover {
    transform: scale(1.1);
    border-color: var(--gold-primary);
}

@media (max-width: 575px) {
    .fixedBtn {
        bottom: 20px;
        right: 20px;
    }

    .fixedBtn a {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Mobile Optimization & Overflow Fix */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    width: 100%;
}

.container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
}

.container-fluid {
    width: 100%;
}

@media (max-width: 575px) {
    .display-font {
        font-size: 2.2rem !important;
    }

    .display-font br {
        display: none;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .navbar-floating {
        padding: 0 15px;
        width: 100%;
        top: 0;
        height: 80px;
    }

    .navbar-floating .logo img {
        height: 35px !important;
    }

    .theme-toggle-btn {
        width: 35px;
        height: 35px;
    }

    .btn-primary-gold {
        padding: 12px 25px;
        font-size: 0.85rem;
    }
}

/* Fix for potential bento overflow */
.service-bento-grid {
    width: 100%;
    margin: 0;
}

.bento-card {
    max-width: 100%;
}

/* Animations & Utilities */
@keyframes float {

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

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

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.15);
    }

    20% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

.float-animation {
    animation: float 5s ease-in-out infinite;
}

.hover-gold {
    transition: var(--transition-main);
}

.hover-gold:hover {
    color: var(--gold-primary) !important;
}

.x-small {
    font-size: 0.65rem;
    text-transform: uppercase;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.z-index-1 {
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

@media (max-width: 991px) {
    .hero-wrapper .floating-experience-badge {
        bottom: 5px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        min-width: auto !important;
        width: calc(100% - 40px);
        max-width: 250px;
        justify-content: center;
    }
}

/* Theme-Aware Map Styles */
footer iframe {
    filter: grayscale(1) invert(0.9) opacity(0.8);
    transition: filter 0.6s ease;
}

body.light-mode footer iframe {
    filter: grayscale(0.2) contrast(1.1) opacity(1);
}

/* Navbar */
.navbar-floating {
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 1400px;
    height: 80px;
    z-index: 1000;
    background: rgba(35, 35, 40, 0.8);
    backdrop-filter: blur(15px);
    border: 2px solid var(--gold-primary);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-floating.scrolled {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 1400px;
    height: 80px;
    background: rgba(35, 35, 40, 0.8);
    /* Premium blackish grey glass */
    backdrop-filter: var(--blur-heavy);
    border: none;
    border-radius: 100px;
    padding: 0 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.navbar-floating.scrolled .logo img {
    height: 36px !important;
}

.navbar-floating.scrolled .nav-links a {
    font-size: 0.85rem;
}

.navbar-floating .logo img {
    height: 42px !important;
    width: auto !important;
    transition: var(--transition-main);
}

/* Ensure child fixed elements can break out by removing transform when menu is open */
.navbar-floating.menu-is-open {
    transform: none !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    background: var(--bg-deep) !important;
}

body.light-mode .navbar-floating .nav-links a,
body.light-mode .navbar-floating .dropdown-trigger,
body.light-mode .navbar-floating .theme-toggle-btn {
    color: #ffffff !important;
}

body.light-mode .navbar-floating .mobile-nav-toggle .bar {
    background-color: #ffffff !important;
}

body.light-mode .navbar-floating.scrolled {
    background: rgba(35, 35, 40, 0.75);
    /* Slightly darker with a gold tint */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: none;
}

/* Logo color reset - keeping original white */
.logo img,
.footer-logo {
    filter: none !important;
}

.footer-logo {
    display: none !important;
}

/* Global Footer Cleanup */
footer li a[href="privacy-policy.html"] {
    display: none !important;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-main);
}

.nav-links a:hover {
    color: var(--gold-primary);
}

/* Appointment & Form Styling */
.appointment-box {
    background: rgba(255, 255, 255, 0.05);
    /* Default dark mode */
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    transition: var(--transition-main);
}

body.light-mode .appointment-box {
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.premium-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 15px !important;
    color: var(--text-pure) !important;
    padding: 15px 25px !important;
    transition: var(--transition-main);
}

.premium-input::placeholder {
    color: var(--text-dim);
    opacity: 0.6;
}

body.light-mode .premium-input {
    background: #F8FAFC !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

.premium-input:focus {
    background: transparent !important;
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 0 4px rgba(230, 194, 0, 0.1) !important;
    outline: none !important;
}

/* Nav Dropdown Styles */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 240px;
    background: rgba(18, 18, 20, 0.95);
    backdrop-filter: var(--blur-heavy);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    list-style: none;
    margin-top: 15px;
}

body.light-mode .nav-dropdown-menu {
    background: rgba(18, 18, 20, 0.98);
}

body.light-mode .nav-dropdown-menu a {
    color: #F5F5F7 !important;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Invisible Bridge to prevent closing on gap hover */
.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

.nav-dropdown-menu li {
    margin-bottom: 5px;
}

.nav-dropdown-menu li:last-child {
    margin-bottom: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0;
    transition: var(--transition-main);
}

.nav-dropdown-menu a:hover {
    background: rgba(230, 194, 0, 0.1);
    color: var(--gold-primary);
    transform: translateX(5px);
}

/* Section Spacing */
.section-padding {
    padding: 40px 0;
}

.tagline {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--gold-primary);
    margin-bottom: 16px;
    display: block;
}

.gold-text {
    color: var(--gold-primary) !important;
}

.bg-gold-light {
    background: rgba(230, 194, 0, 0.1) !important;
}

.mobile-nav-toggle {
    display: none;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .navbar-floating {
        top: 5px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        height: 80px;
        padding: 0 20px;
        display: flex !important;
        visibility: visible !important;
        background: rgba(35, 35, 40, 0.8) !important;
        border-radius: 100px;
        border: 2px solid var(--gold-primary) !important;
    }

    .nav-links {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .mobile-nav-toggle .bar {
        width: 90%;
        margin-left: 10px;
        height: 2.5px;
        background-color: rgba(245, 245, 247, 0.85);
        border-radius: 10px;
        transition: var(--transition-main);
    }

    .mobile-nav-toggle.active .bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
        background-color: var(--gold-primary);
    }

    .mobile-nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
        background-color: var(--gold-primary);
    }

    /* Mobile Menu Overlay Styles */
    .nav-links.mobile-active {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(18, 18, 20, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 25px !important;
        z-index: 2000 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-20px) !important;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
        padding: 120px 30px 60px !important;
        overflow-y: auto !important;
        margin: 0 !important;
        list-style: none !important;
        right: auto !important;
        bottom: auto !important;
    }

    body.light-mode .nav-links.mobile-active {
        background: rgba(18, 18, 20, 0.98) !important;
    }

    body.light-mode .nav-links.mobile-active a {
        color: #F5F5F7 !important;
    }

    .nav-links.mobile-active.show {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .nav-links.mobile-active li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .nav-links.mobile-active.show li {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* Mobile Spacing & Width Fixes */
    .premium-glass.p-5 {
        padding: 2.5rem !important;
    }

    .floating-experience-badge {
        left: 0 !important;
        bottom: 10px !important;
        transform: scale(0.9);
        transform-origin: left bottom;
    }

    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .row>[class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    .desktop-theme-toggle {
        display: none !important;
    }

    .mobile-only-header {
        display: block !important;
        margin-bottom: 20px;
    }

    .mobile-theme-btn {
        margin: 0 auto;
    }

    /* Staggered animation for links */
    .nav-links.mobile-active.show li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.mobile-active.show li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.mobile-active.show li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.mobile-active.show li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.mobile-active.show li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links.mobile-active.show li:nth-child(n+6) {
        transition-delay: 0.6s;
    }

    .nav-links.mobile-active a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-pure);
    }

    .nav-links.mobile-active .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        display: none;
        padding-top: 10px;
        width: 100%;
        text-align: center;
    }

    .nav-links.mobile-active .nav-item-dropdown.active .nav-dropdown-menu {
        display: block;
    }

    .nav-links.mobile-active .nav-dropdown-menu a {
        font-size: 1rem;
        font-weight: 500;
        padding: 10px;
    }

    .nav-links.mobile-active .dropdown-trigger i {
        transition: transform 0.3s ease;
    }

    .nav-links.mobile-active .nav-item-dropdown.active .dropdown-trigger i {
        transform: rotate(180deg);
    }

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

    .section-padding {
        padding: 100px 0;
    }

    .bento-card {
        grid-column: span 12 !important;
        height: 350px;
    }

    .close-nav-menu {
        display: block !important;
        position: absolute;
        top: 25px;
        right: 25px;
        background: transparent;
        border: none;
        color: #ffffff;
        font-size: 2.2rem;
        cursor: pointer;
        z-index: 2100;
        transition: var(--transition-main);
        padding: 5px;
        line-height: 1;
    }

    .close-nav-menu:hover {
        color: var(--gold-primary);
        transform: rotate(90deg);
    }
}

/* Theme Toggle Visibility (Desktop Defaults) */
.desktop-theme-toggle {
    display: flex;
}

.mobile-only-header {
    display: none;
}

.close-nav-menu {
    display: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 10px;
}

/* Glow Decorations */
.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 194, 0, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}