﻿
:root {
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: 20px;
    --dock-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --ink: #0f172a;
    --teal: #00D1C1;
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Container */
.dock-nav {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 9999;
    padding: 0 16px;
    pointer-events: none; /* Allows clicks to pass through the empty space */
}

/* The Glass Bar */
.dock-glass {
    pointer-events: auto; /* RE-ENABLE clicks for the bar */
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    height: 62px;
    padding: 8px 12px 8px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    box-shadow: var(--dock-shadow);
    transition: all 0.4s ease;
    position: relative;
    z-index: 20; /* Ensure glass is above the dropdown */
}

/* Scroll compacting */
.dock-nav.scrolled .dock-glass {
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin-top:-15px  ;
}

/* Brand */
.dock-brand {
    display: flex;
    align-items: center;
    gap: 12px;
 
    color: var(--ink);
}

.dock-logo {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dock-title {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
}

.dt-main {
    font-weight: 900;
    font-size: clamp(0.5rem, 7vw, 1.3rem);
    letter-spacing: -0.02em;
    color: #004F6E;
  /*  text-shadow: 1px 1px 1px #000,0 0 1em rgba(0, 0, 0, 0.12), 0 0 0.2em rgba(0, 0, 0, 0.12);*/
}

.dt-sub {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Desktop Links */
.dock-links {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 4px;
    background: rgba(0,0,0,0.03);
    border-radius: 100px;
}

    .dock-links a {
        text-decoration: none;
        color: #475569;
        font-weight: 600;
        font-size: 14px;
        padding: 8px 15px;
        border-radius: 100px;
        transition: all 0.3s var(--ease-elastic);
        display: block;
    }

        .dock-links a:hover {
            background: #fff;
            color: var(--ink);
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            transform: scale(1.05);
        }

/* Actions & Button */
.dock-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}





/* Mobile Toggle - FIXED */
.dock-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: none;
    color: var(--ink);
    cursor: pointer;
    padding: 8px; /* Bigger hit area */
    border-radius: 50%;
    transition: background 0.2s;
}

    .dock-toggle:active {
        background: rgba(0,0,0,0.05);
    }

/* Mobile Menu - FIXED */
.dock-mobile {
    pointer-events: auto; /* CRITICAL FIX: Re-enable clicks */
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, visibility 0.35s ease;
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 10;
}

    .dock-mobile.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) scale(1);
    }

.dm-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

    .dm-links a {
        text-decoration: none;
        color: var(--ink);
        font-weight: 600;
        font-size: 16px;
        padding: 14px;
        border-radius: 12px;
        background: #f8fafc; /* Slight bg to make hit area obvious */
           opacity: 0;
    transform: translateY(-10px);
    transition: transform 0.35s ease, opacity 0.35s ease;
    }
/* Stagger fade-in when menu opens */
.dock-mobile.active .dm-links a {
    opacity: 1;
    transform: translateY(0);
}

/* Pay Now button wrapper */
.dock-mobile .dm-link-bt a {
    opacity: 0;
    transform: translateY(-10px);
    transition: transform 0.35s ease, opacity 0.35s ease 0.35s; /* delay starts after links */
}

/* Animate Pay Now button when menu opens */
.dock-mobile.active .dm-link-bt a {
 
}
.dock-mobile.active .dm-links a:nth-child(1) {
    transition-delay: 0.05s;
}

.dock-mobile.active .dm-links a:nth-child(2) {
    transition-delay: 0.10s;
}

.dock-mobile.active .dm-links a:nth-child(3) {
    transition-delay: 0.15s;
}

.dock-mobile.active .dm-links a:nth-child(4) {
    transition-delay: 0.20s;
}

.dock-mobile.active .dm-links a:nth-child(5) {
    transition-delay: 0.25s;
}
.dock-mobile.active .dm-links a:nth-child(6) {
    transition-delay: 0.30s;
}

.dock-mobile.active .dm-links a:nth-child(7) {
    transition-delay: 0.35s;
}

.dock-mobile.active .dm-links a:nth-child(8) {
    transition-delay: 0.40s;
}

