/* Header & Hero Section */
header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    background: #1e293b;
    display: block;
    object-fit: cover;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 1.4rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Header Links Navigation */
.header-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    position: static;
    top: auto;
    z-index: auto;
    padding: 0.5rem 12px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: blur(6px);
    transition: background 240ms ease, box-shadow 240ms ease, padding 240ms ease, transform 240ms ease;
}

.header-links.compact {
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.12);
    padding: 0.35rem 12px;
    transform: translateY(0);
}

.header-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: transform 200ms cubic-bezier(.2, .9, .2, 1), box-shadow 200ms ease, background 200ms ease;
    transform-origin: center bottom;
    display: inline-block;
    will-change: transform;
}

.header-link:hover,
.header-link:focus {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    transform: translateY(-4px) rotateX(4deg) scale(1.02);
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.12);
    outline: none;
}

.header-link:active {
    transform: translateY(-2px) rotateX(2deg) scale(1.01);
}

@media (max-width: 768px) {
    .header-links {
        padding: 0.4rem 8px;
    }

    .header-link {
        padding: 8px 10px;
        transition: none;
        transform: none;
        box-shadow: none;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
}
