/* Global Custom Styles */
/* Generated for profemprestes.github.io */

/* Typography Overrides (mapping from Tailwind config) */
body {
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4 {
    font-family: 'Lexend', sans-serif;
}

/* Glass Morphism Effect */
.glass-morphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Neon Border Animation */
.neon-border {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    /* Ensure backdrop blur works if needed, though not specified in original */
}

.neon-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(90deg, #0ea5e9, #6366f1, #0ea5e9);
    background-size: 200% 100%;
    z-index: -1;
    border-radius: inherit;
    opacity: 0.5;
    animation: moveGradient 4s linear infinite;
}

@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Skill Bar Animation Base */
.skill-bar-fill {
    width: 0;
    /* Default starting state for animation */
    transition: width 1.5s cubic-bezier(0.1, 0, 0, 1);
}

/* Grid Background Pattern */
.grid-bg {
    background-image: linear-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Mesh Gradient Background */
.mesh-animate {
    background: linear-gradient(-45deg, #9333ea, #db2777, #7c3aed, #ec4899);
    background-size: 400% 400%;
}

/* =========================================
   Mobile Navigation Integration (Native CSS to support ui.js)
   ========================================= */

/* Mobile Menu Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    /* Dark background for modern theme */
    z-index: 49;
    /* Below header (z-50) */
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Container - Overrides specific to ID for priority */
#nav-menu-container {
    /* Hidden by default on mobile unless .show is present */
    /* controlled primarily by Tailwind classes, but we need the transition */
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

#nav-menu-container.mobile-view {
    position: fixed;
    top: 0;
    right: 0;
    /* Slide from right */
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    /* Dark background compatible with theme */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 51;
    /* Above header */
    transform: translateX(100%);
    /* Hidden to right */
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem 2rem 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

#nav-menu-container.mobile-view.show {
    transform: translateX(0);
}

/* Animations moved from JS */
.portal-card.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.newsletter-form {
    transition: all 0.3s ease;
}

.newsletter-form.focused .newsletter-input {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.5);
    /* Primary color ring */
}

.newsletter-success {
    opacity: 1;
    transition: opacity 0.3s ease;
    color: #4ade80;
    /* Tailwind green-400 */
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Utility for active link */
.nav-link.active {
    color: #0ea5e9;
    /* Primary color */
    font-weight: 700;
}