/* --- Header / Navigation --- */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 60px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-box:hover {
    transform: scale(1.02);
}

.logo-box .devcod-icon {
    width: 38px;
    height: 38px;
    transition: filter 0.3s ease, transform 0.3s ease;
    animation: devcodIconMotion 8s infinite ease-in-out;
    border: none !important;
    background: transparent !important;
    outline: none !important;
}

.logo-box .devcod-icon path {
    stroke: var(--purple-light);
    stroke-width: 16px;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: transparent;
    stroke-dasharray: 4000;
    stroke-dashoffset: 4000;
    animation: devcodPathDraw 8s infinite ease-in-out;
    transition: stroke 0.3s ease;
}

.logo-box:hover .devcod-icon path {
    stroke: var(--cyan-light);
    fill: var(--cyan-light) !important;
}

.logo-box .devcod-logo-name {
    width: 115px;
    height: auto;
    fill: var(--text-primary);
    transition: fill 0.3s ease;
    border: none !important;
    background: transparent !important;
    outline: none !important;
}

.logo-box:hover .devcod-logo-name {
    fill: var(--cyan-light);
}

/* SVG Path Drawing animation replicating React's Framer Motion behavior */
@keyframes devcodPathDraw {
    0%, 100% {
        stroke-dashoffset: 4000;
        fill: transparent;
    }
    18.75% {
        stroke-dashoffset: 0;
        fill: transparent;
    }
    25%, 37.5% {
        stroke-dashoffset: 0;
        fill: var(--purple-light);
    }
    43.75% {
        stroke-dashoffset: 4000;
        fill: transparent;
    }
    56.25% {
        stroke-dashoffset: 0;
        fill: transparent;
    }
    62.5%, 75% {
        stroke-dashoffset: 0;
        fill: var(--purple-light);
    }
    81.25%, 93.75% {
        stroke-dashoffset: 0;
        fill: var(--purple-light);
    }
}

/* SVG Rotation, Zoom, and Blur animation replicating React's Framer Motion behavior */
@keyframes devcodIconMotion {
    0%, 75% {
        transform: rotate(0deg) scale(1);
        filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
    }
    81.25% {
        transform: rotate(180deg) scale(1.15);
        filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.75)) blur(3px);
    }
    87.5% {
        transform: rotate(360deg) scale(1);
        filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
    }
}

.nav-cta-btn {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cyan-light);
    border: 1px solid rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-cta-btn:hover {
    background: var(--cyan-neon);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    border-color: var(--cyan-light);
    transform: translateY(-1px);
}

.docs-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    background: transparent;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.docs-nav-btn:hover {
    border-color: var(--purple-light);
    color: var(--purple-light);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
    background: rgba(168, 85, 247, 0.05);
}

.docs-nav-btn svg {
    transition: transform 0.3s ease;
}

.docs-nav-btn:hover svg {
    transform: rotate(-10deg) scale(1.1);
}