/* Pay Now button appears last */
.dock-mobile.active .dm-link-bt a {
    transition-delay: 0.50s;
       opacity: 1;
    transform: translateY(0);
}

.dm-cta {
    background: #0099D6 !important;
    color: #000 !important;
    font-weight: 700;
    margin-top: 8px;
}

/* --- Desktop Current Page Highlight --- */

/* Apply the same premium pill style as hover, but slightly less intense scale */
.dock-links a.is-current {
    background: #0099D6;
    color: #000; /* #0f172a */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transform: scale(1.03);
}

    /* Ensure current page link still scales up slightly on hover */
    .dock-links a.is-current:hover {
        transform: scale(1.05);
    }



/* Give the mobile link a strong background highlight */
.dm-links a.is-current {
    background: #0099D6 !important;
    color: #000 !important;
    font-weight: 700;
}
/* Responsive Breakpoint */
@media (max-width: 900px) {
    .dock-links {
        display: none;
    }
    .dock-actions a {
        display: none !important ;
    }
    .dock-title {
        display: flex; /* already flex */
        flex-direction: column; /* stack vertically */
        align-items: center; /* center horizontally */
        text-align: center; /* center text inside spans */
        width: auto; /* do NOT make full width */
    }

    .dock-brand {
      
        justify-content: center; /* center the whole brand (logo + title) */
        width: 100%; /* container can be full width safely */
    }

    .dock-toggle {
        display: block;
    }
    /* Show button */
    .dock-glass {
        padding-right: 12px;
    }
}
/* === Animated Desktop Dropdown === */
/* ======================================================
   Desktop Dropdown – Stable Hover + Mobile-like Animation
   ====================================================== */

.dock-dropdown {
    position: relative;
}

    /* Invisible hover bridge (PREVENTS flicker) */
    .dock-dropdown::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 18px;
    }

/* Dropdown trigger */
.dock-dropbtn {
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 100px;
    color: #475569;
    cursor: pointer;
    transition: all 0.25s var(--ease-elastic);
}

    .dock-dropbtn:hover {
        background: #fff;
        color: var(--ink);
        transform: scale(1.05);
    }

/* Dropdown panel */
.dock-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: 14px;
    transform: translateX(-50%) translateY(-10px) scale(0.95);
    transform-origin: top center;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 22px;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    border: 1px solid rgba(0,0,0,0.06);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s ease;
}

    /* KEEP MENU OPEN (hover OR click) */
    .dock-dropdown:hover .dock-dropdown-menu,
    .dock-dropdown-menu:hover,
    .dock-dropdown.open .dock-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0) scale(1);
    }

    /* Dropdown links */
    .dock-dropdown-menu a {
        display: block;
        padding: 12px 14px;
        border-radius: 14px;
        text-decoration: none;
        color: var(--ink);
        font-weight: 600;
        font-size: 14px;
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity 0.35s ease, transform 0.35s ease, background 0.25s ease;
    }

    /* Animate links in */
    .dock-dropdown:hover .dock-dropdown-menu a,
    .dock-dropdown-menu:hover a,
    .dock-dropdown.open .dock-dropdown-menu a {
        opacity: 1;
        transform: translateY(0);
    }

        /* Stagger animation (matches mobile menu feel) */
        .dock-dropdown:hover .dock-dropdown-menu a:nth-child(1),
        .dock-dropdown.open .dock-dropdown-menu a:nth-child(1) {
            transition-delay: 0.05s;
        }

        .dock-dropdown:hover .dock-dropdown-menu a:nth-child(2),
        .dock-dropdown.open .dock-dropdown-menu a:nth-child(2) {
            transition-delay: 0.10s;
        }

        .dock-dropdown:hover .dock-dropdown-menu a:nth-child(3),
        .dock-dropdown.open .dock-dropdown-menu a:nth-child(3) {
            transition-delay: 0.15s;
        }

    /* Hover interaction */
    .dock-dropdown-menu a:hover {
        background: #f1f5f9;
        transform: scale(1.03);
    }

