/* ===== PROFESSIONAL HEADER STYLES ===== */

.mystical-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    z-index: 1500;
    border-bottom: 1px solid rgba(177, 0, 0, 0.12);
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    height: 60px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

/* ===== CLEAN LOGO ===== */
.mystical-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.logo-symbol {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-rune {
    font-size: 1.3rem;
    color: #B10000;
    transition: all 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #000000;
    letter-spacing: 0.5px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.mystical-logo:hover .logo-text {
    color: #B10000;
}

/* ===== CLEAN MENU ICON ===== */
.menu-icon {
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1300;
    flex-shrink: 0;
}

.menu-line {
    width: 22px;
    height: 2px;
    background: #000000;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.menu-icon:hover .menu-line {
    background: #B10000;
}

/* Ensure close icon is clearly visible when active */
.menu-icon.active .menu-line {
    background: #B10000;
}

.menu-icon.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-icon.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-icon.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== CLEAN NAVIGATION ===== */
.mystical-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1100;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    pointer-events: none;
    display: flex;
  
    justify-content: center;
}

.mystical-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-content {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 60px 2rem 40px 2rem;
    min-height: 100dvh;
    flex-shrink: 0;
}

@media (max-width: 768px) {
  .mystical-nav {
    align-items: center;
  }

  .nav-content {
    min-height: 100dvh;
    padding: 40px 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.mystical-nav::-webkit-scrollbar {
    width: 10px;
}

.mystical-nav::-webkit-scrollbar-track {
    background: rgba(177, 0, 0, 0.08);
}

.mystical-nav::-webkit-scrollbar-thumb {
    background: rgba(177, 0, 0, 0.4);
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.mystical-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(177, 0, 0, 0.6);
}

/* Firefox scrollbar */
.mystical-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(177, 0, 0, 0.4) rgba(177, 0, 0, 0.08);
}

.nav-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
    display: block;
    padding: 1rem 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #B10000;
    border-bottom-color: #B10000;
}

/* ===== MYSTICAL CURSOR FOLLOWERS ===== */
.cursor-follower {
    position: absolute;
    pointer-events: none;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform;
}

.mystical-nav:hover .cursor-follower {
    opacity: 1;
}

.follower-ancient-rune {
    width: 12px;
    height: 12px;
    color: #B10000;
    font-size: 10px;

    font-weight: 300;
}

.follower-crystal-shard {
    width: 6px;
    height: 10px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%,
        #B10000 50%,
        rgba(177, 0, 0, 0.25) 100%);
    clip-path: polygon(50% 0%, 100% 30%, 80% 100%, 20% 100%, 0% 30%);
}

.follower-mystic-orb {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(0, 0, 0, 0.8), 
        #B10000, 
        rgba(177, 0, 0, 0.12));

    border: 1px solid rgba(177, 0, 0, 0.12);
}

.follower-spell-circle {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(177, 0, 0, 0.2);
    border-radius: 50%;
    border-top-color: #B10000;
    border-right-color: rgba(177, 0, 0, 0.15);
    border-bottom-color: rgba(177, 0, 0, 0.2);
    border-left-color: rgba(177, 0, 0, 0.25);
    animation: spellRotate 4s ease-in-out infinite;
}

@keyframes spellRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.follower-star-fragment {
    width: 5px;
    height: 5px;
    background: linear-gradient(45deg, #B10000, #ffffff);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.follower-energy-wisp {
    width: 3px;
    height: 8px;
    background: linear-gradient(180deg, 
        rgba(177, 0, 0, 0.9) 0%,
        rgba(177, 0, 0, 0.2) 50%,
        rgba(177, 0, 0, 0.1) 100%);
    border-radius: 50%;
    filter: blur(0.5px);

}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .nav-link {
        font-size: 2.2rem;
        padding: 0.9rem 0;
    }

    .nav-content {
        padding: 80px 1.5rem 30px 1.5rem;
        min-height: 115vh;
    }
}

@media (max-width: 768px) {
    .mystical-header {
        height: 50px;
    }

    .header-content {
        height: 50px;
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-symbol {
        width: 26px;
        height: 26px;
    }

    .logo-rune {
        font-size: 1.2rem;
    }

    .nav-link {
        font-size: 1.8rem;
        padding: 0.7rem 0;
    }

    .nav-content {
        padding: 70px 1.5rem 30px 1.5rem;
        min-height: 110vh;
    }

    .nav-items {
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .mystical-header {
        height: 45px;
    }

    .header-content {
        height: 45px;
        padding: 0 0.8rem;
    }

    .logo-symbol {
        width: 24px;
        height: 24px;
    }

    .logo-rune {
        font-size: 1.1rem;
    }

    .logo-text {
        display: none;
    }

    .menu-icon {
        width: 32px;
        height: 32px;
    }

    .menu-line {
        width: 20px;
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 0.6rem 0;
    }

    .nav-content {
        padding: 60px 1rem 20px 1rem;
        min-height: 110vh;
    }

    .nav-items {
        gap: 0.6rem;
    }
}



/* ===== CUSTOM CURSOR FOLLOWER ===== */
.custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transform: scale(0.8);
    will-change: transform, opacity;
}

/* Hide custom cursor when nav is open to avoid covering the close icon */
.nav-open .custom-cursor {
    opacity: 0;
}

.custom-cursor.active {
    opacity: 1;
    transform: scale(1);
}

.cursor-text {
    background: linear-gradient(45deg, #B10000, #000000, #B10000);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(177, 0, 0, 0.4);
    transform: translate(-50%, -120%);
    pointer-events: none;
}

/* Keep default cursor visible */
.nav-link {
    cursor: pointer;
}

.mystical-nav.active {
    cursor: default;
}

/* Prevent body scroll when nav is open */
body.nav-open {
    overflow: hidden !important;
}

/* Allow nav to scroll */
body.nav-open .mystical-nav {
    touch-action: pan-y !important;
}
