/* Google Translate Hiding - Reinforced */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
iframe[id=":2.container"],
body>.skiptranslate {
    display: none !important;
}


body {
    top: 0px !important;
    position: relative !important;
    /* Changed from static to relative to handle absolute children better */
    left: 0px !important;
}

.goog-tooltip {
    display: none !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

:root {
    /* Color Palette - Premium & Modern */
    --primary-hue: 215;
    /* Darker Blue for Contrast (AA Compliant) */
    --primary: hsl(var(--primary-hue), 100%, 35%);
    --primary-dark: hsl(var(--primary-hue), 100%, 25%);
    --secondary: hsl(35, 100%, 55%);
    --secondary: hsl(35, 100%, 55%);
    /* Gold/Accent */

    --bg-body: #0a0a0a;
    --bg-surface: #141414;
    --bg-surface-translucent: rgba(20, 20, 20, 0.8);

    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --text-dark: #000000;

    --nav-hover-color: #ffffff;
    --logo-gradient-start: #ffffff;
    --logo-gradient-end: #bbbbbb;
    --btn-secondary-text: #ffffff;

    --border-color: rgba(255, 255, 255, 0.1);

    /* 
       Optimized Local Fonts 
       Served locally to prevent Cloudflare chaining request latency 
    */
    @font-face {
        font-family: 'Outfit';
        font-style: normal;
        font-weight: 300;
        font-display: swap;
        src: url('/assets/fonts/outfit-300.ttf') format('truetype');
    }

    @font-face {
        font-family: 'Outfit';
        font-style: normal;
        font-weight: 400;
        font-display: swap;
        src: url('/assets/fonts/outfit-400.ttf') format('truetype');
    }

    @font-face {
        font-family: 'Outfit';
        font-style: normal;
        font-weight: 500;
        font-display: swap;
        src: url('/assets/fonts/outfit-500.ttf') format('truetype');
    }

    @font-face {
        font-family: 'Outfit';
        font-style: normal;
        font-weight: 600;
        font-display: swap;
        src: url('/assets/fonts/outfit-600.ttf') format('truetype');
    }

    @font-face {
        font-family: 'Outfit';
        font-style: normal;
        font-weight: 700;
        font-display: swap;
        src: url('/assets/fonts/outfit-700.ttf') format('truetype');
    }

    @font-face {
        font-family: 'Plus Jakarta Sans';
        font-style: normal;
        font-weight: 400;
        font-display: swap;
        src: url('/assets/fonts/plus-jakarta-sans-400.ttf') format('truetype');
    }

    @font-face {
        font-family: 'Plus Jakarta Sans';
        font-style: normal;
        font-weight: 500;
        font-display: swap;
        src: url('/assets/fonts/plus-jakarta-sans-500.ttf') format('truetype');
    }

    @font-face {
        font-family: 'Plus Jakarta Sans';
        font-style: normal;
        font-weight: 600;
        font-display: swap;
        src: url('/assets/fonts/plus-jakarta-sans-600.ttf') format('truetype');
    }

    @font-face {
        font-family: 'Plus Jakarta Sans';
        font-style: normal;
        font-weight: 700;
        font-display: swap;
        src: url('/assets/fonts/plus-jakarta-sans-700.ttf') format('truetype');
    }

    --font-heading: 'Outfit',
    sans-serif;
    --font-body: 'Plus Jakarta Sans',
    sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Force hardware acceleration to prevent repaint flickers */
/* Hardware acceleration removed to fix fixed/sticky positioning */

[data-theme="light"] {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-translucent: rgba(255, 255, 255, 0.9);

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-dark: #000000;
    --text-warning: #ffc107;

    --nav-hover-color: #0f172a;
    --logo-gradient-start: #0f172a;
    --logo-gradient-end: #475569;
    --btn-secondary-text: #0f172a;

    --border-color: rgba(0, 0, 0, 0.08);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Body transition removed to fix flicker */
/* Flash prevention removed */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* Prevent long text from overflowing */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    left: 0 !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--btn-secondary-text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-surface-translucent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-btn {
    display: none !important;
}

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

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
}

.logo-symbol {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    /* Ensure text is visible on gradient */
}

.logo-text {
    background: linear-gradient(90deg, var(--logo-gradient-start), var(--logo-gradient-end));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--nav-hover-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding-top: calc(80px + var(--spacing-xl));
    /* Header height + spacing */
    padding-bottom: var(--spacing-xl);
    /* background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(255, 166, 0, 0.05), transparent 40%),url('../assets/img/slide5.jpg'); */
    background: radial-gradient(circle at top right, rgba(2, 40, 102, 0.15), transparent 150%),
        radial-gradient(circle at bottom left, rgba(2, 40, 102, 0.5), transparent 150%), url('../assets/img/slide5.jpg');
    text-align: center;
    /* background-image: url('../assets/img/banner.jpg'); */
    background-size: cover;
    background-repeat: no-repeat;
}

.hero h1 {
    font-family: var(--font-heading);
    /* font-size: clamp(2.5rem, 5vw, 4.5rem); */
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(180deg, var(--logo-gradient-start) 0%, var(--logo-gradient-end) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features/Services Grid */
.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.card h3 {
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.card p {
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

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

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Page Loader - DISABLED */
#loader {
    display: none !important;
}

.htmx-indicator {
    /* Page Loader - DISABLED */
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator {
    display: none !important;
}

/* HTMX Content Swap Transitions REMOVED - using View Transitions */

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: none !important;
        /* Force Kill */
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .mobile-header-actions {
        display: flex;
        gap: 1.5rem;
        align-items: center;
    }

    .mobile-action-btn {
        background: none;
        border: none;
        color: var(--text-main);
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-wrapper {
        display: none !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Hero Layout - Split */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-actions {
    justify-content: flex-start;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.cms-image-btn:hover {
    background: var(--primary-dark) !important;
}

@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        /* order: 2; - Text first on mobile usually better for SEO/Context */
    }

    .hero-image {
        margin-top: 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Object Fit Helper */
.cover-img,
.cover-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cms-image-wrapper.cover-img {
    display: block !important;
    /* Override inline-block from library */
}

/* Blog Card Hover */
/* Blog Card Hover */
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.likes-text {
    font-weight: bold;
    color: var(--text-main);
    margin-left: 5px;
}

/* Dynamic Star Rating - Refactored */
.star-rating {
    display: inline-block;
    position: relative;
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
    font-family: sans-serif;
    /* Consistency */
    color: transparent;
    /* Hide base text */
    letter-spacing: 2px;
    /* Breathing room */
}

/* Background Stars (Gray) */
.star-rating::before {
    content: "★★★★★";
    position: absolute;
    top: 0;
    left: 0;
    color: #444;
    pointer-events: none;
}

/* Foreground Stars (Yellow) */
.star-rating::after {
    content: "★★★★★";
    position: absolute;
    top: 0;
    left: 0;
    color: #fbbf24;
    overflow: hidden;
    width: var(--rating-width, 0%);
    pointer-events: none;
    white-space: nowrap;
}

/* Image Utilities */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image img {
    width: 100%;
    height: auto;
    /* Aspect Ratio Fix */
    aspect-ratio: 1600 / 1066;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    padding: 10vh 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.search-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 2rem;
    color: white;
    padding: 1rem 0;
    font-family: var(--font-heading);
    outline: none;
    text-align: center;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-input:focus {
    border-color: var(--primary);
}

.search-results {
    margin-top: 2rem;
    width: 100%;
    max-width: 600px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: none;
    /* Hidden by default */
}

.search-result-item {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    transition: background 0.2s;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 2rem;
    color: var(--primary);
}

.search-result-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    display: block;
}

.search-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.search-close-btn:hover {
    opacity: 1;
}

/* --- Mobile Levitating Navbar --- */
.mobile-nav-container {
    display: none;
    /* Hidden on desktop */
}

@media (max-width: 768px) {

    /* Hide Default Header Elements on Mobile */
    .mobile-menu-btn {
        display: none !important;
        /* Hide old hamburger */
    }

    .nav-wrapper {
        display: none !important;
        /* Hide default nav drawer */
    }

    /* Adjust FABs for Mobile (Position above bottom nav) */
    .footer-fabs {
        bottom: 120px !important;
        /* Moved up 10px per user request */
        right: 15px !important;
    }

    /* --- Mobile Gooey Bottom Nav --- */
    .mobile-bottom-nav {
        display: none;
    }

    @media (max-width: 768px) {
        .mobile-bottom-nav {
            display: block;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100px;
            /* Height for the touch area */
            z-index: 9000;
            pointer-events: none;
            /* Allow clicks through empty space */
            /* Use a thin bar background if requested? User said "thin bottom bar that says menu". 
           Let's add a visual bar behind the button. */
        }

        /* The Thin Bar Background */
        .mobile-bottom-nav::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 60px;
            background: var(--bg-surface-translucent);
            backdrop-filter: blur(10px);
            border-top: 1px solid var(--border-color);
            z-index: -1;
            pointer-events: auto;
            /* Bar is clickable */
        }

        .gooey-menu {
            position: absolute;
            left: 50%;
            bottom: 10px;
            /* Rest on the bar */
            width: 100%;
            height: 100px;
            transform: translateX(-50%);
            pointer-events: none;
            filter: url('#shadowed-goo');
            /* filter: url('#goo'); */
            display: flex;
            justify-content: center;
            align-items: flex-end;
        }

        .menu-item,
        .menu-open-button {
            background: var(--primary);
            border-radius: 100%;
            width: 60px;
            height: 60px;
            position: absolute;
            bottom: 0;
            /* Align to bottom of container */
            left: 50%;
            margin-left: -30px;
            /* Center horizontally */
            color: white;
            text-align: center;
            line-height: 60px;
            transform: translate3d(0, 0, 0);
            transition: transform ease-out 200ms;
            pointer-events: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        }

        .menu-open {
            display: none;
        }

        /* Trigger Button Style */
        .menu-open-button {
            z-index: 2;
            transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transition-duration: 400ms;
            transform: scale(1.1, 1.1) translate3d(0, 0, 0);
            cursor: pointer;
            background: var(--primary);
            /* Make it stand out from the bar */
            margin-bottom: 20px;
            /* Push it up slightly above the bar */
        }

        .menu-open-button:hover {
            transform: scale(1.2, 1.2) translate3d(0, 0, 0);
        }

        .menu-open:checked+.menu-open-button {
            transition-timing-function: linear;
            transition-duration: 200ms;
            transform: scale(0.9, 0.9) translate3d(0, 0, 0);
            margin-bottom: 20px;
        }

        /* Hamburger Lines */
        .hamburger {
            width: 25px;
            height: 3px;
            background: white;
            display: block;
            position: absolute;
            top: 50%;
            left: 50%;
            margin-left: -12.5px;
            margin-top: -1.5px;
            transition: transform 200ms;
        }

        .hamburger-1 {
            transform: translate3d(0, -8px, 0);
        }

        .hamburger-2 {
            transform: translate3d(0, 0, 0);
        }

        .hamburger-3 {
            transform: translate3d(0, 8px, 0);
        }

        .menu-open:checked+.menu-open-button .hamburger-1 {
            transform: translate3d(0, 0, 0) rotate(45deg);
        }

        .menu-open:checked+.menu-open-button .hamburger-2 {
            transform: translate3d(0, 0, 0) scale(0.1, 1);
        }

        .menu-open:checked+.menu-open-button .hamburger-3 {
            transform: translate3d(0, 0, 0) rotate(-45deg);
        }

        /* Menu Text Label */
        .menu-label-text {
            position: absolute;
            bottom: -20px;
            font-size: 10px;
            font-weight: bold;
            color: var(--text-main);
            width: 100%;
            text-align: center;
            opacity: 1;
            transition: opacity 0.2s;
            pointer-events: none;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
            /* readable on potential overlap */
        }

        /* Hide label when menu is open? */
        .menu-open:checked+.menu-open-button .menu-label-text {
            /* opacity: 0; */
        }

        /* Items Positioning (Semi-Circle Upwards) */
        .menu-item {
            margin-bottom: 20px;
            /* Match trigger */
        }

        .menu-item:hover {
            background: white;
            color: var(--primary);
        }

        /* Animations */

        /* Item 1 (Left-most) */
        .menu-item.item-1 {
            transition-duration: 180ms;
        }

        .menu-item.item-2 {
            transition-duration: 180ms;
        }

        .menu-item.item-3 {
            transition-duration: 180ms;
        }

        .menu-item.item-4 {
            transition-duration: 180ms;
        }

        .menu-item.item-5 {
            transition-duration: 180ms;
        }

        /* Open State Transforms */
        /* Radius ~110px. Coordinates (x, y relative to center bottom) */

        /* Item 1: -100px X, -10px Y (Left Low) */
        .menu-open:checked+.menu-open-button+.item-1 {
            transform: translate3d(-110px, -20px, 0);
        }

        /* Item 2: -70px X, -70px Y (Left High) */
        .menu-open:checked+.menu-open-button+.item-1+.item-2 {
            transform: translate3d(-75px, -80px, 0);
        }

        /* Item 3: 0px X, -110px Y (Center High) */
        .menu-open:checked+.menu-open-button+.item-1+.item-2+.item-3 {
            transform: translate3d(0, -110px, 0);
        }

        /* Item 4: 70px X, -70px Y (Right High) */
        .menu-open:checked+.menu-open-button+.item-1+.item-2+.item-3+.item-4 {
            transform: translate3d(75px, -80px, 0);
        }

        /* Item 5: 100px X, -10px Y (Right Low) */
        .menu-open:checked+.menu-open-button+.item-1+.item-2+.item-3+.item-4+.item-5 {
            transform: translate3d(110px, -20px, 0);
        }

        /* Hide FABs on mobile to prevent overlap or clutter? User removed 'search' from mobile nav, 
       maybe we should hide the WhatsApp/Call FABs too as they might conflict? 
       Actually, existing css puts FABs at bottom: 120px !important on mobile. 
       This new menu opens UPWARDS. 120px might be ok or intersect.
       Let's check .footer-fabs usage. */
    }
}

.mobile-nav-container {
    display: flex !important;
    position: fixed !important;
    bottom: 20px !important;

    /* Proper Centering for Fixed Elements */
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;

    width: 95%;
    max-width: 400px;
    height: 70px;
    background: var(--bg-body);
    /* Fully Opaque to hide flash */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    z-index: 99999;
    /* Ensure high stacking context */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
    /* Valid property */
    align-items: center;
    padding: 0 10px;
    justify-content: space-between;
    overflow: visible !important;
    /* Allow indicator to float outside */
}

.mnav-menu {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
    z-index: 10;
    justify-content: space-between;
}

.mnav-item-wrapper {
    flex: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--text-muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    gap: 4px;
    position: relative;
}

.mnav-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: 0.3s;
    z-index: 12;
}

/* Active State */
.mnav-item.active .mnav-icon {
    transform: translateY(-32px);
    color: white;
}

.mnav-text {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    /* Grey */
    opacity: 0.5;
    /* Partly visible */
    transform: translateY(18px);
    /* Less offset */
    transition: 0.3s;
}

.mnav-item.active .mnav-text {
    opacity: 1;
    transform: translateY(10px);
}

/* The Magic Ball & Cutout */
.mnav-indicator {
    position: absolute;
    top: -35%;
    /* Lift above the bar */
    width: 50px;
    height: 50px;
    background: var(--primary);
    /* Suit Design */
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary);
    /* Glow */
    border: 4px solid var(--bg-body);
    /* Fake Cutout effect */
    z-index: 11;

    transition: none !important;
    /* FORCE NO ANIMATION INITIALLY */

    left: 0;
    /* JS will set this */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    /* Hide until positioned */
}

.mnav-indicator.nav-ready {
    transition: left 0.4s cubic-bezier(0.5, 0, 0.3, 1.2) !important;
    opacity: 1;
}

/* Cutout SVG Overlay approach is complex with pure CSS/Divs over blurred bg.
       Instead, we use a simple floating ball approach that sits 'on top' or overlaps. 
       The user asked for 'hole' effect. 
       To achieve true 'hole' we need SVG masking or complex borders.
    */
}

/* Lightbox Navigation Styles */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10001;
    transition: background 0.3s;
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav-btn.prev {
    left: -60px;
}

.lightbox-nav-btn.next {
    right: -60px;
}

@media (max-width: 768px) {
    .lightbox-nav-btn {
        background: rgba(0, 0, 0, 0.5);
        /* Darker for better contrast */
        padding: 0.8rem;
        font-size: 1.5rem;
    }

    .lightbox-nav-btn.prev {
        left: 10px;
        /* Inside image */
    }

    .lightbox-nav-btn.next {
        right: 10px;
        /* Inside image */
    }
}

/* --- Mobile Gooey Bottom Nav --- */
.mobile-bottom-nav {
    display: none;
}

/* Hide Old Nav Container */
.mobile-nav-container {
    display: none !important;
}

@media (max-width: 768px) {

    /* Hide Default Header Elements on Mobile if not already hidden */
    .mobile-menu-btn {
        display: none !important;
    }

    .nav-wrapper {
        display: none !important;
    }

    .mobile-header-actions {
        display: flex !important;
        gap: 15px;
        align-items: center;
    }

    .mobile-action-btn {
        background: none;
        border: none;
        padding: 5px;
        cursor: pointer;
        color: var(--text-main);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* --- Mobile Gooey Bottom Nav --- */
    /* Add padding to body or footer to prevent content from being hidden behind the fixed nav */
    .site-footer {
        padding-bottom: 120px !important;
    }

    .mobile-bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        /* Height for the touch area */
        z-index: 9000;
        pointer-events: none;
        /* Allow clicks through empty space */
    }

    /* The Thin Bar Background */
    .mobile-bottom-nav::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: var(--bg-surface-translucent);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        z-index: -1;
        pointer-events: auto;
        /* Bar is clickable */
    }

    .gooey-menu {
        position: absolute;
        left: 50%;
        bottom: 10px;
        /* Rest on the bar */
        width: 100%;
        height: 100px;
        transform: translateX(-50%);
        pointer-events: none;
        filter: url('#shadowed-goo');
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }

    .menu-item,
    .menu-open-button {
        background: var(--primary);
        border-radius: 100%;
        width: 60px;
        height: 60px;
        position: absolute;
        bottom: 0;
        /* Align to bottom of container */
        left: 50%;
        margin-left: -30px;
        /* Center horizontally */
        color: white;
        text-align: center;
        line-height: normal;
        transform: translate3d(0, 0, 0);
        transition: transform ease-out 200ms;
        pointer-events: auto;
        display: flex;
        flex-direction: column;
        /* Stack Icon and Text */
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    /* Text inside ball */
    .menu-item-text {
        font-size: 9px;
        margin-top: 2px;
        font-weight: 600;
        line-height: 1;
    }

    .menu-item svg {
        width: 20px;
        height: 20px;
    }

    .menu-open {
        display: none;
    }

    /* Trigger Button Style */
    .menu-open-button {
        z-index: 2;
        transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
        transition-duration: 400ms;
        transform: scale(1.1, 1.1) translate3d(0, 0, 0);
        cursor: pointer;
        background: var(--primary);
        margin-bottom: 20px;
        /* Push it up slightly above the bar */
    }

    .menu-open-button:hover {
        transform: scale(1.2, 1.2) translate3d(0, 0, 0);
    }

    .menu-open:checked+.menu-open-button {
        transition-timing-function: linear;
        transition-duration: 200ms;
        transform: scale(0.9, 0.9) translate3d(0, 0, 0);
        margin-bottom: 20px;
    }

    /* Hamburger Lines */
    .hamburger {
        width: 25px;
        height: 3px;
        background: white;
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -12.5px;
        margin-top: -1.5px;
        transition: transform 200ms;
    }

    .hamburger-1 {
        transform: translate3d(0, -8px, 0);
    }

    .hamburger-2 {
        transform: translate3d(0, 0, 0);
    }

    .hamburger-3 {
        transform: translate3d(0, 8px, 0);
    }

    .menu-open:checked+.menu-open-button .hamburger-1 {
        transform: translate3d(0, 0, 0) rotate(45deg);
    }

    .menu-open:checked+.menu-open-button .hamburger-2 {
        transform: translate3d(0, 0, 0) scale(0.1, 1);
    }

    .menu-open:checked+.menu-open-button .hamburger-3 {
        transform: translate3d(0, 0, 0) rotate(-45deg);
    }

    /* Menu Label Text */
    .menu-label-text {
        position: absolute;
        bottom: -20px;
        font-size: 10px;
        font-weight: bold;
        color: var(--text-main);
        width: 100%;
        text-align: center;
        opacity: 1;
        transition: opacity 0.2s;
        pointer-events: none;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    /* Items Positioning (Semi-Circle Upwards) */
    .menu-item {
        margin-bottom: 20px;
        /* Match trigger */
    }

    .menu-item:hover {
        background: white;
        color: var(--primary);
    }

    /* Animations & Positions */
    /* Item 1 (Left-most) */
    .menu-item.item-1 {
        transition-duration: 180ms;
    }

    .menu-item.item-2 {
        transition-duration: 180ms;
    }

    .menu-item.item-3 {
        transition-duration: 180ms;
    }

    .menu-item.item-4 {
        transition-duration: 180ms;
    }

    .menu-item.item-5 {
        transition-duration: 180ms;
    }

    .menu-item.item-6 {
        transition-duration: 180ms;
    }

    .menu-item.item-7 {
        transition-duration: 180ms;
    }

    /* Open State Transforms - WIDER SPREAD (Radius ~150px) */

    /* Item 1: Home (Far Left) */
    .menu-open:checked+.menu-open-button+.item-1 {
        transform: translate3d(-145px, -20px, 0);
    }

    /* Item 2: About */
    .menu-open:checked+.menu-open-button+.item-1+.item-2 {
        transform: translate3d(-120px, -75px, 0);
    }

    /* Item 3: Services */
    .menu-open:checked+.menu-open-button+.item-1+.item-2+.item-3 {
        transform: translate3d(-65px, -120px, 0);
    }

    /* Item 4: Product (Center) */
    .menu-open:checked+.menu-open-button+.item-1+.item-2+.item-3+.item-4 {
        transform: translate3d(0, -145px, 0);
    }

    /* Item 5: Gallery */
    .menu-open:checked+.menu-open-button+.item-1+.item-2+.item-3+.item-4+.item-5 {
        transform: translate3d(65px, -120px, 0);
    }

    /* Item 6: Search */
    .menu-open:checked+.menu-open-button+.item-1+.item-2+.item-3+.item-4+.item-5+.item-6 {
        transform: translate3d(120px, -75px, 0);
    }

    /* Item 7: Quote (Far Right) */
    .menu-open:checked+.menu-open-button+.item-1+.item-2+.item-3+.item-4+.item-5+.item-6+.item-7 {
        transform: translate3d(145px, -20px, 0);
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}