.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    transition: all 0.4s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 95%;
    margin: 0 auto;
}

.header-logo {
    text-decoration: none;
    transition: color 0.4s ease;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.all-container {
    position: relative;
    display: block;
    font-family: Libre Baskerville, sans-serif;
    font-size: 25px;
    color: inherit;
    text-decoration: none;
    width: 200px;
    height: 50px;
    text-transform: uppercase;
}

.name-element {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: absolute;
    left: 0;
}

.first-name {
    top: 0;
}

.last-name {
    top: 25px;
    text-align: left;
}

.scrolled .first-name {
    left: 0;
    top: 0;
}

.scrolled .last-name {
    left: 65px;
    top: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-contact {
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.4s ease, opacity 0.3s ease;
}



.header-contact:hover {
    opacity: 0.7;
}

.custom-header[data-header-color="dark"] .header-logo,
.custom-header[data-header-color="dark"] .site-title,
.custom-header[data-header-color="dark"] .header-contact {
    color: #000;
}

.custom-header[data-header-color="light"] .header-logo,
.custom-header[data-header-color="light"] .site-title,
.custom-header[data-header-color="light"] .header-contact {
    color: #fff;
}

@media (max-width: 768px) {
    .custom-header {
        padding: 15px 20px;
    }
    
    .header-right {
        gap: 20px;
    }
    
    .header-contact {
        font-size: 0.85rem;
    }
    
    .site-title {
        font-size: 1.2rem;
    }

    .all-container {
        font-size: 16px;
        width: 140px;
        height: 34px;
    }

    .last-name {
        top: 16px;
    }

    .scrolled .last-name {
        left: 20px;
        top: 0;
    }
    
}

@media (max-width: 480px) {
    .all-container {
        font-size: 19px;
        width: 170px;
        height: 40px;
    }

    .last-name {
        top: 19px;
    }

    .scrolled .last-name {
        left: 50px;
        top: 0;
    }
}