/* ===== Enhanced Professional Navigation Header - TPD Unique Classes ===== */

/* Base Styles */
* {
    box-sizing: border-box;
}

/* Navigation Container */
.tpd-nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 11, 13, 0.95);
    backdrop-filter: saturate(130%) blur(12px);
    -webkit-backdrop-filter: saturate(130%) blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, background;
}

.tpd-nav-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    opacity: 0.6;
}

.tpd-nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 24px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 3rem;
}

/* Brand Section - Left Side */
.tpd-brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 101;
    flex-shrink: 0;
}

.tpd-brand-logo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.tpd-brand-logo img {
    height: 42px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
}

.tpd-brand-logo:hover img {
    transform: scale(1.05) rotate(1deg);
    filter: drop-shadow(0 4px 16px rgba(59, 130, 246, 0.5));
}

.tpd-brand-text {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tpd-brand-text:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.4));
}

/* Desktop Navigation Links - Right Side */
.tpd-nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.tpd-nav-link {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 10px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
    margin-right: .5rem;
}

.tpd-nav-link::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.tpd-nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s ease;
}

.tpd-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.tpd-nav-link:hover::before {
    width: 70%;
}

.tpd-nav-link:hover::after {
    left: 100%;
}

.tpd-nav-link.tpd-is-active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.tpd-nav-link.tpd-is-active::before {
    width: 100%;
    background: #06b6d4;
}

/* Enhanced Desktop Dropdown Styles */
.tpd-nav-dropdown {
    position: relative;
    display: inline-block;
}

.tpd-nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 20px;
}

.tpd-dropdown-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 14px;
    height: 14px;
}

.tpd-nav-dropdown.tpd-active .tpd-dropdown-arrow {
    transform: rotate(180deg);
}

/* Enhanced Dropdown Content */
.tpd-dropdown-content {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 12px);
    min-width: 280px;
    background: rgba(11, 11, 13, 0.98);
    backdrop-filter: saturate(130%) blur(16px);
    -webkit-backdrop-filter: saturate(130%) blur(16px);
    border-radius: 16px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 8px 32px rgba(59, 130, 246, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    z-index: 1000;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dropdown arrow pointer */
.tpd-dropdown-content::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: rgba(11, 11, 13, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-right: none;
    backdrop-filter: saturate(130%) blur(16px);
    -webkit-backdrop-filter: saturate(130%) blur(16px);
}

/* Show dropdown on active */
.tpd-nav-dropdown.tpd-active .tpd-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Enhanced Dropdown Items */
.tpd-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin: 2px 0;
}

/* Dropdown item icons */
.tpd-dropdown-icon {
    font-size: 16px;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tpd-dropdown-item:hover .tpd-dropdown-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Hover effects */
.tpd-dropdown-item:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

/* Shimmer effect on hover */
.tpd-dropdown-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tpd-dropdown-item:hover::after {
    left: 100%;
}

/* Enhanced Services Dropdown with Multi-level Support */
.tpd-services-dropdown {
    position: relative;
    display: inline-block;
    height: 100%;
}

.tpd-services-dropdown-content {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 12px);
    min-width: 320px;
    background: rgba(11, 11, 13, 0.98);
    backdrop-filter: saturate(130%) blur(16px);
    -webkit-backdrop-filter: saturate(130%) blur(16px);
    border-radius: 16px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 8px 32px rgba(59, 130, 246, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    z-index: 1000;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 2rem;
}

.tpd-services-dropdown.tpd-active .tpd-services-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.tpd-dropdown-group {
    position: relative;
    width: 100%;
}

.tpd-dropdown-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    margin: 2px 0;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
}

.tpd-dropdown-text {
    flex: 1;
    text-align: left;
}

.tpd-submenu-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.tpd-dropdown-parent.tpd-active .tpd-submenu-arrow {
    transform: rotate(90deg);
}

.tpd-dropdown-parent:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

