* {
    font-family: 'Inter', sans-serif;
}

body {
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, #00d4ff 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 212, 255, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.btn-gradient {
    background: #8b5cf6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    background: #7c3aed;
}

.btn-gradient:active {
    transform: translateY(0);
}

.btn-outline {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-outline:hover::before {
    left: 100%;
}

.btn-outline:hover {
    transform: translateY(-2px);
    background-color: #25a5b9;
    border-color: #25a5b9;
    color: #ffffff;
}

.btn-white {
    transition: all 0.3s ease;
}

.btn-white:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
}

.btn-white:active {
    transform: translateY(0);
}

.typing-animation {
    border-right: 3px solid #00d4ff;
    white-space: nowrap;
    animation: blink-caret 0.75s step-end infinite;
    min-height: 1.5em;
    display: inline-block;
}

@keyframes blink-caret {
    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #00d4ff;
    }
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
    background: linear-gradient(45deg, #00d4ff, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 2.5rem;
    position: relative;
    padding: 8px 16px;
    border-radius: 12px;
}

.nav-logo::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #00d4ff, #667eea, #764ba2);
    border-radius: 15px;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .nav-link {
        padding: 12px 20px;
    }
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(139, 92, 246, 0.1),
        transparent
    );
    border-radius: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: #8b5cf6 !important;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
    transform: translateY(-3px);
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.3);
}

.social-icon {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25) !important;
}

.experience-card {
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4),
        0 0 20px rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.hero-gradient {
    background: linear-gradient(
        135deg,
        #0a0a0a 0%,
        #1a1a2e 25%,
        #16213e 50%,
        #0f3460 75%,
        #0a0a0a 100%
    );
}

.language-toggle {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.language-toggle::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 ease;
}

.language-toggle:hover::before {
    left: 100%;
}

.language-toggle:active {
    transform: scale(0.95);
}

.lang-es,
.lang-en {
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.lang-es.active,
.lang-en.active {
    color: white;
    background: rgba(139, 92, 246, 0.2);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    font-weight: 600;
}

.lang-es.inactive,
.lang-en.inactive {
    opacity: 0.6;
    color: #d1d5db;
}

/* Mobile menu styles */
#mobile-menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu-button,
#mobile-menu-close {
    transition: all 0.3s ease;
}

#mobile-menu-button:hover,
#mobile-menu-close:hover {
    transform: scale(1.1);
}

#mobile-menu nav a {
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

#mobile-menu nav a:hover {
    border-left-color: #8b5cf6;
    background-color: rgba(139, 92, 246, 0.1);
    transform: translateX(8px);
}
