/* header.css — Softscale header styles (rounded glass bar + spacing) */

/* Variables (override as needed) */
:root {
    --soft-bg: #0b0f19;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --accent-from: #6C63FF;
    --accent-to: #B86BFF;
    --container-max-width: 1280px;
    --container-padding: 24px;
    /* equals px-6 */
    --header-radius: 1rem;
    /* rounded-2xl look */
}

/* container same as max-w-7xl px-6 */
.site-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    box-sizing: border-box;
}

/* Sticky header positioning and admin-bar awareness */
.sticky-header {
    position: sticky;
    top: 1rem;
    /* matches top-4 */
    z-index: 60;
}

body.admin-bar .sticky-header {
    top: calc(1rem + 32px);
    /* push down when WP admin bar present */
}

/* Header inner glass card */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 18px;
    border-radius: var(--header-radius);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

/* Logo / brand */
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

header .custom-logo-link img {
    max-width: 155px;
    width: 155px;
}

.brand-logo {
    height: 18px;
    width: auto;
    display: block;
}

/* Sparkle icon */
.sparkle-icon {
    height: 24px;
    width: 24px;
    color: #4dd0e1;
    display: block;
}

.sparkle-wrap {
    position: relative;
    display: inline-block;
    margin-right: 6px;
}

.sparkle-dot {
    position: absolute;
    right: -6px;
    top: -6px;
    height: 8px;
    width: 8px;
    border-radius: 999px;
    background: #d946ef;
    animation: ping 1.6s cubic-bezier(.4, 0, .2, 1) infinite;
    opacity: 0.95;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    75% {
        transform: scale(1.8);
        opacity: 0;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Nav list */
.nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.nav-list li {
    display: inline-block;
}

.nav-list li a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 0;
    font-size: 15px;
    line-height: 1;
    transition: color .18s ease;
}

.nav-list li a:hover,
.nav-list li.current-menu-item a {
    color: #fff;
}

/* Buttons (pills) */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    line-height: 1;
    transition: all .25s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* outline (Client Login) */
.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* primary (Start a Project) with subtle gradient border and glow */
.btn-primary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffffff;
    padding-left: 18px;
    padding-right: 18px;
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(108, 99, 255, 0.06), rgba(184, 107, 255, 0.06));
    z-index: -1;
    transition: opacity .25s ease;
    opacity: 0;
    filter: blur(10px);
}

.btn-primary:hover::before {
    opacity: 1;
}

/* small icon sizing inside button */
.btn-icon {
    height: 16px;
    width: 16px;
    display: inline-block;
    color: currentColor;
}

/* Adjust spacing so header looks larger & airy (matches screenshot) */
@media (min-width: 1024px) {
    .header-inner {
        padding: 18px 22px;
        gap: 36px;
    }

    .brand-logo {
        height: 32px;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .header-inner {
        padding: 12px;
    }

    .nav-list {
        display: none;
    }

    .btn-outline {
        display: none;
    }

    /* hide client login on small screens (like Next.js) */
}

/* small accessibility & fallback */
.header-inner a {
    -webkit-tap-highlight-color: transparent;
}

/* Ensure WP admin bar doesn't cover header visual border */
body.admin-bar .header-inner {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}


/* Mobile adjustments */
@media (max-width: 767px) {
.header .brand-link img {
    max-width: 155px;
    width: 100px;
    height: 36px;
    margin-bottom: 5px;
    margin-top: 5px;
}
.header .brand-link .brand-logo {
    max-width: 155px !important;
    width: 100px !important;
    height: 36px !important;
    margin-bottom: 5px !important;
    margin-top: 5px !important;
}
header .custom-logo-link img {
    max-width: 155px !important;
    width: 100px !important;
    height: 36px !important;
    margin-bottom: 5px !important;
    margin-top: 5px !important;
}


    .flex {
        gap: 0; /* Set gap to 0 on mobile */
    }
    .flex.items-center {
        gap: 0 !important; /* Use !important to override other styles */
    }
    .header-inner {
        padding: 8px 12px; /* compact padding */
        gap: 12px;
        justify-content: space-between;
    }

    /* Logo half the desktop size but maintain height */
    .brand-logo {
        height: 32px; /* same as desktop logo height */
        width: auto; /* maintain aspect ratio */
    }

    /* Sparkle icon 2.5x larger */
    .sparkle-icon {
        height: 30px; /* 2.5x the original 12px size */
        width: 23px; /* 2.5x the original size */
    }

    /* Align sparkle and logo to the left side of the header */
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px; /* Increase gap for spacing */
    }

    /* Start a Project button, adjust to match sparkle size */
    .btn-primary {
        padding: 5px 15px !important; /* adjusted padding */
        font-size: 14px !important;
        height: 45px; /* same height as sparkle */
        align-items: center;
        display: flex;
        justify-content: center;
    }

    /* Start a Project button icon resizing */
    .btn-primary .btn-icon {
        height: 16px !important;
        width: 16px !important;
    }

    /* Hide client login button */
    .btn-outline {
        display: none !important;
    }

    /* Nav list hidden */
    .nav-list {
        display: none !important;
    }
}






//nav menus for mobile mode



#mobile-menu {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}
#mobile-menu.flex {
  opacity: 1;
  transform: translateY(0);
}
#mobile-menu ul li a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
#mobile-menu ul li a:hover {
  color: #fff;
}

