.header {
    position: absolute;
    /* Changed from fixed */
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

.header.sticky {
    position: fixed;
    top: 0;
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.header-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    height: 100%;
    padding: 0 80px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.header.scrolled .header-intro {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.profile-container {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.profile-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.intro-content {
    max-width: 600px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.header-right {
    text-align: right;
}

.intro-content h1 {
    font-size: 56px;
    margin: 0 0 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.intro-description {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 30px;
    max-width: 600px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header h1 {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.12em;
}

.header-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 2px;
}

.header a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    transition: var(--transition);
}

.header a:hover {
    color: var(--accent);
}

.profile-compact {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--gradient);
    padding: 2px;
}

.profile-compact img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--gradient);
    padding: 2px;
}

.profile-pic img {
    margin-left: -10%;
    margin-top: -10%;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    object-fit: cover;
}

.header-nav {
    margin-left: auto;
}

.header-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--accent);
}

.header-nav a:hover::after,
.header-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .header-nav {
        width: 100%;
        overflow-x: auto;
    }

    .header-nav ul {
        gap: 20px;
        padding: 0 10px;
    }

    .header-nav a {
        white-space: nowrap;
        font-size: 12px;
    }
}