/* ========================================
   InterAction Brand Logo Text Styling
   Emulates the logo design
   ======================================== */

/* Brand Text Container */
.nav-brand span {
    font-family: 'Poppins', 'Rounded', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    transform: translateY(3px);
    vertical-align: middle;
    white-space: nowrap;
}

/* Split the word styling */
.brand-text-inter {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(14, 165, 233, 0.2);
    position: relative;
}

.brand-text-action {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* First Letter "I" - Large and Decorative */
.brand-letter-i {
    font-size: 1.8rem;
    background: linear-gradient(180deg, #06b6d4 0%, #0ea5e9 50%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    position: relative;
    display: inline-block;
    text-shadow: 0 3px 6px rgba(6, 182, 212, 0.3);
    letter-spacing: -1px;
}

/* Decorative Curve on "I" */
.brand-letter-i::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 120%;
    background: linear-gradient(180deg, transparent, #06b6d4, transparent);
    border-radius: 3px 0 0 3px;
    opacity: 0.6;
}

/* Capital "A" emphasis */
.brand-letter-a {
    font-size: 1.55rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
    top: -2px;
}

/* Wave underline effect */
.brand-text-wave {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #06b6d4 20%, 
        #0ea5e9 50%, 
        #06b6d4 80%, 
        transparent 100%
    );
    border-radius: 2px;
    opacity: 0.8;
    animation: waveFlow 3s ease-in-out infinite;
}

@keyframes waveFlow {
    0%, 100% {
        transform: scaleX(1);
        opacity: 0.8;
    }
    50% {
        transform: scaleX(1.1);
        opacity: 1;
    }
}

/* Central accent (rocket/flame effect) */
.brand-accent {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 12px);
    background: linear-gradient(180deg, 
        #ef4444 0%, 
        #dc2626 30%, 
        #b91c1c 60%, 
        transparent 100%
    );
    border-radius: 2px;
    opacity: 0.7;
    z-index: -1;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* Glow effect on hover */
.nav-brand:hover .brand-text-inter,
.nav-brand:hover .brand-text-action {
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.6));
}

.nav-brand:hover .brand-letter-i {
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.8));
}

.nav-brand:hover .brand-accent {
    opacity: 0.9;
    animation: flameFlicker 0.3s ease-in-out infinite;
}

@keyframes flameFlicker {
    0%, 100% {
        opacity: 0.9;
        transform: translateX(-50%) scaleY(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1.05);
    }
}

/* Shine effect animation */
.brand-text-inter::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive adjustments */

/* Large screens - ensure no wrapping */
@media (min-width: 1401px) {
    .nav-brand span {
        font-size: 1.6rem;
    }
    
    .brand-letter-i {
        font-size: 1.9rem;
    }
    
    .brand-letter-a {
        font-size: 1.65rem;
    }
    
    /* Ensure container doesn't wrap */
    .nav-brand {
        min-width: 280px;
    }
}

@media (max-width: 1200px) {
    .nav-brand span {
        font-size: 1.3rem;
    }
    
    .brand-letter-i {
        font-size: 1.6rem;
    }
    
    .brand-letter-a {
        font-size: 1.4rem;
    }
}

@media (max-width: 968px) {
    .nav-brand span {
        font-size: 1.2rem;
    }
    
    .brand-letter-i {
        font-size: 1.5rem;
    }
    
    .brand-letter-a {
        font-size: 1.3rem;
    }
    
    .brand-accent {
        width: 1.5px;
    }
}

@media (max-width: 480px) {
    .nav-brand span {
        font-size: 1.1rem;
    }
    
    .brand-letter-i {
        font-size: 1.4rem;
    }
    
    .brand-letter-a {
        font-size: 1.2rem;
    }
}

/* Print styles */
@media print {
    .brand-accent,
    .brand-text-wave,
    .brand-letter-i::before {
        display: none;
    }
    
    .nav-brand span {
        color: #1e3a8a !important;
        background: none !important;
        -webkit-text-fill-color: #1e3a8a !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .brand-text-inter,
    .brand-text-action,
    .brand-letter-i,
    .brand-letter-a {
        -webkit-text-fill-color: #0ea5e9;
        text-shadow: none;
    }
    
    .brand-accent,
    .brand-text-wave {
        opacity: 1;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .brand-text-wave,
    .brand-accent,
    .brand-text-inter::after {
        animation: none;
    }
    
    .nav-brand:hover .brand-accent {
        animation: none;
    }
}
