/* Unified Header & Footer Styles - One Future Foundation */

:root {
    --primary-blue: #1846C7;
    --primary-blue-rgb: 24, 70, 199;
    --secondary-blue: #3b82f6;
    --primary-green: #14B86A;
    --primary-green-rgb: 20, 184, 106;
    --secondary-green: #34d399;
    --accent-orange: #F59E0B;
    --neutral-dark: #0F172A;
    --neutral-medium: #334155;
    --neutral-light: #F8FAFC;
}

/* --- Floating Capsule Navigation --- */
.new-navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.new-navbar.scrolled {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(241, 245, 249, 1) !important;
    border: none !important;
    border-bottom: 1px solid rgba(241, 245, 249, 1) !important;
}

.new-navbar .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.new-navbar.scrolled .nav-container {
    padding: 8px 24px;
}

.new-navbar .brand img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.new-navbar.scrolled .brand img {
    height: 44px;
}

.new-navbar .nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.new-navbar .nav-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--neutral-dark);
    margin: 6px auto;
    transition: all 0.3s ease;
}

.new-navbar .nav-menu {
    display: flex;
}

.new-navbar .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    align-items: center;
}

.new-navbar .nav-link,
.new-navbar .submenu-toggle {
    color: var(--neutral-medium);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
}

.new-navbar .nav-link:hover,
.new-navbar .submenu-toggle:hover {
    color: var(--primary-blue);
    background: rgba(24, 70, 199, 0.05);
}

.new-navbar .nav-link.active {
    color: var(--primary-blue) !important;
    background: transparent !important;
}

.new-navbar .nav-item {
    position: relative;
}

/* Floating Submenu */
.new-navbar .submenu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    list-style: none;
    z-index: 1050;
}

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

.new-navbar .submenu a {
    display: block;
    padding: 8px 16px;
    color: var(--neutral-medium);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.new-navbar .submenu a:hover {
    background: rgba(24, 70, 199, 0.05);
    color: var(--primary-blue);
    transform: translateX(4px);
}

/* --- Mobile Navigation Adjustments --- */
@media (max-width: 991.98px) {
    .new-navbar {
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    }

    .new-navbar .nav-toggle {
        display: block;
    }

    .new-navbar .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: white;
        height: calc(100vh - 76px);
        width: 100%;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        padding: 2rem;
    }

    .new-navbar .nav-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .new-navbar .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .new-navbar .nav-link,
    .new-navbar .submenu-toggle {
        font-size: 1.1rem;
        padding: 12px 24px;
        width: 100%;
        text-align: center;
        background: rgba(241, 245, 249, 0.5);
    }

    .new-navbar .submenu,
    .new-navbar .nav-item:hover .submenu,
    .new-navbar .nav-item.open .submenu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none !important;
        box-shadow: none !important;
        border: none !important;
        background: rgba(24, 70, 199, 0.03) !important;
        margin-top: 8px !important;
        left: auto !important;
        width: 100% !important;
        padding: 6px !important;
    }

    .new-navbar .nav-item.open > .submenu {
        display: block !important;
    }

    .new-navbar .submenu a {
        text-align: center !important;
        padding: 10px 16px !important;
        transform: none !important;
    }
    
    .nav-open {
        overflow: hidden;
    }
}

/* --- Premium Footer --- */
footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
    color: rgba(226, 232, 240, 0.8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

footer h3, footer h4 {
    color: white !important;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
}

footer a {
    color: rgba(226, 232, 240, 0.7) !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

footer a:hover {
    color: var(--primary-green) !important;
    transform: translateX(4px);
}

/* --- Premium Digital Reach Meter --- */
.visitor-counter-section {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 1.5rem;
    display: inline-block;
    width: 100%;
}

.digital-reach-meter {
    position: relative;
    width: 100%;
    max-width: 290px;
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(24, 70, 199, 0.12) 0%, rgba(20, 184, 106, 0.12) 50%, rgba(24, 70, 199, 0.12) 100%);
    background-size: 300% 300%;
    animation: gradientShift 20s ease infinite;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.digital-reach-meter:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.digital-reach-meter:hover .drm-ring-fill {
    filter: drop-shadow(0 0 8px rgba(20, 184, 106, 1));
}

.digital-reach-meter:hover .drm-counter-wrapper {
    transform: scale(1.03);
}

.digital-reach-meter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 30%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.03) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg) translate(-100%, -100%);
    transition: transform 0.8s ease;
    pointer-events: none;
    z-index: 1;
}