.tpd-submenu-content {
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    min-width: 280px;
    background: rgba(11, 11, 13, 0.98);
    backdrop-filter: saturate(130%) blur(16px);
    -webkit-backdrop-filter: saturate(130%) blur(16px);
    border-radius: 14px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 8px 32px rgba(59, 130, 246, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    z-index: 1001;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.tpd-dropdown-parent.tpd-active .tpd-submenu-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.tpd-submenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin: 2px 0;
    white-space: nowrap;
}

.tpd-submenu-icon {
    font-size: 14px;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.tpd-submenu-item:hover .tpd-submenu-icon {
    opacity: 1;
    transform: scale(1.1);
}

.tpd-submenu-item:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
    transform: translateX(4px);
}

.tpd-submenu-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s ease;
}

.tpd-submenu-item:hover::after {
    left: 100%;
}

/* Button Styles */
.tpd-btn {
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1d1da6;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tpd-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tpd-btn:hover::before {
    left: 100%;
}

.tpd-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.tpd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #2563eb, #0891b2);
}

.tpd-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.tpd-btn-arrow {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tpd-btn:hover .tpd-btn-arrow {
    transform: translateX(3px);
}

/* ===== MOBILE CYCLONE STYLES - RIGHT SIDE DRAWER ===== */

/* Mobile Menu Button */
.tpd-cyclone-mobile-btn {
    display: none;
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(11, 11, 13, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.tpd-cyclone-mobile-btn:hover {
    transform: scale(1.05);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.tpd-cyclone-mobile-btn.tpd-active {
    transform: scale(0.9) rotate(180deg);
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.3);
}

/* Menu Icons */
.tpd-cyclone-icon {
    position: absolute;
    top: 68%;
    left: 33%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.tpd-cyclone-bars {
    position: relative;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    margin-top: .8rem;
    margin-right: 15px !important;
}

.tpd-cyclone-bars::before,
.tpd-cyclone-bars::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.tpd-cyclone-bars::before {
    top: -8px;
}

.tpd-cyclone-bars::after {
    top: 8px;
}

/* Active state transformations */
.tpd-cyclone-mobile-btn.tpd-active .tpd-cyclone-bars {
    background: transparent;
    transform: rotate(45deg);
}

.tpd-cyclone-mobile-btn.tpd-active .tpd-cyclone-bars::before {
    top: 0;
    transform: rotate(90deg);
    background: blue;
}

.tpd-cyclone-mobile-btn.tpd-active .tpd-cyclone-bars::after {
    top: 0;
    background: blue;
}

/* RIGHT SIDE DRAWER - Main Change */
.tpd-cyclone-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Changed from left: -100% to right: -100% */
    width: 320px;
    height: 100vh;
    z-index: 1001;
    background: rgba(11, 11, 13, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1px solid rgba(255, 255, 255, 0.1); /* Changed from border-right to border-left */
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3); /* Changed shadow direction */
}

.tpd-cyclone-menu-overlay.tpd-active {
    right: 0; /* Changed from left: 0 to right: 0 */
}

/* Backdrop for drawer */
.tpd-cyclone-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tpd-cyclone-backdrop.tpd-active {
    opacity: 1;
    visibility: visible;
}

/* Drawer Menu Content */
.tpd-cyclone-menu-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 80px 20px 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Brand Header */
.tpd-cyclone-brand-header {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateX(50px); /* Changed from translateX(-50px) to translateX(50px) for right slide */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0.1s;
    display: flex;
    justify-content: center;
}

.tpd-cyclone-menu-overlay.tpd-active .tpd-cyclone-brand-header {
    opacity: 1;
    transform: translateX(0);
}

.tpd-cyclone-brand-logo {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    border-radius: 8px;
    filter: drop-shadow(0 4px 15px rgba(59, 130, 246, 0.4));
}

.tpd-cyclone-brand-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tpd-cyclone-brand-subtitle {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

/* Navigation Items */
.tpd-cyclone-nav-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Main Navigation Item */
.tpd-cyclone-nav-item {
    opacity: 0;
    transform: translateX(80px); /* Changed from translateX(-80px) to translateX(80px) */
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.tpd-cyclone-menu-overlay.tpd-active .tpd-cyclone-nav-item {
    opacity: 1;
    transform: translateX(0);
}

.tpd-cyclone-nav-item:nth-child(1) { transition-delay: 0.2s; }
.tpd-cyclone-nav-item:nth-child(2) { transition-delay: 0.3s; }
.tpd-cyclone-nav-item:nth-child(3) { transition-delay: 0.4s; }
.tpd-cyclone-nav-item:nth-child(4) { transition-delay: 0.5s; }
.tpd-cyclone-nav-item:nth-child(5) { transition-delay: 0.6s; }
.tpd-cyclone-nav-item:nth-child(6) { transition-delay: 0.7s; }

.tpd-cyclone-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tpd-cyclone-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.tpd-cyclone-nav-link:hover::before {
    left: 100%;
}

.tpd-cyclone-nav-link:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(-4px); /* Changed direction for right drawer */
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.tpd-cyclone-link-icon {
    font-size: 16px;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    flex-shrink: 0;
}

.tpd-cyclone-nav-link:hover .tpd-cyclone-link-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* ENHANCED MOBILE DROPDOWN STYLES */
.tpd-cyclone-dropdown {
    width: 100%;
}

.tpd-cyclone-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #9ca3af;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tpd-cyclone-dropdown-toggle.tpd-active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(-4px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

/* FIXED MOBILE DROPDOWN CONTENT */
.tpd-cyclone-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin-top: 12px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(-20px);
}

.tpd-cyclone-dropdown.tpd-active .tpd-cyclone-dropdown-content {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

.tpd-cyclone-dropdown-arrow {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tpd-cyclone-dropdown-toggle.tpd-active .tpd-cyclone-dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Dropdown Items */
.tpd-cyclone-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px 14px 35px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    margin-left: 15px;
    opacity: 0;
    transform: translateX(30px);
}

.tpd-cyclone-dropdown.tpd-active .tpd-cyclone-dropdown-item {
    opacity: 1;
    transform: translateX(0);
    margin-top: 8px;
}

.tpd-cyclone-dropdown-item:nth-child(1) { transition-delay: 0.1s; }
.tpd-cyclone-dropdown-item:nth-child(2) { transition-delay: 0.2s; }
.tpd-cyclone-dropdown-item:nth-child(3) { transition-delay: 0.3s; }
.tpd-cyclone-dropdown-item:nth-child(4) { transition-delay: 0.4s; }

.tpd-cyclone-dropdown-item:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(-8px) scale(1.01);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
}

.tpd-cyclone-item-icon {
    font-size: 16px;
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    flex-shrink: 0;
}

.tpd-cyclone-dropdown-item:hover .tpd-cyclone-item-icon {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
}

/* FIXED MOBILE SERVICES DROPDOWN WITH WORKING SUBMENUS */
.tpd-cyclone-services-dropdown {
    width: 100%;
}

.tpd-cyclone-service-group {
    margin-bottom: 8px;
}

.tpd-cyclone-service-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px 14px 35px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #9ca3af;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    margin-left: 15px;
    opacity: 0;
    transform: translateX(30px);
}

.tpd-cyclone-services-dropdown.tpd-active .tpd-cyclone-service-parent {
    opacity: 1;
    transform: translateX(0);
    margin-top: 8px;
}

.tpd-cyclone-service-parent.tpd-active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(-8px) scale(1.01);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
}

.tpd-cyclone-service-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.tpd-cyclone-service-arrow {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tpd-cyclone-service-parent.tpd-active .tpd-cyclone-service-arrow {
    transform: rotate(180deg);
}

/* FIXED SUBMENU CONTENT */
.tpd-cyclone-submenu-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    margin-top: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(-15px);
}

.tpd-cyclone-service-parent.tpd-active + .tpd-cyclone-submenu-content {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

.tpd-cyclone-submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 50px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    margin-left: 25px;
    opacity: 0;
    transform: translateX(40px);
}

.tpd-cyclone-service-parent.tpd-active + .tpd-cyclone-submenu-content .tpd-cyclone-submenu-item {
    opacity: 1;
    transform: translateX(0);
    margin-top: 8px;
}

.tpd-cyclone-submenu-item:nth-child(1) { transition-delay: 0.1s; }
.tpd-cyclone-submenu-item:nth-child(2) { transition-delay: 0.2s; }
.tpd-cyclone-submenu-item:nth-child(3) { transition-delay: 0.3s; }

.tpd-cyclone-submenu-item:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.15);
    transform: translateX(-6px) scale(1.01);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.tpd-cyclone-subitem-icon {
    font-size: 14px;
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    flex-shrink: 0;
}

.tpd-cyclone-submenu-item:hover .tpd-cyclone-subitem-icon {
    opacity: 1;
    transform: scale(1.1) rotate(3deg);
}
.othergroup{
    margin-bottom: 20px;
}
/* CTA Section */
.tpd-cyclone-cta-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateX(50px); /* Changed from translateX(-50px) */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0.8s;
}

