.highlight {
    background: linear-gradient(
        120deg,
        rgba(74, 222, 128, 0.55) 0%,
        rgba(74, 222, 128, 0.25) 100%
    );
    padding: 0 4px;
    border-radius: 4px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    color: inherit;
}

.highlight-header {
    background: linear-gradient(
        120deg,
        rgba(74, 222, 128, 0.6) 0%,
        rgba(74, 222, 128, 0.3) 100%
    );
    padding: 0 6px;
    border-radius: 6px;
    display: inline-block;
}

.sticky-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background-color: transparent;

    transition:
        background-color 0.25s ease,
        border-bottom-color 0.25s ease,
        box-shadow 0.25s ease;
    border-bottom: 1px solid transparent;
}

.sticky-wrapper.scrolled {
    background-color: rgba(246, 247, 249, 0.92);
    border-bottom-color: rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.25);
}

@media (prefers-color-scheme: dark) {
    .sticky-wrapper.scrolled {
        background-color: rgba(18, 18, 18, 0.82);
        border-bottom-color: rgba(255, 255, 255, 0.06);
        box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.75);
    }
}

.sticky-wrapper.scrolled .header-container {
    height: 70px;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition:
        all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        color 0.25s ease-out,
        text-shadow 0.25s ease-out;
}

.sticky-wrapper.scrolled h1 {
    font-size: 1.5rem;
}

.header-container.centered-mode h1 {
    left: 50%;
    transform: translate(-50%, -50%);
}

h1.header-active {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-glow);
    transition: color 0s !important;
}

.dot {
    color: var(--neon-green);
    display: inline-block;
    animation: pulse-glow 3s infinite ease-in-out;
    transition: color 0.5s ease-out, text-shadow 0.5s ease-out;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 8px var(--neon-glow);
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        text-shadow: 0 0 4px var(--neon-glow);
        transform: scale(1.05);
    }
}

h1.header-active .dot {
    color: var(--text-main) !important;
    text-shadow: none !important;
    animation: none !important;
}

h1.header-active.fade-out .dot {
    animation: fadeOutDot 1s ease-out forwards;
}

@keyframes fadeOutDot {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* SOCIAL ICONS */
.socials-header {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.4s ease;
}

.socials-header.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(0, -20px);
}

.social-icon {
    font-size: 1.4rem;
    color: var(--text-main);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (hover: hover) {
    .social-icon:hover {
        color: var(--neon-green);
        transform: scale(1.1);
        filter: drop-shadow(0 0 5px var(--neon-glow));
    }
}

@media (hover: none) {
    .social-icon:active {
        color: var(--neon-green);
        transform: scale(1.1);
    }
}

/* FOOTER */
.site-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
    border-top: none;
    text-align: center;
}

.site-footer h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* EXPAND BUTTON */
.expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 0;
    width: 3.5rem;
    height: 3.5rem;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.09s,
                background-color 0.4s ease, color 0.2s ease, border-color 0.3s ease, box-shadow 0.4s ease;
    position: relative;
    font-family: var(--font-display);
    font-weight: 700;
    outline: none;
}

.expand-btn i {
    font-size: 1.3rem;
    line-height: 1;             
    width: 1.3rem;              
    height: 1.3rem;
    flex-shrink: 0;
    display: inline-flex;     
    align-items: center;
    justify-content: center;

    transition: transform 0.26s ease 0.06s, color 0.12s ease;
    transform: translateX(0);
}

.btn-text {
    opacity: 0;
    white-space: nowrap;
    width: auto;
    max-width: 0;
    overflow: hidden;
    margin-left: 0;
    transition: opacity 0.12s ease, max-width 0.28s ease, margin-left 0.28s ease;
    will-change: opacity, max-width;
    pointer-events: none;
    visibility: visible;
}

@media (hover: hover) {
    .expand-btn:hover {
        width: 10rem;
        background-color: var(--neon-green);
        color: #000;
        border-color: var(--neon-green);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 0 12px rgba(74,222,128,0.12);
    }
    
    .expand-btn:hover .btn-text {
        opacity: 1;
        max-width: 240px;
        margin-left: 0.8rem;
        color: #000;
    }

    .expand-btn:hover i {
        color: #000;
    }

    .expand-btn:focus-visible {
        outline: 3px solid rgba(74,222,128,0.18);
        outline-offset: 3px;
    }
}

@media (hover: none) {
    .expand-btn {
        width: 3.5rem !important;
    }
    
    .expand-btn .btn-text {
        display: none !important;
    }
    
    .expand-btn:active {
        background-color: var(--neon-green);
        color: #000;
        border-color: var(--neon-green);
        transform: scale(0.95);
    }
}

/* BIO TOGGLES */
.mobile-bio {
    display: none;
}

.desktop-bio {
    display: block;
}

@media (max-width: 600px) {
    .mobile-bio {
        display: block;
    }
    
    .desktop-bio {
        display: none;
    }
}