.digital-reach-meter:hover::before {
    transform: rotate(30deg) translate(100%, 100%);
}

.drm-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.drm-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(20, 184, 106, 0.3);
    border-radius: 50%;
    animation: floatParticle 10s infinite linear;
}

@keyframes floatParticle {
    0% { transform: translateY(110%) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-10%) translateX(30px); opacity: 0; }
}

.drm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.drm-live-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
}

.drm-live-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #14B86A;
    letter-spacing: 0.8px;
}

.drm-pulse {
    width: 6px;
    height: 6px;
    background-color: #14B86A;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(20, 184, 106, 0.4);
    animation: pulseIndicator 2s infinite;
}

@keyframes pulseIndicator {
    0% { box-shadow: 0 0 0 0 rgba(20, 184, 106, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(20, 184, 106, 0); }
    100% { box-shadow: 0 0 0 0 rgba(20, 184, 106, 0); }
}

.drm-counter-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drm-progress-container {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drm-progress-ring {
    transform: rotate(-90deg);
    width: 56px;
    height: 56px;
}

.drm-ring-bg {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 4;
    fill: none;
}

.drm-ring-fill {
    stroke: #14B86A;
    stroke-width: 4;
    stroke-linecap: round;
    fill: none;
    stroke-dasharray: 150.8; /* 2 * PI * 24 (radius is 24) */
    stroke-dashoffset: 150.8;
    transition: stroke-dashoffset 1.8s cubic-bezier(0.22, 1, 0.36, 1);
    filter: drop-shadow(0 0 4px rgba(20, 184, 106, 0.5));
}

.drm-progress-icon {
    position: absolute;
    color: #14B86A;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 6px rgba(20, 184, 106, 0.4);
}

.drm-number-container {
    display: flex;
    align-items: center;
}

.drm-digit-col {
    display: inline-block;
    height: 40px;
    overflow: hidden;
    position: relative;
    width: 20px;
    text-align: center;
}

.drm-digit-comma {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 30px;
    color: #ffffff;
    line-height: 40px;
    width: 10px;
    display: inline-block;
    text-align: center;
    opacity: 0.9;
}

.drm-digit-strip {
    display: flex;
    flex-direction: column;
    height: 400px; /* 10 digits * 40px */
    transform: translateY(0);
    transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.drm-digit-val {
    height: 40px;
    line-height: 40px;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 30px;
    letter-spacing: 1px;
    background: linear-gradient(180deg, #FFFFFF 0%, #14B86A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(20, 184, 106, 0.3));
}

.drm-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    letter-spacing: 0.3px;
}

.drm-today-reach {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.drm-today-reach .drm-highlight {
    color: #14B86A;
    font-weight: 800;
    text-shadow: 0 0 6px rgba(20, 184, 106, 0.3);
}


.footer-map-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon-circle i {
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon-circle svg {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

.social-icon-circle:hover {
    background: var(--primary-blue);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(24, 70, 199, 0.3);
    border-color: transparent;
}

/* --- Sticky Side Buttons --- */
.sticky-side-container {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1045;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    pointer-events: none;
}
.sticky-side-btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: white !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    border: none;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    box-shadow: -4px 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}
.sticky-side-btn.btn-quick-help {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}
.sticky-side-btn.btn-ai-ready {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}
.sticky-side-btn:hover {
    transform: translateX(-6px);
    box-shadow: -6px 6px 20px rgba(0, 0, 0, 0.2);
    padding-right: 18px;
}
.sticky-side-btn i {
    transform: rotate(90deg);
    font-size: 1rem;
}

/* --- Quick Help Modal Styling --- */
.quick-help-item {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.quick-help-item:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.quick-help-item:hover .icon-wrap {
    transform: scale(1.1);
}
.quick-help-item .icon-wrap {
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .sticky-side-container {
        gap: 8px;
        top: 60%;
    }
    .sticky-side-btn {
        padding: 12px 8px;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}