.tpd-cyclone-menu-overlay.tpd-active .tpd-cyclone-cta-section {
    opacity: 1;
    transform: translateX(0);
    margin-bottom: 4rem;
}

.tpd-cyclone-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    cursor: pointer;
}

.tpd-cyclone-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tpd-cyclone-cta-btn:hover::before {
    left: 100%;
}

.tpd-cyclone-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.tpd-cyclone-cta-icon {
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.tpd-cyclone-cta-arrow {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.tpd-cyclone-cta-btn:hover .tpd-cyclone-cta-icon {
    transform: scale(1.1);
}

.tpd-cyclone-cta-btn:hover .tpd-cyclone-cta-arrow {
    transform: translateX(3px);
}

/* Scrollbar */
.tpd-cyclone-menu-content::-webkit-scrollbar {
    width: 4px;
}

.tpd-cyclone-menu-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.tpd-cyclone-menu-content::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.tpd-cyclone-menu-content::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
    .tpd-nav-container {
        gap: 1.5rem;
    }

    .tpd-nav-links {
        gap: 6px;
    }

    .tpd-nav-link {
        font-size: 14px;
        padding: 8px 14px;
    }

    .tpd-nav-link-dropdown {
        padding: 8px 16px;
    }

    .tpd-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* Improve desktop dropdown positioning for tablets */
    .tpd-dropdown-content {
        left: 0;
        transform: translateX(0) translateY(-8px) scale(0.95);
        min-width: 260px;
    }

    .tpd-dropdown-content::before {
        left: 32px;
        transform: translateX(0) rotate(45deg);
    }

    .tpd-nav-dropdown.tpd-active .tpd-dropdown-content {
        transform: translateX(0) translateY(0) scale(1);
    }

    .tpd-services-dropdown-content {
        left: 0;
        transform: translateX(0) translateY(-8px) scale(0.95);
        min-width: 300px;
    }

    .tpd-services-dropdown.tpd-active .tpd-services-dropdown-content {
        transform: translateX(0) translateY(0) scale(1);
    }

    .tpd-submenu-content {
        left: calc(100% + 4px);
        min-width: 260px;
    }
}

@media (max-width: 768px) {
    .tpd-nav-container {
        justify-content: space-between;
        gap: 1rem;
        padding: 12px 20px;
    }

    .tpd-nav-links {
        display: none;
    }

    .tpd-cyclone-mobile-btn {
        display: flex;
    }

    .tpd-brand-text {
        font-size: 18px;
    }

    .tpd-brand-logo img {
        height: 45px;
    }
}

@media (max-width: 640px) {
    .tpd-nav-container {
        padding: 10px 16px;
        gap: 0.5rem;
    }

    .tpd-brand-text {
        font-size: 16px;
    }

    .tpd-brand-logo img {
        height: 45px;
    }

    .tpd-brand-section {
        gap: 8px;
    }

   

    .tpd-cyclone-menu-overlay {
        width: 300px;
    }

    .tpd-cyclone-menu-content {
        padding: 40px 16px 30px;
    }
}

@media (max-width: 480px) {
    .tpd-nav-container {
        padding: 15px 12px;
    }

    .tpd-brand-text {
        font-size: 14px;
    }

    .tpd-brand-logo img {
        height: 45px;
    }

    

    .tpd-cyclone-menu-overlay {
        width: 280px;
    }

    .tpd-cyclone-menu-content {
        padding: 40px 12px 25px;
    }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */

/* Body scroll lock when menu is open */
body.tpd-cyclone-menu-open {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

/* Enhanced focus states for accessibility */
.tpd-nav-link:focus,
.tpd-cyclone-nav-link:focus,
.tpd-cyclone-dropdown-toggle:focus,
.tpd-cyclone-dropdown-item:focus,
.tpd-cyclone-cta-btn:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

.tpd-cyclone-mobile-btn:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 4px;
}

.tpd-dropdown-parent:focus,
.tpd-submenu-item:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

.tpd-cyclone-service-parent:focus,
.tpd-cyclone-submenu-item:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tpd-nav-wrapper {
        background: rgba(0, 0, 0, 0.9);
        border-bottom-color: rgba(255, 255, 255, 0.3);
    }

    .tpd-cyclone-menu-overlay {
        background: rgba(0, 0, 0, 0.95);
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .tpd-nav-wrapper {
        background: rgba(11, 11, 13, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .tpd-cyclone-menu-overlay {
        background: radial-gradient(circle at center, rgba(11, 11, 13, 0.98), rgba(0, 0, 0, 0.99));
    }
}

/* Print styles */
@media print {
    .tpd-nav-wrapper,
    .tpd-cyclone-menu-overlay {
        display: none;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .tpd-cyclone-menu-overlay,
    .tpd-cyclone-nav-item,
    .tpd-cyclone-brand-header,
    .tpd-cyclone-cta-section {
        transition-duration: 0.2s;
    }

    .tpd-cyclone-mobile-btn.tpd-active {
        transform: scale(0.9);
    }
}


/* ===== MOBILE DROPDOWN FIXES ===== */

/* Fix mobile dropdown content visibility */
.tpd-cyclone-dropdown-content {
    display: block;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin-top: 12px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(-20px);
}

.tpd-cyclone-dropdown.tpd-active .tpd-cyclone-dropdown-content {
    max-height: 700px;
    opacity: 1;
    transform: translateY(0);
}

/* Fix mobile service submenu visibility */
.tpd-cyclone-submenu-content {
    display: block;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    margin-top: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(-15px);
    height: auto;
}

.tpd-cyclone-service-parent.tpd-active ~ .tpd-cyclone-submenu-content {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

/* Add close button styles */
.tpd-cyclone-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(220, 38, 38, 0.1);
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1003;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpd-cyclone-close-btn:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.5);
    transform: scale(1.1);
}

.tpd-cyclone-close-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.tpd-cyclone-close-icon::before,
.tpd-cyclone-close-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: blue;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.tpd-cyclone-close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.tpd-cyclone-close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
/* ===== CRITICAL MOBILE DROPDOWN FIXES ===== */

/* Fix 1: Remove duplicate arrow in mobile menu button */
/* .tpd-cyclone-mobile-btn {
    display: none;
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(11, 11, 13, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
    align-items: center;
    justify-content: center;
} */

/* .tpd-cyclone-icon {
    position: relative;
    width: 24px;
    height: 24px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.tpd-cyclone-bars {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
} */
/* 
.tpd-cyclone-bars::before,
.tpd-cyclone-bars::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.tpd-cyclone-bars::before {
    top: -8px;
}

.tpd-cyclone-bars::after {
    top: 8px;
}

.tpd-cyclone-mobile-btn.tpd-active .tpd-cyclone-bars {
    background: transparent;
}

.tpd-cyclone-mobile-btn.tpd-active .tpd-cyclone-bars::before {
    top: 0;
    transform: rotate(45deg);
    background: #3b82f6;
}

.tpd-cyclone-mobile-btn.tpd-active .tpd-cyclone-bars::after {
    top: 0;
    transform: rotate(-45deg);
    background: #3b82f6;
} */

/* Fix 2: Ensure dropdown content is fully visible */
.tpd-cyclone-dropdown-content {
    display: block !important;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin-top: 12px;
    max-height: 0;
    opacity: 0;
    overflow: visible !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(-20px);
}

.tpd-cyclone-dropdown.tpd-active .tpd-cyclone-dropdown-content {
    max-height: 1000px !important;
    opacity: 1;
    transform: translateY(0);
    overflow: visible !important;
}

/* Fix 3: Fix Services dropdown submenu visibility */
.tpd-cyclone-services-dropdown-content {
    display: block !important;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin-top: 12px;
    max-height: 0;
    opacity: 0;
    overflow: visible !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(-20px);
}

.tpd-cyclone-services-dropdown.tpd-active .tpd-cyclone-services-dropdown-content {
    max-height: 1500px !important;
    opacity: 1;
    transform: translateY(0);
    overflow: visible !important;
}

/* Fix 4: Service submenu content visibility */
.tpd-cyclone-submenu-content {
    display: block !important;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    margin-top: 8px;
    max-height: 0;
    opacity: 0;
    overflow: visible !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(-15px);
}

.tpd-cyclone-service-parent.tpd-active ~ .tpd-cyclone-submenu-content {
    max-height: 800px !important;
    opacity: 1;
    transform: translateY(0);
    overflow: visible !important;
}

/* Fix 5: Ensure menu content scrolls properly */
.tpd-cyclone-menu-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 50px 20px 60px;
    display: flex;
    flex-direction: column;
    overflow-y: auto !important;
    overflow-x: hidden;
}

/* Fix 6: Service group proper spacing */
.tpd-cyclone-service-group {
    margin-bottom: 12px;
    width: 100%;
}

/* Fix 7: Ensure all dropdown items are visible */
.tpd-cyclone-dropdown-item,
.tpd-cyclone-submenu-item {
    display: flex !important;
    visibility: visible !important;
}

.tpd-cyclone-dropdown.tpd-active .tpd-cyclone-dropdown-item,
.tpd-cyclone-service-parent.tpd-active ~ .tpd-cyclone-submenu-content .tpd-cyclone-submenu-item {
    opacity: 1 !important;
    transform: translateX(0) !important;
    margin-top: 8px;
}

/* Fix 8: Adjust menu overlay height for scrolling */
.tpd-cyclone-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    z-index: 1001;
    background: rgba(11, 11, 13, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

/* Fix 9: Remove extra margin that might be causing arrow issue */
.tpd-cyclone-bars {
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix 10: Dropdown arrow positioning fix */
.tpd-cyclone-dropdown-arrow,
.tpd-cyclone-service-arrow {
    margin-left: auto;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .tpd-cyclone-mobile-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure enough padding for scrollable content */
    .tpd-cyclone-menu-content {
        padding-bottom: 100px;
    }
}

@media (max-width: 640px) {
    .tpd-cyclone-menu-overlay {
        width: 300px;
    }
}

@media (max-width: 480px) {
    .tpd-cyclone-menu-overlay {
        width: 90%;
        max-width: 320px;
    }
}
