﻿
/* ========================================
                   HEADER STYLES - Unique Classes (hd-)
                ======================================== */
/* ========== Variables ========== */
:root {
    --hd-purple: #7c3aed;
    --hd-blue: #3b82f6;
    --hd-dark: #0f172a;
    --hd-gray: #64748b;
    --hd-light: #f1f5f9;
    --hd-white: #ffffff;
    --hd-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --hd-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --hd-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --hd-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ========== Container ========== */
.hd-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .hd-container {
        padding: 0 16px;
    }
}

/* ========== Main Header ========== */
.hd-main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--hd-white);
    transition: var(--hd-transition);
}

    .hd-main-header.hd-scrolled {
        box-shadow: var(--hd-shadow-md);
    }

/* ========== Top Bar ========== */
.hd-top-bar {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    padding: 10px 0;
    font-size: 13px;
}

.hd-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hd-top-left,
.hd-top-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hd-top-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--hd-gray);
    text-decoration: none;
    transition: var(--hd-transition);
}

    .hd-top-link:hover {
        color: var(--hd-purple);
    }

    .hd-top-link .hd-icon {
        flex-shrink: 0;
    }

/* Social Links */
.hd-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hd-social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hd-white);
    color: var(--hd-gray);
    transition: var(--hd-transition);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

    .hd-social-link:hover {
        background: var(--hd-purple);
        color: var(--hd-white);
        border-color: var(--hd-purple);
        transform: translateY(-2px);
    }

/* Trust Badge */
.hd-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--hd-white);
    border-radius: 20px;
    color: var(--hd-purple);
    font-weight: 600;
    border: 1px solid var(--hd-purple);
    animation: hdTrustPulse 2s ease-in-out infinite;
}

.hd-trust-icon {
    color: var(--hd-purple);
}

@keyframes hdTrustPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(124, 58, 237, 0);
    }
}

/* Mobile: Hide Top Bar */
@media (max-width: 768px) {
    .hd-top-bar {
        display: none;
    }
}

/* ========== Navigation Bar ========== */
.hd-nav-bar {
    background: var(--hd-white);
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hd-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* ========== Logo ========== */
.hd-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
}

.hd-logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
}

.hd-logo-circle {
    animation: hdLogoRotate 20s linear infinite;
}

.hd-logo-arrow {
    animation: hdLogoArrowBounce 2s ease-in-out infinite;
}

@keyframes hdLogoRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes hdLogoArrowBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.hd-logo-text {
    display: flex;
    flex-direction: column;
}

.hd-logo-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--hd-purple) 0%, var(--hd-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hd-logo-subtitle {
    font-size: 11px;
    color: var(--hd-gray);
    font-weight: 500;
}

/* ========== Navigation Menu ========== */
.hd-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.hd-nav-item {
    position: relative;
}

.hd-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: var(--hd-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: var(--hd-transition);
    position: relative;
}

    .hd-nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--hd-purple) 0%, var(--hd-blue) 100%);
        transform: translateX(-50%);
        transition: var(--hd-transition);
    }

    .hd-nav-link:hover {
        color: var(--hd-purple);
        background: rgba(124, 58, 237, 0.05);
    }

        .hd-nav-link:hover::before {
            width: 80%;
        }

.hd-dropdown-icon {
    transition: var(--hd-transition);
}

.hd-nav-item:hover .hd-dropdown-icon {
    transform: rotate(180deg);
}

/* ========== Mega Menu ========== */
.hd-mega-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--hd-white);
    border-radius: 16px;
    box-shadow: var(--hd-shadow-lg);
    padding: 32px;
    min-width: 800px;
    opacity: 0;
    visibility: hidden;
    transition: var(--hd-transition);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.hd-has-dropdown:hover .hd-mega-menu {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 8px);
}

.hd-mega-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.hd-mega-column {
    position: relative;
}

.hd-mega-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--hd-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(124, 58, 237, 0.1);
}

.hd-mega-icon {
    color: var(--hd-purple);
}

.hd-mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hd-mega-link {
    display: block;
    padding: 8px 12px;
    color: var(--hd-gray);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: var(--hd-transition);
    position: relative;
    padding-left: 24px;
}

    .hd-mega-link::before {
        content: '→';
        position: absolute;
        left: 8px;
        opacity: 0;
        transform: translateX(-8px);
        transition: var(--hd-transition);
        color: var(--hd-purple);
    }

    .hd-mega-link:hover {
        background: rgba(124, 58, 237, 0.05);
        color: var(--hd-purple);
        padding-left: 32px;
    }

        .hd-mega-link:hover::before {
            opacity: 1;
            transform: translateX(0);
        }

/* ========== Dropdown Menu (Simple) ========== */
.hd-dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    background: var(--hd-white);
    border-radius: 12px;
    box-shadow: var(--hd-shadow-lg);
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: var(--hd-transition);
    list-style: none;
    margin: 0;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.hd-has-dropdown:hover .hd-dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 8px);
}

.hd-dropdown-link {
    display: block;
    padding: 10px 16px;
    color: var(--hd-gray);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: var(--hd-transition);
}

    .hd-dropdown-link:hover {
        background: rgba(124, 58, 237, 0.05);
        color: var(--hd-purple);
    }

