/* Enhanced Font Animations and Effects */

/* Animated text reveal effect */
@keyframes textReveal {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Gradient text animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Glowing text effect */
@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5),
                     0 0 10px rgba(0, 123, 255, 0.4),
                     0 0 15px rgba(0, 123, 255, 0.3),
                     0 0 20px rgba(0, 123, 255, 0.2);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                     0 0 20px rgba(0, 123, 255, 0.6),
                     0 0 30px rgba(0, 123, 255, 0.5),
                     0 0 40px rgba(0, 123, 255, 0.4);
    }
}

/* Typing animation effect */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Enhanced font classes with animations */
.text-animated-reveal {
    animation: textReveal 0.8s ease-out;
}

.text-animated-gradient {
    background: linear-gradient(-45deg, #007bff, #00d4aa, #1da1f2, #007bff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.text-animated-glow {
    animation: textGlow 2s ease-in-out infinite alternate;
}

.text-typewriter {
    overflow: hidden;
    border-right: 0.15em solid #007bff;
    white-space: nowrap;
    animation: typewriter 3.5s steps(40, end), 
               blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #007bff;
    }
}

/* Modern font weight utilities */
.font-thin { font-weight: 100; }
.font-extralight { font-weight: 200; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* Letter spacing utilities */
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* Line height utilities */
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

/* Enhanced button font effects */
.btn-modern {
    font-family: 'Space Grotesk', 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

/* Responsive font scaling */
@media (max-width: 1200px) {
    .font-responsive-xl { font-size: clamp(2rem, 5vw, 4rem); }
    .font-responsive-lg { font-size: clamp(1.5rem, 4vw, 3rem); }
    .font-responsive-md { font-size: clamp(1.2rem, 3vw, 2rem); }
    .font-responsive-sm { font-size: clamp(1rem, 2vw, 1.5rem); }
}

/* Brand font specific improvements */
.brand-modern {
    font-family: 'Orbitron', monospace !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    background: linear-gradient(45deg, #ffffff, #007bff, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

/* Navbar font improvements */
.nav-modern {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0.8px !important;
    text-transform: capitalize !important;
    position: relative;
    transition: all 0.3s ease;
}

.nav-modern:hover {
    transform: translateY(-1px);
}

/* Footer font improvements */
.footer-modern {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px !important;
}
