@import url(design_system.css);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    height: 80px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary_color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

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

.logo-text a {
    font-size: 20px;
    font-weight: 700;
    color: var(--link_color);
    text-decoration: none;
    letter-spacing: -0.5px;
    line-height: 1;
    transition: color 0.3s ease;
}

.logo-text a:hover {
    color: var(--primary_color);
}

.job_position {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    position: relative;
    font-size: 16px;
    font-weight: 400;
    color: var(--link_color);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary_color);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary_color);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary_color);
}

nav ul li a.active::after {
    width: 100%;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--link_color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hamburger to X Animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    nav {
        padding: 0 20px;
        height: 70px;
    }

    .menu-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        gap: 30px !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        z-index: 1000;
        padding: 40px;
    }

    nav ul.active {
        right: 0;
    }

    nav ul li a {
        font-size: 20px;
        font-weight: 500;
    }

    /* Overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(4px);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }
}