/* New Navbar Design */
html {
    scroll-behavior: smooth;
}

@property --_gradient-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes gradient-angle-rotate {
    0% {
        --_gradient-angle: 0deg;
    }
    100% {
        --_gradient-angle: 360deg;
    }
}

/* Style the scrollbar track (the box) */
::-webkit-scrollbar {
    width: 10px;
}

/* Make the scrollbar track transparent */
::-webkit-scrollbar-track {
    background: transparent;
}

/* Style the draggable scrollbar thumb */
::-webkit-scrollbar-thumb {
    background: darkgray;
    border-radius: 5px;
}

/* Optional: Add a hover effect */
::-webkit-scrollbar-thumb:hover {
    background: gray;
}

/* Hide scrollbar for inner elements */
.inner-scroll-element {
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overflow: -moz-scrollbars-none;
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari, Opera) */
.inner-scroll-element::-webkit-scrollbar {
    display: none;
}

/* Target any element with hide-scroll="true" */
[hide-scroll="true"] {
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

[hide-scroll="true"]::-webkit-scrollbar {
    display: none;
}

/* ============================================================
   CENTRALIZED MENU / NAVBAR DESIGN (MOBILE & DESKTOP)
   ============================================================ */

/* Theme Toggle Button */
.rc-theme-btn {
    background: rgba(168, 127, 255, 0.1);
    border: 1px solid rgba(168, 127, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A87FFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rc-theme-btn:hover {
    background: rgba(168, 127, 255, 0.25);
    color: #fff;
    transform: scale(1.05);
}

.rc-theme-btn svg {
    width: 18px;
    height: 18px;
}

/* --- DESKTOP HEADER --- */
.rci-desktop-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 60px;
    background: rgba(5, 5, 13, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rci-dh-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.rci-dh-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.rci-dh-link {
    color: #f8f8fc;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.rci-dh-link:hover {
    color: #A87FFF;
}

/* Start a project hover */
a.rci-dh-link[style*="border-radius: 99px"]:hover {
    background: rgba(168, 127, 255, 0.25) !important;
    border-color: rgba(168, 127, 255, 0.6) !important;
    box-shadow: 0 4px 16px rgba(168, 127, 255, 0.2) !important;
}

.rci-dh-dropdown {
    position: relative;
    padding: 10px 0;
}

.rci-dh-dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(15, 15, 23, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.rci-dh-dropdown:hover .rci-dh-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.rci-dh-dropdown-content a {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 24px;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    transition: background 0.3s, color 0.3s;
}

.rci-dh-dropdown-content a:hover {
    background: rgba(168, 127, 255, 0.1);
    color: #fff;
}

.rci-dh-right {
    min-width: 150px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.rci-industries-dropdown {
    position: relative;
}

.rci-industries-dropdown .rci-dh-dropdown-content {
    min-width: 210px;
}

/* Ensure translate element respects the desktop navbar layout */
#desktop-translate-wrapper #google_translate_element {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    display: block !important;
}

/* --- LIGHT & DARK DESKTOP NAVBAR THEMES --- */
html[data-theme="light"] .rci-desktop-header {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .rci-dh-link {
    color: #334155 !important;
}

html[data-theme="light"] .rci-dh-link:hover {
    color: #A87FFF !important;
}

html[data-theme="light"] .rci-dh-dropdown-content {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .rci-dh-dropdown-content a {
    color: #334155 !important;
}

html[data-theme="light"] .rci-dh-dropdown-content a:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
}

html[data-theme="dark"] .rci-desktop-header {
    background: rgba(8, 9, 18, 0.88) !important;
}

/* --- DESKTOP HEADER SCROLL EFFECTS --- */
.rci-desktop-header.header-scrolled {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .rci-desktop-header.header-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid #f1f5f9;
}

html[data-theme="light"] .rci-desktop-header.header-scrolled .rci-dh-link {
    color: #0f172a !important;
}

html[data-theme="light"] .rci-desktop-header.header-scrolled .rci-dh-link:hover {
    color: #3f6ffb !important;
}

html[data-theme="dark"] .rci-desktop-header.header-scrolled {
    background: rgba(10, 10, 18, 0.98) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .rci-desktop-header.header-scrolled .rci-dh-link {
    color: #f8fafc !important;
}

/* --- MOBILE RESPONSIVE TRANSITIONS --- */
@media (min-width: 768px) {
    .rc-mobile-header,
    .rc-mobile-overlay,
    .rc-mobile-drawer {
        display: none !important;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 0 !important;
    }

    .rci-desktop-header,
    .rd-navbar_wrapper,
    .rd-navbar,
    .rd-navbar_overlay,
    .brand-logo-wrapper {
        display: none !important;
    }

    /* --- MOBILE HEADER --- */
    .rc-mobile-header {
        position: fixed;
        left: 18px;
        right: 18px;
        top: 15px;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 7px 10px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.55);
        font-family: Outfit, Arial, sans-serif;
    }

    html[data-theme="dark"] .rc-mobile-header {
        background: rgba(10, 12, 24, 0.82);
        border-color: rgba(255, 255, 255, 0.12);
    }

    .rc-mobile-brand,
    .rc-mobile-drawer-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: #101427;
        font-weight: 700;
        font-size: 16px;
        letter-spacing: 0.01em;
    }

    .rc-mobile-brand img,
    .rc-mobile-drawer-logo img {
        width: 52px;
        height: auto;
        display: block;
    }

    .rc-mobile-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .rc-mobile-theme,
    .rc-mobile-toggle,
    .rc-mobile-close {
        border: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rc-mobile-theme {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: #f5f7ff;
        color: #0e1223;
        box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
    }

    .rc-mobile-theme svg {
        width: 24px;
        height: 24px;
    }

    .rc-mobile-toggle {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: linear-gradient(135deg, #7f61ff, #16b7ff);
        box-shadow: 0 14px 30px rgba(47, 119, 255, 0.35);
        flex-direction: column;
        gap: 5px;
    }

    .rc-mobile-toggle span {
        width: 21px;
        height: 2px;
        background: #fff;
        border-radius: 99px;
        transition: 0.25s;
    }

    .rc-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .rc-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .rc-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* --- MOBILE DRAWER & OVERLAY --- */
    .rc-mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 9997;
        background: rgba(5, 7, 18, 0.54);
        opacity: 0;
        pointer-events: none;
        transition: 0.25s;
        backdrop-filter: blur(4px);
    }

    .rc-mobile-drawer {
        position: fixed;
        z-index: 9999999;
        left: 14px;
        right: 14px;
        top: 96px;
        max-height: calc(100vh - 112px);
        overflow: auto;
        padding: 16px;
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 28px 80px rgba(2, 6, 23, 0.28);
        transform: translateY(-14px) scale(0.98);
        opacity: 0;
        pointer-events: none;
        transition: 0.26s ease;
        font-family: Outfit, Arial, sans-serif;
        border: 1px solid rgba(255, 255, 255, 0.7);
    }

    html[data-theme="dark"] .rc-mobile-drawer {
        background: rgba(9, 11, 24, 0.96);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .rc-menu-open .rc-mobile-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .rc-menu-open .rc-mobile-drawer {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .rc-mobile-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    .rc-mobile-close {
        width: 40px;
        height: 40px;
        border-radius: 15px;
        background: #eef3ff;
        color: #0d1326;
        font-size: 26px;
        line-height: 1;
    }

    .rc-mobile-link,
    .rc-mobile-group summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 15px 16px;
        margin-top: 8px;
        border-radius: 20px;
        background: #f6f8ff;
        color: #11152a;
        text-decoration: none;
        list-style: none;
    }

    .rc-mobile-link span,
    .rc-mobile-group summary span {
        font-size: 18px;
        font-weight: 700;
    }

    .rc-mobile-link small,
    .rc-mobile-group summary small {
        font-size: 12px;
        font-weight: 500;
        color: #64748b;
    }

    .rc-mobile-group {
        margin: 0;
    }

    .rc-mobile-group summary::-webkit-details-marker {
        display: none;
    }

    .rc-mobile-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px 4px 2px;
    }

    .rc-mobile-grid a {
        padding: 12px 10px;
        border-radius: 16px;
        background: linear-gradient(180deg, #fff, #f5f8ff);
        box-shadow: inset 0 0 0 1px rgba(58, 116, 255, 0.08);
        text-decoration: none;
        color: #25304c;
        font-size: 14px;
        font-weight: 600;
    }

    .rc-mobile-cta {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 14px;
        padding: 16px 18px;
        border-radius: 20px;
        background: linear-gradient(135deg, #101427, #3a2f73);
        color: #fff;
        text-decoration: none;
        font-weight: 800;
        font-size: 15px;
        box-shadow: 0 16px 34px rgba(17, 24, 39, 0.25);
    }

    html[data-theme="dark"] .rc-mobile-brand,
    html[data-theme="dark"] .rc-mobile-drawer-logo,
    html[data-theme="dark"] .rc-mobile-link,
    html[data-theme="dark"] .rc-mobile-group summary {
        color: #f8fbff;
    }

    html[data-theme="dark"] .rc-mobile-theme,
    html[data-theme="dark"] .rc-mobile-close,
    html[data-theme="dark"] .rc-mobile-link,
    html[data-theme="dark"] .rc-mobile-group summary,
    html[data-theme="dark"] .rc-mobile-grid a {
        background: rgba(255, 255, 255, 0.08);
        color: #f8fbff;
    }

    html[data-theme="dark"] .rc-mobile-grid a {
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }

    .rc-menu-open {
        overflow: hidden;
    }
}
