/* ==================================================
   NAVBAR
   ================================================== */
#header-menu {
    width: 100%;
    background: rgb(0, 0, 0);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-right: auto;
}

.header-logo img {
    width: 110px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Nav list */
#header-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#header-menu .nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#header-menu .nav-menu .hideOnMobile {
    min-width: 120px;
}

/* Base link style for all navbar <a> */
#header-menu .nav-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 1rem;
    text-decoration: none;
    font-weight: 700;
    color: rgb(255, 255, 255);
    border-radius: 999px;
    transition: background-color 0.25s ease,
                color 0.25s ease,
                transform 0.25s ease;
}

#header-menu .nav-menu li.actual > a::after {
    content: "";
    position: absolute;
    left: 1rem;                  /* matches the link's horizontal padding */
    right: 1rem;
    bottom: 4px;
    height: 2px;
    background: rgba(123, 92, 255, 0.8);
    border-radius: 999px;
    transition: opacity 0.3s ease;
}

#header-menu .nav-menu li.actual > a:hover::after {
    opacity: 0;
}

/* Special style for navbar Contact CTA (more specific selector) */
#header-menu .nav-menu a.contact-btn {
    width: auto;
    min-height: 44px;
    padding: 0 1.25rem;
    margin: 10px 20px;
    line-height: 1.2;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    transition: background-color 0.25s ease,
                color 0.25s ease,
                transform 0.25s ease,
                border-color 0.25s ease;
}

/* Hover for normal links */
#header-menu .nav-menu a:not(.contact-btn):hover {
    color: white;
    background-color: rgba(121, 121, 121, 0.18);
    border: 1px solid var(--text-purpl);
    transform: translateY(-3px);
}

/* Hover for Contact CTA in navbar */
#header-menu .nav-menu a.contact-btn:hover {
    color: white;
    background-color: rgb(95, 20, 170);
    border-color: rgb(95, 20, 170);
    transform: translateY(-1px);
}

/* Scrolled state (optional – adjust to your scroll.js logic) */
#header-menu.navbar-scrolled {
    background-color: rgb(0, 0, 0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

#header-menu.navbar-scrolled .nav-menu a {
    color: rgb(255, 255, 255);
}

#header-menu.navbar-scrolled .nav-menu a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.12);
}

/* Active link example */
#header-menu.navbar-scrolled .nav-menu a.active {
    background-color: rgb(255, 0, 0);
}

/* Mobile menu buttons */
.menu-toggle,
.close-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #f9fafb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.25s ease,
                color 0.25s ease,
                transform 0.25s ease;
}

.menu-toggle:hover,
.close-menu:hover {
    background-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

#header-menu.navbar-scrolled .menu-toggle {
    color: #f9fafb;
}

/* ==================================================
   SIDEBAR OVERLAY
   ================================================== */
.sidebar {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: flex-end;
    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sidebar-panel {
    width: min(360px, 50vw);
    min-height: 100dvh;
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    padding: 1rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.sidebar.active .sidebar-panel {
    transform: translateX(0);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.sidebar-links li {
    width: 100%;
}

.sidebar-links li.actual > a{
    text-decoration: underline;
    text-decoration-color: rgba(123, 92, 255, 0.8);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    transition: background-color 0.25s ease,
                color 0.25s ease,
                text-decoration-color 0.25s ease;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    text-decoration: none;
    font-weight: 700;
    color: rgb(255, 255, 255);
    box-sizing: border-box;
    border-radius: 999px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.sidebar-panel a.active {
    background-color: rgb(0, 0, 0);
}


.sidebar-links .contact-btn {
    margin-top: 0.5rem;
    justify-content: center;
    border: 1px solid var(--text-purpl);
    border-radius: 24px;
    border-color: var(--text-purpl);
    color: #fff;
    
}



.close-menu {
    align-self: flex-end;
}

/* --------------------------------------------------
   FOOTER
   -------------------------------------------------- */

footer {
    background-color: var(--main-color);
    color: var(--text-main);
    padding: 0 1.5rem;
}

footer h1{
    margin: 0;
    font-size: 1.2rem;
}

footer .box-two {
    align-items: start;
    gap: 3rem;
    padding: 3.5rem 2rem;
}

footer .brand {
    margin: 0 0 1.5rem;
    font-family: var(--text-font-main);
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer a {
    color: var(--text-main);
    font-family: var(--text-font-second);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover,
footer a:focus-visible {
    color: var(--text-purpl);
}

/* socials */
footer .socials {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    width: 100%;
}

footer .socials a {
    display: inline-flex;
}

footer .socials svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* link columns */
footer .box-right {
    width: auto;                    /* defends against any width leak */
    flex: none;
    margin-left: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content; /* one track per <div>, no phantom 4th */
    grid-template-columns: none;
    justify-content: end;           /* hug the right edge */
    gap: 2.5rem;
    align-items: start;
}

footer .box-right ul {
    display: grid;
    gap: 1.35rem;
}

footer .box-right ul li:first-child a {
    color: var(--text-purpl);
    font-weight: 600;
}

/* empty placeholder links keep a clickable area */
footer .box-right li a:empty {
    display: inline-block;
    min-width: 60px;
    min-height: 1.2em;
}

footer .box-left{
    width: none;
    flex: none;
}
/* ==================================================
   RESPONSIVE
   ================================================== */
.hideOnPc {
    display: none;
}

@media (max-width: 1024px) {
    .hideOnMobile {
        display: none;
    }

    .hideOnPc {
        display: block;
    }

    #header-menu .navbar {
        padding: 1rem 1.25rem;
    }

    .sidebar-panel {
        width: min(360px, 50vw);
    }

    footer .box-two{
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem 1rem;
    }

    footer .box-right{
        margin-left: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 420px) {
    .sidebar-panel {
        width: 100vw;
        padding: 1rem;
        box-sizing: border-box;
    }

    #header-menu .navbar {
        padding: 0.9rem 1rem;
    }

    .header-logo span {
        font-size: 1.15rem;
    }

    footer{
        padding: 0 1rem;
    }

    footer .box-right{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 5rem;
    }

    footer .socials{
        gap: 1.25rem;
    }

    footer p{
        font-size: 0.85rem;
    }
}