/* ========== CTA Button ========== */
.hd-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hd-cta-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--hd-purple) 0%, var(--hd-blue) 100%);
    color: var(--hd-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 50px;
    overflow: hidden;
    transition: var(--hd-transition);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

    .hd-cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
    }

.hd-cta-text {
    position: relative;
    z-index: 2;
}

.hd-cta-arrow {
    position: relative;
    z-index: 2;
    transition: var(--hd-transition);
}

.hd-cta-btn:hover .hd-cta-arrow {
    transform: translateX(4px);
}

.hd-cta-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.hd-cta-btn:active .hd-cta-ripple {
    animation: hdRippleEffect 0.6s ease-out;
}

@keyframes hdRippleEffect {
    to {
        transform: scale(2);
        opacity: 1;
    }
}

/* ========== Mobile Menu Toggle ========== */
.hd-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--hd-transition);
}

    .hd-mobile-toggle:hover {
        background: rgba(124, 58, 237, 0.05);
    }

.hd-hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--hd-dark);
    border-radius: 2px;
    transition: var(--hd-transition);
}

.hd-mobile-toggle.hd-active .hd-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.hd-mobile-toggle.hd-active .hd-hamburger-line:nth-child(2) {
    opacity: 0;
}

.hd-mobile-toggle.hd-active .hd-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* ========== Mobile Menu ========== */
.hd-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--hd-white);
    z-index: 1001;
    transition: var(--hd-transition);
    overflow-y: auto;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
}

    .hd-mobile-menu.hd-active {
        right: 0;
    }

.hd-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hd-mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--hd-purple) 0%, var(--hd-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hd-mobile-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--hd-dark);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--hd-transition);
}

    .hd-mobile-close:hover {
        background: rgba(124, 58, 237, 0.05);
        color: var(--hd-purple);
    }

.hd-mobile-content {
    padding: 24px;
}

.hd-mobile-nav {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
}

.hd-mobile-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hd-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    color: var(--hd-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: var(--hd-transition);
}

    .hd-mobile-link:hover {
        color: var(--hd-purple);
    }

.hd-mobile-arrow {
    transition: var(--hd-transition);
}

.hd-mobile-item.hd-active .hd-mobile-arrow {
    transform: rotate(180deg);
}

.hd-mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.hd-mobile-item.hd-active .hd-mobile-submenu {
    max-height: 1000px;
}

.hd-mobile-submenu-group {
    padding: 12px 0;
}

.hd-mobile-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: var(--hd-purple);
    margin-bottom: 8px;
}

.hd-mobile-sublink {
    display: block;
    padding: 8px 16px;
    color: var(--hd-gray);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: var(--hd-transition);
    margin-bottom: 4px;
}

    .hd-mobile-sublink:hover {
        background: rgba(124, 58, 237, 0.05);
        color: var(--hd-purple);
    }

.hd-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--hd-purple) 0%, var(--hd-blue) 100%);
    color: var(--hd-white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--hd-transition);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
    margin-bottom: 24px;
}

    .hd-mobile-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
    }

.hd-mobile-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hd-mobile-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.05);
    color: var(--hd-purple);
    transition: var(--hd-transition);
}

    .hd-mobile-social-link:hover {
        background: var(--hd-purple);
        color: var(--hd-white);
        transform: translateY(-2px);
    }

/* ========== Background Decorations ========== */
.hd-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.hd-deco-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    top: -100px;
    left: -50px;
    animation: hdDecoFloat1 8s ease-in-out infinite;
}

.hd-deco-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    top: 50%;
    right: -30px;
    animation: hdDecoFloat2 6s ease-in-out infinite;
}

@keyframes hdDecoFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

@keyframes hdDecoFloat2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-15px, 15px) rotate(180deg);
    }
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .hd-nav-menu {
        display: none;
    }

    .hd-mobile-toggle {
        display: flex;
    }

    .hd-cta-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .hd-mobile-menu {
        max-width: 100%;
    }

    .hd-logo-text {
        display: none;
    }
}

/* ========== Print Styles ========== */
@media print {
    .hd-main-header {
        position: static;
    }

    .hd-top-bar,
    .hd-mobile-menu,
    .hd-deco {
        display: none !important;
    }
}
/* ========== Logo Image ========== */
.hd-logo-img {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .hd-logo-img {
        height: 44px;
    }
}

@media (max-width: 480px) {
    .hd-logo-img {
        height: 38px;
    }
}
.hd-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.hd-logo-img {
    height: 52px;
    width: auto;
}

.hd-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hd-logo-name {
    font-family: 'Montserrat', Inter, Arial, sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0B0F19;
    line-height: 1;
}

.hd-logo-accent {
    color: #B8860B;
}

.hd-logo-tagline {
    font-family: Inter, Arial, sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1.8px;
    color: #6B7280;
}
/* Dark variant overrides */
.hd-logo--dark .hd-logo-name {
    color: #FFFFFF;
}

.hd-logo--dark .hd-logo-accent {
    color: #D4AF37;
}

.hd-logo--dark .hd-logo-tagline {
    color: #9CA3AF;
}



