/* Logo Animation Styling */
:root {
    --gold: #D4AF37;
    --charcoal: #2C2C2C;
    --white: #FFFFFF;
    --stroke-color: var(--charcoal);
    /* Fix for NAILS visibility */
}

#logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end !important;
    /* Force right alignment of everything inside */
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    min-height: 200px;
    transition: all 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1100;
    pointer-events: none;
}

/* Removed: Transition to corner logic as per user request */


#adrianna-text {
    font-family: 'Clicker Script', cursive;
    font-size: 6rem;
    color: var(--charcoal);
    white-space: nowrap;
    position: relative;
    opacity: 1;
    display: inline-block;

    /* Writing effect via mask */
    -webkit-mask-image: linear-gradient(to right, #000 50%, transparent 50%);
    -webkit-mask-size: 200% 100%;
    -webkit-mask-position: 100% 0;
}

#adrianna-text.writing {
    animation: writing-draw 2.5s ease-out forwards;
}

@keyframes writing-draw {
    0% {
        -webkit-mask-position: 100% 0;
    }

    100% {
        -webkit-mask-position: 0% 0;
    }
}

#nails-text-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 0;
    margin-top: -65px;
    /* Positioned higher to 'hug' Adrianna as requested */
    opacity: 0;
    transition: opacity 1s ease-out;
    position: relative;
    padding-left: 25%;
    /* Skip the first large 'A' as requested */
}

#nails-text-container.visible {
    opacity: 1;
}

.nail-letter {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    /* Larger than nav logo as requested */
    font-weight: 700;
    letter-spacing: normal;
    /* spacing handled by flex justify-between */
    color: transparent;
    /* Initially transparent as requested */
    transition: color 0.5s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    /* Added shadow for better visibility on light colors */
    position: relative;
    z-index: 1;
}

/* Paint overlay for "brush" animation */
.brush-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0;
    z-index: 2;
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
    /* Hidden initially from right (animates from left to right) */
    padding-left: 25%;
    /* Match the container padding */
}

/* Fix for RTL mapping: Left to right sweep */
.brush-overlay.sweeping {
    animation: brush-reveal 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes brush-reveal {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
    }
}

.brush-overlay .nail-letter {
    color: var(--next-paint-color, #FFB6C1);
    /* Dynamic color for the next brush stroke */
}

/* Ensure central logo doesn't have fingertips anymore */
.fingertip,
.nail {
    display: none !important;
}


/* Pulse animation for the painting effect */
@keyframes paint-reveal {
    0% {
        height: 0;
    }

    100% {
        height: 100%;
    }
}


/* Navigation Logo Styling (Permanent) */
#main-nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
}

#main-nav-logo .logo-name {
    font-family: 'Clicker Script', cursive;
    font-size: 2.2rem;
    color: var(--charcoal);
    margin-bottom: -5px;
}

#main-nav-logo .logo-nails {
    font-family: 'Outfit', sans-serif;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: normal;
    color: var(--gold);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    margin-top: -3px;
    padding-left: 25%;
    /* Skip the first smaller 'A' in script */
}

/* Ensure Nav Container allows spacing */
.nav-container {
    justify-content: space-between !important;
}